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.

MSP430F67471: Calibration of the temperature sensor and ADC10 based on the TLV values

Part Number: MSP430F67471

Hello,

in our application we employ the internal temperature sensor internally connected to the 10-Bit ADC (ADC10). For the calibration of the temperature sensor we use parameters ADC25T30 and ADC25T85 from the TLV table. However, we ask ourselves, if we also need to calibrate the ADC10 itself, according to the 1.13.5.2 of the document SLAU208O. Finally, the ADC10 takes part in the readout of the internal temperature signal.

Now, trying to perform the calibration of ADC10 according to the TLV table we have another question. The SLAU208O describes two calibrations:

1.Calibration of offset and gain of ADC10 in chapter 1.13.5.2

2.Calibration of REF in chapter 1.31.5.1.


 

What is the correct sequence for the calibration of the temperature? We wonder, which way is correct:

Option 1: Insert raw ADC in equation (3) – one will obtain ADC(corrected) [I am referring to the original names found in SLAU208O, page 81]. However we can’t find the CAL_ADC25VREF_FACTOR in TLV, which is needed for eq. (3). Does the REF calibration according to 1.13.5.1 not refer to our MSP430F67471?

 

Option 2: Insert raw ADC in equation (6) – one obtains ADC(gain_corrected). In the next step, calculate ADC(final) according to the eq. (7). Finally, insert ADC(final) into the eq. (30) to get a compensated temperature value.

 

Option 3: For the temperature measurement, do not use the ADC offset and gain compensation from 1.13.5.2, since both TLV parameters ADC25T30 and ADC25T85 already include the compensation of the ADC’s gain and offset.

 

Please advise.

  • Equation (9) in section 1.13.5.3 says "ADC(raw)". This means that you should use the raw ADC value.
  • Hi Tomasz,

    Option 3 is correct.
    Don't use the gain and offset compensation, since the values written to FLASH for ADC25T30 and ADC25T85 are written with the un-calibrated ADC.

    Best regards
    Lukas
  • Hello Lukas, Hello Celemens,

    thank you for your replies! So now we are sure, how to compensate for the temperature sensor correctly.

    Now I wanted to ask for the ADC10 calibration - for the use of the remaining voltage channels. Do I understand it correctly: in order to get correctly compensated values, one needs to perform "Calibration of offset and gain of ADC10" as per chapter 1.13.5.2? On the other hand, the "REF calibration" as described in 1.13.5.1 should not be performed, since this calibration way does not relate to the MSP430F67471?

    Best regards,
    Tomasz.
  • The ADC can use either the internal reference or an external reference voltage. Furthermore, there is only one set of ADC gain factor and offset values, not three.

    This implies that the ADC calibration values are for the ADC itself, relative to whatever reference is used, and that when you are using the internal reference, you have to apply both the ADC offset/gain calibration and the REF calibration.

  • Hi Clemens,

    That's true.
    I had the temp sensor in mind which is only sourced with the internal reference voltage.


    Lukas

**Attention** This is a public forum