Hello Manu Did make the change and try again, but increments/decrements seems to be the order of 4. ie 0, 4, 8 ... decrement also seems t work rotating in the other direction. The problem that I see us that the increments are still in the order of 4. Any thoughts ? =A0 I have looked at your updated code and it seems to be doing exactly what=20 you state it is doing.=A0 The thread talks about a 4x=20 resolution while capturing every transition of the A and B signals.=A0=A0 B= y using the RB interrupt on change, you are capturing every change of A=20 and B.=A0 Therefore the 4x count is correct. Regards Jerson Fernandes ________________________________ Bombay 400064.=20 My Home Page=A0=A0=A0=A0=20 --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .