Siehe Application Note 151 auf www.atmel.com

allerdings wird da der IAR Compiler verwendet. - zu bekommen hier: KLICK !!