> You can't divide an encoder signal, you need to build a FSM that takes > care of direction changes. Try to use a PAL or FPGA or such device. It > will work with very high speed encoders. > > Peter You certainly _can_ divide an encoder signal. It just requires a fancier state machine than a normal binary counter. :-) One complicating factor is that the machine has to change state on both edges of both inputs. This is rather trickier than just a 'current state'->'next state' machine driven by a single clock (unless, of course you drive it with a separate clock that runs faster than either input). I suspect this could be done with a PIC12C508 at 4MHz clock and handle up to about 100,000 Hz inputs. Bob Ammerman RAm Systems (contract development of high performance, high function, low-level software) -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body