I was testing the readadc10 command and I find it is not a linear scale, especialy at very low voltages.
The scales seems to be parabolic. Curvey at lower voltages then straightens up.
Heres how I tested it.
win 98se
Picaxe programmer 4.1.10
Download cable not connected.
Enhanced interface circuit not used.
Constant 4.8 volt supply during test.
'PROGRAM
loop:
readadc10 2,w1 'the voltage to input 2 is also monitored be a multimeter.
w2=w1*10
pulsout 1,w2 ' sends a pulse to output 1 wich is then measured by a pulse width meter.
pause 500
goto loop
The ratio of voltage going into the chip and the pulses coming out are not same.
I replaced the chip with another chip and got the same results.
Is there a formula for determining the correct adc10 values?
Thanks.
The scales seems to be parabolic. Curvey at lower voltages then straightens up.
Heres how I tested it.
win 98se
Picaxe programmer 4.1.10
Download cable not connected.
Enhanced interface circuit not used.
Constant 4.8 volt supply during test.
'PROGRAM
loop:
readadc10 2,w1 'the voltage to input 2 is also monitored be a multimeter.
w2=w1*10
pulsout 1,w2 ' sends a pulse to output 1 wich is then measured by a pulse width meter.
pause 500
goto loop
The ratio of voltage going into the chip and the pulses coming out are not same.
I replaced the chip with another chip and got the same results.
Is there a formula for determining the correct adc10 values?
Thanks.