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.

How to detect error information in ADC module and NHET module

1.  About the NHET module,  how many errors it can detect ,how to use all these features, and which registers will keep the error information ? how to detect all the errors?

for example1 , while NHET program is running, but the total time of execution for the program exceeds loop resolution clock, how to detect it? 

for example2, how to detect NHET RAM parity error?

2. About the ADC module,  when CPU is reset, and i want to diagnose the ADC module in initialization function to check whether there is any error, and also check whether the ADC is accurate, how to implement this. If ADC has error and not accurate, what should i do.

your detailed answer is highly appreciated, if have some demo code and documents to explain these question is best.

  • Fumin Li said:
    1.  About the NHET module,  how many errors it can detect ,how to use all these features, and which registers will keep the error information ? how to detect all the errors?
    for example1 , while NHET program is running, but the total time of execution for the program exceeds loop resolution clock, how to detect it? 
    HW: If the number of time slots used in a program loop exceeds the number available time slots in one loop resolution, the timer sets the program overflow interrupt flag located in HETEXC2. Please see User guide chapter 18.4.1.4 for details.
    for example2, how to detect NHET RAM parity error?
    HW: (1) after you Auto-init the RAM, enable the NHET parity check - register at 0xFFF7B874
    (2) map the NHET parity error (ESM1.7) to interrupt or the error pin. Enable the ESM interrupt (NO. 20 for low level ESM interrupt, you dont need to anything for the high level ESM interrupt) in VIM and CPU (FIQ or IRQ bit).
    (3) after that, whenever a parity error occurs, an interrupt or the error pin response will take place.

    2. About the ADC module,  when CPU is reset, and i want to diagnose the ADC module in initialization function to check whether there is any error, and also check whether the ADC is accurate, how to implement this. If ADC has error and not accurate, what should i do.
    HW: The ADC self-test mode can test if the pin is short to power/ground or it is open, see user guide 15.8.2 ADC Self-Test Mode for details. This method works if you know the external pin drive strength.

    HW: The ADC calibration mode can calibrate and compensate the offset error, Interfacing the Embedded 12-bit ADC in a TMS570LS Series Device (PDF 777 KB)  Chapter 3.3 Calibration talks about how to do it.

    your detailed answer is highly appreciated, if have some demo code and documents to explain these question is best.