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.

关于MSP430FR的一些问题



举个例子:P1.0默认设置为下降沿中断,在某些特殊任务下,我不希望P1.0进入中断服务,想把它关了,任务结束后再打开P1.0中断。430有个_DI();的指令是关全局中断的,这样其他中断也被禁用。问题来了,如何做到自由开关中断。

10.2.6.3 Interrupt Enable Registers (PxIE)
Each PxIE bit enables the associated PxIFG interrupt flag.
• Bit = 0: The interrupt is disabled
• Bit = 1: The interrupt is enabled

仅仅使用上述配置似乎还是会在中断条件满足时进入中断响应函数。

怎么操作,哪位大侠可以指导一下。