Hello,
This should be a really simple problem but I spent tons of time reading the datasheet and couldn't find a solution. I am trying to get a digital input on porta.0 and trigger a led to blind. Here is the code, but apparently I can't read digital inputs. I tried setting adcon1 to 1111 but it still doesn't work. Here's the code:
----------------
rts var porta.0
cts var portd.3
led var portd.2
input rts
output cts
output led
adcon1 = 1111
low led : low cts
main:
if rts = 1 then
high led
pause 5000
low led
pause 5000
endif
goto main
-----------------
Thanks for the help...
-Mike
Bookmarks