cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L462CE internal temperature and battery voltage read

AP_040
Senior

I want to read internal MCU temperature and battery voltage of STM32L462CE. So, can somebody help to do this?

2 REPLIES 2
S.Ma
Principal

Dig in the STM32L4 Cube SW library and board examples, especially the closest NUCLEO. There will be several ADC project examples to look at, and don't forget to run ADC calibration as there are many ADC Vbat/Vtemp/Vref questions every week.

AP_040
Senior

Yes, I have found one example (STM32Cube_FW_L4_V1.13.0\Projects\NUCLEO-L476RG\Examples_LL\ADC\ADC_TemperatureSensor) to read internal temperature value of chip but in that example there is one GPIOA_PIN_4 mentioned that internally temperature sensor is connected to this pin. So, how I know that which pin is for STM32L462CE because this information is not available in the datasheet. Also, what to do to read supply voltage of the chip?.