I have a question for all the PIC experts out there: I am trying to interface a quadrature decoder to a PIC which currently drives some stepping motors. I can easily figure out how to build an external up/down counter and "roll my own" absolute position decoder- but has anybody successfully used the PIC itself to do this? I was thinking along the lines of using one externally clocked counter to count all pulses, and another to count only those in one direction. Subtracting these two give a relative number of steps in a particular direction. Any comments? David \|||/ o o David Darknell -------+--+--oOO-(_)-OOo--+--+----------------------------------------- |--|__|--|___|--|__|--| david@xia.com david@papdev.com "In a world without need of fences, who needs Gates." Author unknown _______________________________________________________________________