TINYAVR® M ICROCONTROLLERS

Get Performance and Flexibility at Low Cost

THE FLASH TINYAVR

MAKES IT POSSIBLE!

The tinyAVR Flash microcontroller family is priced at less than a dollar in high volume, and offers an unrivaled combination of price, performance and flexibility.

The same Flash microcontroller can be used for design, prototype evaluation and volume production resulting in cost reduction by minimizing inventory. Any program changes in standards, features or software updates can be made on-the-fly even after system deployment, eliminating the scrap associated with OTP or Mask ROM revisions. TINYAVR S HORTER T IME- TO-MARKET AND L OWER C OST

ATtiny26 Adds Intelligence to Battery Chargers While Saving Cost

Advanced A/D functions and high-speed PWM on a micro- controller adds intelligence to a traditional battery charger. The efficient and flexible tinyAVR enable easy algorithm changes and history monitoring together with serial communication, offering a low cost solution for a high-end battery charger.

Generate Charging Voltage and Current High-speed 250 kHz PWM with 8-bit resolution allows implementation of a low cost buck converter by eliminating the external PWM stage.

Measure Current Integrated differential A/D converter with 20x gain stage eliminates an operational amplifier and reduces the resistor size minimizing energy consumption in the measurement loop.

Measure Voltage The 10-bit A/D Converter enables monitoring over the complete voltage range during the charging process while providing the necessary accuracy for the control algorithms.

tinyAVR Enables Low Cost Motor Control

Several tinyAVR devices have the power and functionality needed for low cost motor control solutions, like cooling fan control. The ATtiny25 can drive Brushless DC fans with full speed-control, controlled either by its integrated temperature sensor, or externally through its serial communica- tion module. The ATtiny13 can drive sensorless brushless DC motors with speed control.

Accurate Full Range Speed Control Highly configurable 2-channel 8-bit PWM with 18.75 kHz base frequency for minimum acoustic noise.

Stall Detection Combination of software and independant intelligent watchdog timer allows safe detection and restarting of the fan in case of a stall condition.

Back-EMF Measurement Timer controlled ADC allows measurement of back-EMF when switching noise is at a minimum.

Intelligent System Integration and Communication Hardware support for TWI and SPI that are commonly used as onboard bus in computer and industrial environments.

The tinyAVR Family is optimized to help customers reduce their system cost and shorten time-to-market in many other application domains. TINYAVR P RODUCTS

Product Flash EEPROM SRAM debug ADC PWM Temp. Samples (KB) (Bytes) (Bytes) I/O Pins USI UART WIRE Ch. (kHz) Sensor Availability

ATtiny13 1 64 64 6 8 – Yes Yes 4 78 – Now

ATtiny25 2 128 128 6 8 Yes Yes Yes 4 250 Yes Q2/2005

ATtiny45 4 256 256 6 8 Yes Yes Yes 4 250 Yes Now

ATtiny85 8 512 512 6 8 Yes Yes Yes 4 250 Yes Q2/2005

ATtiny24 2 128 128 12 14 Yes Yes Yes 8 78 Yes Now

ATtiny44 4 256 256 12 14 Yes Yes Yes 8 78 Yes Q2/2005

ATtiny84 8 512 512 12 14 Yes Yes Yes 8 78 Yes Q2/2005

ATtiny26 2 128 128 16 20 Yes Yes – 11 250 – Now

ATtiny46 4 256 256 16 20 Yes Yes Yes 11 250 Yes Q3/2005

ATtiny86 8 512 512 16 20 Yes Yes Yes 11 250 Yes Q3/2005

ATtiny2313 2 128 128 18 20 Yes Yes Yes – 78 – Now

ATtiny28 2 – – 19 32 – Yes – – – – Now

USI: Universal Serial Interface UART: Universal Asynchronous Receiver Universal Serial Interface Transmitter ADC Ch.: Number of 10-bit ADC channels Many tinyAVRs are equipped with a Universal Serial Interface (USI), which is a communications PWM: Frequency of 8-bit PWM Temp. Sensor: Temperature sensor on chip module mainly developed for Two-Wire Interfaces (TWI) and Serial Peripheral Interfaces (SPI). In Voltage range: all devices are available in 1.8 to 5.5V voltage range TWI mode the USI is compatible with the I2C protocol and supports both Standard and Fast Temperature range: all devices are Mode. For power conservation purposes, the USI in TWI mode is capable of waking up the available in Industrial temperature range (-40°C to +85°C) device from all sleep modes.

