
- •Features
- •Pin Configuration
- •Description
- •Pin Descriptions
- •Port B (PB5..PB0)
- •Analog Pins
- •Internal Oscillators
- •Register Indirect
- •I/O Direct
- •I/O Memory
- •The Status Register – SREG
- •ATtiny15L Reset Sources
- •Power-on Reset
- •External Reset
- •Brown-out Detection
- •Watchdog Reset
- •Interrupt Handling
- •Interrupt Response Time
- •External Interrupt
- •Pin Change Interrupt
- •Sleep Modes
- •Idle Mode
- •ADC Noise Reduction Mode
- •Power-down Mode
- •Internal PLL for Fast Peripheral Clock Generation
- •Timer/Counters
- •The Timer Counter 0 – TCNT0
- •The Timer/Counter1 – TCNT1
- •Timer/Counter1 in PWM Mode
- •The Watchdog Timer
- •The Analog Comparator
- •Features
- •Operation
- •ADLAR = 0
- •ADLAR = 1
- •Scanning Multiple Channels
- •ADC Characteristics
- •I/O Port B
- •PORT B as General Digital I/O
- •Alternate Functions of Port B
- •Fuse Bits
- •Signature Bytes
- •Calibration Byte
- •Programming the Flash
- •High-voltage Serial Programming
- •Data Polling
- •Electrical Characteristics
- •Absolute Maximum Ratings
- •ATtiny15L Register Summary
- •Ordering Information
- •Packaging Information

Electrical Characteristics
Absolute Maximum Ratings
Operating Temperature.................................. -55°C to +125°C |
*NOTICE: Stresses beyond those listed under “Absolute |
||||
|
|
|
|
|
Maximum Ratings” may cause permanent dam- |
Storage Temperature ..................................... -65°C to +150°C |
age to the device. This is a stress rating only and |
||||
|
|
|
|
|
functional operation of the device at these or |
Voltage on Any Pin Except |
RESET |
|
other conditions beyond those indicated in the |
||
with Respect to Ground ............................. -1.0V to VCC + 0.5V |
operational sections of this specification is not |
||||
Voltage on |
|
with Respect to Ground ....-1.0V to +13.0V |
implied. Exposure to absolute maximum rating |
||
RESET |
conditions for extended periods may affect device |
||||
Maximum Operating Voltage ............................................ 6.0V |
reliability. |
||||
|
|||||
DC Current per I/O Pin ............................................... 40.0 mA |
|
||||
DC Current VCC and GND Pins................................ 100.0 mA |
|
||||
|
|
|
|
|
|
DC Characteristics
TA = -40°C to 85°C, VCC = 2.7V to 5.5V
Symbol |
Parameter |
|
Condition |
|
|
|
|
|
Min |
Typ |
Max |
|
Units |
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||
V |
IL |
Input Low Voltage |
Except (XTAL) |
|
|
|
|
|
-0.5 |
|
0.3 V |
(1) |
V |
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CC |
|
||
VIL1 |
Input Low Voltage |
XTAL |
|
|
|
|
|
-0.5 |
|
0.1 VCC(1) |
V |
|||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(2) |
|
|
|
|
VIH |
Input High Voltage |
Except (XTAL, RESET) |
|
VCC + 0.5 |
V |
|||||||||||||
0.6 VCC |
|
|||||||||||||||||
VIH1 |
Input High Voltage |
XTAL |
|
|
|
|
|
(2) |
|
VCC + 0.5 |
V |
|||||||
|
|
|
|
|
0.7 VCC |
|
||||||||||||
VIH2 |
|
|
|
|
|
|
|
|
|
|
|
(2) |
|
|
|
|
||
Input High Voltage |
RESET |
|
|
|
|
|
|
VCC + 0.5 |
V |
|||||||||
|
|
|
|
|
0.85 VCC |
|
||||||||||||
VOL |
Output Low Voltage(1) |
|
I |
OL |
= 20 mA, V |
CC |
= 5V |
|
|
0.6 |
|
V |
||||||
Port B |
|
IOL = 10 mA, VCC = 3V |
|
|
0.5 |
|
V |
|||||||||||
|
|
|
|
|
|
|
||||||||||||
VOL |
Output Low Voltage |
|
IOL = 12 mA, VCC = 5V |
|
|
0.6 |
|
V |
||||||||||
PB5 |
|
IOL = 6 mA, VCC = 3V |
|
|
0.5 |
|
V |
|||||||||||
|
|
|
|
|
|
|
||||||||||||
|
|
|
Output High Voltage(4) |
|
I |
OH |
= -3 mA, V |
|
|
= 5V |
4.3 |
|
|
|
V |
|||
VOH |
|
|
|
|
CC |
|
|
|
|
|
|
|
|
|||||
Port B |
|
IOH = -1.5 mA, VCC = 3V |
2.3 |
|
|
|
V |
|||||||||||
|
|
|
|
|
|
|
||||||||||||
IIL |
Input Leakage Current |
|
VCC = 5.5V, Pin Low |
|
|
8.0 |
|
µA |
||||||||||
I/O Pin |
|
(absolute value) |
|
|
|
|
|
|
|
|||||||||
IIH |
Input Leakage Current |
|
VCC = 5.5V, Pin High |
|
|
8.0 |
|
µA |
||||||||||
I/O Pin |
|
(absolute value) |
|
|
|
|
|
|
|
|||||||||
RI/O |
I/O Pin Pull-up |
|
|
|
|
|
|
|
|
|
|
35.0 |
|
122 |
|
kΩ |
||
|
|
|
|
|
Active, VCC = 3V |
|
|
|
|
|
|
3.0 |
|
mA |
||||
|
|
|
|
|
Idle, VCC = 3V |
|
|
|
|
|
|
1.0 |
1.2 |
|
mA |
|||
I |
CC |
Power Supply Current |
|
Power-down(2), VCC = 3V |
|
9.0 |
15.0 |
|
µA |
|||||||||
|
|
|
WDT enabled |
|
|
|
|
|
|
|
||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||
|
|
|
|
|
Power-down(2), V |
CC |
= 3V |
|
<1.0 |
2.0 |
|
µA |
||||||
|
|
|
|
|
WDT disabled |
|
|
|
|
|
||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 ATtiny15L
1187D–12/01

