Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
AVR / datasheets / attiny_25_45_85_Preliminary.pdf
Скачиваний:
41
Добавлен:
20.03.2015
Размер:
1.47 Mб
Скачать

ATtiny25/45/85

30. Datasheet Revision History

30.1Rev. 2586A-02/05

1.Initial revision.

181

2586A–AVR–02/05

182 ATtiny25/45/85

2586A–AVR–02/05

 

 

ATtiny25/45/85

Table of Contents

 

 

 

Features .....................................................................................................

1

1

Pin Configurations ...................................................................................

2

 

1.1Disclaimer ..................................................................................................................

2

2

Overview ...................................................................................................

3

 

2.1Block Diagram ...........................................................................................................

3

 

2.2Pin Descriptions ........................................................................................................

4

3

About Code Examples .............................................................................

5

4

AVR CPU Core ..........................................................................................

6

 

4.1Introduction ................................................................................................................

6

 

4.2Architectural Overview ..............................................................................................

6

 

4.3ALU – Arithmetic Logic Unit ......................................................................................

7

 

4.4Status Register ..........................................................................................................

7

 

4.5General Purpose Register File ..................................................................................

8

 

4.6Stack Pointer ...........................................................................................................

10

 

4.7Instruction Execution Timing ...................................................................................

10

 

4.8Reset and Interrupt Handling ..................................................................................

11

5

AVR ATtiny25/45/85 Memories .............................................................

14

 

5.1In-System Re-programmable Flash Program Memory ............................................

14

 

5.2SRAM Data Memory ...............................................................................................

14

 

5.3EEPROM Data Memory ..........................................................................................

15

 

5.4I/O Memory ..............................................................................................................

21

6 System Clock and Clock Options .........................................................

22

 

6.1Clock Systems and their Distribution .......................................................................

22

 

6.2Clock Sources .........................................................................................................

24

 

6.3Default Clock Source ...............................................................................................

24

 

6.4Crystal Oscillator .....................................................................................................

24

 

6.5Low-frequency Crystal Oscillator .............................................................................

26

 

6.6Calibrated Internal RC Oscillator .............................................................................

26

 

6.7External Clock .........................................................................................................

28

 

6.8128 kHz Internal Oscillator ......................................................................................

29

 

6.9Clock Output Buffer .................................................................................................

29

 

6.10System Clock Prescaler ........................................................................................

29

 

 

i

2586A–AVR–02/05

7 Power Management and Sleep Modes .................................................

32

 

7.1Idle Mode .................................................................................................................

32

 

7.2ADC Noise Reduction Mode ...................................................................................

33

 

7.3Power-down Mode ..................................................................................................

33

 

7.4Power Reduction Register .......................................................................................

33

 

7.5Minimizing Power Consumption ..............................................................................

34

8 System Control and Reset ....................................................................

36

 

8.1Internal Voltage Reference ......................................................................................

41

 

8.2Watchdog Timer ......................................................................................................

41

 

8.3Timed Sequences for Changing the Configuration of the Watchdog Timer ............

45

9

Interrupts ................................................................................................

47

 

9.1Interrupt Vectors in ATtiny25/45/85 .........................................................................

47

10

External Interrupts .................................................................................

49

11

I/O Ports ..................................................................................................

52

 

11.1Introduction ............................................................................................................

52

 

11.2Ports as General Digital I/O ...................................................................................

53

 

11.3Alternate Port Functions ........................................................................................

57

 

11.4Register Description for I/O-Ports ..........................................................................

64

12 8-bit Timer/Counter0 with PWM ............................................................

65

 

12.1Overview ...............................................................................................................

65

 

12.2Timer/Counter Clock Sources ...............................................................................

66

 

12.3Counter Unit ..........................................................................................................

66

 

12.4Output Compare Unit ............................................................................................

67

 

12.5Compare Match Output Unit ..................................................................................

69

 

12.6Modes of Operation ...............................................................................................

70

 

12.7Timer/Counter Timing Diagrams ...........................................................................

74

 

12.88-bit Timer/Counter Register Description ..............................................................

76

13

Timer/Counter Prescaler .......................................................................

83

14

8-bit Timer/Counter1 ..............................................................................

