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.

TMS320F28379D: Complex ADC Interrupt Setup part II

Part Number: TMS320F28379D


I have created some code that deals with A14, A15 as INT1,

and I now have PWM2 driving the interrupt for A0 (50 KHz)

and PWM3 driving A1 (35 KHz) as INT2.

I found that inside of the newly created ADCA2_ISR, I can check "AdcaRegs.ADCCTL1.bit.ADCBSYCHN"

If that result is 2 (for SOC2), I store the ADCRESULT2 into an Array at positon 2. (50 KHz PWM2).

If that result is 3 (for SOC3, I store the ADCRESULT3 into an Array at positon 3. (35 KHz PWM3).

Question: this seems to work well, but are there alternatives to let me know inside of the ISR which channel triggered the ISR?

By the way, I plan to extend this to multiple PWM-ADC combinations, so I would quickly run out of "INTs" if I were to try to associate an Interrupt for each PWM-ADC combo.