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.

[参考译文] LP-MSPM0L1306:关于中断启用/禁用

Guru**** 2447700 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1284945/lp-mspm0l1306-about-interrupt-enable-disable

当编写在引脚18的上升沿产生中断的代码时、
DL_GPIO_disableInterrupt (GPIOA、GPIO_SWITCHS_PIN_18_PIN);(禁用18引脚中断)
如果在进行上述设置后将18引脚输入设置为高电平、则不会发生中断、但
在禁用18引脚中断并将18引脚设置为高电平后、DL_GPIO_enableInterrupt (GPIOA、GPIO_SWITCHS_PIN_18_PIN);(启用18引脚中断)将执行"Group1_IRQHandle"(中断目标的代码)。
总之、如果在中断被禁用后检测到一个中断边沿、"GROU1_IRQHandle"将在中断被启用的同时被执行。
在启用中断后检测到中断边沿、而不是在上述情况下执行中断边沿时、如果我希望执行"Group1_IRQHandle"中的代码、我该怎么办?

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

    如何添加一些延迟并清除该寄存器中的相关位。