Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
mikrocont / ATtiny26.pdf
Источник:
Скачиваний:
58
Добавлен:
06.01.2022
Размер:
1.98 Mб
Скачать

 

ATtiny26(L)

Table of Contents

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

1

 

Pin Configuration..................................................................................

2

 

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

2

 

Description ............................................................................................

3

 

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

4

 

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

5

 

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

6

 

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

7

 

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

8

 

In-System Programmable Flash Program Memory ..............................................

9

 

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

9

 

Program and Data Addressing Modes................................................................

10

 

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

14

 

Memory Access Times and Instruction Execution Timing .............

15

 

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

17

 

Stack Pointer – SP..............................................................................................

19

 

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

20

 

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

25

 

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

25

 

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

27

 

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

28

 

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

29

 

External RC Oscillator ........................................................................................

30

 

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

31

 

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

32

 

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

41

 

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

43

 

Timer/Counters ...................................................................................

44

 

Timer/Counter0 Prescaler...................................................................................

44

 

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

45

 

8-bit Timer/Counter0...........................................................................................

45

 

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

47

 

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

58

 

EEPROM Read/Write Access.............................................................

60

 

Preventing EEPROM Corruption ........................................................................

62

 

 

i

1477B–AVR–04/02

 

 

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

63

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

63

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

64

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

68

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

73

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

74

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

77

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

77

Operation ............................................................................................................

78

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

79

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

82

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

82

Scanning Multiple Channels ...............................................................................

88

ADC Noise Canceling Techniques .....................................................................

88

Offset Compensation Schemes ..........................................................................

88

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

90

Introduction .........................................................................................................

90

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

91

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

95

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

105

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

106

Program and Data Memory Lock Bits...............................................................

106

Fuse Bits...........................................................................................................

107

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

108

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

108

Parallel Programming Parameters, Pin Mapping, and Commands ..................

108

Parallel Programming .......................................................................................

111

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

120

Serial Programming Pin Mapping .....................................................................

120

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

125

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

125

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

127

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

127

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

128

ATtiny26 Typical Characteristics – Preliminary Data....................

129

ATtiny26/L Register Summary.........................................................

138

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

139

ii ATtiny26(L)

1477B–AVR–04/02

 

ATtiny26(L)

Ordering Information(1).....................................................................

141

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

142

20P3 .................................................................................................................

142

20S ...................................................................................................................

143

32M1-A .............................................................................................................

144

Data Sheet Change Log for ATtiny26 .............................................

145

Changes from Rev. 1477A-03/02 to Rev. 1477B-04/02 ...................................

145

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

i

iii

1477B–AVR–04/02

iv ATtiny26(L)

1477B–AVR–04/02

Atmel Headquarters

Atmel Operations

 

Corporate Headquarters

Memory

RF/Automotive

2325 Orchard Parkway

2325 Orchard Parkway

Theresienstrasse 2

San Jose, CA 95131

San Jose, CA 95131

Postfach 3535

TEL 1(408) 441-0311

TEL 1(408) 441-0311

74025 Heilbronn, Germany

FAX 1(408) 487-2600

FAX 1(408) 436-4314

TEL (49) 71-31-67-0

 

 

FAX (49) 71-31-67-2340

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 Tsimhatsui

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

Microcontrollers

2325 Orchard Parkway

San Jose, CA 95131

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

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

1150 East Cheyenne Mtn. Blvd.

Colorado Springs, CO 80906

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

e-mail literature@atmel.com

Web Site

http://www.atmel.com

© Atmel Corporation 2002.

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® and AVR® are the registered trademarks of Atmel.

Other terms and product names may be the trademarks of others.

Printed on recycled paper.

1477B–AVR–04/02 0M

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