This application note provides general information about the Atmel AVR microcontrollers, including the AVR architecture, the AVR GCC compiler, the I/O header files, Flash variables, interrupt service routines, serial port baud rate calculation, power management and sleep modes, delay routines, and code size optimization techniques.
This document serves as a software user guide for the Atmel AVR 8-bit microcontroller family, including tinyAVR, megaAVR, and XMEGA devices. It focuses on helping developers write efficient C code by explaining the underlying architecture and providing practical examples.
This document applies to tinyAVR®, megaAVR®, and XMEGA® MCUs.
In AVR GCC, an ISR is defined using the ISR macro and the header file
IAR uses the __flash keyword to declare a variable in Program Memory.
The header file