beautypg.com

Rainbow Electronics ATtiny15L User Manual

Page 81

background image

1

ATtiny15L

1187E–AVR–06/02

Table of Contents

Features................................................................................................. 1

Pin Configuration.................................................................................. 1

Description ............................................................................................ 2

Block Diagram ...................................................................................................... 3

Pin Descriptions.................................................................................................... 4

Internal Oscillators ............................................................................................... 4

ATtiny15L Architectural Overview ...................................................... 5

The General Purpose Register File ...................................................................... 6

The ALU – Arithmetic Logic Unit........................................................................... 6

The Flash Program Memory ................................................................................. 6

The Program and Data Addressing Modes .......................................................... 7

Subroutine and Interrupt Hardware Stack ............................................................ 9

The EEPROM Data Memory ................................................................................ 9

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

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

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

Interrupt Handling ............................................................................................... 19

Sleep Modes....................................................................................................... 23

Tuneable Internal RC Oscillator.......................................................................... 24

Internal PLL for Fast Peripheral Clock Generation ............................................. 24

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

The Timer/Counter0 Prescaler ........................................................................... 25

The Timer/Counter1 Prescaler ........................................................................... 25

The Special Function IO Register – SFIOR........................................................ 26

The 8-bit Timer/Counter0.................................................................................... 26

The 8-bit Timer/Counter1.................................................................................... 28

The Watchdog Timer .......................................................................... 34

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

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

The Analog Comparator..................................................................... 39

The Analog-to-Digital Converter, Analog Multiplexer, and Gain Stag-
es.......................................................................................................... 41

Features.............................................................................................................. 41

Operation ............................................................................................................ 42

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

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

ADC Noise-canceling Techniques ...................................................................... 50

ADC Characteristics ........................................................................................... 50