This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0G3507: Unable to calulate internal temperature.

Part Number: MSPM0G3507

Hello,

I'm unable to calculate the right temperature value. I have the following input values:

  • ADC digit is 1834
  • ADC reference voltage is 1.4V
  • DL_SYSCTL_getTempCalibrationConstant() returns 752
  • TEMP_TS_COEF_mV_C is -571.42
Now If i do the math I get:
V_SAMPLE = 1834 * 1.4V / 4096
V_SAMPLE = 0.627V
V_TRIM = 752 * 3.3V / 4096
V_TRIM = 0.606V
T = -571.42 * (0.627V - 0.606V) + 30°C
T = 18°C
I measure the internal temperature at room temperature and 18°C is too cold.
So what is wrong with my calculation?
Thanks,
Sebastian