Application Note. 8-bit Microcontrollers. AVR092: Replacing ATtiny11/12 by ATtiny13. Features. Introduction

Similar documents
8-bit Microcontroller. Application Note. AVR084: Replacing ATmega323 by ATmega32. Features. Introduction. ATmega323 Errata Corrected in ATmega32

8-bit Microcontroller. Application Note. AVR400: Low Cost A/D Converter

8-bit Microcontroller. Application Note. AVR085: Replacing AT90S8515 by ATmega8515. Features. Introduction. AT90S8515 Errata Corrected in ATmega8515

8-bit Microcontroller. Application Note. AVR083: Replacing ATmega163 by ATmega16

8-bit Microcontroller. Application Note. AVR086: Replacing AT90S8535 by ATmega8535

Low-power Flasher IC with 18-m Shunt U6432B

8-bit RISC Microcontroller. Application Note. AVR182: Zero Cross Detector

ATA6140. Flasher Application Module. Application Note. ATA Flasher Application Module. 1. Description

Zero-voltage Switch with Adjustable Ramp T2117

Flasher, 18-mΩ Shunt, Frequency Doubling Disabling U6433B

Flasher, 30 mω Shunt, Pilot Lamp to GND or V Batt U2043B

Current Monitor IC U4793B

Flasher IC with U643B

AVR055: Using a 32kHz XTAL for run-time calibration of the internal RC. 8-bit Microcontrollers. Application Note. Features.

8-bit Microcontroller. Application Note. AVR081: Replacing AT90S4433 by ATmega8. Features. Introduction. AT90S4433 Errata Corrected in ATmega8

MHz High Linearity SiGe Active Receive Mixer T0782. Preliminary

Programmable SLI AT94K AT94S. Application Note. DTMF Generator

Read-only Transponder TK5530

Digital Window Watchdog Timer U5021M

1000-MHz Quadrature Modulator U2790B. Features. Benefits. Description. Electrostatic sensitive device. Observe precautions for handling.

Standard Read/Write ID Transponder with Anticollision TK5551

PWM Power Control IC with Interference Suppression U6083B

ATAVRAUTO User Guide

Zero-voltage Switch with Adjustable Ramp T2117

UHF ASK Transmitter U2745B

Application Note. How to Connect C51 Microcontroller to ATR Microcontrollers

Rear Window Heating Timer/ Long-term Timer U6046B

Application Note. 8-Bit Microcontrollers. AVR433: Power Factor Corrector (PFC) with AT90PWM2 Re-triggable High Speed PSC

300-MHz Quadrature Modulator U2793B

Transceiver Base Station Board ATAB542x-x-B. Application Note. Bill of Materials and Implementation of the Transceiver Base Station Board ATAB542x-x-B

Read/Write Crypto Transponder for Short Cycle Time TK5561A-PP

Application Note. Preliminary. 8-bit Microcontrollers

AVR443: Sensor-based control of three phase Brushless DC motor. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR443: Sensorbased control of three phase Brushless DC motor. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Transceiver Base Station Board ATAB5823-x-B/ ATAB5824-x-B. Application Note

UHF ASK/FSK Transmitter U2741B

IR Receiver for Data Communication U2538B

8-Megabit (1M x 8) OTP EPROM AT27C080. Features. Description. Pin Configurations

Special Fail-safe IC U6808B

8-bit RISC Microcontroller. Application Note. AVR314: DTMF Generator

Two-relay Flasher ATA6140

Low-cost Phase-control IC with Soft Start U2008B

8-bit RISC Microcontroller. Application Note. AVR042: AVR Hardware Design Considerations

2.4-GHz SiGe Power Amplifier for b/g WLAN Systems T7031. Preliminary

Low-power Audio Amplifier for Telephone Applications U4083B

High-speed CAN Transceiver ATA6660

UHF ASK/FSK. Transmitter T5754

