ATTINY25-20PI

ATTINY25-20PI Datasheet


120 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers Fully Static Operation<br>• Non-volatile Program and Data Memories 2/4/8K Byte of In-System Programmable Program Memory Flash ATtiny25/45/85

Part Datasheet
ATTINY25-20PI ATTINY25-20PI ATTINY25-20PI (pdf)
Related Parts Information
ATTINY45V-10PI ATTINY45V-10PI ATTINY45V-10PI
ATTINY25-20SI ATTINY25-20SI ATTINY25-20SI
ATTINY25V-10PI ATTINY25V-10PI ATTINY25V-10PI
ATTINY25V-10SI ATTINY25V-10SI ATTINY25V-10SI
ATTINY45-20PI ATTINY45-20PI ATTINY45-20PI
ATTINY45-20SI ATTINY45-20SI ATTINY45-20SI
ATTINY45V-10SI ATTINY45V-10SI ATTINY45V-10SI
ATTINY85-20PI ATTINY85-20PI ATTINY85-20PI
ATTINY85-20SI ATTINY85-20SI ATTINY85-20SI
ATTINY85V-10PI ATTINY85V-10PI ATTINY85V-10PI
ATTINY85V-10SI ATTINY85V-10SI ATTINY85V-10SI
PDF Datasheet Preview
• High Performance, Low Power 8-Bit Microcontroller
• Advanced RISC Architecture
120 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers Fully Static Operation
• Non-volatile Program and Data Memories 2/4/8K Byte of In-System Programmable Program Memory Flash ATtiny25/45/85

Endurance 10,000 Write/Erase Cycles 128/256/512 Bytes In-System Programmable EEPROM ATtiny25/45/85

Endurance 100,000 Write/Erase Cycles 128/256/512 Bytes Internal SRAM ATtiny25/45/85 Programming Lock for Self-Programming Flash Program and EEPROM Data

Security
• Peripheral Features
8-bit Timer/Counter with Prescaler and Two PWM Channels 8-bit High Speed Timer/Counter with Separate Prescaler
2 High Frequency PWM Outputs with Separate Output Compare Registers Programmable Dead Time Generator Universal Serial Interface with Start Condition Detector 10-bit ADC 4 Single Ended Channels 2 Differential ADC Channel Pairs with Programmable Gain 1x, 20x Programmable Watchdog Timer with Separate On-chip Oscillator On-chip Analog Comparator
• Special Microcontroller Features debugWIRE On-chip Debug System In-System Programmable via SPI Port External and Internal Interrupt Sources Low Power Idle, ADC Noise Reduction, and Power-down Modes Enhanced Power-on Reset Circuit Programmable Brown-out Detection Circuit Internal Calibrated Oscillator
• I/O and Packages Six Programmable I/O Lines 8-pin PDIP and 8-pin SOIC
• Operating Voltage - 5.5V for ATtiny25/45/85V - 5.5V for ATtiny25/45/85
• Speed Grade ATtiny25/45/85V 0 - 4 MHz - 5.5V, 0 - 10 MHz - 5.5V ATtiny25/45/85 0 - 10 MHz - 5.5V, 0 - 20 MHz - 5.5V
• Industrial Temperature Range
• Low Power Consumption Active Mode 1 MHz, 1.8V 450µA Power-down Mode 0.1µA at 1.8V
8-bit Microcontroller with 2/4/8K Bytes In-System Programmable Flash ATtiny25/V ATtiny45/V ATtiny85/V Preliminary Summary

Note This is a summary document. A complete document is available on our Web site at

Pin Configurations

Figure Pinout ATtiny25/45/85

PDIP/SOIC

PCINT5/RESET/ADC0/dW PB5 1 PCINT3/XTAL1/OC1B/ADC3 PB3 2 PCINT4/XTAL2/CLKO/OC1B/ADC2 PB4 3

GND 4
8 VCC 7 PB2 SCK/USCK/SCL/ADC1/T0/INT0/PCINT2 6 PB1 MISO/DO/AIN1/OC0B/OC1A/PCINT1 5 PB0 MOSI/DI/SDA/AIN0/OC0A/OC1A/AREF/PCINT0

Disclaimer

Typical values contained in this data sheet are based on simulations and characterization of other AVR microcontrollers manufactured on the same process technology. Min and Max values will be available after the device is characterized.
2 ATtiny25/45/85

ATtiny25/45/85

Overview

The ATtiny25/45/85 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 ATtiny25/45/85 achieves throughputs approaching 1 MIPS per MHz allowing the system designer to optimize power consumption versus processing speed.

Block Diagram

Figure Block Diagram
8-BIT DATABUS

VCC GND

PROGRAM COUNTER

PROGRAM FLASH

INSTRUCTION REGISTER

INSTRUCTION DECODER

CONTROL LINES

PROGRAMMING LOGIC

STACK POINTER

SRAM

GENERAL PURPOSE REGISTERS

STATUS REGISTER

WATCHDOG TIMER

MCU CONTROL REGISTER

MCU STATUS REGISTER

TIMER/ COUNTER0

TIMER/ COUNTER1

UNIVERSAL SERIAL
Ordering Information

ATtiny25

Speed MHz 3

Power Supply
Ordering Code

Package 1

Operational Range

ATtiny25V-10PI

