On Sat, Sep 5, 2009 at 10:51 PM, Sean Breheny wrote: > Does your encoder have explicit detents? If so, I think that each > detent is usually one count, not 4. I've worked with an encoder that had 4 counts per detent. Basically I loaded a register with b'00011000 and on each pulse, i left- or right-shifted appropriately. If LSB or MSB are set, treat it as a count in either direction and reset the register to b'00011000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist