Skip to main content
March 25, 2025
Question

STM32H562RIT6_temperature sensor

Hi

What is the exact percentage error of the internal temperature sensor in the STM32H562RIT6 microcontroller?
Is this error percentage consistent across all temperature ranges?
Please provide the exact percentage error for different temperature ranges.
Additionally, provide a sample code for accurately measuring temperature using the internal temperature sensor of the STM32H562RIT6 microcontroller.

Thank you

This topic has been closed for replies.

3 replies

STOne-32
ST Technical Moderator
March 25, 2025

Dear @unknown ,

Here is an example using DTS, the Digital Temperature Sensor 

STM32CubeH5/Projects/NUCLEO-H563ZI/Examples/DTS/DTS_GetTemperature at main · STMicroelectronics/STM32CubeH5 · GitHub

Regarding the performance of the DTS : Datasheet - STM32H562xx and STM32H563xx - Arm<Sup>®</Sup> Cortex<Sup>®</Sup>-M33 32-bit MCU + TrustZone<Sup>®</Sup> + FPU, 375 DMIPS, 250 MHz, 2-Mbyte flash, 640-Kbyte RAM, math accelerators Page 215

 

STOne32_0-1742917481507.png

 

If better error is required, you can also use the ADC and using the ATS in next step.

Hope it helps you,  STOne-32.

 

 

March 26, 2025

Hi

What is the error from 30 to 130 degrees?

STOne-32
ST Technical Moderator
March 26, 2025

Dear @unknown ,

it is on the 4th row , from -7 to +2 degree Celsius , DTS measures Tj, junction temperature at die level .

STOne-32