example using AVR timer on Atmega328