Field Guide · hardware

Also known as: AVR, ATmega

AVR is an 8-bit RISC microcontroller architecture created by Atmel and now owned by Microchip; ATmega is its best-known product line.1

8-bit AVR CPU 32 registers, RISC Program flash instruction bus SRAM EEPROM Peripheral bus timers · PWM GPIO ports ADC UART · SPI · I²C
AVR is a Harvard design: the 8-bit RISC core fetches instructions from program flash over one bus while reading and writing data in SRAM and EEPROM over another, so a fetch and a data access can happen at once. A peripheral bus hangs GPIO, timers, the ADC, and serial ports off the same core.

Overview

The AVR design pairs a simple, fast 8-bit core with on-chip flash, SRAM, and EEPROM, plus GPIO, timers with PWM, an ADC, and UART/SPI/I²C peripherals. It is a Harvard RISC architecture — separate buses for program and data — so most instructions run in a single clock cycle, giving surprisingly brisk throughput for an 8-bit part.

Sibling lines include the tiny ATtiny and the larger ATmega. The ATmega328P is iconic because it is the chip on the original Arduino Uno, which made AVR the gateway architecture for a generation of makers.

AVR versus the alternatives

Where AVR sits among common hobby and embedded cores:

Family Bits Core style Note
AVR / ATmega 8 RISC, Harvard Single-cycle, Arduino default
PIC 8/16/32 RISC Long supply life, rival to AVR
ARM Cortex-M 32 RISC More compute, richer peripherals

Where it fits

AVR shines where 8 bits are plenty: low cost, low power, and a friendly toolchain (AVR-GCC, the Arduino IDE). Code is written in C or C++ and flashed via in-system programming over SPI. When a project needs 32-bit performance, more memory, or built-in radios, designers step up to an STM32 or ESP32; the rival 8-bit family is the PIC. Around an SDR setup, an ATmega is a tidy way to toggle relays or read a sensor beside a capture node — small housekeeping jobs a decode host should not be bothered with.

Sources

  1. AVR microcontrollers — Wikipedia, on the AVR architecture and ATmega line. 

See also