Bayside888
Member
I don't think I understand the adcsetup command for the 28X2, where it is apparently mandatory. I put a varying voltage on ADC13 (pin 26) and run the following:
let adcsetup=13
symbol Press=w0
main:
pause 1000
readadc10 13,w0
sertxd("Volts=",press,cr)
goto main
It works very well until I get up to about 1 volt, then goes haywire, which the manual did say would happen if setup is not right. Any good examples of using setup on this part?
Also: I get the following output on the terminal screen
volts={E8}
where the volt value is in hex. Not a big deal, but aggravating to convert each value.
Thanks Bayside888
let adcsetup=13
symbol Press=w0
main:
pause 1000
readadc10 13,w0
sertxd("Volts=",press,cr)
goto main
It works very well until I get up to about 1 volt, then goes haywire, which the manual did say would happen if setup is not right. Any good examples of using setup on this part?
Also: I get the following output on the terminal screen
volts={E8}
where the volt value is in hex. Not a big deal, but aggravating to convert each value.
Thanks Bayside888