Hi, Rewrote the Rotary encoder for use with an 18F4550 in C18. I can't really make out what is wrong in there. It looks as though everything makes sense, but the result doesn't make sense, ie the increments/decrements, I cannot see (at least 0-9) Change is quite random. The code is here: http://goo.gl/Qm0Re If someone could lend another pair of eyes, would be very helpful. Thanks, Manu --=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 .