How to use input capture imx6ul

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

How to use input capture imx6ul

982 次查看
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 项奖励
回复
1 回复

972 次查看
igorpadykov
NXP Employee
NXP Employee

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 项奖励
回复