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.

[参考译文] TMDX570LC43HDK:按钮中断 GioA7

Guru**** 2765615 points

Other Parts Discussed in Thread: HALCOGEN

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1607350/tmdx570lc43hdk-push-button-interrupt-gioa7

部件号: TMDX570LC43HDK
主题中讨论的其他器件: HALCOGEN

您好、

我想使用电路板上的按钮创建中断。 
借助此中断功能、我想点亮电路板上的其中一个 LED。 我已经查看了下面的示例项目、但我无法正常工作。
随附我自己的程序。 我在哪里犯了错误?

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/987080/tms570lc4357-dio-interrupt-for-user-button-gioa7-in-tmdx570lc43hdk

11_GIO_zip Button_Interrupt 


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

    您好、

    您需要在 3 级启用中断

    1.启用 CPU IRQ 或 FIQ 中断:  

      _enable_irq();将 IRQ 取消
    2.在 VIM 中启用 GPIO 中断。 请使用 HalCoGen 执行此操作。 根据步骤 3 中的优先级选择、使用 IRQ 或 FIQ 以及 GIO_High 或 GIO_Low
    3、在 GPIO 模块中启用 GPIO 中断并选择边沿和优先级
     
    请参阅消息中 e2e 主题中提到的我的示例
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 QJ Wang:

    感谢您的答复。 我提出了您的建议、中断运行了一次、但我想在每次推送时运行一次。 Halcogen 配置和我的代码在下面:  

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

    尊敬的 QJ Wang:

    删除 giosetbit 函数后、我解决了我的问题。