cancel
Showing results for 
Search instead for 
Did you mean: 

STM32C0 VREF+ Calculation

pjhap
Visitor

With a stm32c0116-dk, I am attempting to read vrefint, and calculate vref+. From my understanding of the data sheet, and schematic. VDDA is tied to VREF+ . On the development kit, these voltages are 3.3V.

VREF+ = ((VREF _Charac+) * (VREFINT_CAL)) / VREFINT_DATA

From the Datasheet - 
VREF _Charac+  = 3.0V

When I calculated VREF+, after reading VREFINT_DATA from the ADC, and VREFINT_CAL from the memory address. I am expecting a result close to 3.3 volts, but instead I am getting 3.04V

I have attempted to increase the sample time to ADC_SAMPLETIME_160CYCLES_5, but it makes no difference.

What am I doing incorrect?




0 REPLIES 0