--===============1600137489== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by pch.mit.edu id n860b1Tr022758 Josh, I was doing 4 quadrant decoding of a rotary encoder on a motor back in th= e 70's The problem is when the encoder rests on an edge instead of off 45 degree= s. On an edge the dithering of +1/-1 can be very high frequency in X4 mode. that means you need to do interrupt on edge (plus & minus) of both channe= ls. I would guess that is the mode you are in. That give you the most steps per revolution. X2 is easier and X1 more so if you do not mind less steps per revolutions. 3x means you are not keeping up with changes. I could draw you a logic drawing for X1/X2/X4 that you can convert to log= ic. Or a truth table. Let me know. Ray =A0http://www.tufts.edu/programs/mma/emid/RotaryEncoder.pdf > --===============1600137489== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 7bit -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --===============1600137489==--