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.

DSP C5517--中断嵌套触发问题?

Expert 2137 points


interrupt void UART_intrDispatch(void) //串口中断
{

    /////////////////////////////////////////////////////////

   处理 程序段落A

   /////////////////////////////////////////////////////////

    IRQ_globalEnable();   //开全局中断

 /////////////////////////////////////////////////////////

   处理 程序段落B

   /////////////////////////////////////////////////////////

   IRQ_globalDisable(); //Disable——global-interrupt

}

(1)若是程序进入串口中断在处理程序程序段落A-----此时全局中断未打开,与此同时定时器中断响应了,然后等串口中断中程序执行到IRQ_globalEnable();   //开全局中断,这个时候定时器中断是立即响应,还是等串口中断处理完,在响应。  请老师谨慎详细解答,麻烦老师了。