|
|
|
|
|
|
|
|
ATtiny15L |
|
|
|
|
|
|
|
|
|
||
DC Characteristics (Continued) |
|
|
|
|
|||||
|
|
|
|
|
|
||||
TA = -40°C to 85°C, VCC = 2.7V to 5.5V |
|
|
|
|
|
|
|||
Symbol |
Parameter |
Condition |
Min |
|
Typ |
Max |
|
Units |
|
|
|
|
|
|
|
|
|
|
|
VACIO |
Analog Comparator |
VCC = 5V |
|
|
|
40.0 |
|
mV |
|
Input Offset Voltage |
VIN = VCC/2 |
|
|
|
|
||||
|
|
|
|
|
|
|
|
||
IACLK |
Analog Comparator |
VCC = 5V |
-50.0 |
|
|
50.0 |
|
nA |
|
Input Leakage Current |
VIN = VCC/2 |
|
|
|
|||||
|
|
|
|
|
|
|
|
||
TACID |
Analog Comparator |
VCC = 2.7V |
|
|
750.0 |
|
|
ns |
|
Initialization Delay |
VCC = 4.0V |
|
|
500.0 |
|
|
|||
|
|
|
|
|
|
|
|||
Note: 1. |
“Max” means the highest value where the pin is guaranteed to be read as low. |
|
|
|
|
2.“Min” means the lowest value where the pin is guaranteed to be read as high.
3.Although each I/O port can sink more than the test conditions (20 mA at VCC = 5V, 10 mA at VCC = 3V) under steady state conditions (non-transient), the following must be observed:
1] The sum of all IOL, for all ports, should not exceed 100 mA.
If IOL exceeds the test condition, VOL may exceed the related specification. Pins are not guaranteed to sink current greater than the listed test conditions.
4.Although each I/O port can source more than the test conditions (3 mA at VCC = 5V, 1.5 mA at VCC = 3V) under steady state conditions (non-transient), the following must be observed:
1] The sum of all IOH, for all ports, should not exceed 100 mA.
If IOH exceeds the test condition, VOH may exceed the related specification. Pins are not guaranteed to source current greater than the listed test condition.
5.Minimum VCC for Power-down is 1.5V (only with BOD disabled).
65
1187D–12/01

Typical
Characteristics
The following charts show typical behavior. These data are characterized but not tested. All current consumption measurements are performed with all I/O pins configured as inputs and with internal pull-ups enabled.
The current consumption is a function of several factors such as: Operating voltage, operating frequency, loading of I/O pins, switching rate of I/O pins, code executed and ambient temperature. The dominating factors are operating voltage and frequency.
The current drawn from capacitive loaded pins may be estimated (for one pin) as CL•VCC•f where CL = load capacitance, VCC = operating voltage and f = average switching frequency of I/O pin.
The difference between current consumption in Power-down mode with Watchdog Timer enabled and Power-down mode with Watchdog Timer disabled represents the differential current drawn by the Watchdog Timer.
Figure 36. Calibrated Internal RC Oscillator Frequency vs. VCC
= 5.0V |
|
Relative Calibrated RC Oscillator Frequency vs. Operating Voltage |
|
||||||
1.02 |
|
|
|
|
|
|
|
|
|
CC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5˚C |
TA = 45˚C |
|
V |
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
TA = 25˚C |
||
and |
1.00 |
|
|
|
|
|
|
|
TA = 70˚C |
|
|
|
|
|
|
|
|
||
25˚C |
|
|
|
|
|
|
|
TA = 85˚C |
|
0.98 |
|
|
|
|
|
|
|
|
|
at |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Frequency |
0.96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
to Nominal |
0.94 |
|
|
|
|
|
|
|
|
0.92 |
|
|
|
|
|
|
|
|
|
Relative |
0.90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Frequency |
0.88 |
|
|
|
|
|
|
|
|
2 |
2.5 |
3 |
3.5 |
4 |
4.5 |
5 |
5.5 |
6 |
|
|
|
|
|
|
|
|
|
|
Operating Voltage (V)
Note: The nominal calibrated RC oscillator frequency is 1.6 MHz.
66 ATtiny15L
1187D–12/01

