Datasheet

i
ATmega162/V
2513G–AVR–03/05
Table of Contents Features................................................................................................ 1
Pin Configurations............................................................................... 2
Disclaimer............................................................................................................. 2
Overview............................................................................................... 3
Block Diagram ...................................................................................................... 3
ATmega161 and ATmega162 Compatibility......................................................... 4
Pin Descriptions.................................................................................................... 5
About Code Examples.......................................................................................... 6
AVR CPU Core ..................................................................................... 7
Introduction........................................................................................................... 7
Architectural Overview.......................................................................................... 7
ALU – Arithmetic Logic Unit.................................................................................. 8
Status Register ..................................................................................................... 8
General Purpose Register File ........................................................................... 10
Stack Pointer ...................................................................................................... 11
Instruction Execution Timing............................................................................... 12
Reset and Interrupt Handling.............................................................................. 12
AVR ATmega162 Memories .............................................................. 15
In-System Reprogrammable Flash Program Memory ........................................ 15
SRAM Data Memory........................................................................................... 16
EEPROM Data Memory...................................................................................... 18
I/O Memory......................................................................................................... 23
External Memory Interface.................................................................................. 24
XMEM Register Description................................................................................ 28
System Clock and Clock Options .................................................... 33
Clock Systems and their Distribution.................................................................. 33
Clock Sources..................................................................................................... 34
Default Clock Source.......................................................................................... 34
Crystal Oscillator................................................................................................. 34
Low-frequency Crystal Oscillator........................................................................ 36
Calibrated Internal RC Oscillator ........................................................................ 36
External Clock..................................................................................................... 38
Clock output buffer.............................................................................................. 38
Timer/Counter Oscillator..................................................................................... 39
System Clock Prescaler...................................................................................... 39
Power Management and Sleep Modes............................................. 41
Idle Mode............................................................................................................ 42
Power-down Mode.............................................................................................. 42
Power-save Mode............................................................................................... 43
Standby Mode..................................................................................................... 43