Hello,
I am currently working with the LPC55S16 microcontroller and using the SCTIMER peripheral. I would like to capture the counter value on an input signal edge (for example, rising edge on a GPIO connected via INPUTMUX), and I found the SCTIMER_SetupCaptureAction() function in the SDK.
However, I could not find any example or documentation showing how to properly use this API in a capture scenario. I would really appreciate it if NXP could provide a simple usage example of SCTIMER_SetupCaptureAction() to capture events on an input pin, including:
- How to define and configure the associated event
- How to link it with the capture register
- How to read the captured value from the register
This would help a lot in understanding how to correctly use the SCTIMER in input capture mode. Thank you in advance for your support!
Best regards,
Patrice