ATmega64A
Table of Contents
Features ..................................................................................................... 1
1
2
Pin Configuration ..................................................................................... 2
Overview ................................................................................................... 3
2.1
2.2
2.3
Block Diagram ...................................................................................................3
ATmega103 and ATmega64A Compatibility .....................................................4
Pin Descriptions .................................................................................................5
3
4
5
6
Resources ................................................................................................. 7
Data Retention .......................................................................................... 7
About Code Examples ............................................................................. 8
AVR CPU Core .......................................................................................... 9
6.1
6.2
6.3
6.4
6.5
6.6
6.7
Overview ............................................................................................................9
ALU – Arithmetic Logic Unit .............................................................................10
Status Register ................................................................................................10
Stack Pointer ...................................................................................................13
Instruction Execution Timing ...........................................................................13
Reset and Interrupt Handling ...........................................................................14
Interrupt Response Time .................................................................................16
7
AVR Memories ........................................................................................ 17
7.1
7.2
7.3
7.4
7.5
7.6
In-System Reprogrammable Flash Program Memory .....................................17
SRAM Data Memory ........................................................................................18
EEPROM Data Memory ..................................................................................21
I/O Memory ......................................................................................................22
External Memory Interface ..............................................................................23
Register Description ........................................................................................30
8
System Clock and Clock Options ......................................................... 37
8.1
8.2
8.3
8.4
8.5
8.6
8.7
Clock Systems and their Distribution ...............................................................37
Clock Sources .................................................................................................38
Default Clock Source .......................................................................................38
Crystal Oscillator .............................................................................................39
Low-frequency Crystal Oscillator .....................................................................40
External RC Oscillator .....................................................................................41
Calibrated Internal RC Oscillator .....................................................................42
i
8160C–AVR–07/09