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.

CCS/TMS570LS3137: adcCalibration

Part Number: TMS570LS3137

Tool/software: Code Composer Studio

Dear team,

How to use adcCalibration(adcREG1)? Do I need to perform adcCalibration in each ADC conversion?

adcCalibration function takes a long time to execute, about 20us,why?

BR,

SUSAN

  • Hi Susan,

    The MibADC module implements calibration logic normally used to improve converter accuracy. This logic can also be used as a safety mechanism. Software comparison of the conversion of known reference values from the calibration logic can provide a diagnostic on converter functionality. 

    The calibration can be used at boot time, and can be performed periodically based on your application.

    The calibration conversion needs to meet the minimum sampling time specification for the ADC. This value is typically 1 us. The Event Group sample time register (ADEVSAMP) is used to specify the number of ADCLK cycles for the calibration conversion.

  • “The calibration can be used at boot time, and can be performed periodically based on your application.”

    Customer wants to calibrate ADC periodically. 

    Assume the calibration function is being executed. Will it affect the result Or there will be unforeseen problems when execute the following code in timer‘s timing period?

    adcStartConversion(adcREG1,adcGROUP1);
    while((adcIsConversionComplete(adcREG1,adcGROUP1))==0);
    adcGetData(adcREG1, adcGROUP1,&data[0]);

     

  • You needs to ensure that no conversion group is being serviced when the calibration mode is enabled.