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: Interrupt handling related query

Part Number: TMS320F28379D

Hello

I am working in power electronic converters and am facing some issues.  I shall first explain my requirement out of the TMS320F28379D MCU

I need to run an ISR at underflow of the Epwm timer. this isr will have the ADC sampling and some other codes. Epwm comparison is also needed. whenever the epwm comparison is matching, i need to perform a few set of instructions. there are several problems that i am facing in this entire process. 

1. Epwm timer can be either configured to run at underflow, or comparison. the same epwm timer cannot be used for both functions. 

2. i can always use two epwm timers for the issue but i need both of the ISRs to run simultaneously if needed.

3. once underflow interrupt is enabled, comparison ISR cannot be serviced untill the underflow ISR is over. in my case, this is not acceptable.

4. even if i am able to somehow service the comparison ISR, comparison results are directly sent to output pins. i need to process that output and compute several instructions continously based on the result of compare output. 

One possible option might be to use another controller (preferably FPGA) to service the output of the compare unit.

I am looking for as many ideas as possible to implement my idea in any alternate manner possible. 

Thanking you

Rupak