beautypg.com

Rainbow Electronics ATmega3290P_V User Manual

Page 370

background image

ii

ATmega329/3290/649/6490

2552H–AVR–11/06

Idle Mode ............................................................................................................ 34

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

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

Power-save Mode............................................................................................... 34

Standby Mode..................................................................................................... 35

Power Reduction Register .................................................................................. 35

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

Register Description ........................................................................................... 38

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

Internal Voltage Reference ................................................................................. 45

Watchdog Timer ................................................................................................. 45

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

Interrupts ............................................................................................ 49

Interrupt Vectors in ATmega329/3290/649/6490................................................ 49

External Interrupts ............................................................................. 54

Pin Change Interrupt Timing............................................................................... 54

I/O-Ports.............................................................................................. 59

Introduction ......................................................................................................... 59

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

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

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

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

Overview............................................................................................................. 89

Timer/Counter Clock Sources............................................................................. 90

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

Output Compare Unit.......................................................................................... 91

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

Modes of Operation ............................................................................................ 94

Timer/Counter Timing Diagrams......................................................................... 98

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

Timer/Counter0 and Timer/Counter1 Prescalers .......................... 103

16-bit Timer/Counter1...................................................................... 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