Code for ATmega8 AVR