McMurry
Member level 3
I have four push up button switch.. each pulled up, and also connected to the PortA 0,1,2,3 respectively.
I am making an infinite loop that will detect if any button switch is pressed, like this:
loop btfss porta,0
goto somewhere
btfss porta,1
goto somewhereelse
.
.
goto loop
However, the code failed to work.
Anyone may help to explain a correct way to do it?
I am making an infinite loop that will detect if any button switch is pressed, like this:
loop btfss porta,0
goto somewhere
btfss porta,1
goto somewhereelse
.
.
goto loop
However, the code failed to work.
Anyone may help to explain a correct way to do it?