QDC INDEX Interrupt

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

QDC INDEX Interrupt

814 次查看
twjudge
Contributor I

I am using the INDEX signal on an external quadrature encoder to generate an interrupt. I have this working in general however I would like to be able to select whether the interrupt occurs on the rising edge or the following edge of the INDEX signal.

I see this option on the CTRL->XNE control bit however this is for determining which edge of INDEX resets the position counter. I would like to generate the interrupt on the falling/rising edge of INDEX without resetting the position counter. Is this possible?

0 项奖励
回复
3 回复数

759 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

Based on the Control Register (CTRL), I understand that it is possible to generate the interrupt without the INDEX pulse initializes the position counter.

For this you must configure XIE->1, XIP->0, and XNE depending on your choice. With that the INDEX interrupt occurs when XIRQ is set.

nxf86756_0-1675205297723.png

Hope it helps you. Please let me know if you have more questions about it.

Have a nice day!

0 项奖励
回复

799 次查看
twjudge
Contributor I

My mistake. I am using MIMXRT1166DVM6A

0 项奖励
回复

804 次查看
jimmychan
NXP TechSupport
NXP TechSupport

Which MPU/MCU are you using?

0 项奖励
回复