Application: This example code use ADC to measure internal Bandgap voltage(VBG) and use VBG to calculate AVDD.
BSP Version: NUC230/240 Series BSP CMSIS V3.01.001
Hardware: NuEdu-EVB-NUC240 v1.0
A temperature independent voltage reference circuit inside microcontroller can produce a constant voltage called internal bandgap voltage (VBG). VBG is one of the ADC reference voltages.
In this example code, we use ADC channel 7 to measure the VBG. We then use the measured value to calculate AVDD value by using below formula. This method requires the VREF pin connects to AVDD pin.
You can download the sample code at https://www.nuvoton.com/resource-downlo ... 1227145113
|