I found some devices who can handle differential A/B quadrature encoders
and give a Direction out and CLK out LS7184
http://www.opticalencoders.com/asset...atasheet_1.pdf


I think this device can make the job easier

If I use this device and the USART on RB1/RB2 of an 16F628 i think I can
use a normal I/O pin to count the clk from the LS7184
Or should it be better to use RB0/INT as an interupt from the CLK signal
from the LS7184 pulse counter ?