The power supply voltages I have to read are never ratiometric.
The power supply voltages I have to read are never ratiometric.
Charles Linquist
Exactly. Perfect example.
They are their own power supplies.
If VDD to the PIC changes, the other voltages don't necessarily change.
So there is no Ratiometric relationship, and a Fixed reference is required (like you have).
But when reading POTs, many pressure transducers, or any sensor that is resistive in nature, it will likely be ratiometric and a Fixed reference will distort the readings.
I guess I just thought that this was a bit limiting.
It's quite possible to get 12-bits or more without a Fixed reference.They try to get 10-12 bits (or more) of resolution when using Vcc as the reference voltage. That just doesn't work.
If you are reading a Ratiometric device.
Fortunately, whether or not a reference is used can be changed in the ADCON1 register, so even within the same project you might have some Fixed or unreferenced sources, and other ratiometric devices that change with VDD.
If you know the difference, Use the reference for the fixed sources, and no reference (VDD) for the ratiometric ones.
DT
I don't think I did a very good job of explaining myself.
I almost always have to read a 4 output EXTERNAL power supply (cPCI, VPX, uTCA or VME). I have to make certain that the voltages are within tolerance. I have to be a voltmeter, and have to be very accurate - regardless of what the PIC supply is.
Charles Linquist
Thanks, Darrel--I had already noted those two statement changes, but I appreciate the reminder.
I'm looking at 2 pots and the output of 5 op amps, but it isn't a problem if the values wander a little. (Probably I don't need 10 bits, either . . . !)
Thanks for the link, too. I'll take a longer look when I next treat myself to a break.
Russ
N0EVC, xWB6ONT, xWN6ONT
"Easy to use" is easy to say.
Part of what confused me on this matter is the statment in my PBP manual under "ADCIN":
<b>ADC_SAMPLEUS is the number of microseconds the program waits between setting the <i>Channel</i> and starting the analog to digital conversion. This is the sampling time.</b>
Comments, anyone?
Russ
N0EVC, xWB6ONT, xWN6ONT
"Easy to use" is easy to say.
The A/D converters have a FET switch on each input. When you change the channel, the gates on those FETs toggle. There is a finite capacitance between the gate and the drain and source of the FET, so the toggling of the gate signal causes what is called charge injection into the other pins. This causes a glitch at the input and output of the FET switch. If you read the A/D too quickly after you change the channel, you will get an inaccurate reading due to voltage spike caused by the charge injection. The time it takes for this excess charge to bleed away is dependent on your source impedance. If your source is the output of an op-amp (zero ohm source), then you can switch channels and start conversion within 3uSec. If your source is 10K then you should wait at least 11uSec after changing channels before you start a conversion. If you don't wait long enough, your accuracy will suffer.
Charles Linquist
Bookmarks