Datasheet
i
ATtiny2313
2543H–AVR–02/05
Table of Contents Features................................................................................................ 1
Pin Configurations............................................................................... 2
Overview............................................................................................... 2
Block Diagram ...................................................................................................... 3
Pin Descriptions.................................................................................................... 5
About Code Examples......................................................................... 5
Disclaimer............................................................................................. 5
AVR CPU Core ..................................................................................... 6
Introduction........................................................................................................... 6
Architectural Overview.......................................................................................... 6
ALU – Arithmetic Logic Unit.................................................................................. 7
Status Register ..................................................................................................... 7
General Purpose Register File ............................................................................. 8
Stack Pointer ...................................................................................................... 10
Instruction Execution Timing............................................................................... 10
Reset and Interrupt Handling.............................................................................. 11
AVR ATtiny2313 Memories ............................................................... 13
In-System Reprogrammable Flash Program Memory ........................................ 13
SRAM Data Memory........................................................................................... 14
EEPROM Data Memory...................................................................................... 15
I/O Memory ......................................................................................................... 20
System Clock and Clock Options .................................................... 21
Clock Systems and their Distribution .................................................................. 21
Clock Sources..................................................................................................... 22
Default Clock Source .......................................................................................... 22
Crystal Oscillator................................................................................................. 22
Calibrated Internal RC Oscillator ........................................................................ 24
External Clock..................................................................................................... 26
128 kHz Internal Oscillator.................................................................................. 27
Power Management and Sleep Modes............................................. 29
Idle Mode ............................................................................................................ 29
Power-down Mode.............................................................................................. 30
Standby Mode..................................................................................................... 30
Minimizing Power Consumption ......................................................................... 30
System Control and Reset ................................................................ 32
Internal Voltage Reference ................................................................................. 37
Watchdog Timer ................................................................................................. 38