AnsweredAssumed Answered

ADC voltage calculation inaccurate

Question asked by Syed.Hasasn on Feb 5, 2016
Latest reply on Feb 5, 2016 by AvaTar
I am using a STM32F072RB discovery board and trying to calculate the voltage on a pin (PA1). I attached VDDA to the pin and measured the voltage with a voltmeter and it is 2.97 V.

The raw value that is read using a single-shot configuration is 4029.

4029 * 3.3 / 4096 = 3.246
That is too high. The actual value is 2.97

The value read form 0x1FFF F7BA - 0x1FFF F7BB is 0x60c
calibvalue = *(uint32_t *)  0x1FFF F7BA;

But I am not sure how to use that and make sense of the value.

Appreciate any pointers.

Outcomes