AD Negative Voltage reference
Hello,
I need to measure a 5V range but because of the voltage-regulator's "adjust" pin, the relative 0V (zéro) is already 1,2V!
Currently, the range is from 1,2V to 6,2V if measured against Vss (GND).
I already set ADCON0.6=1 (+Vref) and use a 6,2V Zener.
Now, AD reads from Vss to +6,2V.
But when I need to read "0V" (zéro), AD will still give me something like 70 (8bit res) because I can't get lower than 1,2V.
How can I pull the GND up from 0 to 1,2V or what is the way to do it right?
1 Attachment(s)
This is how it looks like
Voilà, this is how my circuit looks like:
<img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1820&stc=1&d=118301268 7">
Voltages I measure are:
1.- GPIO.5 = HPWM = 1,2V to 6,2V;
2.- GPIO.1 = AD = 1,2V to 5,1V.
To make it work (voltage control), I must connect R5. In the same time, voltage on GPIO.5 raises up from 0V to 1,2V.
Do I have to "protect" GPIO.5 pin against this 1,2V even if it is an Output?
If yes, how?
NB: is Vref limited to max 5V?