Electronic – Backward measurement of AVcc against reference voltage connected to ADC input

battery-operatedmicrocontrollervoltagevoltage measurementvoltage-reference

what you think about ADC backward measuring supply voltage in microcontroller?
It looks interesting for battery-powered devices.

The idea is:

  1. Connect constant voltage (some voltage reference IC) to ADC input (not to Vref!)
  2. Set AVcc as reference for microcontroller ADC
  3. Get ADC value
  4. Calculate ADC reference (our AVcc) from ADC result

My questions:

– is this commonly used method?

– can that method be better than measuring Vcc using voltage divider with ADC reference connected "conventionally"?

My question is inspired by this.

Best Answer

An ADC reads an analogue value via its input but that analogue value is dependent on: -

  1. The analogue value
  2. The ADC's reference voltage

If one of the two above analogue voltages are known the other can be computed or inferred.

I wouldn't have thought it was very common because most folk will want to have a stable voltage reference (from a known voltage reference chip) so that they can make accurate voltage measurements of the various input signals going into their ADC (multiple channels are of course usually "served" by one stable reference).

However, if the inputs are a bunch of RTDs and the RTDs are excited via a resistor from the AVcc rail then ratiometric measurements are the most accurate method of using the ADC and, if AVcc is also needed to be known then a stable voltage reference on a spare ADC input allows you to make this measurement.