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.

[参考译文] MSP430G2755:即使 UCA0TXIE 未被使能、UART UCA0TXIFG 中断也会触发?

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/889165/msp430g2755-uart-uca0txifg-interrupt-is-triggering-even-though-uca0txie-is-not-enabled

器件型号:MSP430G2755

当我打开用于 SPI 通信的 UCB0TXIE 中断(UART 位于 UCA0上)时、就会发生这种情况。 好奇  为何尽管 UCA0TXIE 未启用、该中断仍会触发。 也许只有在调试模式下才会发生什么情况?

这是寄存器的屏幕截图

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

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

    TXIFG 自动设置为 SWRST 序列的一部分、包括加电。 [参考用户指南(SLAU144J)第16.3.1]除非 TXIE 被置位、否则不会引起一个实际中断(ISR 调用)。

    更一般而言、在 MSP430中设置的 IFG 与其对应的 IES 无关。 通常、为您不感兴趣的事件设置 IFG。