STM32H747 Internal Temperature Measurement and Calculation
Hello, Friends,
I am using ADC(16 bit) to measure the STM32H747 Internal Temperature and VrefInt based on external reference voltage (VDDA 3.3V, Vref+ 2.5V). The VrefInt result is 1.221V, which looks good. However, the temperature result is 150C, which seems not correct.
From the STM32H747xl/G datasheet, there are temperature sensor calibration values TS_CAL1(30C) and TS_CAL2(130C). The formular to get real temperature is (130-30)*(myADCValue-TS_CAL1)/(TS_CAL2-TS_CAL1)+30.
Here are my questions: 1) Is the formular correct? 2)Which reference voltage value is used when TS_CAL2/TS_CAL1 values are read during the calibration? I am using 2.5V external voltage in my design.
Regards,
YH
