Skip to main content
himasagar reddy
Associate
April 1, 2019
Question

Hi all, am using stm32l4S5IT microcontroller for reading internal temperature ,VBAT and vref but not able to read the exact values of each one ,

Vref is giving - 5200- 5700 mv but my source is (3300) max

VBAT - 3600 mv

Temp- 170 degrees

not able to get why it giving that difference and my configurations are as per the example cube library

Note: my Vref value is using as VREFANALOG_VOLTAGE for VBAT and Temperature

Thanks in Advance

This topic has been closed for replies.

2 replies

S.Ma
Principal
April 1, 2019

Have you performed the ADC calibration step before running measurements?

himasagar reddy
Associate
April 2, 2019

Yes i performed.

  HAL_ADCEx_Calibration_Start(&hadc1, ADC_SINGLE_ENDED);