Datasheet

i
ATtiny13
2535E–AVR–10/04
Table of Contents Features................................................................................................ 1
Pin Configurations............................................................................... 2
Overview............................................................................................... 2
Block Diagram ...................................................................................................... 3
Pin Descriptions.................................................................................................... 4
About Code Examples......................................................................... 4
AVR CPU Core ..................................................................................... 5
Introduction........................................................................................................... 5
Architectural Overview.......................................................................................... 5
ALU – Arithmetic Logic Unit.................................................................................. 6
Status Register ..................................................................................................... 7
General Purpose Register File ............................................................................. 8
Stack Pointer ........................................................................................................ 9
Instruction Execution Timing............................................................................... 10
Reset and Interrupt Handling.............................................................................. 10
AVR ATtiny13 Memories ................................................................... 13
In-System Re-programmable 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
Calibrated Internal RC Oscillator ........................................................................ 23
External Clock..................................................................................................... 24
128 kHz Internal Oscillator.................................................................................. 25
System Clock Prescaler...................................................................................... 25
Power Management and Sleep Modes............................................. 27
Idle Mode ............................................................................................................ 28
ADC Noise Reduction Mode............................................................................... 28
Power-down Mode.............................................................................................. 28
Minimizing Power Consumption ......................................................................... 29
System Control and Reset ................................................................ 30
Internal Voltage Reference ................................................................................. 35
Watchdog Timer ................................................................................................. 36
Interrupts ............................................................................................ 41