2017-03-13 07:29 PM
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
2017-03-15 05:40 AM
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