How to use input capture imx6ul

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use input capture imx6ul

26 Views
user4users
Contributor I

Hello everyone!

Now I am working with imx6ul processor and I need to use input capture channel.

I found in RM that this have several gpt input capture channels.

Also, I found driver in this forum:

https://elixir.bootlin.com/linux/v5.11.2/source/drivers/clocksource/timer-imx-gpt.c

Previously, I worked with microcontrollers like STM32 and etc. And using interrupts was easy.

But here I can not start because I do not understand some.

In this cause I have 2 questinos:

1. How can I use this interrupt in my project for getting data?

2. Can this interrupt capture signal with 1us accuracy?

0 Kudos
1 Reply

16 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi user4users

 

for gpt example and description one can look at sect.14.9.2 Input compare test

iMX6_Firmware_Guide.pdf included in SDK (1.1.0_iMX6_Platform_SDK.zip) on :

https://community.nxp.com/t5/i-MX-Processors/SMP-Enable-in-IMX6/m-p/542111

 

Best regards
igor

0 Kudos