Hi all,
am using stm32l4S5IT microcontroller for reading internal temperature ,VBAT and vref but not able to read the exact values of each one ,
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-01 1:56 AM
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
Labels:
- Labels:
-
ADC
-
STM32L4 Series
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-01 8:04 AM
Have you performed the ADC calibration step before running measurements?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-01 8:47 PM
Yes i performed.
HAL_ADCEx_Calibration_Start(&hadc1, ADC_SINGLE_ENDED);