ATtiny25V-10PU 2
- 5.5V

ATtiny25V-10SI

ATtiny25V-10SU 2

Industrial -40°C to 85°C

ATtiny25-20PI

ATtiny25-20PU 2
- 5.5V

ATtiny25-20SI

ATtiny25-20SU 2

Industrial -40°C to 85°C
This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities.

Pb-free packaging alternative, complies to the European Directive for Restriction of Hazardous Substances RoHS directive . Also Halide free and fully Green.

For Speed vs. VCC,see Figure on page 168

Package Type
8-lead, Wide, Plastic Dual Inline Package PDIP
8-lead, Wide, Plastic Gull-Wing Small Outline EIAJ SOIC

ATtiny45

Speed MHz 3

Power Supply
Ordering Code

Package 1

Operational Range

ATtiny45V-10PI

ATtiny45V-10PU 2
- 5.5V

ATtiny45V-10SI

ATtiny45V-10SU 2

Industrial -40°C to 85°C

ATtiny45-20PI

ATtiny45-20PU 2
- 5.5V

ATtiny45-20SI

ATtiny45-20SU 2

Industrial -40°C to 85°C
This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities.

Pb-free packaging alternative, complies to the European Directive for Restriction of Hazardous Substances RoHS directive . Also Halide free and fully Green.

For Speed vs. VCC,see Figure on page 168

Package Type
8-lead, Wide, Plastic Dual Inline Package PDIP
8-lead, Wide, Plastic Gull-Wing Small Outline EIAJ SOIC
10 ATtiny25/45/85

ATtiny25/45/85

ATtiny85

Speed MHz 3

Power Supply
Ordering Code

Package 1

Operational Range

ATtiny85V-10PI

ATtiny85V-10PU 2
- 5.5V

ATtiny85V-10SI

ATtiny85V-10SU 2

Industrial -40°C to 85°C

ATtiny85-20PI

ATtiny85-20PU 2
- 5.5V

ATtiny85-20SI

ATtiny85-20SU 2

Industrial -40°C to 85°C
This device can also be supplied in wafer form. Please contact your local Atmel sales office for detailed ordering information and minimum quantities.

Pb-free packaging alternative, complies to the European Directive for Restriction of Hazardous Substances RoHS directive . Also Halide free and fully Green.

For Speed vs. VCC,see Figure on page 168

Package Type
8-lead, Wide, Plastic Dual Inline Package PDIP
8-lead, Wide, Plastic Gull-Wing Small Outline EIAJ SOIC

Packaging Information

Top View

End View
4 PLCS

Side View

COMMON DIMENSIONS Unit of Measure = inches

SYMBOL A A2 b b2 b3 c D D1 E E1 e eA L

MIN NOM MAX

NOTE 2

This drawing is for general information only refer to JEDEC Drawing MS-001, Variation BA for additional information. Dimensions A and L are measured with the package seated in JEDEC seating plane Gauge GS-3. D, D1 and E1 dimensions do not include mold Flash or protrusions. Mold Flash or protrusions shall not exceed inch. E and eA measured with the leads constrained to be perpendicular to datum. Pointed or rounded lead tips are preferred to ease insertion. b2 and b3 maximum dimensions do not include Dambar protrusions. Dambar protrusions shall not exceed mm .
01/09/02
2325 Orchard Parkway R San Jose, CA 95131

TITLE 8P3, 8-lead, Wide Body, Plastic Dual In-line Package PDIP
12 ATtiny25/45/85

ATtiny25/45/85

Top View

End View

Side View

SYMBOL A A1 b C D E1 E L e

COMMON DIMENSIONS Unit of Measure = mm

MIN NOM

NOTE
5 2, 3

Notes This drawing is for general information only refer to EIAJ Drawing EDR-7320 for additional information. Mismatch of the upper and lower dies and resin burrs are not included. It is recommended that upper and lower cavities be equal. If they are different, the larger dimension shall be regarded. Determines the true geometric position. Values b and C apply to pb/Sn solder plated terminal. The standard thickness of the solder layer shall be mm.
10/7/03
2325 Orchard Parkway R San Jose, CA 95131

TITLE 8S2, 8-lead, Body, Plastic Small Outline Package EIAJ

Errata
• Too high power down power consumption
• DebugWIRE looses communication when single stepping into interrupts
• PLL not locking

Too high power down power consumption Three situations will lead to a too high power down power consumption. These are:

An external clock is selected by fuses, but the IO PORT is still enabled as an output. The EEPROM is read before entering power down. VCC is volts or higher. Problem fix / Workaround When using external clock, avoid setting the clock pin as Output. Do not read the EEPROM if power down power consumption is important. Use VCC lower than Volts.

DebugWIRE looses communication when single stepping into interrupts When receiving an interrupt during single stepping, debugwire will loose
communication.

Problem fix / Workaround When singlestepping disable interrupts. When debugging interrupts, use breakpoints within the interrupt routine, and run into
the interrupt.
More datasheets: 26200A-205 | B390-13-F | B380-13 | B370-13 | B3100-13 | B3100-13-F | B390-13 | B380-13-F | B370-13-F | ATTINY45V-10PI


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived ATTINY25-20PI Datasheet file may be downloaded here without warranties.

Datasheet ID: ATTINY25-20PI 519326