Hi all.
I am trying to read an analogue value from a variable resistor, my code looks like this and simulates fine:
main:
readadc 0, b1
'b1 =21
if b1 > 20 then high 0
else
low 0
end if
goto main
My question is this, which physical pin of my 18M do I read from, the manual appears to suggest pin 18 but isn't this a digital input?
Thanks.
I am trying to read an analogue value from a variable resistor, my code looks like this and simulates fine:
main:
readadc 0, b1
'b1 =21
if b1 > 20 then high 0
else
low 0
end if
goto main
My question is this, which physical pin of my 18M do I read from, the manual appears to suggest pin 18 but isn't this a digital input?
Thanks.