Datasheet
1
2490R–AVR–02/2013
ATmega64(L)
Table of
Contents
Features 1
Pin Configuration 2
Disclaimer 2
Overview 3
Block Diagram 3
ATmega103 and ATmega64 Compatibility 4
Pin Descriptions 5
Resources 8
Data Retention 8
About Code Examples 9
AVR CPU Core 10
Introduction 10
Architectural Overview 10
ALU – Arithmetic Logic Unit 11
Status Register 12
General Purpose Register File 13
Stack Pointer 14
Instruction Execution Timing 14
Reset and Interrupt Handling 15
AVR Memories 18
In-System Reprogrammable Flash Program Memory 18
SRAM Data Memory 19
EEPROM Data Memory 21
I/O Memory 26
External Memory Interface 27
XMEM Register Description 32
System Clock and Clock Options 37
Clock Systems and their Distribution 37
Clock Sources 38
Default Clock Source 39
Crystal Oscillator 39
Low-frequency Crystal Oscillator 41
External RC Oscillator 42
Calibrated Internal RC Oscillator 43
External Clock 44
Timer/Counter Oscillator 45
Power Management and Sleep Modes 46