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.

关于28035中断优先级的问题



如果有两个中断A和B,A的优先级高,如果当前正在执行中断B的程序,此时中断A触发,那么是先执行完中断B,再执行A,还是立刻切到A,执行完A再跳回B呢?

  • bo,

    C2000的中断默认不支持中断嵌套,即打断一个正在执行的中断,去执行另一个中断。中断优先级只是用在当同时几个中断事件出现时,应该执行哪个先。

    所以你的问题的答案是先执行完B,再执行A。

    Eric