On Thu, Apr 6, 2017 at 7:53 AM, Phil Keller wrote: > I am a little confused. When you say they output the full range of > codes between detents, what exactly do you mean? I believe he means that as they are turned the output: 00 - detent 01 11 10 00 - detent 01 11 10 00 - detent so in this example they output 00 at every detent. This adds a lot more complexity, but there is several ways to decode an encoder. The previous example works very well with what is commonly called x1 mode. Effectively, interrupt on the rising edge of "A" and increment or decrement based on the status of "B". One count per detent. For other types of encoder uses (motor position feedback, etc) I prefer x4 mode. Interrupt on both rising and falling edges of both signals. Increment or decrement based on (current A XOR last B). That gives four counts per detent from the last example. (don't use detent encoders on motors, but that's not the point here :-) -Denny --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .