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.

C2000的MCU不同组的中断能否嵌套??

比如,我要做一个PMSM的驱动,控制命令由主控节点通过通讯给出。在通讯中断处理中,可否响应电机控制的相关中断(实际上是一个由PWM触发的ADC中断)?

看了相关资料,在ISR中使用EINT前都会清除其他组的中断使能位,这是否说明,嵌套只能用于同组内??

  • 也可以相应其他组的中断。

    简单的解释就是:进入中断1后,芯片默认会关全局中断,保存IER,处理中断服务函数,恢复IER,开全局中断。如果要在中断中相应其他组的中断,只需要开全局中断,然后使能你想要相应的中断组就可以。

    可以参考:processors.wiki.ti.com/index.php/Interrupt_FAQ_for_C2000#Q:_Can_interrupts_be_nested.3F

    Eric

  • 已通过验证,谢谢!

x 出现错误。请重试或与管理员联系。