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.

[参考译文] MSP430FR5994:如何在高和低边缘获得GPIO中断

Guru**** 2538960 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1092840/msp430fr5994-how-to-get-gpio-interrupt-at-both-high-an-low-edges

部件号:MSP430FR5994
主题中讨论的其他部件:MSP430WARE

您好,

我正在使用CCS版本:9.1 .0.0.001万 ; msp430ware_3_80_07_00

我有一个程序被GPIO中断并执行一些代码。

当边缘从低到高,从高到低时,我需要中断两个点。

我正在使用DriverLib 'gPIO_selectInterruptEdge()'函数。

正如我在DriverLib用户指南文档第206页上看到的那样,'edgeSelect'参数可以获得以下值:

 

GPIO _高_低

GPIO低至高

如何设置它以获得两个中断?


我需要它是因为我需要测量GPIO线路处于高级状态的时间。 因此,如果有更好的方法来实现这一点,即使没有同时获得两个中断,也是很好的。

谢谢

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

    在中断过程中,我不得不从一条边切换到另一条边,并跟踪状态。