AVR053: Calibration of the internal RC oscillator. 8-bit Microcontrollers. Application Note. Features. Introduction

3-wire Serial EEPROM AT93C86. Features. Description. Pin Configurations. 16K (2048 x 8 or 1024 x 16)

1-Megabit (128K x 8) OTP EPROM AT27C010

AT91 ARM Thumb Microcontroller s. AT91R40807 Electrical Characteristics

1-Megabit (64K x 16) OTP EPROM AT27C1024

Phase Control IC for Tacho Applications U209B

Smart RF AT86RF401-EK1. Application Note. AT86RF401-EK1 Smart RF MicroTransmitter Evaluation Kit Application Note. Functional Description

2-Megabit (128K x 16) OTP EPROM AT27C2048

3-wire Serial EEPROM AT93C86. Features. Description. Pin Configurations 8-lead PDIP. 16K (2048 x 8 or 1024 x 16)

Phase-control IC with Current Feedback and. Overload. Protection U2010B

ATAK57xx Software Description. Application Note. Preliminary. Software Description RF Design Kit ATAK57xx. Description

3-wire Serial EEPROM AT93C86A. Preliminary. Features. Description. Pin Configurations. 16K (2048 x 8 or 1024 x 16) VCC DC ORG GND CS SK DI DO

128-bit Read-only IDIC for RF Identification. e5530

Highperformance EE PLD ATF16LV8C

AT91 ARM Thumb Microcontrollers. AT91R40008 Electrical Characteristics. Features. Description

Multifunction Timer IC U2102B

Read/Write Base Station U2270B

AVR122: Calibration of the AVR's internal temperature reference. 8-bit Microcontrollers. Application Note. Features.

Power Meter Front End Design: The Delta Connection. Application Note. Power Meter Front End Design: The Delta Connection. Three-Phase Basics

2-megabit (256K x 8) Unregulated Battery-Voltage High-speed OTP EPROM AT27BV020

Time-code Receiver T4227

Very Highresolution. Linear CCD Image Sensor (12000 Pixels) TH7834C. Features. Description

L-band Down-converter for DAB Receivers U2730B-N. Preliminary

Standard R/W IDIC (264 Bit) with Integrated Capacitance T5554. Preliminary. Features. Description. System Block Diagram

Power Management AT73C211

AT91 ARM Thumb Microcontrollers. AT91R40008 Electrical Characteristics

8-bit Microcontroller with 1K Bytes Flash. ATtiny15. Advance Information. Features. Description. Pin Configurations

Read/Write Transponder TK5552

AVR1311: Using the XMEGA Timer/Counter Extensions. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

8-bit Microcontroller. Application Note. AVR040: EMC Design Considerations. Scope. Introduction

8-bit Microcontroller with 2K Bytes In-System Programmable Flash. ATtiny261A. Appendix A. Appendix A ATtiny261A Specification at 105 C

AT91 ARM Thumb Microcontrollers. AT91M42800A Electrical Characteristics

AVR440: Sensorless Control of Two-Phase Brushless DC Motor. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1302: Using the XMEGA Analog Comparator. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Standard Read/Write Crypto Identification IC. e5561

4-Megabit (512K x 8) OTP EPROM AT27C040. Features. Description. Pin Configurations

8-bit Microcontroller. Application Note. AVR080: ATmega103 Replaced by ATmega128

AVR1606: XMEGA Internal RC Oscillator Calibration. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Battery-Voltage. 1-Megabit (64K x 16) Unregulated. High-Speed OTP EPROM AT27BV1024. Features. Description. Pin Configurations

Battery-Voltage. 1-Megabit (128K x 8) Unregulated OTP EPROM AT27BV010. Features. Description. Pin Configurations


Highperformance EE PLD ATF22V10B. Features. Logic Diagram. Pin Configurations. All Pinouts Top View

ATAB542x-x-WB User Guide... ATMEL Wireless BlackBird Transceiver Demonstration Kit

