[TI-H] Re: PIXpander


[Prev][Next][Index][Thread]

[TI-H] Re: PIXpander




At 19:09 2001-05-13, you wrote:
>One would think that this code would work for the purpose:
>
>TRANSERR           MOVLW                0x4F 
>; Signals Error
> 
>; By lighting all
>                                   MOVWF         PORTB 
>        ; 4 LEDs.
>TRANSERR3       BTFSC             PORTA, 4              ; Is Button Down (Low)
> 
>GOTO              TRANSERR3
>                                   NOP
>TRANSERR2       BTFSS             PORTA, 4    ; Button Back Up? (High)
>                                   GOTO              TRANSERR2 
>
>                                   RETURN

Don't you think a single nop is a bit too short time to compensate for 
button-bouncing?
It probably rushes straight through that.
Probably isn't the only problem though, if it is a problem.. :)

///Olle




References: