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.

ADC selfcalibration feature on TMS320F28377D

Hi 

Can some one help me in pointing out ADC self calibration piece of code in control suite. I was able to find the ADC trim part of the code but couldnt find ADC self calibration code in control suite.

Thanks

  • Hi Ramabu,

    The boot ROM will load some basic ADC trims, and then the set mode function will load the offset and linearity trims specific to the mode you select.

    The TRM documents how to do a self-calibration for offset in different modes, but this isn't necessary to meet the DS offset specification. We don't provide any example software for this (and it shouldn't be necessary for most applications).
  • Hi Devin

    Thanks for sharing this info. I greatly appreciate that.

    From my understanding, we dont have to calibrate ADCs as long as we use the ADC trim function by using AdcSetMode() api?

    In the technical reference manual, there's a procedure to recalibrate the ADCs as shown below. Do you recommend us to follow this? endation as shown below,

  • Hi Rambabu,

    Yeah, that is correct: use the AdcSetMode function and the correct trims will be loaded for each functional mode.

    If you are happy with the DS spec' for offset error, then there is no need to run the above procedure.  If you really need to squeeze every bit of accuracy out of the ADC, then you could try running this procedure periodically in your application.  The offset specification is already pretty good though, so you won't get much out of it on this device.

    It is also probably possible to use the above procedure to check the basic functionality of the ADC as a functional safety check: run the calibration procedure and compare with the previous offset calibration value, if the offset has changed significantly, it could indicate an ADC failure.