Low-noise, High-dynamicrange. Antenna Amplifier IC ATR4251. Preliminary

8-bit. Application Note. Microcontrollers. AVR077: Opto Isolated Emulation for the DebugWIRE

UHF ASK/FSK Receiver ATA5721 ATA5722. Features

AVR1003: Using the XMEGA Clock System. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Requirements of ISO/IEC Type B Proximity Contactless Identification Cards. Application Note

Rad Hard 16 MegaBit SRAM Multi Chip Module AT68166F AT68166FT. Preliminary

Highperformance EE PLD ATF22V10B ATF22V10BQ ATV22V10BQL

Multifunctional 330-bit Read/Write RF Sensor Identification IC ATA5570. Preliminary

Low IF WDCT 5.8 GHz Transceiver ATR2820. Preliminary

125 khz Transmitter IC for TPM ATA5275

Transcription:

AVR092: Replacing ATtiny11/12 by ATtiny13 Features ATtiny11 and ATtiny12 Errata Corrected in ATtiny13 Changes to Bit and Register Names Changes to Interrupt Vector Oscillator Options Enhanced Watchdog Timer Changes to EEPROM Writing Programming Interface Operational Voltage Ranges Changes to Electrical Characteristics 8-bit Microcontrollers Application Note Introduction This application note is a guide to help current ATtiny11/12 users convert existing designs to ATtiny13. In addition to the differences described in this document, the electrical characteristics of the devices are different. Check the datasheets for detailed information. Improvements or added features in the ATtiny13 that are not in conflict with those in ATtiny11 and ATtiny12 are not listed in this document. Rev.

ATtiny11 Errata Corrected in ATtiny13 Releasing Reset Condition Without Clock Error in Writing Reset Status Bits Frequency Range of External RC Oscillator ATtiny12 Errata Corrected in ATtiny13 BOD Detection Level Too Low Changes to Names The following items from the ATtiny11 Errata sheet do not apply to the ATtiny13. The ATtiny13 reset circuit has been redesigned so that any External Reset pulse exceeding the minimum pulse width t RST causes an internal reset even though the condition disappears before any valid clock is present. The External Reset flag (EXTRF) is cleared independently from the Power On Reset Flag (PORF). The ATtiny13 has no support for external RC oscillator. The following items from the ATtiny12 Errata sheet do not apply to the ATtiny13. The ATtiny13 operates correctly down to the BOD levels matching the device specifications. The following control bits have changed names, but have the same functionality and placement when accessed as in ATtiny11/12. These ATtiny11/12 bit definitions can therefore be added to the ATtiny13 definitions file, so no rewriting of the application code is necessary. Table 1. Changed Bit Names Bit Name in ATtiny11 Bit Name in ATtiny12 Bit Name in ATtiny13 I/O Register Name in ATtiny11/ ATtiny12 SM SM SM1 MCUCR WDTOE WDTOE WDCE WDTCR - AINBG ACBG ACSR The following I/O registers have changed names. The functionality and location is unchanged. Table 2. Changed Register Names. Register name in ATtiny11 Register name in ATtiny12 Register name in ATtiny13 TIMSK TIMSK TIMSK0 TIFR TIFR TIFR0 TCCR0 TCCR0 TCCR0B 2 AVR092

