He does say he is interested in duty cycle (specifies that the period is 100H and the duty cycle has a 14 bit resolution) Sounds more like a strain guage than a rotary encoder, but I'm not willing to speculate. He seems to not be to worried about relative phase either. It's just an idea anyway, it may, or may not be suitable for his needs, but if it is, it is very easy to implement. Regards, Kevin > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@mitvma.mit.edu] On Behalf Of John Dammeyer > Sent: 11 April 2002 16:13 > To: PICLIST@mitvma.mit.edu > Subject: Re: [PIC] Interrupt on change > > > My guess is he is using the 4 inputs to read two quadrature > encoders. These encoders output a square wave that is 90 > degress out of phase and from that information it's possible > to determine both speed and direction. An analog solution > won't work nor will setting the the outputs as inputs. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu