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.

[参考译文] MSPM0G3519:MSPM0G3519:在递增计数模式下用于边沿捕获的计时器 CCP 输入

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1609207/mspm0g3519-mspm0g3519-timer-ccp-input-for-edge-capture-in-up-counting-mode

器件型号: MSPM0G3519

SDK 版本开始 mspm0_sdk_2_09_00_01
我注意到、的实现DL_Timer_initCaptureMode()可能有问题。

当捕获模式设置为时 向上 、我希望计数器模式也是 向上
然而,它似乎被覆盖和强迫进入 向下 模式。

此行为是否正确、或者实施中是否存在错误?
image.png

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

    Hi Hoc、

    CM_DOWN 为零、因此如果该操作已设置为向上计数模式、则该操作不会更改计数模式。

    与前一个交换机代码一样、分支只处理向上模式。 所以这里添加了一个默认的向下双向模式操作。 我认为这应该没问题、也可以毫无问题地进行测试。

    B.R.

    Sal