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.

请教关于中断配置

Other Parts Discussed in Thread: TMS320F280049

您好,我用的是TMS320F280049,想配置两个中断,一个是epwm1中断(100uS),另一个是timer0中断(1mS),想实现100uS中断可以打断1mS中断,而1mS中断不能打断100uS,需要设置些什么呢?比如以下中断函数是否有问题呢?感谢!

interrupt void epwm1_timer_isr(void) //100us
{

//执行应用层代码


EPWM_clearEventTriggerInterruptFlag(EPWM1_BASE);
Interrupt_clearACKGroup(INTERRUPT_ACK_GROUP3);
}

interrupt void cpu_timer0_isr(void)
{

//执行应用层代码



Interrupt_clearACKGroup(INTERRUPT_ACK_GROUP1);
}