Optimal voltage range for A/D Conversion

adc

Why the voltage corresponding to the ADC result of 25 is 1.07 v (for a 10 bit A/D converter with a low reference voltage of one and high reference voltage of four) shouldn't the A/D conversion result be as it is , meaning 25 volts? In the manual it says the ADC result is more accurate if the value of the analog signal covers the whole voltage range from VRL to VRH.

Best Answer

The output of a 10 bit ADC is a number between 0 and 1023.

But very few applications require measuring a voltage between 0 and 1023 V.

Luckily (for people who don't happen to want to measure voltages between 0 and 1023 V), we can arrange for the ADC output to be scaled to measure essentially any range we want. Typically we measure between 0 and some value \$V_{ref}\$, but other ranges are possible (for example \$-V_{ref}\$ to \$V_{ref}\$). The datasheet for your ADC will tell you what the conversion range for your device is, and may also allow you to adjust the range, for example by providing an external reference voltage on one of the device's pins.

For the case of 0 to \$V_{ref}\$, assuming an ideal linear ADC, the actual input voltage can be recovered from the ADC reading by

$$V_{in}=V_{ref}\frac{d}{2^n-1}$$

where \$d\$ is the ADC reading, and \$n\$ is the number of bits produced by the ADC.

In the manual it says the ADC result is more accurate if the value of the analog signal covers the whole voltage range from VRL to VRH.

This isn't quite right. It should say the ADC provides more resolution, or better precision, if the analog signal uses the whole voltage range.

For example, say your ADC is set up to give 10 bits of resolution for input voltages between 0 and 5 V, but your input signal actually only varies between 0 and 1 V. Then you'll only read output values between 0 and 205. So you have only 8 effective bits of resolution in your signal range. And the voltage resolution is only 4.89 mV per count.

If you reduced the ADC reference voltage to 1.023 V (a convenient value), then you'd have very nearly the full 10 bits of resolution over your signal range, and the resolution in terms of voltage would be 1.0 mV per count.