Hi all,
I have a 10k pot (Also tried with 470k pot). I use the following command to send the value which is stored in b1 :
Now the problem is I receive something like this (In this case I rotated the pot handle to the end)
As you can see, it is not 255 all the time.
I have to mention that I connected the pot to the same V+ of the chip which comes from a wall adapter that is pretty much stable at 3V. Can this be the problem? What can I do to improve this?
Thanks.
I have a 10k pot (Also tried with 470k pot). I use the following command to send the value which is stored in b1 :
Code:
let adcsetup = %0000000100000000
let dirsc = %00001100
main:
readadc c.1,b1
sertxd (#b1, CR)
goto main
Code:
255
255
255
255
255
255
255
255
248
245
255
255
245
255
255
255
255
255
255
255
255
255
255
255
255
248
I have to mention that I connected the pot to the same V+ of the chip which comes from a wall adapter that is pretty much stable at 3V. Can this be the problem? What can I do to improve this?
Thanks.