# AVR microcontrollers

**AVR** is a family of 8-bit modified-Harvard RISC microcontrollers created by the Norwegian engineers Alf-Egil Bogen and Vegard Wollan, developed by [Atmel](https://www.edgepedia.org/atmel) from 1997, and owned by [Microchip Technology](https://www.edgepedia.org/microchip-technology) since its 2016 acquisition of Atmel.<sup>[1](https://teclix.dte.us.es/docencia/etsii/gii-is/estructura-de-computadores/grupo-5/units/unit-5.-study-of-a-real-computer/unit-05-avr.pdf)</sup> A comparative study also discusses 32-bit AVR variants.<sup>[2](https://engrxive.org/preprint/download/3228/5873/4653)</sup>

| Key fact | Detail |
|---|---|
| Architecture | Modified Harvard RISC: separate program and data memories and buses, 32 × 8-bit register file, single-level pipelining, throughput approaching 1 MIPS per MHz<sup>[3](https://ww1.microchip.com/downloads/en/DeviceDoc/ATmega48A-PA-88A-PA-168A-PA-328-P-DS-DS40002061A.pdf)</sup><sup> • </sup><sup>[4](http://www.praktiker.at/download/itmubu03.pdf)</sup> |
| Speed | For classic parts: up to 20 MHz at 4.5–5.5 V and up to 20 MIPS; many instructions execute in one clock cycle<sup>[1](https://teclix.dte.us.es/docencia/etsii/gii-is/estructura-de-computadores/grupo-5/units/unit-5.-study-of-a-real-computer/unit-05-avr.pdf)</sup> |
| Classic memory points | ATmega48A 4 KB flash / 512 B SRAM; ATmega328/P 32 KB flash, 1 KB EEPROM, 2 KB SRAM; ATmega164-class parts up to 128 KB flash<sup>[3](https://ww1.microchip.com/downloads/en/DeviceDoc/ATmega48A-PA-88A-PA-168A-PA-328-P-DS-DS40002061A.pdf)</sup><sup> • </sup><sup>[5](https://springerlink.fh-diploma.de/book/10.1007/978-3-031-79849-8)</sup> |
| Modern parts | megaAVR 0-series: 20 MHz, 32–48 KB flash, up to 6 KB SRAM; AVR DU (2024): 24 MHz internal oscillator, up to 64 KB flash<sup>[6](https://ww1.microchip.com/downloads/en/DeviceDoc/40002017A.pdf)</sup><sup> • </sup><sup>[7](https://www.microchip.com/en-us/products/microcontrollers/8-bit-mcus/avr-mcus/avr-du)</sup> |
| Peripherals | USART, SPI, TWI (I²C) to 1 MHz fast-mode-plus, 10-bit ADCs at 150–170 ksps, timers, Configurable Custom Logic, Event System<sup>[6](https://ww1.microchip.com/downloads/en/DeviceDoc/40002017A.pdf)</sup><sup> • </sup><sup>[7](https://www.microchip.com/en-us/products/microcontrollers/8-bit-mcus/avr-mcus/avr-du)</sup> |
| Toolchain | avr-gcc, avrdude, avarice, simavr; MPLAB X with XC8 and MCC Melody<sup>[1](https://teclix.dte.us.es/docencia/etsii/gii-is/estructura-de-computadores/grupo-5/units/unit-5.-study-of-a-real-computer/unit-05-avr.pdf)</sup><sup> • </sup><sup>[8](https://www.microchip.com/en-us/about/news-releases/products/microchip-brings-enhanced-code-protection-and-up-to-15w-of-power)</sup> |
| Adoption | Arduino, launched 2005 around the ATmega328; Arduino boards are the most popular boards built around the AVR platform<sup>[9](https://spectrum.ieee.org/the-making-of-arduino)</sup><sup> • </sup><sup>[1](https://teclix.dte.us.es/docencia/etsii/gii-is/estructura-de-computadores/grupo-5/units/unit-5.-study-of-a-real-computer/unit-05-avr.pdf)</sup> |

## History and development

The architecture was created by two Norwegian students, Alf-Egil Bogen and Vegard Wollan, and has been developed by Atmel since 1997; Atmel was sold to Microchip in 2016.<sup>[1](https://teclix.dte.us.es/docencia/etsii/gii-is/estructura-de-computadores/grupo-5/units/unit-5.-study-of-a-real-computer/unit-05-avr.pdf)</sup> In a 2017 EE Times interview, Bogen described the design as a true RISC architecture with single-cycle instructions, a register file, and separate buses for program and data memory and I/O, calling it superior to any other architecture in the 8-bit world, and probably still so, 20 years later.<sup>[10](https://www.eetimes.com/from-avr-to-arm-with-alf-egil-bogen-and-energy-micro/)</sup>

At launch in mid-1997, AVR entered an 8-bit market dominated by the Motorola 6805, the 68HC11, and the Intel 8051, with additional competition from Microchip's PIC family, a more modern design that had expanded rapidly in the preceding years.<sup>[11](https://www.ardent-tool.com/CPU/docs/MPR/19970714/110902.pdf)</sup>

## Architecture and instruction set

The AVR core uses a [Harvard architecture](https://www.edgepedia.org/harvard-architecture) with separate memories and buses for program and data, and linear, regular memory maps.<sup>[12](http://ebook.pldworld.com/_semiconductors/Atmel/Databook%20CDROM/Atmel/acrobat/0890s.pdf)</sup> Instructions in program memory are executed with single-level pipelining: while one instruction is being executed, the next is pre-fetched from program memory.<sup>[3](https://ww1.microchip.com/downloads/en/DeviceDoc/ATmega48A-PA-88A-PA-168A-PA-328-P-DS-DS40002061A.pdf)</sup>

Central to the design is a fast-access RISC register file of 32 × 8-bit general-purpose working registers. Within a single clock cycle the core can feed two arbitrary registers to the ALU, perform the requested operation, and write the result back to an arbitrary register.<sup>[4](http://www.praktiker.at/download/itmubu03.pdf)</sup> This true single-cycle execution of arithmetic and logic operations yields throughput approaching 1 MIPS per MHz, letting designers trade power consumption against processing speed.<sup>[4](http://www.praktiker.at/download/itmubu03.pdf)</sup> Classic 8-bit AVR parts use a two-stage pipeline and can run at up to 20 MHz at 4.5–5.5 V, with throughput up to 20 MIPS.<sup>[1](https://teclix.dte.us.es/docencia/etsii/gii-is/estructura-de-computadores/grupo-5/units/unit-5.-study-of-a-real-computer/unit-05-avr.pdf)</sup> The address architecture allows up to 8 MB of program memory and 16 MB of data memory.<sup>[4](http://www.praktiker.at/download/itmubu03.pdf)</sup>

## Families and device range

The classic taxonomy divides the 8-bit line into three series: ATtiny for low-end devices with fewer pins and peripherals, ATmega for mid-range devices with a complete peripheral set, and ATxmega for high-end devices with increased performance and peripherals.<sup>[1](https://teclix.dte.us.es/docencia/etsii/gii-is/estructura-de-computadores/grupo-5/units/unit-5.-study-of-a-real-computer/unit-05-avr.pdf)</sup>

Within the classic megaAVR line, the ATmega48A/PA/88A/PA/168A/PA/328/P family spans 4 KB to 32 KB of flash: the ATmega48A has 4 KB flash, 256 B EEPROM and 512 B SRAM; the ATmega88A/PA 8 KB/512 B/1 KB; the ATmega168A/PA 16 KB/512 B/1 KB; and the ATmega328/P 32 KB flash, 1 KB EEPROM and 2 KB SRAM.<sup>[3](https://ww1.microchip.com/downloads/en/DeviceDoc/ATmega48A-PA-88A-PA-168A-PA-328-P-DS-DS40002061A.pdf)</sup> The ATmega164 and its pin-compatible family members reach a complement of flash memory up to 128 KB.<sup>[5](https://springerlink.fh-diploma.de/book/10.1007/978-3-031-79849-8)</sup>

The modern megaAVR 0-series (ATmega3208/3209/4808/4809) runs the AVR processor with hardware multiplier at up to 20 MHz, with flash sizes up to 48 KB, up to 6 KB of SRAM, and 256 bytes of [EEPROM](https://www.edgepedia.org/eeprom), in 28-, 32-, or 48-pin packages.<sup>[6](https://ww1.microchip.com/downloads/en/DeviceDoc/40002017A.pdf)</sup> AVR DU, launched in April 2024, runs from an internal 24 MHz oscillator with up to 64 KB of flash.<sup>[7](https://www.microchip.com/en-us/products/microcontrollers/8-bit-mcus/avr-mcus/avr-du)</sup><sup> • </sup><sup>[8](https://www.microchip.com/en-us/about/news-releases/products/microchip-brings-enhanced-code-protection-and-up-to-15w-of-power)</sup>

## Peripherals, memory and power

Typical on-chip peripherals on a modern megaAVR 0-series part include three USARTs with fractional baud generator and autobaud, master/slave SPI, and a dual-mode TWI (I²C) supporting 100 kHz standard mode, 400 kHz fast mode, and 1 MHz fast-mode-plus. Analog conversion is handled by one 10-bit 150 ksps ADC with five selectable internal voltage references: 0.55 V, 1.1 V, 1.5 V, 2.5 V, and 4.3 V.<sup>[6](https://ww1.microchip.com/downloads/en/DeviceDoc/40002017A.pdf)</sup> The 0-series also provides Configurable Custom Logic with up to four lookup tables, and operates from −40 °C to 125 °C with Event System and SleepWalking low-power architecture features.<sup>[6](https://ww1.microchip.com/downloads/en/DeviceDoc/40002017A.pdf)</sup>

On classic ATmega parts the peripheral set comprises digital I/O ports (PORTB, PORTC, PORTD), the SPI, USART0 and TWI serial interfaces, three timer/counters, and an ADC.<sup>[1](https://teclix.dte.us.es/docencia/etsii/gii-is/estructura-de-computadores/grupo-5/units/unit-5.-study-of-a-real-computer/unit-05-avr.pdf)</sup> AVR DU parts add one 16-bit Timer/Counter A, two 16-bit Timer/Counter B, a 16-bit RTC, Configurable Custom Logic, and up to a 6-channel Event System, plus a 10-bit 170-ksps ADC with up to 21 channels and built-in safety functions: POR, BOR, VLM, and CRC scan.<sup>[7](https://www.microchip.com/en-us/products/microcontrollers/8-bit-mcus/avr-mcus/avr-du)</sup>

## Programming and toolchain

The open GNU toolchain supports assembly, C, and C++ development: avr-gcc as compiler, avrdude for flashing, avarice for on-chip debugging, and simavr for simulation. A typical avrdude session flashing an ATmega328P verifies the device signature 0x1e950f before writing flash.<sup>[1](https://teclix.dte.us.es/docencia/etsii/gii-is/estructura-de-computadores/grupo-5/units/unit-5.-study-of-a-real-computer/unit-05-avr.pdf)</sup> Vendor support has existed since the Atmel databook era, when the core shipped with ANSI-compliant C compilers, macroassemblers, linkers, debuggers, simulators, in-circuit emulators, and evaluation boards.<sup>[12](http://ebook.pldworld.com/_semiconductors/Atmel/Databook%20CDROM/Atmel/acrobat/0890s.pdf)</sup> Under Microchip, AVR DU is supported by MPLAB X IDE, the XC8 compiler, the MPLAB Code Configurator (MCC) Melody USB stack, and the Curiosity Nano board EV59F82A.<sup>[8](https://www.microchip.com/en-us/about/news-releases/products/microchip-brings-enhanced-code-protection-and-up-to-15w-of-power)</sup>

## Arduino and adoption

Arduino was released in 2005 as a modest tool for Massimo Banzi's students at the Interaction Design Institute Ivrea, and spawned an international do-it-yourself revolution in electronics. The board was built from cheap, easily sourced parts, including the [ATmega328](https://www.edgepedia.org/atmega328) microcontroller, with free schematics and source code under public licenses.<sup>[9](https://spectrum.ieee.org/the-making-of-arduino)</sup> Boards cost about US$30 and were designed as plug-and-play USB-programmable devices; the family grew to include the more powerful Arduino Mega, the compact [Arduino Nano](https://www.edgepedia.org/arduino-nano), and the waterproof LilyPad Arduino.<sup>[9](https://spectrum.ieee.org/the-making-of-arduino)</sup> Arduino boards are the most popular boards built around the AVR platform.<sup>[1](https://teclix.dte.us.es/docencia/etsii/gii-is/estructura-de-computadores/grupo-5/units/unit-5.-study-of-a-real-computer/unit-05-avr.pdf)</sup>

## How it compares with other microcontrollers

A comparative study of five common microcontroller families, AVR, 8052, PIC, ESP32, and STM32, examines them across architecture, peripherals, development environment, and application areas.<sup>[2](https://engrxive.org/preprint/download/3228/5873/4653)</sup> The AVR architecture is a RISC design with a compact, optimized instruction set, available in both 8-bit and 32-bit variants to accommodate diverse application requirements.<sup>[2](https://engrxive.org/preprint/download/3228/5873/4653)</sup> Against its original 1997 rivals, the 6805, 68HC11, 8051, and PIC, AVR's distinguishing features were its single-cycle RISC execution and its register-file-centered datapath, in Bogen's assessment superior in the 8-bit world.<sup>[11](https://www.ardent-tool.com/CPU/docs/MPR/19970714/110902.pdf)</sup><sup> • </sup><sup>[10](https://www.eetimes.com/from-avr-to-arm-with-alf-egil-bogen-and-energy-micro/)</sup>

## By the numbers and recent developments

The headline quantities: 20 MIPS at 20 MHz on classic parts and 24 MHz on AVR DU; flash from 4 KB (ATmega48A) to 128 KB (ATmega164-class) and 64 KB (AVR DU); SRAM from 512 B to 6 KB; ADC rates of 150–170 ksps.<sup>[1](https://teclix.dte.us.es/docencia/etsii/gii-is/estructura-de-computadores/grupo-5/units/unit-5.-study-of-a-real-computer/unit-05-avr.pdf)</sup><sup> • </sup><sup>[3](https://ww1.microchip.com/downloads/en/DeviceDoc/ATmega48A-PA-88A-PA-168A-PA-328-P-DS-DS40002061A.pdf)</sup><sup> • </sup><sup>[5](https://springerlink.fh-diploma.de/book/10.1007/978-3-031-79849-8)</sup><sup> • </sup><sup>[7](https://www.microchip.com/en-us/products/microcontrollers/8-bit-mcus/avr-mcus/avr-du)</sup> A retrieved distributor page listed the ATmega328P-AU at $2.348 for a single unit, $1.5695 at 500+, and $1.5242 at 1,000+ pieces, with 8,070 units in stock.<sup>[13](https://www.lcsc.com/product-detail/ATMEL-AVR_Microchip-Tech-ATMEGA328P-AU_C14877.html)</sup>

**Post-2023 developments.** On April 9, 2024, Microchip launched the AVR DU family of USB microcontrollers, supporting USB-C power delivery of up to 15 W (currents up to 3 A at 5 V), a capability the company describes as not commonly found in other USB microcontrollers within its class, aimed at applications such as power banks and rechargeable toys.<sup>[8](https://www.microchip.com/en-us/about/news-releases/products/microchip-brings-enhanced-code-protection-and-up-to-15w-of-power)</sup> AVR DU also incorporates the Program and Debug Interface Disable (PDID) code-protection feature, which when enabled is designed to lock out access to the programming/debugging interface, and Read-While-Write flash for secure in-field bootloader updates over USB; a USB clock recovery feature eliminates the external crystal.<sup>[8](https://www.microchip.com/en-us/about/news-releases/products/microchip-brings-enhanced-code-protection-and-up-to-15w-of-power)</sup> [Documentation](https://www.edgepedia.org/documentation) continues to be revised: the AVR64DU28/32 data sheet moved from Rev.A (02/2024) to Rev.B (06/2026).<sup>[14](https://onlinedocs.microchip.com/oxy/GUID-3E14380F-9711-4707-8991-A4DB432DDBE5-en-US-7/index.html)</sup>

**Market picture.** One market-research report projects the AVR microcontroller market growing from $4.21 billion in 2024 to $9.4 billion by 2033 at a 9.35% CAGR, with industrial automation contributing 32% of AVR revenue and Asia-Pacific 45% of regional revenue.<sup>[15](https://www.marketreportanalytics.com/reports/avr-series-microcontrollers-393826)</sup> The same report puts 8-bit parts at 58% of unit share and $2.44 billion in revenue in 2024, 32-bit AVRs growing at a 10.5% CAGR, and 8-bit AVR average selling prices declining from $0.85 in 2022 to $0.80 in 2024.<sup>[15](https://www.marketreportanalytics.com/reports/avr-series-microcontrollers-393826)</sup>

## References

1. [Unit 5: Study of a real computer — AVR, Universidad de Sevilla course notes](https://teclix.dte.us.es/docencia/etsii/gii-is/estructura-de-computadores/grupo-5/units/unit-5.-study-of-a-real-computer/unit-05-avr.pdf)
2. [Microcontrollers: A Comprehensive Overview (preprint)](https://engrxive.org/preprint/download/3228/5873/4653)
3. [ATmega48A/PA/88A/PA/168A/PA/328/P Datasheet, Microchip Technology](https://ww1.microchip.com/downloads/en/DeviceDoc/ATmega48A-PA-88A-PA-168A-PA-328-P-DS-DS40002061A.pdf)
4. [The AVR Microcontroller and C Compiler Co-Design (technical paper)](http://www.praktiker.at/download/itmubu03.pdf)
5. [Atmel AVR Microcontroller Primer: Programming and Interfacing, Second Edition, Springer](https://springerlink.fh-diploma.de/book/10.1007/978-3-031-79849-8)
6. [megaAVR 0-Series 32-pin Data Sheet (ATmega3208/3209/4808/4809), Microchip Technology](https://ww1.microchip.com/downloads/en/DeviceDoc/40002017A.pdf)
7. [AVR DU Microcontrollers, Microchip Technology](https://www.microchip.com/en-us/products/microcontrollers/8-bit-mcus/avr-mcus/avr-du)
8. [Microchip Brings Enhanced Code Protection and up to 15W of Power Delivery to its USB Microcontroller Portfolio, April 9, 2024](https://www.microchip.com/en-us/about/news-releases/products/microchip-brings-enhanced-code-protection-and-up-to-15w-of-power)
9. [The Making of Arduino, IEEE Spectrum](https://spectrum.ieee.org/the-making-of-arduino)
10. [From AVR to ARM with Alf-Egil Bogen and Energy Micro, EE Times](https://www.eetimes.com/from-avr-to-arm-with-alf-egil-bogen-and-energy-micro/)
11. [Atmel AVR Brings RISC to 8-Bit World, Microprocessor Report, July 14, 1997](https://www.ardent-tool.com/CPU/docs/MPR/19970714/110902.pdf)
12. [AVR Summary — Embedded RISC Microcontroller Core, Atmel databook](http://ebook.pldworld.com/_semiconductors/Atmel/Databook%20CDROM/Atmel/acrobat/0890s.pdf)
13. [ATMEGA328P-AU product page, LCSC Electronics](https://www.lcsc.com/product-detail/ATMEL-AVR_Microchip-Tech-ATMEGA328P-AU_C14877.html)
14. [AVR64DU28/32 Complete Data Sheet, Microchip Technology](https://onlinedocs.microchip.com/oxy/GUID-3E14380F-9711-4707-8991-A4DB432DDBE5-en-US-7/index.html)
15. [AVR Series Microcontrollers Market report](https://www.marketreportanalytics.com/reports/avr-series-microcontrollers-393826)

---
*Topic: Encyclopedia › Technology and the built world › Computing and digital systems › Computer hardware › Embedded & soft processors › Embedded systems › Embedded microprocessors and microcontrollers*

*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

*Copyright 2026 EdgeChat AI, a subsidiary of Biostate AI.*

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license