AVR092 Changes to Interrupt Vector Changes have been made to the Interrupt vector table from ATtiny11 and ATtiny12 to ATtiny13. These changes mainly consist of addition of new interrupt vectors. Incompabilities are marked with bold face. Table 3. Changes to Interrupt Vector Tables. Vector No. Program Address ATtiny11 ATtiny12 ATtiny13 1 0x0000 RESET RESET RESET 2 0x0001 INT0 INT0 INT0 3 0x0002 PIN_CHANGE PIN_CHANGE PCINT0 4 0x0003 TIM0_OVF TIM0_OVF TIM0_OVF 5 0x0004 ANA_COMP EE_RDY EE_RDY 6 0x0005 ANA_COMP ANA_COMP 7 0x0006 TIM0_COMPA 8 0x0007 TIM0_COMPB 9 0x0008 WDT 10 0x0009 ADC Oscillator Options Internal RC Oscillators Enhanced Watchdog Timer The ATtiny13 can be clocked from either external digital clock or one of the internal RC oscillators. Crystal, ceramic resonator or external RC oscillator is not selectable. The device clock can be provided from one of three internal RC oscillators: The 128 khz RC Watchdog oscillator, the 4.8 MHz RC oscillator or the 9.6MHz internal RC oscillators. The 9.6 MHz oscillator is selected by default. The CKDIV8 fuse can be used to divide the system clock by 8. This prescaler is by default enabled. In this way the default clock for the ATtiny13 is 1.2 MHz, which equals the frequency of the internal RC of the ATtiny12. The ATtiny13 does not offer the possibility to select an internal 1 MHz RC as the ATtiny11. Refer to the ATtiny13 datasheet for further details on clock settings and configuration. The ATtiny13 has the Enhanced Watchdog Timer (WDT) and is improved compared to the one in ATtiny11/12. If the WDT is not used, it is still recommended to disable it initially in the application code to clear unintentional WDT enabled events. If the operation voltage is 5V and the WDTON fuse is left unprogrammed, the WDT will behave similar on ATtiny11/12 and ATtiny13. The frequency of the Watchdog Oscillator in ATtiny13 is approximately 128 khz for all supply voltages. The typical frequency of the Watchdog Oscillator in ATtiny11/12 is close to 1.0 MHz at 5V, but the time-out period increases with decreasing VCC. This 3

means that the selection of Time-out period for the Watchdog Timer (in terms of number of WDT Oscillator cycles) must be reconsidered when porting the design to ATtiny13. In ATtiny11/12, the Watchdog Timer is either enabled or disabled, while ATtiny13 supports two safety levels selected by the WDTON Fuse. Refer to the ATtiny13 datasheet or the Application note "AVR132 - Enhanced Watchdog Timer" for more information. Changes to EEPROM Writing Programming Interface Fuse Bits In ATtiny12, the EEPROM write time is dependent on supply voltage, typically 3.1 6.8 ms. It is the internal RC oscillator that sources the EEPROM write time counter. The internal RC oscillator on ATtiny13 is close to the calibrated value for all supply voltages. In ATtiny13, the EEPROM write time will therefore always be 3.4ms. Note: Changing the value in the OSCCAL Register affects the frequency of the calibrated RC Oscillator and hence the EEPROM write time. Changes have been made to the programming interfaces. The changes are valid for both serial programming (ISP) and parallel programming. Programming of both flash and EEPROM is now done in pages instead of per byte. The EEPROM can however also be programmed pr byte over the serial interface. Added support for new fuses. See the ATtiny13 data sheet for details. The fuse bits are different and are listed below. Refer to the ATtiny13 datasheet for a detailed description of the fuses. 4 AVR092

AVR092 Table 4. Fuse differences between ATtiny11, ATtiny12 and ATtiny13 and listing of default fuse setting and setting for best compatibility. Differences between ATtiny13 default fuse setting and best compatibility setting are marked with bold face Bit ATtiny11 ATtiny12 ATtiny13 ATtiny13 default (1) (2) ATtiny11 compatible ATtiny13 fuses (1) 7 - - - 1 1 6 - - - 1 1 High Fuse Byte 5 - - - 1 1 4 - - SPMEN 1 1 3 - - DWEN 1 1 2 - - BODLEVEL1 1 1 1 - - BODLEVEL0 1 1 0 - - RSTDISBL 1 1 7 - BODLEVEL SPIEN 0 0 6 - BODEN EESAVE 1 1 Low Fuse Byte 5 - SPIEN WDTON 1 1 4 FSTRT RSTDISBL CKDIV8 0 0 3 RSTDISBL CKSEL3 SUT1 1 0 2 CKSEL2 CKSEL2 SUT0 0 1 1 CKSEL1 CKSEL1 CKSEL1 1 1 0 CKSEL0 CKSEL0 CKSEL0 0 0 Notes: 1. 0 = programmed, 1 = unprogrammed 2. Default fuse settings are those most compatible with the default fuse settings of ATtiny12. Device Signature As the ATtiny13 is a different product the unique device signature found in the signature row is different. The three-byte signature of the ATtiny13 is: 0x1E 0x90 0x07. Device signatures ATtiny11 has Signature Bytes: 0x1E 0x90 0x04. ATtiny12 has Signature Bytes: 0x1E 0x90 0x05. ATtiny13 has Signature Bytes: 0x1E 0x90 0x07. 5

