charu2539211
Junior Member level 3
- Joined
- Jul 22, 2013
- Messages
- 31
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 8
- Activity points
- 200
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???