beautypg.com

Rainbow Electronics ATmega64C1 User Manual

Page 360

background image

360

7647A–AVR–02/08

ATmega32/64/M1/C1

6

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

6.1

Sleep Mode Control Register ..........................................................................39

6.2

Idle Mode .........................................................................................................40

6.3

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

6.4

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

6.5

Standby Mode .................................................................................................40

6.6

Power Reduction Register ...............................................................................41

6.7

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

7

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

7.1

Resetting the AVR ...........................................................................................44

7.2

Reset Sources .................................................................................................44

7.3

Internal Voltage Reference ..............................................................................49

7.4

Watchdog Timer ..............................................................................................50

8

Interrupts ................................................................................................ 55

8.1

Interrupt Vectors in ATmega32/64M1 ..............................................................55

9

I/O-Ports .................................................................................................. 60

9.1

Introduction ......................................................................................................60

9.2

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

9.3

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

9.4

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

10

External Interrupts ................................................................................. 81

10.1

Pin Change Interrupt Timing ............................................................................81

10.2

External Interrupt Control Register A – EICRA ................................................82

11

Timer/Counter0 and Timer/Counter1 Prescalers ................................ 86

11.1

Internal Clock Source ......................................................................................86

11.2

Prescaler Reset ...............................................................................................86

11.3

External Clock Source .....................................................................................86

12

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

12.1

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

12.2

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

12.3

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

12.4

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

12.5

Compare Match Output Unit ............................................................................93

12.6

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