Datasheet
Table Of Contents
- Features
- Pin Configuration
- Description
- Architectural Overview
- General-purpose Register File
- ALU – Arithmetic Logic Unit
- Flash Program Memory
- Program and Data Addressing Modes
- Subroutine and Interrupt Hardware Stack
- EEPROM Data Memory
- Memory Access and Instruction Execution Timing
- I/O Memory
- Reset and Interrupt Handling
- ATtiny12 Internal Voltage Reference
- Interrupt Handling
- Sleep Modes for the ATtiny11
- Sleep Modes for the ATtiny12
- ATtiny12 Calibrated Internal RC Oscillator
- Timer/Counter0
- Watchdog Timer
- ATtiny12 EEPROM Read/Write Access
- Analog Comparator
- I/O Port B
- Memory Programming
- Program (and Data) Memory Lock Bits
- Fuse Bits in ATtiny11
- Fuse Bits in ATtiny12
- Signature Bytes
- Calibration Byte in ATtiny12
- Programming the Flash and EEPROM
- High-voltage Serial Programming
- High-voltage Serial Programming Algorithm
- High-voltage Serial Programming Characteristics
- Low-voltage Serial Downloading (ATtiny12 only)
- Low-voltage Serial Programming Characteristics
- Electrical Characteristics
- Register Summary ATtiny11
- Register Summary ATtiny12
- Instruction Set Summary
- Ordering Information
- Packaging Information
- Data Sheet Change Log for ATtiny11/12
- Table of Contents

45
ATtiny11/12
1006D–AVR–07/03
Alternate Functions of Port B All port B pins are connected to a pin change detector that can trigger the pin change
interrupt. See “Pin Change Interrupt” on page 27 for details. In addition, Port B has the
following alternate functions:
• RESET
- Port B, Bit 5
When the RSTDISBL fuse is unprogrammed, this pin serves as external reset. When
the RSTDISBL fuse is programmed, this pin is a general input pin. In ATtiny12, it is also
an open-drain output pin.
• XTAL2 - Port B, Bit 4
XTAL2, oscillator output. When this pin is not used for clock purposes, it is a general I/O
pin. Refer to section “Pin Descriptions” on page 5 for details.
• XTAL1 - Port B, Bit 3
XTAL1, oscillator or clock input. When this pin is not used for clock purposes, it is a gen-
eral I/O pin. Refer to section “Pin Descriptions” on page 5 for details.
• T0/SCK - Port B, Bit 2
This pin can serve as the external counter clock input. See the timer/counter description
for further details. If external timer/counter clocking is selected, activity on this pin will
clock the counter even if it is configured as an output. In ATtiny12 and serial program-
ming mode, this pin serves as the serial clock input, SCK.
• INT0/AIN1/MISO - Port B, Bit 1
This pin can serve as the external interrupt0 input. See the interrupt description for
details on how to enable this interrupt. Note that activity on this pin will trigger the inter-
rupt even if the pin is configured as an output. This pin also serves as the negative input
of the on-chip Analog Comparator. In ATtiny12 and serial programming mode, this pin
serves as the serial data input, MISO.
• AIN0/MOSI - Port B, Bit 0
This pin also serves as the positive input of the on-chip Analog Comparator. In ATtiny12
and serial programming mode, this pin serves as the serial data output, MOSI.
During Power-down Mode, the schmitt triggers of the digital inputs are disconnected on
the Analog Comparator input pins. This allows an analog voltage close to V
CC
/2 to be
present during power-down without causing excessive power consumption.