Hi guys,
I have doubts regarding the usage of the QPOSILAT register.I am using a rotary encoder and i want to count the number of ticks and revolution the encoder makes. I am able to get the values of number of ticks using the
QPOSLAT register and i have set the max count to 3600. I am not able to count the number of revolution by a simple if function :---> if(ticks==3600) { revolution++;} .I am encountering the problem that the if the encoder is not able to read the 3600th ticks (in case it misses some of the ticks as sensors do have some limitations ) i get wrong values for revolutions.I need help regarding this issue whether using the register QPOSILAT would give me the numbers of the times it has sensed the index event and directly give me the revolution value.
regards,
Mukesh kumar