Datasheet

i
8011K–AVR–09/08
ATmega164P/324P/644P
Table of Contents
Features ..................................................................................................... 1
1 Pin Configurations ................................................................................... 2
1.1 Pinout - PDIP/TQFP/VQFN/QFN/MLF .....................................................................2
1.2 Pinout - DRQFN .......................................................................................................3
2 Overview ................................................................................................... 4
2.1 Block Diagram ..........................................................................................................4
2.2 Comparison Between ATmega164P, ATmega324P and ATmega644P ..................5
2.3 Pin Descriptions .......................................................................................................6
3 Resources ................................................................................................. 8
4 About Code Examples ............................................................................. 9
5 Data Retention .......................................................................................... 9
6 AVR CPU Core ........................................................................................ 10
6.1 Overview ................................................................................................................10
6.2 ALU – Arithmetic Logic Unit ...................................................................................11
6.3 Status Register .......................................................................................................11
6.4 General Purpose Register File ...............................................................................13
6.5 Stack Pointer ..........................................................................................................14
6.6 Instruction Execution Timing ..................................................................................15
6.7 Reset and Interrupt Handling .................................................................................16
7 AVR Memories ........................................................................................ 19
7.1 Overview ................................................................................................................19
7.2 In-System Reprogrammable Flash Program Memory ............................................19
7.3 SRAM Data Memory ..............................................................................................20
7.4 EEPROM Data Memory .........................................................................................22
7.5 I/O Memory .............................................................................................................23
7.6 Register Description ...............................................................................................24
8 System Clock and Clock Options ......................................................... 30
8.1 Clock Systems and their Distribution ......................................................................30
8.2 Clock Sources ........................................................................................................31
8.3 Low Power Crystal Oscillator ..................................................................................33
8.4 Full Swing Crystal Oscillator ...................................................................................34
8.5 Low Frequency Crystal Oscillator ...........................................................................35