charu2539211
Junior Member level 3
hi
i am using a push button connect to the pic16f887. this is my code in assembly language
i have intialised portd0 as input port and portb as output port.
BANKSEL PORTD
BTFSS PORTD,0
GOTO LEDSEL
;;; delay????;;;
BTFSC PORTD,0
GOTO LEDSEL
GOTO DEC1
LEDSEL
...
DEC1
....
so when i press the push button it should go to DEC1, else it should go to LEDSEL
is my program right???
and do i need to add a delay in between?? if so how much???
i am using a push button connect to the pic16f887. this is my code in assembly language
i have intialised portd0 as input port and portb as output port.
BANKSEL PORTD
BTFSS PORTD,0
GOTO LEDSEL
;;; delay????;;;
BTFSC PORTD,0
GOTO LEDSEL
GOTO DEC1
LEDSEL
...
DEC1
....
so when i press the push button it should go to DEC1, else it should go to LEDSEL
is my program right???
and do i need to add a delay in between?? if so how much???