Atmel 8-bit AVR Microcontroller with 512/1024 Bytes In-System
Programmable Flash
ATtiny4 / ATtiny5 / ATtiny9 / ATiny10
DATASHEET SUMMARY
Introduction
The Atmel ATtiny4/5/9/10 is a low-power CMOS 8-bit microcontroller based
on the AVR
®
enhanced RISC architecture. By executing powerful
instructions in a single clock cycle, the ATtiny4/5/9/10 achieves throughputs
close to 1 MIPS per MHz. This empowers system designer to optimize the
device for power consumption versus processing speed.
®
Feature
•
•
High Performance, Low Power AVR 8-Bit Microcontroller
Advanced RISC Architecture
–
54 Powerful Instructions
–
Most Single Clock Cycle Execution
–
16 x 8 General Purpose Working Registers
–
Fully Static Operation
–
Up to 12 MIPS Throughput at 12 MHz
Non-volatile Program and Data Memories
–
512/1024 Bytes of In-System Programmable Flash Program
Memory
–
32 Bytes Internal SRAM
–
Flash Write/Erase Cycles: 10,000
–
Data Retention: 20 Years at 85°C / 100 Years at 25°C
Peripheral Features
®
–
QTouch Library Support for Capacitive Touch Sensing (1
Channel)
–
One 16-bit Timer/Counter with Prescaler and Two PWM
Channels
–
Programmable Watchdog Timer with Separate On-chip Oscillator
–
4-channel, 8-bit Analog to Digital Converter (ATtiny5/10, only)
–
On-chip Analog Comparator
Special Microcontroller Features
–
In-System Programmable (at 5V, only)
®
•
•
•
Atmel-8127H-ATiny4/ ATiny5 /ATiny9/ ATiny10_Datasheet_Summary-11/2016
•
•
•
•
–
External and Internal Interrupt Sources
–
Low Power Idle, ADC Noise Reduction, and Power-down Modes
–
Enhanced Power-on Reset Circuit
–
Programmable Supply Voltage Level Monitor with Interrupt and Reset
–
Internal Calibrated Oscillator
I/O and Packages
–
Four Programmable I/O Lines
–
6-pin SOT and 8-pad UDFN
Operating Voltage:
–
1.8 - 5.5V
Programming Voltage:
–
5V
Speed Grade:
–
0 - 4 MHz @ 1.8 - 5.5V
–
0 - 8 MHz @ 2.7 - 5.5V
–
0 - 12 MHz @ 4.5 - 5.5V
Industrial and Extended Temperature Ranges
Low Power Consumption
–
Active Mode:
• 200μA at 1MHz and 1.8V
Idle Mode:
• 25μA at 1MHz and 1.8V
Power-down Mode:
• <0.1μA at 1.8V
•
•
–
Atmel ATtiny4 / ATtiny5 / ATtiny9 / ATiny10 [DATASHEET]
Atmel-8127H-ATiny4/ ATiny5 /ATiny9/ ATiny10_Datasheet_Summary-11/2016
2
Table of Contents
Introduction......................................................................................................................1
Feature............................................................................................................................ 1
1. Pin Configurations..................................................................................................... 4
1.1.
Pin Descriptions............................................................................................................................4
2. Ordering Information..................................................................................................5
2.1.
2.2.
2.3.
2.4.
ATtiny4..........................................................................................................................................5
ATtiny5..........................................................................................................................................6
ATtiny9..........................................................................................................................................7
ATtiny10........................................................................................................................................8
3. Overview....................................................................................................................9
3.1.
3.2.
Block Diagram.............................................................................................................................. 9
Comparison of ATtiny4, ATtiny5, ATtiny9 and ATtiny10............................................................. 10
4. General Information................................................................................................. 11
4.1.
4.2.
4.3.
4.4.
Resources...................................................................................................................................11
Data Retention............................................................................................................................11
About Code Examples................................................................................................................ 11
Capacitive Touch Sensing.......................................................................................................... 11
5. Packaging Information............................................................................................. 12
5.1.
5.2.
6ST1...........................................................................................................................................12
8MA4.......................................................................................................................................... 13
6. Errata....................................................................................................................... 14
6.1.
6.2.
6.3.
6.4.
ATtiny4........................................................................................................................................14
ATtiny5........................................................................................................................................14
ATtiny9........................................................................................................................................15
ATtiny10......................................................................................................................................16
1.
Pin Configurations
Figure 1-1. Pinout of ATtiny4/5/9/10
SOT-23
(PCINT0/TPIDATA /OC0A/ADC0/AIN0) PB0
GND
(PCINT1/TPICLK/CLKI/ICP0/OC0B/ADC1/AIN1) PB1
1
2
3
6
5
4
PB3 (RESET/PCINT3/ADC3)
VCC
PB2 (T0/CLKO/PCINT2/INT0/ADC2)
UDFN
(PCINT1/TPICLK/CLKI/ICP0/OC0B/ADC1/AIN1) PB1
NC
NC
GND
1
2
3
4
8
7
6
5
PB2 (T0/CLKO/PCINT2/INT0/ADC2)
VCC
PB3 (RESET/PCINT3/ADC3)
PB0 (AIN0/ADC0/OC0A/TPIDATA /PCINT0)
Power
Clock
Digital
GND
Analog
NC
1.1.
1.1.1.
Pin Descriptions
VCC
Digital supply voltage.
1.1.2.
GND
Ground.
1.1.3.
Port B (PB[3:0])
This is a 4-bit, bi-directional I/O port with internal pull-up resistors, individually selectable for each bit. The
output buffers have symmetrical drive characteristics, with both high sink and source capability. As inputs,
the port pins that are externally pulled low will source current if pull-up resistors are activated. Port pins
are tri-stated when a reset condition becomes active, even if the clock is not running.
1.1.4.
RESET
Reset input. A low level on this pin for longer than the minimum pulse length will generate a reset, even if
the clock is not running and provided the reset pin has not been disabled. The minimum pulse length is
given in
System and Reset Characteristics of Electrical Characteristics.
Shorter pulses are not
guaranteed to generate a reset.
The reset pin can also be used as a (weak) I/O pin.
Atmel ATtiny4 / ATtiny5 / ATtiny9 / ATiny10 [DATASHEET]
Atmel-8127H-ATiny4/ ATiny5 /ATiny9/ ATiny10_Datasheet_Summary-11/2016
4
2.
2.1.
Ordering Information
ATtiny4
Supply Voltage
1.8 – 5.5V
Speed
(1)
12MHz
Temperature
Industrial
(-40°C to 85°C)
(4)
Package
(2)
6ST1
Ordering Code
(3)
ATTINY4-TSUR
(5)
ATTINY4-TSHR
(6)(7)
8MA4
10MHz
Extended
(-40°C to 125°C)
(8)
Note:
1.
2.
3.
4.
5.
6ST1
ATTINY4-MAHR
(7)
ATTINY4-TSFR
(5)
ATTINY4-TS8R
(6)(7)
For speed vs. supply voltage, see section
Speed.
All packages are Pb-free, halide-free and fully green and they comply with the European directive
for Restriction of Hazardous Substances (RoHS). NiPdAu finish.
Tape and reel.
Can also be supplied in wafer form. Contact your local sales office for ordering information and
minimum quantities.
Marking details:
–
Top mark 1st line: ddddTY
–
Top mark 2nd line: wwxxx
dddd= device, special code
T= Type
Y= Year last digit
ww= calendar workweek
6.
7.
8.
xxx = trace code
Not recommended for new designs.TPUBSTINY-216
Top/bottom markings:
–
Top: T4x, where
x
= die revision
–
Bottom: zHzzz or z8zzz, where
H
= (-40°C to 85°C), and
8
= (-40°C to 125°C)
For typical and Electrical characteristics for this device please consult Appendix A, ATtiny4/5/9/10
Specification at 125°C.
Table 2-1. Package Type
6ST1
8MA4
6-lead, 2.90 x 1.60 mm Plastic Small Outline Package (SOT23)
8-pad, 2 x 2 x 0.6 mm Plastic Ultra Thin Dual Flat No Lead (UDFN)
Atmel ATtiny4 / ATtiny5 / ATtiny9 / ATiny10 [DATASHEET]
Atmel-8127H-ATiny4/ ATiny5 /ATiny9/ ATiny10_Datasheet_Summary-11/2016
5