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.

[参考译文] MSP430FR6877:端口和计时器中断优先级问题

Guru**** 2943400 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/942144/msp430fr6877-port-and-timer-interrupts-priority-issue

器件型号:MSP430FR6877

我在端口4的引脚上使用中断、并使用 TA0计时器中断。 我希望在中断端口中断时使用计时器中断。 是否有办法设置中断优先级、以便定时器的优先级高于端口? 是否甚至支持中断嵌套?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我刚才没能设置 GIE 位。

    _bis_SR_register (GIE); 

    这将启用中断嵌套。

    我不确定是否所有中断优先级都是可调的、但对于计时器而言、它可以中断端口。