I forgot to mention that when I read the data with a signal from my signal generator I get only a 2-3 count deviation at 60000 pluses so the ATMEGA reads the correct stuff. It means that noise is from the drum speed variation. The encoder is a precision USA made instrument so that should be fine. Cheers Wallace.