Part Number: TMS320C5517
Tool/software: Code Composer Studio
I have a question:
Program with two interrupts: (1) timer interrupt (2) uart serial port interrupt
In dealing with uart serial interrupt, when the timer response interrupt, can interrupt the uart serial port interrupt, to deal with timer interrupt.
How to achieve?
interrupt void UART_intrDispatch(void)
{
Uint8 temp;
Uint8 i;
CSL_CPU_REGS->IER0 = CSL_CPU_REGS->IER0 | 0x0010;
asm(" NOP"); // Wait one cycle
asm(" BCLR INTM");
IRQ_disable(UART_EVENT);
......Serial processing procedures
IRQ_enable(UART_EVENT);
}
I added the bold statement in the serial interrupt, the test found a problem.
How should I properly nest the interrupt in the serial interrupt?