AnsweredAssumed Answered

Quadrature enable disable

Question asked by ritesh unde on Jun 15, 2016
Latest reply on Jun 15, 2016 by jeremyzhou

Hello,

 

I am using quadrature mode with k22fx512vmc12, it works fine with encoder.

 

But when I disable and enable it again, FTM counts starting phase shift in between phase A and phase B which is not desired as encoder is at steady state (i.e. either 01, 10 or 11).

 

I am using following code to enable again,

 

FTM1_QDCTRL = (FTM_QDCTRL_QUADEN_MASK);

 

and to disable again,

 

FTM1_QDCTRL = 0;

 

Your help will be appreciated.

Outcomes