Skip to main content
Jeremy Kapp
Visitor II
Mar 14, 2017 2:29 AM UTC
Question

STM32L432 Nucleo reading internal temperature sensor

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

    This topic has been closed for replies.

    1 reply

    ST Technical Moderator
    Mar 15, 2017 12:40 PM UTC
    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

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks