Dafür gibt es eine application note von Atmel:
www.atmel.com