Code:
Main btfss GRD_PORT, 1
goto Next
movlw b'00000001'
movwf GRD_PORT
call Delay255
goto Main
Next movlw b'00000010'
movwf GRD_PORT
call Delay255
goto Main ;loop for ever
I've been having a larger problem with a different program, and am trying to segment it out to figure out what is causing the problem. This segment above should loop switching between between two pins, but this is not the case. Pin 0 goes on, then stays off thereafter, as if the loop had been exited.
Any ideas?