ATtiny15L
Figure 37. Analog Comparator Offset Voltage vs. Common Mode Voltage
ANALOG COMPARATOR OFFSET VOLTAGE vs.
COMMON MODE VOLTAGE Vcc = 5V
|
18 |
|
|
|
|
|
|
|
|
|
|
|
16 |
|
|
|
|
|
|
|
|
|
|
|
14 |
|
|
|
|
|
|
|
TA = 25˚C |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(mV) |
12 |
|
|
|
|
|
|
|
|
TA = 85˚C |
|
|
|
|
|
|
|
|
|
|
|
||
Voltage |
10 |
|
|
|
|
|
|
|
|
|
|
8 |
|
|
|
|
|
|
|
|
|
|
|
Offset |
|
|
|
|
|
|
|
|
|
|
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
|
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
|
|
|
|
0 |
0.5 |
1 |
1.5 |
2 |
2.5 |
3 |
3.5 |
4 |
4.5 |
5 |
Common Mode Voltage (V)
Note: 1. Analog Comparator offset voltage is measured as absolute offset.
Figure 38. Analog Comparator Offset Voltage vs. Common Mode Voltage
ANALOG COMPARATOR OFFSET VOLTAGE vs.
COMMON MODE VOLTAGE Vcc = 2.7V
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
TA = 25˚C |
|
|
8 |
|
|
|
|
|
|
(mV) |
6 |
|
|
|
|
|
|
Voltage |
|
|
|
|
|
TA = 85˚C |
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
Offset |
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
0 |
0.5 |
1 |
1.5 |
2 |
2.5 |
3 |
Common Mode Voltage (V)
67
1187D–12/01

Figure 39. Analog Comparator Input Leakage Current
ANALOG COMPARATOR INPUT LEAKAGE CURRENT
|
|
|
|
|
|
|
V |
= 6V |
TA = 25˚C |
|
|
|
|
|
|
|
|
|
|
|
|
|
CC |
|
|
|
|
|
|
||
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(nA) |
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ACLK |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 |
0.5 |
1 |
1.5 |
2 |
2.5 |
3 |
3.5 |
4 |
4.5 |
5 |
5.5 |
6 |
6.5 |
7 |
VIN (V)
Figure 40. Watchdog Oscillator Frequency vs. VCC
WATCHDOG OSCILLATOR FREQUENCY vs. Vcc
|
1600 |
|
|
|
|
|
|
|
|
|
|
1400 |
|
|
|
|
|
|
|
TA = 25˚C |
|
|
|
|
|
|
|
|
|
|
|
|
|
1200 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TA = 85˚C |
|
(KHz) |
1000 |
|
|
|
|
|
|
|
|
|
800 |
|
|
|
|
|
|
|
|
|
|
RC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
F |
|
|
|
|
|
|
|
|
|
|
|
600 |
|
|
|
|
|
|
|
|
|
|
400 |
|
|
|
|
|
|
|
|
|
|
200 |
|
|
|
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
|
|
|
1,5 |
2 |
2,5 |
3 |
3,5 |
4 |
4,5 |
5 |
5,5 |
6 |
Vcc (V)
Note: 1. Sink and source capabilities of I/O ports are measured on one pin at a time.
68 ATtiny15L
1187D–12/01

