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.

MSP430F2619: No calibration data

Part Number: MSP430F2619

Hi Team,

Can you please help us with this inquiry of our customer.

Info Segment A 0x10C0 to 0x10FF - is suppose to contain calibration data for the microcontroller. However we have multiple microcontrollers which does not have this information.

How can we resolve this issue?

Can we use other microcontroller data for the microcontroller which does not have this information ?

Will microcontroller work within specification?

If not, then what is alternative solution?

Regards,

Danilo

  • Hi Danilo,

    The device's TLV calibration data can be erased if not careful.

    If the device had the calibration data erased then you need to do the calibration manually and store that information in Flash. The microcontrollers will work within spec of the datasheet but incorrect calibration data or using another calibration data from a different device could cause erroneous results. I would recommend doing the manual calibration if the device had the calibration erased.

    Regards,

    Luke

  • If you have a 32kHz crystal on your board, TI Example MSP430x261x_dco_flashcal.c will re-compute and store the DCO constants pretty much automatically:

    https://dev.ti.com/tirex/explore/node?node=AJONAwnL3yWdDoTGcuFCOw__IOGqZri__LATEST

    If you don't, there's probably a variant of this technique which will work, but you'll have to get creative.

  • Thanks for the suggestions and potential solutions. We do use 32 kHz oscillator so we can use the solution for oscillator. However for ADC offset and span corrections we have an issue. Not sure how to get that calibrated. Any suggestions for it. 

  • Hi Shivesh,

    Just to confirm, was the calibration data missing before you started any programming or was it possible it was accidently erased?

    Some resources for ADC calibration: ADC Calibration Example PDF, ADC Calibration Video (This video uses an external ADC, but the concept is the same)

    The short version for ADC calibration is to take some samples of clean known voltages and solve for the linear equation y = mx + b, where m is your gain, x is your voltage, b is the offset, and y is the code. I would calibrate using 0.5 V and theoretical max - 0.5 V. If you get the min/max code from any of your calibration voltages then I would adjust the code until you get non-min/max codes to calibrate for the gain error.

    Regards,

    Luke

**Attention** This is a public forum