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.

TMS570LS3137: About using SL_SelfTest_ADC

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN, TMDS570LS31HDK

About using SL_SelfTest_ADC

I used SL_SelfTest_ADC of "safety_library" to do "ADC 1 Boot Time Input Self Test".
After validating ADC 1 ch 7 with HALCoGen and confirming its operation with SL_SelfTest_ADC after initializing adc, the result is "ADC_PIN_UNDETERMINED".
TMDS570LS31HDK was used for the board on which the operation was confirmed.

Is there anything you need to do before using this function?

  • For this test there are a few procedural things and some assumptions of use that should be considered. This from the TRM explains,

    The HDK has some pads included for an RC filter on each ADC input pin. Below is from the HDK schematic:

  • Hello,

    I did the selfTest for ADC1 on HDK , and everything is ok.  This is my simple code to call seftTest function.

        adcInit();

        SL_ADC_Config adcConfig1;

        adcConfig1.adc_channel = 7;

        adcConfig1.adcbase = ((sl_adcBASE_t *)0xFFF7C000U);

        SL_ADC_Pinstatus pinstatus;

        retVal = SL_SelfTest_ADC(0, 0, &adcConfig1, &pinstatus);

    The returned pinstatus should be ADC_PIN_OPEN

    Regards,

    QJ

  • Hello,

    Did our answers help you resolve your problem? If so, please use the green verify answer button to let us know so that we may close the thread.