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.

[参考译文] 编译器/MSP430G2553:msp430g2553

Guru**** 2540720 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/587087/compiler-msp430g2553-msp430g2553

器件型号:MSP430G2553

工具/软件:TI C/C++编译器

我希望为使用微控制器 MSP430的传感器执行生成适当的1分钟计时器延迟。 (已完成与传感器的连接、并且 LCD 上显示了正确的计数值...但我想在1分钟后停止该增量值) plz 帮助

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    从外部 LFXT 提供的32768kHz ACLK 中获取计时器。 初始化计时器以32768计数(1秒)中断、然后输入 LPM。
    每次 ISR 被处理时递增计数器、直到它达到值60 (1分钟)、然后退出 LPM、禁用定时器、并返回到活动操作。 TI 提供了大量的计时器示例、可帮助您快速入门。

    此致、
    Ryan