Part Number: TMS320F28379D
Hello Experts ,
Is there any way to reset the position counter on the nth Index event.
We previously has a design where we convert a resolver's data into quadrature encoder signals and feed it to the MCU's eQEP peripheral. we reset the position counter on every raising edge on the index pulse. Every thing works well here!!
In terms of qep resolution: for 0 to 360 degrees of motor rotation, the position(QPOSCNT) changes from 0 to 4000 count.
But now we are using a multi-turn resolver, so for every single rotation of the motor shaft, we get two index pulses.
- 0 to 180 degrees is equal to 0 to 4000 count(QPOSCNT). and
- 181 to 360 degrees is equal to 0 to 4000 count(QPOSCNT).
Is there any way to reset the position counter only on the 2nd raising edge of index pulse?