0% found this document useful (0 votes)
177 views1 page

Avr Memories: Figure 7-1. Program Memory Map Atmega328P

a

Uploaded by

salar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
177 views1 page

Avr Memories: Figure 7-1. Program Memory Map Atmega328P

a

Uploaded by

salar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

7.

AVR Memories

7.1 Overview
This section describes the different memories in the ATmega328P. The AVR® architecture has two main memory spaces,
the data memory and the program memory space. In addition, the ATmega328P features an EEPROM memory for data
storage. All three memory spaces are linear and regular.

7.2 In-System Reprogrammable Flash Program Memory


The ATmega328P contains 32Kbytes on-chip in-system reprogrammable flash memory for program storage. Since all AVR
instructions are 16 or 32 bits wide, the flash is organized as 16K 16. For software security, the flash program memory space
is divided into two sections, boot loader section and application program section in ATmega328P. See SELFPRGEN
description in Section 25.3.1 “SPMCSR – Store Program Memory Control and Status Register” on page 228 and Section
26.9.1 “SPMCSR – Store Program Memory Control and Status Register” on page 239 for more details.
The flash memory has an endurance of at least 10,000 write/erase cycles. The ATmega328P program counter (PC) is 14
bits wide, thus addressing the 16K program memory locations. The operation of boot program section and associated boot
lock bits for software protection are described in detail in Section 25. “Self-Programming the Flash, ATmega328P” on page
223 and Section 26. “Boot Loader Support – Read-While-Write Self-Programming” on page 229. Section 27. “Memory
Programming” on page 241 contains a detailed description on flash programming in SPI- or parallel programming mode.
Constant tables can be allocated within the entire program memory address space (see the LPM – load program memory
instruction description).
Timing diagrams for instruction fetch and execution are presented in Section 6.6 “Instruction Execution Timing” on page 14.

Figure 7-1. Program Memory Map ATmega328P


Program Memory
0x0000

Application Flash Section

Boot Flash Section


0x3FFF

ATmega328P [DATASHEET] 17
7810D–AVR–01/15

You might also like