Datasheet

i
8021G–AVR–03/11
ATmega329P/3290P
Table of Contents
Features ..................................................................................................... 1
1 Pin Configurations ................................................................................... 2
2 Overview ................................................................................................... 4
2.1Block Diagram ...........................................................................................................4
2.2Comparison between ATmega329P, and ATmega3290P. ........................................5
2.3Pin Descriptions ........................................................................................................6
3 Resources ................................................................................................. 9
4 Data Retention .......................................................................................... 9
5 About Code Examples ............................................................................. 9
6 AVR CPU Core ........................................................................................ 10
6.1Overview .................................................................................................................10
6.2Architectural Overview ............................................................................................10
6.3ALU – Arithmetic Logic Unit ....................................................................................11
6.4AVR Status Register ...............................................................................................11
6.5General Purpose Register File ................................................................................13
6.6Stack Pointer ...........................................................................................................14
6.7Instruction Execution Timing ...................................................................................15
6.8Reset and Interrupt Handling ..................................................................................16
7 AVR Memories ........................................................................................ 18
7.1Overview .................................................................................................................18
7.2In-System Reprogrammable Flash Program Memory .............................................18
7.3SRAM Data Memory ...............................................................................................18
7.4EEPROM Data Memory ..........................................................................................20
7.5I/O Memory ..............................................................................................................21
7.6Register Description ................................................................................................22
8 System Clock and Clock Options ......................................................... 27
8.1Clock Systems and their Distribution .......................................................................27
8.2Clock Sources .........................................................................................................28
8.3Default Clock Source ...............................................................................................28
8.4Crystal Oscillator .....................................................................................................29
8.5Low-frequency Crystal Oscillator .............................................................................30
8.6Calibrated Internal RC Oscillator .............................................................................31