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.

[FAQ] [参考译文] [常见问题解答] MSPM0L1306:根据 MSPM0上的16位计时器链创建32位计时器

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1520695/faq-mspm0l1306-creating-a-32-bit-timer-from-a-16-bit-timer-chain-on-mspm0

器件型号:MSPM0L1306

工具/软件:

以下是 从 MSPM0L1306上的16位计时器链创建32位计时器的示例代码。   e2e.ti.com/.../32bit_5F00_timer_5F00_with_5F00_2_5F00_16bit_5F00_timers_5F00_MSPM0L1306_5F00_nortos_5F00_ticlang.zip

它利用两个16位计时器来创建基于 MSPM0L1306的32位计时器。 用户可以通过参考 counterValue 来查看32位计时器的性能。

Timer0处于计时器模式、Timer1 处于比较模式。 Timer0的零事件将触发 Timer1计数器增加。 如果计时器1计数器超过要检测的边沿数、则计时器1计数器将变为零。

如果 uer 希望生成具有固定32位计时器周期的中断、请通过参考 SDK 中的代码示例"timx_timer_mode_compare_edge_count"来使用计时器加载事件中断。