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

29. Datasheet Revision History

29.1Rev E. 09/06

1.All characterization data is moved to ”Electrical Characteristics” on page 180.

2.All Register Descriptions are gathered up in separate sections in the end of each chapter.

3.Updated ”System Control and Reset” on page 40.

4.Updated Table 13-3 on page 85, Table 13-6 on page 86, Table 13-8 on page 87, Table 14-2 on page 114 and Table 14-4 on page 116.

5.Updated ”Fast PWM Mode” on page 105.

6.Updated Figure 14-7 on page 106 and Figure 18-1 on page 140.

7.Updated ”Analog Comparator Multiplexed Input” on page 135.

8.Added note in Table 21-11 on page 171.

9.Updated ”Electrical Characteristics” on page 180.

10.Updated ”Typical Characteristics – Preliminary Data” on page 188.

29.2Rev D. 08/06

1.Updated ”Calibrated Internal RC Oscillator” on page 30.

2.Updated ”Oscillator Calibration Register – OSCCAL” on page 33.

3.Added Table 22-1 on page 182.

4.Updated code examples in ”SPI Master Operation Example” on page 126.

5.Updated code examples in ”SPI Slave Operation Example” on page 127.

6.Updated ”Signature Bytes” on page 167.

29.3Rev C. 07/06

1.Updated Features in ”USI – Universal Serial Interface” on page 123.

2.Added ”Clock speed considerations” on page 130.

3.Updated Bit description in ”ADMUX – ADC Multiplexer Selection Register” on page 151.

4.Added note to Table 20-1 on page 163.

29.4Rev B. 05/06

1.Updated ”Default Clock Source” on page 27

2.Updated ”Power Reduction Register” on page 36.

3.Updated Table 22-3 on page 183, Table 9-4 on page 42, Table 18-3 on page 151, Table 21-5 on page 167, Table 21-11 on page 171, Table 21-15 on page 177, Table 22-6 on page 185.

4.Updated Features in ”Analog to Digital Converter” on page 139.

226 ATtiny24/44/84

8006E–AVR–09/06

ATtiny24/44/84

5.Updated Operation in ”Analog to Digital Converter” on page 139.

6.Updated ”Temperature Measurement” on page 150.

7.Updated DC Characteristics in ”Electrical Characteristics” on page 180.

8.Updated ”Typical Characteristics – Preliminary Data” on page 188.

9.Updated ”Errata” on page 223.

29.5Rev A. 12/05

Initial revision.

227

8006E–AVR–09/06

228 ATtiny24/44/84

8006E–AVR–09/06

ATtiny24/44/84

Table Of Contents

1

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

2

 

1.1

Disclaimer ................................................................................................................

2

2

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

3

 

2.1

Block Diagram .........................................................................................................

3

 

2.2

Pin Descriptions ......................................................................................................

5

3

Resources .................................................................................................

6

4

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

7

5

CPU Core ..................................................................................................

8

 

5.1

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

8

 

5.2

Architectural Overview ............................................................................................

8

 

5.3

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

9

 

5.4

Status Register ........................................................................................................

9

 

5.5

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

11

 

5.6

Stack Pointer .........................................................................................................

12

 

5.7

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

13

 

5.8

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

13

6

Memories ................................................................................................

16

 

6.1

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

16

 

6.2

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

16

 

6.3

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

18

 

6.4

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

22

 

6.5

Register Description ..............................................................................................

23

7

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

26

 

7.1

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

26

 

7.2

Clock Sources .......................................................................................................

27

 

7.3

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

27

 

7.4

Crystal Oscillator ...................................................................................................

27

 

7.5

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

29

 

7.6

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

30

 

7.7

External Clock .......................................................................................................

30

 

7.8

128 kHz Internal Oscillator ....................................................................................

32

 

7.9

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

32

i

8006E–AVR–09/06

 

 

 

 

 

 

 

 

 

 

............................................................................................7.10 Register Description

33

8 Power Management and Sleep Modes .................................................

35

8.1

Sleep Modes .........................................................................................................

35

8.2

Idle Mode ...............................................................................................................

35

8.3

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

36

8.4

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

36

8.5

Standby Mode .......................................................................................................

36

8.6

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

36

8.7

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

37

8.8

Register Description ..............................................................................................

38

9 System Control and Reset ....................................................................

40

9.1

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

44

9.2

Watchdog Timer ....................................................................................................

44

9.3

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

45

9.4

Register Description ..............................................................................................

46

10

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

50

 

10.1

Interrupt Vectors ..................................................................................................

50

11

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

52

 

11.1

Pin Change Interrupt Timing ...............................................................................

52

 

11.2

Register Description ............................................................................................

53

12

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

56

 

12.1

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

56

 

12.2

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

57

 

12.3

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

61

 

12.4

Register Description ............................................................................................

72

13

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

74

 

13.1

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

74

 

13.2

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

74

 

13.3

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

75

 

13.4

Counter Unit ........................................................................................................

75

 

13.5

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

76

 

13.6

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

78

 

