19.3.2.2 Voltage Measurement

VDDIO2 is available as an internal input channel to the ADC. The voltage is divided by 10 to allow the use of any internal ADC reference. To measure VDDIO2, follow these steps:
  • Configure the voltage reference for the ADC
  • Select VDDIO2 as the positive input to the ADC
  • Run a single-ended ADC conversion
  • Calculate the voltage using the following equation:
    V DDIO2 = ADC Result × V REF × 10 ADC Resolution