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.

[参考译文] MSP430FR5728:引入延迟或检查经过的时间的内部功能

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1108791/msp430fr5728-internal-function-to-introduce-delay-or-check-the-time-elapsed

器件型号:MSP430FR5728

大家好、

我是第一次基于 MSP430FR5728开发应用。

我有几个与  I/O 中断、计时器和延迟相关的问题。

在应用中、我需要 监控中断5秒并重置变量。

 我已经配置和执行了这样的功能、 例如、对于外部实例、 将生成 I/O 中断。

请回答我的以下问题:

  1.   产生中断后、我可以使用 PxIFG 标志连续监控中断5秒。
  2.  是否有可用于监控5秒的内部延迟?
  3.  我还可以使用什么其他方法来获得5秒延迟 或 检查延迟时间?

等待回复、谢谢

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

    我想您希望监控 IO 变为其他状态的时间达5秒。

    如果是、您需要使用计时器。

    我建议您首先使用 IO 中断来驱动计时器进行计数。 然后、使用计时器中断检查 IO 状态、然后重置变量。