AnsweredAssumed Answered

eTPU QD, what is the purpose of the two pc parameters in fs_etpu_qd_set_pc_interrupts(chan, pc1, pc2)?

Question asked by Sam Bartlett on Jun 7, 2014
Latest reply on Jun 13, 2014 by Sam Bartlett

I'm using the MCF5234 on a Netburner board.  I'm using the eTPU QD quadrature Encoder function.  I can get fs_etpu_qd_set_pc_interrupts(chan, pc1, pc2) to send interrupts, and I can service them, but I'm having trouble getting it to work in both directions (I'm going back and forth on a linear encoder, so the revolution counter doesn't apply).  I've tried setting both pcs the same, or setting one for my target and one for (either the far or near) extreme of travel, and I cannot figure the point of the second pc2.  Looking at the code doesn't help me and I've found no documentation that says more than that they are for the first and second position counter settings, but no explanation of why you want a second pc setting.