Datasheet

Table Of Contents
i
2570N–AVR–05/11
ATmega325/3250/645/6450
Table of Contents
Features ..................................................................................................... 1
1 Pin Configurations ................................................................................... 2
2 Overview ................................................................................................... 4
2.1 Block Diagram ...................................................................................................4
2.2 Comparison between ATmega325, ATmega3250, ATmega645 and
ATmega6450 6
2.3 Pin Descriptions .................................................................................................6
3 Resources ................................................................................................. 9
4 Data Retention .......................................................................................... 9
5 About Code Examples ............................................................................. 9
6 Capacitive touch sensing ........................................................................ 9
7 AVR CPU Core ........................................................................................ 10
7.1 Overview ..........................................................................................................10
7.2 Architectural Overview .....................................................................................10
7.3 ALU – Arithmetic Logic Unit .............................................................................11
7.4 Status Register ................................................................................................12
7.5 General Purpose Register File ........................................................................13
7.6 Stack Pointer ...................................................................................................14
7.7 Instruction Execution Timing ...........................................................................14
7.8 Reset and Interrupt Handling ...........................................................................15
8 AVR Memories ........................................................................................ 18
8.1 In-System Reprogrammable Flash Program Memory .....................................18
8.2 SRAM Data Memory ........................................................................................19
8.3 EEPROM Data Memory ..................................................................................20
8.4 I/O Memory ......................................................................................................21
8.5 Register Description ........................................................................................22
9 System Clock and Clock Options ......................................................... 26
9.1 Clock Systems and their Distribution ...............................................................26
9.2 Clock Sources .................................................................................................27
9.3 Crystal Oscillator .............................................................................................28
9.4 Low-frequency Crystal Oscillator .....................................................................29
9.5 Calibrated Internal RC Oscillator .....................................................................29