Hi Al. I am using the #27 ISR.

The thing that I added was the check for the 4 counts before Q_Count variable is incremented or decremented.

Thats because the encoder I use produces 4 pulses on every step I turn the knob. Thanks Henrik for noting this.

Ioannis