Request for example: SCTIMER_SetupCaptureAction usage with input capture

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Request for example: SCTIMER_SetupCaptureAction usage with input capture

跳至解决方案
176 次查看
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 项奖励
回复
1 解答
137 次查看
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 项奖励
回复
1 回复
138 次查看
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 项奖励
回复