QDC INDEX Interrupt

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

QDC INDEX Interrupt

446件の閲覧回数
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 返答(返信)

391件の閲覧回数
_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 件の賞賛

431件の閲覧回数
twjudge
Contributor I

My mistake. I am using MIMXRT1166DVM6A

0 件の賞賛

436件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

Which MPU/MCU are you using?

0 件の賞賛