Due to the U.S. Thanksgiving holiday, please expect delayed responses during the week of 11/22.

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.

MSP430F2112: Re-programming the TLV structure - CAL_ADC_25T85

Part Number: MSP430F2112


I have accidentally erased the TLV structure in the flash memory Segment A.
Could you please advice a way to obtain the values and reprogram?

We would like to concentrate on the CAL_ADC_*** values like CAL_ADC_25T85. They are ADC calibration values.
On the other hand we know the clock calibration values would be salvaged by a sample code by msp430x21x2_dco_flashcal.c in the MSP430WARE.

  • The TLV values for ADC like CAL_ADC_25T85 are the ADC Memory readouts after sampling the temp sensor with internal reference of 2.5V at 85C.

    Same is valid for CAL_ADC15Txx with 1.5V internal reference.

    The conditions are also mentioned in the datasheet, page 12

    Best regards


  • Lukas,

    Thank you for your reply.

    So can I ask your help to make sure:

    [msp430x21x2_dco_flashcal.c] in the MSP430WARE retrieves the TLV structure clock values.

    Is there such a sample code prepared for ADC values ?

  • Indeed I haven't found exact the code you are looking for but you can take msp430x21x2_adc10_temp.c as starting point.

    This example gives you the non-calibrated temp values of the sensor using the ADC.

    So in a controlled environment with exact temperatures of 30C and 85C this code will deliver the ADC values which can be written to the calibration constants.

    You would need to add the FLASH routine from the dco_flashcal.c example to the mentioned above.

    Does this help?