![](/user_photo/2706_HbeT2.jpg)
- •Features
- •Pin Configuration
- •Overview
- •ATtiny11 Block Diagram
- •ATtiny12 Block Diagram
- •Pin Descriptions
- •Port B (PB5..PB0)
- •XTAL1
- •XTAL2
- •RESET
- •Status Register
- •Internal RC Oscillator
- •Crystal Oscillator
- •External Clock
- •External RC Oscillator
- •Register Description
- •Memories
- •I/O Memory
- •Register Indirect
- •I/O Direct
- •Flash Program Memory
- •EEPROM Data Memory
- •Register Description
- •Sleep Modes
- •Sleep Modes for the ATtiny11
- •Idle Mode
- •Power-down Mode
- •Sleep Modes for the ATtiny12
- •Idle Mode
- •Power-down Mode
- •Reset Sources
- •External Reset
- •Watchdog Reset
- •Register Description
- •Interrupts
- •Reset and Interrupt
- •Interrupt Handling
- •Interrupt Response Time
- •External Interrupt
- •Pin Change Interrupt
- •Register Description
- •I/O Port B
- •Register Description
- •Port B as General Digital I/O
- •Alternate Functions of Port B
- •Timer/Counter0
- •Timer/Counter Prescaler
- •Register Description
- •Watchdog Timer
- •Register Description
- •Analog Comparator
- •Register Description
- •Fuse Bits in ATtiny11
- •Fuse Bits in ATtiny12
- •Signature Bytes
- •ATtiny11
- •ATtiny12
- •ATtiny11/12
- •High-voltage Serial Programming
- •Low-voltage Serial Downloading (ATtiny12 only)
- •Data Polling
- •Electrical Characteristics
- •Absolute Maximum Ratings
- •External Clock Drive ATtiny11
- •External Clock Drive ATtiny12
- •Register Summary ATtiny11
- •Register Summary ATtiny12
- •Instruction Set Summary
- •Ordering Information
- •ATtiny11
- •ATtiny12
- •Packaging Information
- •Table of Contents
![](/html/2706/399/html_g5p6GE8000.jJll/htmlconvd-y488uO49x1.jpg)
Signature Bytes
Calibration Byte in
ATtiny12
ATtiny11/12
•CKSEL3..0 fuses: See Table 3, “Device Clocking Options Select,” on page 10 and Table 10, “ATtiny12 Clock Options and Start-up Times,” on page 25, for which combination of CKSEL3..0 to use. Default value is “0010”, internal RC oscillator with long start-up time.
The status of the fuse bits is not affected by Chip Erase.
Note: 1. If the RSTDISBL Fuse is programmed, then the programming hardware should apply +12V to PB5 while the ATtiny12 is in Power-on Reset. If not, the part can fail to enter programming mode caused by drive contention on PB0 and/or PB5.
All Atmel microcontrollers have a three-byte signature code which identifies the device. The three bytes reside in a separate address space.
For the ATtiny11 they are:
1.$000: $1E (indicates manufactured by Atmel)
2.$001: $90 (indicates 1 Kb Flash memory)
3.$002: $04 (indicates ATtiny11 device when signature byte $001 is $90)
For the ATtiny12(1) they are:
1.$000: $1E (indicates manufactured by Atmel)
2.$001: $90 (indicates 1 Kb Flash memory)
3.$002: $05 (indicates ATtiny12 device when signature byte $001 is $90)
Note: 1. When both lock bits are programmed (Lock mode 3), the Signature Bytes can not be read in the Low-voltage Serial mode. Reading the Signature Bytes will return: $00, $01 and $02.
The ATtiny12 has a one-byte calibration value for the internal RC oscillator. This byte resides in the high byte of address $000 in the signature address space. During memory programming, the external programmer must read this location and program its value into a selected location in the normal Flash or EEPROM Program memory. At start-up, the user software must read this Flash location and write the value to the OSCCAL register.
Programming the Flash
and EEPROM
ATtiny11 |
Atmel’s ATtiny11 offers 1K bytes of Flash Program memory. |
||||
|
The ATtiny11 is shipped with the on-chip Flash Program memory array in the erased |
||||
|
state (i.e., contents = $FF) and ready to be programmed. |
||||
|
This device supports a High-voltage (12V) Serial programming mode. Only minor cur- |
||||
|
rents (<1 mA) are drawn from the +12V pin during programming. |
||||
|
The program memory array in the ATtiny11 is programmed byte-by-byte. |
||||
ATtiny12 |
Atmel’s ATtiny12 offers 1K bytes of in-system reprogrammable Flash Program memory |
||||
|
and 64 bytes of in-system reprogrammable EEPROM Data memory. |
||||
|
The ATtiny12 is shipped with the on-chip Flash Program and EEPROM Data memory |
||||
|
arrays in the erased state (i.e., contents = $FF) and ready to be programmed. |
||||
|
This device supports a high-voltage (12V) serial programming mode and a low-voltage |
||||
|
serial programming mode. The +12V is used for programming enable only, and no cur- |
||||
|
rent of significance is drawn by this pin. The Low-voltage Serial Programming mode |
||||
|
|
|
|
|
|
|
|
|
|
|
49 |
1006F–AVR–06/07 |
|
|
|
|
|
|
|
|
|
|