cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U575 Temperature Sensor ADC4 calculation

phuocly
Associate

Hi,

Currently I am trying to measure MCU junction temperature on the STM32U575 via ADC4 TEMPSENSOR channel (CH13). Upon reading the datasheet and reference manual of the chip, I have some questions regarding this implementation.

According to both the datasheet and reference manual, TEMPSENSOR is shared across ADC1 and ADC4 of the chip via internal channels of them (So this means the raw voltage value should be read out and calculated via ADC4 as expected).

The temperature calculation from the reference manual shows that TS_CAL1 and TS_CAL2 are required calibration value and can be readout

phuocly_0-1736237001109.png

However, according to table 16 of the datasheet, the above value are 14-bit raw data acquired by ADC1 (I also tried reading out these values from a few chips and they all exceeded 4095 (12-bit)

phuocly_1-1736237082283.png

Does this mean the above calibration data only used with raw 14-bit measured adc value from ADC1 and cannot be used with ADC4 12-bit (otherwise we have some overflow?) or I might have missed something out from the document?


Appreciate any support and explanation!

Phuoc

 

 

 

0 REPLIES 0