For some peculiar reason that I cannot understand, Al's code is counting +/- 4 steps instead of one for each click.

Anyone can speculate why?

With a logic analyzer I have confirmed that the encoder is working fine. Here is a snapshot for 4 clicks of the encoder.

Name:  screenshot.png
Views: 13469
Size:  165.5 KB

Ioannis