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.
通过 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 的参考代码。