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.

TMS320F28388D: ADC Calibration data in OTP

Part Number: TMS320F28388D

Hello,

I need to verify that the calibration data for ADC are loaded correctly from OTP. In the reference driver lib implementation there are Macros like ADC_getINLTrimOTPLoc and ADC_getOffsetTrimOTPLoc pointing to some magic address in TI-OTP.

These addresses are not documented anywhere. In the Reference Manual section 20.11.2 there is "The following table describes the function call, address pointer locations for the ..." but no table flows the paragraph.

Is there any document describing the TI-OTP data and functions? 

Is it ensured that the address of the data in the TI-OTP will not change in later revision of the MCU ?

Thank You,

Marek

  • Hi Marek,

    Thank you for the feedback.  You are correct, the information in TRM regarding the ADC calibration routines is incomplete.  We will work to revise that.  For reference, the linearity trims, which are determined during factory testing, are are stored starting at the pointer address specified in the driverlib macro at address 0x70128.  The ADC offset, which is dependent on the ADC mode of operation (single-ended or differential), is stored starting at the  pointer address specified in the driverlib macro at address 0x70158.  At these base locations, the linearity and offset trims for all the ADC modules are stored.  Running the driverlib macro ADC_setMode() would populate the ADC trim registers for linearity and offset depending on the ADC module and mode of operation from the values determined during factory testing which are stored at OTP address locations 0x70128 and 0x70158.  These locations have been fixed and predetermined and will never change.

    Hope this gives some clarity.

    Regards,

    Joseph