AI Interactive Datasheet ATmega8U2
AVR · megaAVR

ATmega8U2 memory map

Where everything sits, at its exact address. The ATmega8U2 keeps program and data apart (Harvard): flash is read in words by the CPU, while registers, I/O and SRAM share one data address space.

Program memory

Flash, with the boot section at its top. Addresses in bytes.

Boot section0x1000 – 0x1FFF4 KB
Flash0x0000 – 0x1FFF8 KB

Data memory

Working registers, I/O registers and SRAM in one space.

SRAM0x0100 – 0x02FF512 B
I/O registers0x0020 – 0x00FF224 B
Working registers R0–R310x0000 – 0x001F32 B

EEPROM

Non-volatile data, kept without power.

EEPROM0x0000 – 0x01FF512 B

Every segment

SegmentSpaceStartEndSizePage
Working registers R0–R31data0x00000x001F32 B
I/O registersdata0x00200x00FF224 B
SRAMdata0x01000x02FF512 B
EEPROMeeprom0x00000x01FF512 B4 B
FUSESfuses0x00000x00023 B
LOCKBITSlockbits0x00000x00001 B
OSCCALosccal0x00000x00001 B
Flashprog0x00000x1FFF8 KB128 B
Boot sectionprog0x10000x1FFF4 KB128 B
Boot sectionprog0x18000x1FFF2 KB128 B
Boot sectionprog0x1C000x1FFF1 KB128 B
Boot sectionprog0x1E000x1FFF512 B128 B
SIGNATURESsignatures0x00000x00023 B