Operational Voltage Ranges Changes to Electrical Characteristics ATtiny11 can operate from 2.7-6.0V. ATtiny12 can operate from 1.8-5.5V. ATtiny13 can operate from 1.8-5.5V. The ATtiny13 is produced in a different process then the ATtiny11/12 and electrical characteristics will thus differ between these devices. Please consult the data sheets for details on electrical characteristics. 6 AVR092

Atmel Corporation 2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 487-2600 Regional Headquarters Europe Atmel Sarl Route des Arsenaux 41 Case Postale 80 CH-1705 Fribourg Switzerland Tel: (41) 26-426-5555 Fax: (41) 26-426-5500 Asia Room 1219 Chinachem Golden Plaza 77 Mody Road Tsimshatsui East Kowloon Hong Kong Tel: (852) 2721-9778 Fax: (852) 2722-1369 Japan 9F, Tonetsu Shinkawa Bldg. 1-24-8 Shinkawa Chuo-ku, Tokyo 104-0033 Japan Tel: (81) 3-3523-3551 Fax: (81) 3-3523-7581 Atmel Operations Memory 2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 436-4314 Microcontrollers 2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 436-4314 La Chantrerie BP 70602 44306 Nantes Cedex 3, France Tel: (33) 2-40-18-18-18 Fax: (33) 2-40-18-19-60 ASIC/ASSP/Smart Cards Zone Industrielle 13106 Rousset Cedex, France Tel: (33) 4-42-53-60-00 Fax: (33) 4-42-53-60-01 1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906, USA Tel: 1(719) 576-3300 Fax: 1(719) 540-1759 Scottish Enterprise Technology Park Maxwell Building East Kilbride G75 0QR, Scotland Tel: (44) 1355-803-000 Fax: (44) 1355-242-743 RF/Automotive Theresienstrasse 2 Postfach 3535 74025 Heilbronn, Germany Tel: (49) 71-31-67-0 Fax: (49) 71-31-67-2340 1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906, USA Tel: 1(719) 576-3300 Fax: 1(719) 540-1759 Biometrics/Imaging/Hi-Rel MPU/ High Speed Converters/RF Datacom Avenue de Rochepleine BP 123 38521 Saint-Egreve Cedex, France Tel: (33) 4-76-58-30-00 Fax: (33) 4-76-58-34-80 Literature Requests www.atmel.com/literature Disclaimer: Atmel Corporation makes no warranty for the use of its products, other than those expressly contained in the Company s standard warranty which is detailed in Atmel s Terms and Conditions located on the Company s web site. The Company assumes no responsibility for any errors which may appear in this document, reserves the right to change devices or specifications detailed herein at any time without notice, and does not make any commitment to update the information contained herein. No licenses to patents or other intellectual property of Atmel are granted by the Company in connection with the sale of Atmel products, expressly or by implication. Atmel s products are not authorized for use as critical components in life support devices or systems. Atmel Corporation 2003. All rights reserved. Atmel and combinations thereof AVR and megaavr are the registered trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be the trademarks of others. Printed on recycled paper.