Request for example: SCTIMER_SetupCaptureAction usage with input capture

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Request for example: SCTIMER_SetupCaptureAction usage with input capture

Jump to solution
180 Views
PBouchand
Contributor I

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

 

0 Kudos
Reply
1 Solution
141 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @PBouchand 

Currently, LPC55S16 does not have ctimer capture demo.

But you can refer to the rw612 ctimer capture demo.

mcux-sdk-examples/frdmrw612/driver_examples/ctimer/capture/capture.c at main · nxp-mcuxpresso/mcux-s...

BR

Harry

View solution in original post

0 Kudos
Reply
1 Reply
142 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @PBouchand 

Currently, LPC55S16 does not have ctimer capture demo.

But you can refer to the rw612 ctimer capture demo.

mcux-sdk-examples/frdmrw612/driver_examples/ctimer/capture/capture.c at main · nxp-mcuxpresso/mcux-s...

BR

Harry

0 Kudos
Reply