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.

[参考译文] TM4C1290NCPDT:GPIO 中断

Guru**** 2539500 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/771167/tm4c1290ncpdt-gpio-interrupts

器件型号:TM4C1290NCPDT

我的问题与此主题相关:

这适用于现有的 PCB、因此在将 GPIO 分配到端口时没有太多的余地。

例如、端口 G 使用一些 GPIO。 从未使用的端口 G GPIO、我能否触发它

端口 G 中断而不影响正在使用的端口 G 引脚?  

谢谢、

Priya

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    是的,只有使用 GPIOIntEnable()函数在端口 G 上启用中断的引脚才会生成中断。 其他引脚可用作输入或输出。 您可以使用多个引脚作为端口 G 的中断、但只有一个中断服务例程。 在该中断服务例程中,您可以使用函数 GPIOIntStatus()来确定哪个(或哪些)引脚生成了中断请求;