Is there any way of nesting interrupts without DSP/BIOS on the TMS320F2809? I am trying to get an ADC SEQ1INT ISR to preempt an ePWM1_INT ISR. Re-stated, I'd like the SEQ1INT interrupt to pre-empt the ePWM1_INT interrupt.
The EPWM1_INT interrupt occurs at a 50usec rate and the ADC SEQ1INT occurs at a 25usec rate in our system.
Herb Gingold
TSR FL Major Accounts
407-832-0501 herb.gingold@ti.com
Herb Is there any way of nesting interrupts without DSP/BIOS on the TMS320F2809? I am trying to get an ADC SEQ1INT ISR to preempt an ePWM1_INT ISR. Re-stated, I'd like the SEQ1INT interrupt to pre-empt the ePWM1_INT interrupt. The EPWM1_INT interrupt occurs at a 50usec rate and the ADC SEQ1INT occurs at a 25usec rate in our system.
Hi Herb,
Please see the interrupt nesting info on this wiki page:
http://processors.wiki.ti.com/index.php/Interrupt_Nesting_on_C28x
Regards
Lori
The solution to this problem is simple. Interrupts are disabled during ISRs because this is the way the C compiler creates the context-saving code.
To nest ISRs, simply enable interrupts globally at the beginning of each ISR by clearing the INTM flag in status register 1.