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] [参考译文] [FAQ]用于 MSPM0生产样片的"周期捕获模式&quot 中的定时器捕获问题

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1247735/faq-timer-capture-issue-in-period-capture-mode-for-mspm0-production-sample

主题中讨论的其他器件:MSPM0L1306

 通过 TIMx.CCCTL.LCOND 自动将 LOAD_VALUE 设置为 TIMx.CTR 不适用于周期捕获。 它将 对"周期捕获"模式和"组合的脉宽和周期时间"模式产生影响。 (仅使用"脉宽捕获"模式不会受到影响)。

此解决方案有两种权变措施:

#解决办法 1:手动重新加载  load_value。

以下是简要介绍:

SDK ( 1.10.00.05 )提供了通过手动 将  LOAD_VALUE 重新加载到 TIMx.CTR 中来实现的解决方案。 有关详细信息、请参阅代码示例: "timx_timer_mode_capture_duty_and_period_LP_MSPM0L1306_nortos_ticlang"。

#解决办法 2:手动计算期间。

以下是简要介绍:

 对于"组合的脉宽和周期时间"模式、会有一点复杂、如下面所示:

有关 #Workaround  2:变通 办法2 - Manual calculation.zip 的参考代码