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

 

 

ATtiny26(L)

Table of Contents

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

1

 

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

2

 

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

3

 

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

4

 

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

5

 

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

6

 

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

7

 

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

8

 

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

8

 

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

9

 

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

10

 

Status Register – SREG .....................................................................................

11

 

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

12

 

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

12

 

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

17

 

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

18

 

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

18

 

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

19

 

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

22

 

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

24

 

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

24

 

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

26

 

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

27

 

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

27

 

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

28

 

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

29

 

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

30

 

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

31

 

High Frequency PLL Clock – PLLCLK................................................................

32

 

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

33

 

Power-on Reset ..................................................................................................

34

 

External Reset ....................................................................................................

35

 

Brown-out Detection ...........................................................................................

36

 

Watchdog Reset .................................................................................................

36

 

MCU Status Register – MCUSR.........................................................................

37

 

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

38

 

MCU Control Register – MCUCR .......................................................................

38

 

 

i

1477J–AVR–06/07

 

 

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

39

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

39

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

39

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

40

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

41

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

43

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

43

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

44

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

48

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

58

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

59

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

59

Interrupt Handling ...............................................................................................

60

External Interrupt...............................................................................

64

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

64

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

66

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

66

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

67

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

67

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

69

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

80

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

82

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

82

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

83

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

87

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

92

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

93

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

96

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

96

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

97

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

98

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

100

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

101

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

101

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

107

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

107

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

107

ii ATtiny26(L)

1477J–AVR–06/07

ATtiny26(L)

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

109

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

109

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

110

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

111

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

111

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

111

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

111

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

114

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

123

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

123

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

128

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

128

DC Characteristics............................................................................................

128

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

130

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

130

ADC Characteristics .........................................................................................

131

ATtiny26 Typical Characteristics ...................................................

133

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

170

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

171

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

173

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

174

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

174

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

175

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

176

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

177

ATtiny26, all revisions.......................................................................................

177

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

178

Changes from Rev. 1477G-03/05 to Rev. 1477H-04/06...................................

178

Changes from Rev. 1477F-12/04 to Rev. 1477G-03/05 ...................................

178

Changes from Rev. 1477E-10/03 to Rev. 1477F-12/04 ...................................

178

Changes from Rev. 1477D-05/03 to Rev. 1477E-10/03 ...................................

178

Changes from Rev. 1477C-09/02 to Rev. 1477D-05/03...................................

179

Changes from Rev. 1477B-04/02 to Rev. 1477C-09/02 ...................................

179

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

179

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

i

iii

1477J–AVR–06/07

iv ATtiny26(L)

1477J–AVR–06/07

Headquarters

International

 

 

 

 

 

 

 

Atmel Corporation

 

Atmel Asia

Atmel Europe

Atmel Japan

2325 Orchard Parkway

 

Room 1219

Le Krebs

9F, Tonetsu Shinkawa Bldg.

San Jose, CA 95131

 

Chinachem Golden Plaza

8, Rue Jean-Pierre Timbaud

1-24-8 Shinkawa

USA

 

77 Mody Road Tsimshatsui

BP 309

Chuo-ku, Tokyo 104-0033

Tel: 1(408) 441-0311

 

East Kowloon

78054 Saint-Quentin-en-

Japan

Fax: 1(408) 487-2600

 

Hong Kong

Yvelines Cedex

Tel: (81) 3-3523-3551

 

 

Tel: (852) 2721-9778

France

Fax: (81) 3-3523-7581

 

 

Fax: (852) 2722-1369

Tel: (33) 1-30-60-70-00

 

 

 

 

Fax: (33) 1-30-60-71-11

 

Product Contact

Web Site

Technical Support

Sales Contact

www.atmel.com

avr@atmel.com

www.atmel.com/contacts

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.

© Atmel Corporation 2007. All rights reserved. Atmel®, logo and combinations thereof, and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others.

1477J–AVR–06/07

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