
i
ATtiny11/12
1006D–AVR–07/03
Table of Contents
Features................................................................................................. 1
Pin Configuration.................................................................................. 1
Description............................................................................................ 2
ATtiny11 Block Diagram ....................................................................................... 2
ATtiny12 Block Diagram ....................................................................................... 4
Pin Descriptions.................................................................................................... 5
Clock Options ....................................................................................................... 5
Architectural Overview......................................................................... 8
General-purpose Register File.............................................................................. 9
ALU – Arithmetic Logic Unit................................................................................ 10
Flash Program Memory ...................................................................................... 10
Program and Data Addressing Modes................................................................ 10
Subroutine and Interrupt Hardware Stack .......................................................... 12
EEPROM Data Memory...................................................................................... 13
Memory Access and Instruction Execution Timing............................................. 13
I/O Memory......................................................................................................... 14
Reset and Interrupt Handling.............................................................................. 15
ATtiny12 Internal Voltage Reference.................................................................. 24
Interrupt Handling ............................................................................................... 25
Sleep Modes for the ATtiny11 ............................................................................ 31
Sleep Modes for the ATtiny12 ............................................................................ 31
ATtiny12 Calibrated Internal RC Oscillator......................................................... 32
Timer/Counter0 ................................................................................... 33
Timer/Counter Prescaler..................................................................................... 33
Watchdog Timer.................................................................................. 36
ATtiny12 EEPROM Read/Write Access............................................. 38
Prevent EEPROM Corruption............................................................................. 40
Analog Comparator ............................................................................ 41
I/O Port B ............................................................................................. 43
Memory Programming........................................................................ 46
Program (and Data) Memory Lock Bits .............................................................. 46
Fuse Bits in ATtiny11.......................................................................................... 46
Fuse Bits in ATtiny12.......................................................................................... 46
Signature Bytes .................................................................................................. 47
Calibration Byte in ATtiny12 ............................................................................... 47
Programming the Flash and EEPROM............................................................... 47
High-voltage Serial Programming....................................................................... 48