13.7

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

79

 

13.8

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

83

ii ATtiny24/44/84

8006E–AVR–09/06

 

 

 

 

ATtiny24/44/84

 

 

 

 

 

 

 

 

 

 

13.9

Register Description ............................................................................................

85

 

 

14

16-bit Timer/Counter1 ............................................................................

92

 

 

14.1

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

92

 

 

14.2

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

92

 

 

14.3

Accessing 16-bit Registers ..................................................................................

95

 

 

14.4

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

97

 

 

14.5

Counter Unit ........................................................................................................

98

 

 

14.6

Input Capture Unit ...............................................................................................

99

 

 

14.7

Output Compare Units .......................................................................................

101

 

 

14.8

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

103

 

 

14.9

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

104

 

 

14.10 Timer/Counter Timing Diagrams .....................................................................

111

 

 

14.11

Register Description ........................................................................................

114

15

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

121

 

 

15.1

Register Description ..........................................................................................

122

 

16 USI – Universal Serial Interface ..........................................................

123

 

 

16.1

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

123

 

 

16.2

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

123

 

 

16.3

Functional Descriptions .....................................................................................

124

 

 

16.4

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

130

 

 

16.5

Register Descriptions ........................................................................................

131

17

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

135

 

 

17.1

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

135

 

 

17.2

Register Description ..........................................................................................

137

 

18 Analog to Digital Converter ................................................................

139

 

 

18.1

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

139

 

 

18.2

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

139

 

 

18.3

ADC Operation ..................................................................................................

140

 

 

18.4

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

141

 

 

18.5

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

142

 

 

18.6

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

145

 

 

18.7

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

146

 

 

18.8

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

149

 

 

18.9

Temperature Measurement ...............................................................................

150

iii

8006E–AVR–09/06

 

 

 

 

 

 

 

 

 

 

........................................................................................18.10 Register Description

151

19 debugWIRE On-chip Debug System ..................................................

158

19.1

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

158

19.2

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

158

19.3

Physical Interface ..............................................................................................

158

19.4

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

159

19.5

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

159

19.6

Register Description ..........................................................................................

159

20

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

160

 

20.1

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

161

 

20.2

Register Description ..........................................................................................

163

21

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

165

 

21.1

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

165

 

21.2

Fuse Bytes ........................................................................................................

166

 

21.3

Signature Bytes .................................................................................................

167

 

21.4

Calibration Byte .................................................................................................

167

 

21.5

Page Size ..........................................................................................................

168

 

21.6

Serial Downloading ...........................................................................................

169

 

21.7

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

173

 

21.8

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

174

22

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

180

 

22.1

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

180

 

22.2

Speed Grades ...................................................................................................

181

 

22.3

Clock Characterizations ....................................................................................

182

 

22.4

System and Reset Characterizations ................................................................

183

 

22.5

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

184

 

22.6

Serial Programming Characteristics ..................................................................

186

 

22.7

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

187

23 Typical Characteristics – Preliminary Data .......................................

188

 

23.1

Active Supply Current ........................................................................................

188

 

23.2

Idle Supply Current ............................................................................................

191

 

23.3

Supply Current of IO modules ...........................................................................

194

 

23.4

Power-down Supply Current .............................................................................

195

 

23.5

Standby Supply Current ....................................................................................

196

iv ATtiny24/44/84

8006E–AVR–09/06

ATtiny24/44/84

 

23.6

Pin Pull-up .........................................................................................................

196

 

23.7

Pin Driver Strength ............................................................................................

199

 

23.8

Pin Threshold and Hysteresis ...........................................................................

201

 

23.9

BOD Threshold and Analog Comparator Offset ................................................

204

 

23.10

Internal Oscillator Speed .................................................................................

206

 

23.11

Current Consumption of Peripheral Units ........................................................

208

 

23.12 Current Consumption in Reset and Reset Pulsewidth ....................................

211

24

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

213

25

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

215

26

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

217

 

26.1

ATtiny24 ............................................................................................................

217

 

26.2

ATtiny44 ............................................................................................................

218

 

26.3

ATtiny84 ............................................................................................................

219

27

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

220

 

27.1

20M1 .................................................................................................................

220

 

27.2

14P3 ..................................................................................................................

221

 

27.3

14S1 ..................................................................................................................

222

28

Errata

.....................................................................................................

223

 

28.1

ATtiny24 ............................................................................................................

223

 

28.2

ATtiny44 ............................................................................................................

224

 

28.3

ATtiny84 ............................................................................................................

225

29

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

226

 

29.1

Rev E. 09/06 ......................................................................................................

226

 

29.2

Rev D. 08/06 .....................................................................................................

226

 

29.3

Rev C. 07/06 .....................................................................................................

226

 

29.4

Rev B. 05/06 ......................................................................................................

226

 

29.5

Rev A. 12/05 ......................................................................................................

227

v

8006E–AVR–09/06

vi ATtiny24/44/84

8006E–AVR–09/06

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. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel’s products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.

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

8006E–AVR–09/06

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