Skip to content

Input capture with hardware timer #83693

Answered by DerekSnell
rtborg asked this question in General
Discussion options

You must be logged in to vote

Hi @rtborg ,
Could you use the Quadrature Decoder (QDEC) driver for this? I see the QDEC sample has an overlay for the MIMXRT1050-EVK board, and the RT1160 devices share the same QDEC peripheral.

If not, I do not see a good option today for input capture on the RT1160. Zephyr's PWM driver has the CONFIG_PWM_CAPTURE feature, but I do not see this feature implemented in any PWM driver supported on the RT1160. And I see this RFC #71618 to add input capture to the Counter API, but today the Counter API seems lacking for input capture.

If the Zephyr APIs do not work for you, another option is to call the MCUXpresso SDK APIs from your app, and configure a HW timer for input capture. NXP has a b…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DerekSnell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants