Part Number: TMS320F28377D
Hi there!
I need to count index events together with its direction.
I have no issue with code as it works excluded special case explained below.
Clockwise reached index increments the counter and counter-clockwise decrements it.
It should allow to determine if there is exactly one index within full turn of encoder. Full turn is detected by over/underload of counter, what happens where the encoder stays after power cycle (random place).
If there are more indexes counted during one turn, the system know that there is a noise in signal and index is not more reliable.
My motor is mainly used for positioning. Rotation direction can change at any possition also nearly or under index.
I have noticed, when direction changes under or maybe very close to index the above mentioned index counter goes wrong.
Any idea how can I overcome below ilustrated case "C"?
