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.
工具与软件:
您好、TI 专家
我在此示例代码中运行示例项目"gpio_input_capture_lp_MSPM0G3507_nortos_ticlang"
只有1个引脚(PB21)中断、如果我设置更多引脚(PB22、PB23)来检测外部信号、如何修改
IRQHandler 代码?
在示例代码中、使用组中断。
如果要识别特定的引脚中断、可以使用 DL_GPIO_getPendingInterrupt ()、它在 dl_gpio.h 中定义
你(们)好
感谢您的帮助、现在我可以检测 PB21和 PB24中断。
另一个问题是、我还在代码中启用 PA8中断、但在 PA8中不可用、
您能帮我检查一下代码中有什么问题吗?
配置看起来正常。
你能否在中断中添加断点并在调试中检查 GPIO_A_int_status?
你(们)好
感谢您的回复、我在 GROUP1_IRQHandler 第一行中设置了断点、
当 PB24变为低电平时、程序将在第101行停止、
但是、当我将 PA8设置为低电平时、程序无法停止、所以我认为 PA8中断无法启用。
我按以下方式提供我的项目
https://drive.google.com/file/d/15Hzecfgb3lZUe-acJobGRvu_LA0Lw32Y/view
抱歉、让我稍后再进行测试。
你(们)好
我知道这个问题、当我更改 DL_GPIO_setLowerPinsPolarity 时、我使用 DL_GPIO_setUpperPinsPolarity 来设置 PA8
到 PA8、这是正常的。 感谢您的帮助。