beautypg.com

Atmega8515(l) – Rainbow Electronics ATmega8515L User Manual

Page 220

background image

ii

ATmega8515(L)

2512A–AVR–04/02

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

Watchdog Timer ................................................................................................. 47

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

Interrupts ............................................................................................. 51

Interrupt Vectors in ATmega8515 ....................................................................... 51

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

Introduction ......................................................................................................... 56

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

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

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

External Interrupts.............................................................................. 74

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

Overview ............................................................................................................. 77

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

Counter Unit........................................................................................................ 78

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

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

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

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

8-bit Timer/Counter Register Description ........................................................... 87

Timer/Counter0 and Timer/Counter1 Prescalers ............................. 92

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

Overview ............................................................................................................. 94

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

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

Counter Unit...................................................................................................... 100

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

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

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

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

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

16-bit Timer/Counter Register Description ....................................................... 116

Serial Peripheral Interface – SPI...................................................... 123

SS Pin Functionality.......................................................................................... 127

Data Modes ...................................................................................................... 130

USART ............................................................................................... 131

Single USART................................................................................................... 131

Clock Generation .............................................................................................. 133