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.

Mid-Point Calibration detailed flow chart and sample code

Guru 16800 points

Other Parts Discussed in Thread: TMS570LS2125, HALCOGEN

Hi,

I want to use the Mid-Point Calibration function on TMS570LS2125 and get the detailed flow chart and sample code.
I know that the summary of the Mid-Point Calibration function is described in "19.8.1.3 Mid-Point Calibration" of TRM (spnu499), however I want to concrete information.
Could you teach me?

Thanks

Nomoto

  • Hello Nomoto,

    I have forwarded your question to the expert on this.  They will be responding soon.

  • Hello,

    HALCoGen generates a routine that you can readily use for mid-point calibration of the ADC. This routine always sets up the ADC to be in a 12-bit mode, however. You can easily modify this to use the ADC in a 10-bit mode, if so required.

    Note that you need to have called the adcInit function before you call the mid-point calibration routine. This will configure the 10/12-bit mode as you configure in HALCoGen.

    Let me know if you are unable to generate the routine using HALCoGen and if you still need help with the routine.

    Regards, Sunil