Request for example: SCTIMER_SetupCaptureAction usage with input capture

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Request for example: SCTIMER_SetupCaptureAction usage with input capture

ソリューションへジャンプ
182件の閲覧回数
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 解決策
143件の閲覧回数
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 返信
144件の閲覧回数
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 件の賞賛
返信