cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L432 Nucleo reading internal temperature sensor

Jeremy Kapp
Associate
Posted on March 14, 2017 at 03:29

I have STM32L432 Nucleo board. Using CubeMX I have configured the ADC1 IN17 to temperature sensor channel.

How do you read this register using the HAL layer?

I can already poll adc1 IN5 to read an external temperature sensor using a MCP9700A. I would like to compare the external reading with the internal reading.

To get the external sensor I used HAL_ADC_PollForConversion.

Thanks

1 REPLY 1
Imen.D
ST Employee
Posted on March 15, 2017 at 13:40

Hello,

You can have a look at the ADC_TemperatureSensor example in the Cube firmware package : 

STM32Cube_FW_L4_V1.6.0\Projects\STM32L476RG-Nucleo\Examples_LL\ADC\ADC_TemperatureSensor

and refer to the 'Temperature sensor' section in the datasheet and your reference manual.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen