Gayan Soyza
Active Member
I just wrote a program to pic 16f84a that changing some led patterns when u
press the interrupt button(RB0).
circuit works like this
*RB0 switch
*LED's connected to other portB pins.
when the power is on it displaying pattern 1.
when u press switch due to the interrupt it change the pat1 to pat2.
My Ques is now its in the pat2 state.even if i press the switch it wont change.
because its looping inside the pat2.
This is what I want to do
when u press the interrupt button again must go to the other pattern.I hope to
change 5 patterns.
How can i do this ? How the code comes?
See the code in the attachment.
press the interrupt button(RB0).
circuit works like this
*RB0 switch
*LED's connected to other portB pins.
when the power is on it displaying pattern 1.
when u press switch due to the interrupt it change the pat1 to pat2.
My Ques is now its in the pat2 state.even if i press the switch it wont change.
because its looping inside the pat2.
This is what I want to do
when u press the interrupt button again must go to the other pattern.I hope to
change 5 patterns.
How can i do this ? How the code comes?
See the code in the attachment.