Hi
This is my code:
TRISIO=%011111
Let GPIO=0
w1 VAR word
cmcon0=%111
intcon=0
Include "modedefs.bas"
START:
serin GPIO.2,N2400,["abc"],w1
pause 10
if w1=3 then yes
if w1=4 then no
if gpio.0=1 then decide
GOTO START
YES:
gpio.5=1
GOTO START
no:
gpio.5=0
goto start
decide:
toggle gpio.5
Low gpio.0
pause 500
goto start
This code above is working fine with serial communication BUT not responding to manual control via gpio.0. I have tried this with all the available ports, making them high by giving Vdd to pins but the state to gpio.5 does not change at all.
Could someone help me please.
Thanks
Damien
Bookmarks