AnsweredAssumed Answered

Quadrature Decoder not Work with FTM2 Interrupt Handler

Question asked by Hao Qin on Feb 22, 2019
Latest reply on Mar 1, 2019 by Diana Batrlova

Hello Nxp Team,

 

I used S32K144 controller in our project. I want to use quadrature decoder pin to PTD10 and PTD11 from two channel encoder. if I set:

PORTD->PCR[10] = PORT_PCR_MUX(3); // Set PTD10 for FTM2 - Phase B input
PORTD->PCR[11] = PORT_PCR_MUX(3); // Set PTD11 for FTM2 - Phase A input

and enable to QUADEN = 1, the interrupt handler FTM2_Ch0_Ch1_IRQHandler() doesn't work. Does quadrature decoder mode supports interrupt or not? If supported, what do I set wrong? Thank you.

 

Best regard,

 

Howard

 

Outcomes