ATtiny15L
Figure 41. Pull-up Resistor Current vs. Input Voltage
PULL-UP RESISTOR CURRENT vs. INPUT VOLTAGE
|
|
|
|
|
|
Vcc = 5V |
|
|
|
|
|
|
120 |
|
|
TA = 25˚C |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TA = 85˚C |
|
|
|
|
|
|
|
|
80 |
|
|
|
|
|
|
|
|
|
|
A) |
|
|
|
|
|
|
|
|
|
|
|
( |
|
|
|
|
|
|
|
|
|
|
|
OP |
60 |
|
|
|
|
|
|
|
|
|
|
I |
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
|
|
|
|
|
|
|
|
|
|
20 |
|
|
|
|
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
|
|
|
|
0 |
0.5 |
1 |
1.5 |
2 |
2.5 |
3 |
3.5 |
4 |
4.5 |
5 |
VOP (V)
Figure 42. Pull-up Resistor Current vs. Input Voltage
PULL-UP RESISTOR CURRENT vs. INPUT VOLTAGE
|
|
|
|
Vcc = 2.7V |
|
|
|
|
30 |
|
|
|
|
|
|
|
|
|
TA = 25˚C |
|
|
|
|
|
25 |
|
|
|
|
|
|
|
|
|
TA = 85˚C |
|
|
|
|
|
20 |
|
|
|
|
|
|
( A) |
15 |
|
|
|
|
|
|
OP |
|
|
|
|
|
|
|
I |
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
5 |
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
0 |
0.5 |
1 |
1.5 |
2 |
2.5 |
3 |
VOP (V)
69
1187D–12/01

Figure 43. I/O Pin Sink Current vs. Output Voltage
I/O PIN SINK CURRENT vs. OUTPUT VOLTAGE
|
|
|
|
Vcc = 5V |
|
|
|
|
70 |
|
|
TA = 25˚C |
|
|
|
|
|
|
|
|
|
|
|
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
TA = 85˚C |
|
|
50 |
|
|
|
|
|
|
|
40 |
|
|
|
|
|
|
(mA) |
30 |
|
|
|
|
|
|
OL |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I |
|
|
|
|
|
|
|
|
20 |
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
0 |
0.5 |
1 |
1.5 |
2 |
2.5 |
3 |
VOL (V)
Figure 44. I/O Pin Source Current vs. Output Voltage
I/O PIN SOURCE CURRENT vs. OUTPUT VOLTAGE
|
|
|
|
|
|
|
Vcc = 5V |
|
|
|
|
|
|
20 |
|
|
TA |
= 25˚C |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
|
TA |
= 85˚C |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
|
|
|
|
|
|
|
|
|
|
(mA) |
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OH |
8 |
|
|
|
|
|
|
|
|
|
|
|
I |
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
|
|
|
|
|
0 |
0.5 |
1 |
1.5 |
2 |
2.5 |
3 |
3.5 |
4 |
4.5 |
5 |
VOH(V)
70 ATtiny15L
1187D–12/01

ATtiny15L
Figure 45. I/O Pin Sink Current vs. Output Voltage
I/O PIN SINK CURRENT vs. OUTPUT VOLTAGE
|
|
|
Vcc = 2.7V |
|
|
|
25 |
|
TA |
= 25˚C |
|
|
|
|
|
||
|
20 |
|
|
|
|
|
|
|
|
TA = 85˚C |
|
|
15 |
|
|
|
|
(mA) |
10 |
|
|
|
|
OL |
|
|
|
|
|
I |
|
|
|
|
|
|
5 |
|
|
|
|
|
0 |
|
|
|
|
|
0 |
0.5 |
1 |
1.5 |
2 |
VOL (V)
Figure 46. I/O Pin Source Current vs. Output Voltage
I/O PIN SOURCE CURRENT vs. OUTPUT VOLTAGE
|
|
|
|
Vcc = 2.7V |
|
|
|
|
6 |
TA |
= 25˚C |
|
|
|
|
|
|
|
|
|
|
||
|
5 |
TA |
= 85˚C |
|
|
|
|
|
|
|
|
|
|
||
|
4 |
|
|
|
|
|
|
(mA) |
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OH |
|
|
|
|
|
|
|
I |
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
0 |
0.5 |
1 |
1.5 |
2 |
2.5 |
3 |
VOH(V)
71
1187D–12/01

Figure 47. I/O Pin Input Threshold Voltage vs. VCC
I/O PIN INPUT THRESHOLD VOLTAGE vs. Vcc
|
|
TA = 25˚C |
|
|
2.5 |
|
|
|
2 |
|
|
(V) |
1.5 |
|
|
Voltage |
|
|
|
|
|
|
|
Threshold |
1 |
|
|
|
|
|
|
|
0.5 |
|
|
|
0 |
|
|
|
2.7 |
4.0 |
5.0 |
Vcc
Figure 48. I/O Pin Input Hysteresis vs. VCC
I/O PIN INPUT HYSTERESIS vs. Vcc
|
|
TA = 25˚C |
|
|
0.18 |
|
|
|
0.16 |
|
|
(V) |
0.14 |
|
|
0.12 |
|
|
|
hysteresis |
|
|
|
0.1 |
|
|
|
|
|
|
|
Input |
0.08 |
|
|
|
|
|
|
|
0.06 |
|
|
|
0.04 |
|
|
|
0.02 |
|
|
|
0 |
|
|
|
2.7 |
4.0 |
5.0 |
Vcc
72 ATtiny15L
1187D–12/01