85

 

14.1Timer/Counter1 .....................................................................................................

85

15 8-bit Timer/Counter1 in ATtiny15 Mode ...............................................

97

 

15.1Timer/Counter1 Prescaler .....................................................................................

97

 

15.2Timer/Counter1 .....................................................................................................

97

ii ATtiny25/45/85

2586A–AVR–02/05

 

 

ATtiny25/45/85

16

Dead Time Generator ...........................................................................

107

17 Universal Serial Interface – USI ..........................................................

110

 

17.1Overview .............................................................................................................

110

 

17.2Functional Descriptions .......................................................................................

111

 

17.3Alternative USI Usage .........................................................................................

117

 

17.4USI Register Descriptions ...................................................................................

117

18

Analog Comparator .............................................................................

122

 

18.1Analog Comparator Multiplexed Input .................................................................

123

19 Analog to Digital Converter ................................................................

125

 

19.1Features ..............................................................................................................

125

 

19.2Operation .............................................................................................................

126

 

19.3Starting a Conversion ..........................................................................................

127

 

19.4Prescaling and Conversion Timing ......................................................................

128

 

19.5Changing Channel or Reference Selection .........................................................

130

 

19.6ADC Noise Canceler ...........................................................................................

131

 

19.7ADC Conversion Result ......................................................................................

135

20 debugWIRE On-chip Debug System ..................................................

142

 

20.1Features ..............................................................................................................

142

 

20.2Overview .............................................................................................................

142

 

20.3Physical Interface ................................................................................................

142

 

20.4Software Break Points .........................................................................................

143

 

20.5Limitations of debugWIRE ...................................................................................

143

 

20.6debugWIRE Related Register in I/O Memory ......................................................

143

21

Self-Programming the Flash ...............................................................

144

 

21.1Addressing the Flash During Self-Programming .................................................

145

22

Memory Programming .........................................................................

149

 

22.1Program And Data Memory Lock Bits .................................................................

149

 

22.2Fuse Bytes ..........................................................................................................

150

 

22.3Signature Bytes ...................................................................................................

151

 

22.4Calibration Byte ...................................................................................................

152

 

22.5Page Size ............................................................................................................

152

 

22.6Serial Downloading .............................................................................................

153

 

22.7High-voltage Serial Programming ........................................................................

158

 

22.8High-voltage Serial Programming Algorithm .......................................................

159

 

 

iii

2586A–AVR–02/05

 

22.9High-voltage Serial Programming Characteristics ...............................................

165

23

Electrical Characteristics ....................................................................

166

 

23.1Absolute Maximum Ratings* ...............................................................................

166

 

23.2External Clock Drive Waveforms .........................................................................

167

 

23.3External Clock Drive ............................................................................................

168

 

23.4Maximum Speed vs. VCC .............................................................................................................................

168

 

23.5ADC Characteristics – Preliminary Data ..............................................................

169

24

ATtiny25/45/85 Typical Characteristics – Preliminary Data - TBD

.. 170

25

Register Summary ...............................................................................

171

26

Instruction Set Summary ....................................................................

173

27

Ordering Information ...........................................................................

175

 

27.1ATtiny25 ..............................................................................................................

175

 

27.2ATtiny45 ..............................................................................................................

176

 

27.3ATtiny85 ..............................................................................................................

177

28

Packaging Information ........................................................................

178

 

28.18P3 ......................................................................................................................

178

 

28.28S2 ......................................................................................................................

179

29

Errata .....................................................................................................

180

 

29.1ATtiny25/45/85 Rev. A ........................................................................................

180

30

Datasheet Revision History ................................................................

181

 

30.1Rev. 2586A-02/05 ...............................................................................................

181

 

Table of Contents.......................................................................................

i

iv ATtiny25/45/85

2586A–AVR–02/05

Atmel Corporation

Atmel Operations

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

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: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDI-

TIONS OF SALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Atmel’s products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.

© Atmel Corporation 2005. All rights reserved. Atmel®, logo and combinations thereof, AVR®, and AVR Studio® are registered trademarks, and Everywhere You AreSM are the trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others.

Printed on recycled paper.

2586A–AVR–02/05

Соседние файлы в папке datasheets