Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

XMC™ Forum Discussions

Not applicable
Hello,
i use a rotary switch encoder for user input. I select the A/B type without index and 60 ticks per rotation.

In the most cases the GetPositon() and GetDirection functions work correct. But sometimes when i rotate to the right the direction function give me the left direction. The same problem is also with the position function.
For example i turn only to the left and sometimes i get a positiv position difference. I have algoritm for overflow of the position, but that is not the problem so far. I check the encoder signal and the signals are ok.

I read in the reference manual about glitches by the decoding of slow rotations (24.2.4.1). Is that the reason for that behaviour ? I can't believe that there is no easy way to get that work correct.

I work with the XMC4500.
0 Likes
0 Replies