It doesn't seem to be a hardware issue. Tried a new encoder in the current = one's position. Behaviour is more or less identical. Regards, Manu On Tue, Jun 11, 2013 at 6:51 PM, Vicent Colomar Prats wrote: > Could it be a hardware problem, not a software problem? > > El martes, 11 de junio de 2013, Manu Abraham > escribi=F3: >> 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 >> -- >> http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive >> View/change your membership options at >> http://mailman.mit.edu/mailman/listinfo/piclist >> > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist --=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 .