Skip to content
University of California, Davis Mechanical and Aerospace Engineering
ARMS Laboratory
EME154 · Interactive Lab

Inside the AVR

Explore the hardware. Follow the connections.

Code execution ↗ATmega328P · 8-bit

HARDWARE MAP Select a component
↔↔

PREDICT, THEN TRY

Reveal explanation

About this model & hardware references

This is a component explorer, not an instruction emulator. Bus phases are explanatory pauses, not clock cycles. The architectural comparison illustrates access paths, not a universal performance ratio. AVR has separate program and data pathways; these drawings group signals by purpose rather than reproduce the chip’s wiring.

Startup and Reset explorer initialize GPRs and SRAM to zero for repeatable experiments. Power cycling marks them unknown. EEPROM starts at 0xFF and persists across simulated power cycles. Reset explorer starts a new experiment, including EEPROM. No state is saved after closing or reloading the page.

Port B is an ideal GPIO model with alternate functions disabled, pull-ups enabled when requested, and no input synchronization delay. PB6/PB7 are included as generic GPIO for this exercise; an Arduino UNO normally uses them for its oscillator. Timer ticking, interrupts, EEPROM programming timing, Flash self-programming, and electrical drive strength are outside this model.

The SRAM ends at 0x08FF. A PUSH writes at SP then decrements SP; POP increments SP then reads. Flash addresses are 16-bit word addresses; the PC is 14 bits.

References: Microchip ATmega328P datasheet · AVR instruction set manual