Guck dir mal die Appnote AVR121 von Atmel an...