Datasheet
10. AVR Memories
10.1 Overview
This section describes the different memory types in the device. The AVR architecture has two main
memory spaces, the Data Memory and the Program Memory space. In addition, the device features an
EEPROM Memory for data storage. All memory spaces are linear and regular.
10.2 In-System Reprogrammable Flash Program Memory
The ATmega328PB contains 32 Kbytes 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 x 16.
The ATmega328PB Program Counter (PC) is 14 bits wide, thus addressing the 16K program memory
locations. The operation of the Boot Program section and associated Boot Lock bits for software
protection are described in detail in Boot Loader Support – Read-While-Write Self-Programming. Refer to
Memory Programming for the description of Flash data serial downloading using the SPI pins.
Constant tables can be allocated within the entire program memory address space, using the Load
Program Memory (LPM) instruction.
Timing diagrams for instruction fetch and execution are presented in Instruction Execution Timing.
Figure 10-1. Program Memory Map ATmega328PB
0x0000
0x3FFF
Program Memory
Application Flash Section
Boot Flash Section
Related Links
BTLDR - Boot Loader Support – Read-While-Write Self-Programming
MEMPROG - Memory Programming
Instruction Execution Timing
ATmega328PB
AVR Memories
© 2018 Microchip Technology Inc.
Datasheet Complete
DS40001906C-page 33