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: Timer CCP Input for Edge Capture in Up counting mode

Part Number: MSPM0G3519

Starting from SDK version mspm0_sdk_2_09_00_01,
I noticed that the implementation of DL_Timer_initCaptureMode() may have an issue.

When the capture mode is set to UP, I expect the counter mode to also be UP.
However, it seems to be overridden and forced into DOWN mode instead.

Is this behavior correct, or is there a mistake in the implementation?
image.png

  • Hi Hoc,

    CM_DOWN is zero, so this operation does not change the counting mode if it is already set as UP mode.

    As in the previous switch code, the branch only process the UP mode. So here add a default DOWM mode operation. I think it should be fine, and also test with no issues.

    B.R.

    Sal