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.

TMS570LS1114: ADC calibration depending on VCCAD

Part Number: TMS570LS1114
Other Parts Discussed in Thread: HALCOGEN

While playing with ADC calibration using the HalCoGen provided functions in adc.c, i found some strange behavior.

With VCCAD (and ADREFHI, tied together)  missing, calibration hangs on waiting for the CAL_ST bit.

        /* Wait for calibration conversion to complete */
        /*SAFETYMCUSW 28 D MR:NA <APPROVED> "Hardware status bit read check" */
        while((adc->CALCR & 0x00010000U)==0x00010000U)

Also, normal conversions never finish without VCCAD.

I know there is no sense in using the ADC without  power, but is there a way to detect VCCAD?

What can be done to prevent the hang without relaying on external monitoring?

Regards,

     Kurt.

  • Hi Kurt,

    You can use an external supervisor to monitor the power supply, or you can use a GPIO to check if the VCCAD is applied (HIGH) or not (LOW). The ADC module doesn't work without the power supply on VCCAD. You can use timeout to prevent the hang.

    Regards,
    QJ