Dear Ni,
Usually, quadrature encoders are interface with a D Flip Flip, where one signal feeds the D input of a 74LS74 and the other signal feeds the CLK input.
The trick is to sample one signal as the other changes state, a rising edge for example. This way, the Q output can be read as the direction, while your actual CLK signal can be thought of as the pulse/speed input.
In software, you have to check the new state of a signal against the old state, if it changed than, sample the other signal and voila!
Fabrico
Message Edited by Fabrico on 2006-11-2101:57 AM