hallo, schau einmal im "avr forum". "www.mikrocontroller.net/" , dann unter codesammlung, die helfen dir auch weiter.
mfg pebisoft