In SPI mode the USI handles both Mode 0 and Mode 1 and allows high-speed communication with a vast amount of peripheral devices. Both master and slave operation is supported.

The USI module can also be used in UART implementations, reducing MCU processing time as compared to a software implementation. Using the USI, bits are automatically shifted out and communication can be interrupt-based.

Package Technology

Standard Packages 8-, 20- and 28-pin PDIP 32-pin TQFP 8-pin SOP 8- and 20-pin SOIC 20- and 32-pin QFN/MLF

Die and Chip Scale Packages The tinyAVR is available in wafer and die form shipped in waffle pack plus the Quad Flat pack No lead (QFN) package.

AVR® Architecture The AVR microcontroller is fast enough to execute powerful instructions in a single clock cycle and fast enough in throughput to provide the latitude you need to optimize power consumption. The MCU operates at up to 20 MIPS and supports a variety of memory densities from 1K to 256K Bytes of Flash program memory. AVR architecture is optimized for high-level C language programming and most tinyAVR family members have 10-bit A/D converters integrated on-chip and the debugWIRE for on-chip debug via one I/O pin. TINYAVR D EVELOPMENT T OOLS

Atmel Corporation 2325 Orchard Parkway Development Software San Jose, CA 95131 USA AVR Studio® development software provides an easy-to-use TEL.: 1 (408) 441-0311 FAX.: 1 (408) 487-2600 human interface for Starter Kits and In-Circuit Regional Headquarters Emulators. The development software contains a simulator, Europe Atmel Sarl , programming software and assembler. Route des Arsenaux 41 Case Postale 80 CH-1705 Fribourg AVR Studio is available free from the Atmel web site. Switzerland TEL.: (41) 26-426-5555 FAX.: (41) 26-426-5500 Starter Kit

Asia The STK500 is a complete starter kit, programming tool Room 1219 Chinachem Golden Plaza and development system for Atmel AVR microcon- 77 Mody Road Tsimshatsui East Kowloon trollers. The I/O ports are accessible through pin headers Hong Kong TEL.: (852) 2721-9778 that can be used for connecting the on-board LEDs, push FAX.: (852) 2722-1369 buttons or external signals. Japan 9F, Tonetsu Shinkawa Bldg. 1-24-8 Shinkawa By using AVR Studio as front end programming software, Chuo-ku, Tokyo 104-0033 Japan the AVRISP can support almost all tinyAVR devices for Serial In-System Programming. TEL.: (81) 3-3523-3551 FAX.: (81) 3-3523-7581 In-Circuit Emulation Web Site http://www.atmel.com In-Circuit Emulators provided by Atmel include a variety of powerful Literature Requests www.atmel.com/literature debugging support tools to shorten the design time of complex applications. They include source level debugging, full execution control, program breakpoints, full I/O-view and watches.

Disclaimer: The information in this document is debugWIRE provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is debugWIRE is a single-wire, on-chip debug system. The system uses granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDI- only the Reset line for communication, which means all other AVR functionality is available during TIONS OF SALES LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY debugging. Program development is simplified considerably when the application can be debugged EXPRESS, IMPLIED OR STATUTORY WAR- RANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE on the target device in real time. IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDI- RECT, CONSEQUENTIAL, PUNITIVE, SPE- CIAL OR INCIDENTAL DAMMAGES Starter Kits In-Circuit Emulators (INCLUDING, WITHOUT LIMITATION, DAM- AGES FOR LOSS AND PROFITS, BUSINESS Product AVRISP STK500 JTAGICE mkII INTERRUPTION, OR LOSS OF INFORMA- TION) ARISING OUT OF THE USE OR INABIL- ATtiny13 X X X ITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSI- ATtiny2313 X X X BILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to ATtiny24 X X X the accuracy or completeness of the contents of this document and reserves the right to ATtiny25 X X X make changes to specifications and products descriptions at any time without notice. Atmel does not make any commitment to update the ATtiny26 X X – information contained herein. Atmel’s products are not intended, authorized, or warranted for ATtiny28 – X – use as components in applications intended to support or sustain life. ATtiny44 X X X © Atmel Corporation 2005. All rights ATtiny45 X X X reserved. Atmel®, logo and combinations thereof, AVR®, AVR Studio® and tinyAVR® ATtiny46 X X X are registered trademarks, Everywhere You AreSM and others are the trademarks of ATtiny84 X X X Atmel Corporation or its subsidiaries. Other terms and product may be trade- ATtiny85 X X X marks of others. ATtiny86 X X X 4014C-AVR-02/05/10M