On Sat, Sep 5, 2009 at 9:17 PM, Bob Axtell wrote: > Actually, interrupt on change is just about the only way to make quad > encoding work. Set the PIC up to capture a change on both the A and > the B pins. When you get into the routine, immediately read repeatedly > until you get 3-5 SAME results on BOTH A and B. The XOR with old > state, etc as is needed. I think you will see things clear up. Unfortunately I have 4 encoders and only half a port of interrupt on change. I think Terry might have identified my current problem though. Thanks for the reply! Josh -- A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist