MY problem is I get very inconsistent readings from the ADC reads I am doing - even with what
should be 0 volts coming from a 9v battery as a power source (thru an LDO down to 3.3v) I get
numbers that vary from 0 to 1024. I have multiple caps on everything, all the ground tied together,
not sure what I am doing wrong ? I have this same setup going into a picaxe chip with it's lower
adc resolution and I get very consistent readings. This chip, not so much.
Any help or things to check, very appreciated.
Thx
Sample code below :
Code: Select all
PRINT "START"
INPUT (11)
VHI = 0
VLO = 65472
FOR X=1 TO 100000
VNOW = AD(0)
IF VNOW > VHI THEN VHI = VNOW
IF VNOW < VLO THEN VLO = VNOW
NEXT
PRINT "VLO = " + VLO
PRINT "VHI = " + VHI
PRINT "DELTA = " + (VHI - VLO)
PRINT "END"