greencardigan
Senior Member
I have a 5K POT connected to input1 of an 18X and when running the following code any values less than about 370 were coming in as 1023.
When I changed the first line to
then it works as expected.
Am I doing something obviously wrong??
Code:
symbol getval = input1
do
readadc10 getval,w0
sertxd (#w0,13,10)
pause 250
loop
Code:
symbol getval = 1
Am I doing something obviously wrong??