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.

CCS/TMS320C5517: c5517 Nested interrupt

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?

  • I've forwarded your query to the c55x software experts. Their feedback should be posted here.

    BR
    Tsvetolin Shulev
  • user4117338,

    The C55x allows the nested interrupt. In this case, the timer interrupt has higher priority than the UART, so it is possible for the timer interrupt to interrupt the UART ISR. There is no need to have the following code segment:

    CSL_CPU_REGS->IER0 = CSL_CPU_REGS->IER0 | 0x0010;
    asm(" NOP"); // Wait one cycle
    asm(" BCLR INTM");

    It is better to let the DSP/BIOS to handle the interrupts. You can choose the way nested interrupt works in the DSP/BIOS interrupt settings.
    Hope this helps.

    Lali