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.

TMS320F280025C: TMS320F280025C

Part Number: TMS320F280025C

Hi

There is a ISR function in my code. I configured 2 trigger source ADCA and ADCC. ISR will be executed after ADC convention completed. I will like to know that is it possible to know which source triggers the execution?

 BR

HK Woo

  • Hi HK,

    If these both map to the same ISR then you'll have to use the ADCINT flags to determine which one caused the ISR.  For example, if ADCC.ADCINTFLG.ADCINT1 is set, the ISR came from ADC C. You'll have to clear this flag before returning from the ISR in any case.  However, it might be easier and more reliable to just use two separate ISRs and put any common code in a function call.