schau mal hier, genau was Du suchst :
http://www.avrprojects.net/articles.php?lng=en&pg=65