How are you reading it? If you are using interrupts, my favor bug is to forget to set PEIE to 1. Andy At 08:08 AM 12/15/98 +0100, you wrote: >Hello everybody, >I'm curently working on a small robot which is controlled by >DC-motors using a optical-rotating-encoder-disc (resolution >200 tic's per revolution). Everything works fine, but sometimes >I notice that I've lost 8 pulses. EMC could be a problem but >this is almost excluded by the fact that it is always 8 and never >5,6,7 etc.. and EMC/co-incedence is never that reproduceable. > >Does anybody know about sites or problems concerning the >encoder disc and it's possible problems ? > >Regards, Jan Derogee > ================================================================== Andy Kunz - Statistical Research, Inc. - Westfield, New Jersey USA ==================================================================