Hello.
I have a question regarding the temperature conversion formula for MSPM0G3507.
1. Checking how to use Temperature coefficient in calculations
TRM states that temperature is calculated using the following formula.
TSAMPLE = (1 / TSc) ∗ (VSAMPLE - VTRIM) + TSTRIM
TSc is Temperature coefficient.
Sample program for SDK 1.20.01.06
In "adc12_internal_temp_sensor_mathacl", the value of 1/TSc is -571.42f.
Calculating TSc from -571.42f resulted in -0.001750.
Chapter 7.12 of datasheet_mspm0g3507_revB states that the TSc TYP is -1.8mV/℃, but I think -1.75mV/℃ is correct.
2. About the calculation formula of VSAMPLE
In TRM, the formula for calculating VSAMPLE is written as:
VSAMPLE = (VREF / 2RES) ∗ (ADCCODE - 0.5)
2RES is calculated as 4096, but if the maximum ADCCODE is 4095, I think 2RES needs to be 4095 as well.
