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.

MSPM0L1304: Inquiry about setting Input Capture for both edges on MSPM0L1304 MCU

Part Number: MSPM0L1304

Tool/software:

  • I am trying to use the Input Capture function of TIMERG1 on the MSPM0L1304 MCU to detect Falling/Rising Edge.
  • After selecting the corresponding option in SYSCFG and compiling, I encounter a compilation error.

  • It appears that DL_TIMER_CAPTURE_EDGE_DETECTION_MODE_EDGE is not defined. Could this be a library bug?

  • Shouldn't GPTIMER_CCCTL_01_CCOND_CC_TRIG_EDGE be defined as DL_TIMER_CAPTURE_EDGE_DETECTION_MODE_EDGE?

  • Hi,

    I've encountered the same issue during my testing, and I'll report it to the team. Please wait patiently for the reply, thanks!

    Best Regards,
    Peter

  • Hi,

    Perhaps there is a missing in the SDK, I will feedback the issue to the team who is in charge of it and make improvements. Thank you for the correction!

    Regarding your application, if you are using Falling/Rising Edge mode, you can currently use the original "GPTIMER_CCCTL_01_CCOND_CC_TRIG_EDGE" or define it yourself in the enum just as what your screenshot shows above.

    Best Regards,
    Peter