cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G030, reading temperature using V_sense. At room temp reads ADC count 968. TS_CAL1 (0x1FFF'75A8) is 0x0410 at 30 deg. Data sheet says the slope is 2.5mV / deg. Temp. = (1 deg C / 2.5 mV)*(968 - 0x0410)+30=(1/3.1ADC C)*(968-1040)+30=6.7 deg. Not Ok

YGarg
Associate II
 
1 ACCEPTED SOLUTION

Accepted Solutions
YGarg
Associate II

I got the solution. TS_CAL1 (1040) is for V_dd = 3.0V. My V_dd is 3.3V. So correct TS_CAL1 is 3 * 1040 / 3.3 = 945. Using this I get the right temperature. Thanks

View solution in original post

1 REPLY 1
YGarg
Associate II

I got the solution. TS_CAL1 (1040) is for V_dd = 3.0V. My V_dd is 3.3V. So correct TS_CAL1 is 3 * 1040 / 3.3 = 945. Using this I get the right temperature. Thanks