Skip to main content
YGarg
Associate II
May 31, 2023
Solved

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

  • May 31, 2023
  • 1 reply
  • 955 views

..

This topic has been closed for replies.
Best answer by YGarg

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

1 reply

YGarg
YGargAuthorBest answer
Associate II
May 31, 2023

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