atmel with encoder