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.

[FAQ] CLA: How can I clear the ADC interrupt flag with the CLA?

Q: If the CLA takes an ADC interrupt, can the CLA then clear the ADC interrupt flag?   If not, then how can I clear the flag?

  • A:

    On more recently released devices, the CLA has direct access to the ADC configuration registers and can clear the flag. 

    For devices that do not have this capability here are options for handling this:

    • Option 1: Place the ADC in continuous mode.  In this mode the next conversion will start, when triggered, even if the flag is still set.  
    • Option 2: Service the ADC interrupt with the main CPU as well as the CLA and have the main CPU clear the flag.
    • Option 3: Have the main CPU service the end of task interrupt from the CLA and clear the flag.

    Click here for more CLA FAQs and resources.