- •Pin Configuration
- •Features
- •Description
- •Pin Descriptions
- •Port B (PB5..PB0)
- •Analog Pins
- •Internal Oscillators
- •ATtiny15L Architectural Overview
- •The General-purpose Register File
- •The ALU – Arithmetic Logic Unit
- •The Flash Program Memory
- •The Program and Data Addressing Modes
- •Register Direct, Single-register Rd
- •Register Indirect
- •Register Direct, Two Registers Rd and Rr
- •I/O Direct
- •Relative Program Addressing, RJMP and RCALL
- •Constant Addressing Using the LPM Instruction
- •Subroutine and Interrupt Hardware Stack
- •The EEPROM Data Memory
- •Memory Access and Instruction Execution Timing
- •I/O Memory
- •The Status Register – SREG
- •Reset and Interrupt Handling
- •ATtiny15L Reset Sources
- •Power-on Reset
- •External Reset
- •Brown-out Detection
- •Watchdog Reset
- •MCU Status Register – MCUSR
- •Internal Voltage Reference
- •Voltage Reference Enable Signals and Start-up Time
- •Interrupt Handling
- •Interrupt Response Time
- •The General Interrupt Mask Register – GIMSK
- •The General Interrupt Flag Register – GIFR
- •The Timer/Counter Interrupt Mask Register – TIMSK
- •The Timer/Counter Interrupt Flag Register – TIFR
- •External Interrupt
- •Pin Change Interrupt
- •The MCU Control Register – MCUCR
- •Sleep Modes
- •Idle Mode
- •ADC Noise Reduction Mode
- •Power-down Mode
- •Tunable Internal RC Oscillator
- •The System Clock Oscillator Calibration Register – OSCCAL
- •Internal PLL for Fast Peripheral Clock Generation
- •Timer/Counters
- •The Timer/Counter0 Prescaler
- •The Timer/Counter1 Prescaler
- •The Special Function IO Register – SFIOR
- •The 8-bit Timer/Counter0
- •The Timer/Counter0 Control Register – TCCR0
- •The Timer Counter 0 – TCNT0
- •The 8-bit Timer/Counter1
- •The Timer/Counter1 Control Register – TCCR1
- •The Timer/Counter1 – TCNT1
- •Timer/Counter1 Output Compare RegisterA – OCR1A
- •Timer/Counter1 in PWM Mode
- •Timer/Counter1 Output Compare RegisterB – OCR1B
- •The Watchdog Timer
- •The Watchdog Timer Control Register – WDTCR
- •EEPROM Read/Write Access
- •The EEPROM Address Register – EEAR
- •The EEPROM Data Register – EEDR
- •The EEPROM Control Register – EECR
- •Preventing EEPROM Corruption
- •The Analog Comparator
- •The Analog Comparator Control and Status Register – ACSR
- •The Analog-to-digital Converter, Analog Multiplexer and Gain Stages
- •Feature List:
- •Operation
- •Prescaling and Conversion Timing
- •ADC Noise Canceler Function
- •The ADC Multiplexer Selection Register – ADMUX
- •The ADC Control and Status Register – ADCSR
- •The ADC Data Register – ADCL and ADCH
- •ADLAR = 0:
- •Scanning Multiple Channels
- •ADC Noise-canceling Techniques
- •ADC Characteristics
- •I/O Port B
- •Alternative Functions of Port B
- •The Port B Data Register – PORTB
- •The Port B Data Direction Register – DDRB
- •The Port B Input Pins Address – PINB
- •PORT B as General Digital I/O
- •Alternate Functions of Port B
- •Memory Programming
- •Program and Data Memory Lock Bits
- •Fuse Bits
- •Signature Bytes
- •Calibration Byte
- •Programming the Flash
- •High-voltage Serial Programming
- •High-voltage Serial Programming Algorithm
- •High-voltage Serial Programming Characteristics
- •Low-voltage Serial Downloading
- •Low-voltage Serial Programming Algorithm
- •Data Polling
- •Low-voltage Serial Programming Characteristics
- •Electrical Characteristics
- •Absolute Maximum Ratings
- •DC Characteristics – Preliminary Data
- •Typical Characteristics – PRELIMINARY DATA
- •ATtiny15L Register Summary
- •Ordering Information
Low-voltage Serial Programming Characteristics
Figure 35. Low-voltage Serial Programming Timing
MOSI
tOVSH |
|
|
|
tSHOX |
tSLSH |
|
|
SCK
tSHSL
MISO
tSLIV
Table 27. Low-voltage Serial Programming Characteristics, TA = -40°C to 85°C, VCC = 2.7 - 5.5V (unless otherwise noted)
Symbol |
Parameter |
Min |
Typ |
Max |
Units |
|
|
|
|
|
|
1/tCLCL |
RC Oscillator Frequency (VCC = 2.7 - 5.5V) |
0.8 |
1.6 |
|
MHz |
tCLCL |
RC Oscillator Period (VCC = 2.7 - 5.5V) |
|
625.0 |
1250.0 |
ns |
tSHSL |
SCK Pulse Width High |
2.0 tCLCL |
|
|
ns |
tSLSH |
SCK Pulse Width Low |
2.0 tCLCL |
|
|
ns |
tOVSH |
MOSI Setup to SCK High |
tCLCL |
|
|
ns |
tSHOX |
MOSI Hold after SCK High |
2.0 tCLCL |
|
|
ns |
tSLIV |
SCK Low to MISO Valid |
10.0 |
16.0 |
32.0 |
ns |
Table 28. Minimum Wait Delay after the Chip Erase Instruction
Symbol |
2.7V |
4.0V |
5.0V |
|
|
|
|
tWD_ERASE |
6.0 ms |
5.0 ms |
4.0 ms |
Table 29. Minimum Wait Delay after Writing a Flash or EEPROM Location
Symbol |
2.7V |
4.0V |
5.0V |
|
|
|
|
tWD_PROG_EE |
6.0 ms |
5.0 ms |
4.0 ms |
tWD_PROG_FL |
3.0 ms |
2.5 ms |
2.0 ms |
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 |
||||
|
|
|
|
|
implied. Exposure to absolute maximum rating |
|
Voltage on RESET with Respect to Ground -1.0V to +13.0V |
||||||
conditions for extended periods may affect |
||||||
|
|
|
|
|
||
Maximum Operating Voltage |
6.0V |
device reliability. |
||||
|
||||||
DC Current per I/O Pin ............................................... |
40.0 mA |
|
||||
DC Current VCC and GND Pins................................ |
100.0 mA |
|
||||
|
|
|
|
|
|
|
56 |
ATtiny15L |
|
|
||
|
ATtiny15L
DC Characteristics – Preliminary Data
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 |
CC |
(1) |
V |
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
V |
IL1 |
Input Low Voltage |
XTAL |
|
|
|
-0.5 |
|
|
0.1 V |
CC |
(1) |
V |
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
VIH |
|
|
|
|
|
|
|
|
|
(2) |
|
|
|
|
|
|
|
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 |
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
(2) |
|
|
|
|
|
|
VIH2 |
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 |
||||
ICC |
Power Supply Current |
|
Power-down(2), VCC = 3V |
|
|
9.0 |
15.0 |
|
µA |
||||||||
|
|
|
|
WDT enabled |
|
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
Power-down(2), V |
= 3V |
|
|
<1.0 |
2.0 |
|
µA |
||||||
|
|
|
|
WDT disabled |
CC |
|
|
|
|||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
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).
57
Typical Characteristics – PRELIMINARY DATA
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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TA = 255°C˚C |
TA = 45˚C |
|
V |
|
|
|
|
|
|
|
||
and |
1.00 |
|
|
|
|
|
|
|
TA = 70˚C |
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
25˚C |
|
|
|
|
|
|
|
TA = 85˚C |
|
0.98 |
|
|
|
|
|
|
|
|
|
at |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Frequency |
0.96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Nominal |
0.94 |
|
|
|
|
|
|
|
|
0.92 |
|
|
|
|
|
|
|
|
|
to |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
58 |
ATtiny15L |
|
|
||
|
ATtiny15L
Figure 37. Analog Comparator Offset Voltage vs. Common Mode Voltage
ANALOG COMPARATOR OFFSET VOLTAGE vs.
COMMON MODE VOLTAGE Vcc = 5V
|
18 |
|
|
|
|
|
|
|
|
|
|
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TA = 25˚C |
|
|
|
14 |
|
|
|
|
|
|
|
|
|
|
(mV) |
12 |
|
|
|
|
|
|
|
|
TA = 85˚C |
|
|
|
|
|
|
|
|
|
|
|
||
Voltage |
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Offset |
8 |
|
|
|
|
|
|
|
|
|
|
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: 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) |
|
|
|
|
|
|
|
Voltage |
6 |
|
|
|
|
|
|
|
|
|
|
|
|
TA = 85˚C |
|
|
|
|
|
|
|
|
|
Offset |
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
0 |
0.5 |
1 |
1.5 |
2 |
2.5 |
3 |
Common Mode Voltage (V)
59
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: Sink and source capabilities of I/O ports are measured on one pin at a time.
60 |
ATtiny15L |
|
|
||
|
ATtiny15L
Figure 41. Pull-up Resistor Current vs. Input Voltage
PULL-UP RESISTOR CURRENT vs. INPUT VOLTAGE
|
|
|
|
|
V |
= 5V |
|
|
|
|
|
|
|
|
|
|
cc |
|
|
|
|
|
|
|
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
|
|
|
V |
= 2.7V |
|
|
|
|
|
|
cc |
|
|
|
|
|
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)
61
Figure 43. I/O Pin Sink Current vs. Output Voltage
I/O PIN SINK CURRENT vs. OUTPUT VOLTAGE
|
|
|
|
V |
= 5V |
|
|
|
|
|
|
cc |
|
|
|
|
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
|
|
|
|
|
|
V |
|
= 5V |
|
|
|
|
|
|
|
|
|
|
|
cc |
|
|
|
|
|
|
|
|
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)
62 |
ATtiny15L |
|
|
||
|
ATtiny15L
Figure 45. I/O Pin Sink Current vs. Output Voltage
I/O PIN SINK CURRENT vs. OUTPUT VOLTAGE
|
|
V |
= 2.7V |
|
|
|
|
cc |
|
|
|
|
25 |
|
TA = 25˚C |
|
|
|
|
|
|
|
|
|
20 |
|
|
|
|
|
|
|
TA = 85˚C |
|
|
|
15 |
|
|
|
|
(mA) |
|
|
|
|
|
OL |
10 |
|
|
|
|
|
|
|
|
|
|
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
|
|
|
V |
|
= 2.7V |
|
|
|
|
|
|
cc |
|
|
|
|
|
|
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)
63
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 |
|
|
Threshold Voltage |
|
|
|
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 |
|
|
|
0.14 |
|
|
(V) |
|
|
|
Input hysteresis |
0.12 |
|
|
0.1 |
|
|
|
0.08 |
|
|
|
|
0.06 |
|
|
|
0.04 |
|
|
|
0.02 |
|
|
|
0 |
|
|
|
2.7 |
4.0 |
5.0 |
Vcc
64 |
ATtiny15L |
|
|
||
|
