beautypg.com

Atmega162/v – Rainbow Electronics ATmega162V User Manual

Page 318

background image

ii

ATmega162/V

2513E–AVR–09/03

Extended Standby Mode .................................................................................... 43

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

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

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

Watchdog Timer ................................................................................................. 51

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

Interrupts ............................................................................................ 56

Interrupt Vectors in ATmega162......................................................................... 56

I/O-Ports.............................................................................................. 62

Introduction ......................................................................................................... 62

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

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

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

External Interrupts ............................................................................. 83

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

Overview............................................................................................................. 88

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

Counter Unit........................................................................................................ 90

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

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

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

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

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

Timer/Counter0, T/C1, and T/C3 Prescalers .................................. 103

16-bit Timer/Counter (Timer/Counter1 and Timer/Counter3)....... 105

Restriction in ATmega161 Compatibility Mode................................................. 105

Overview........................................................................................................... 105

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

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

Counter Unit...................................................................................................... 111

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

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

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

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

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

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