Standby Mode..................................................................................................... 46
Extended Standby Mode .................................................................................... 46
Minimizing Power Consumption ......................................................................... 47
System Control and Reset ................................................................ 49
Internal Voltage Reference ................................................................................. 54
Watchdog Timer ................................................................................................. 54
Timed Sequences for Changing the Configuration of the Watchdog Timer ....... 58
Interrupts ............................................................................................ 59
Interrupt Vectors in ATmega64........................................................................... 59
I/O Ports.............................................................................................. 64
Introduction ......................................................................................................... 64
Ports as General Digital I/O ................................................................................ 65
Alternate Port Functions ..................................................................................... 69
Register Description for I/O Ports ....................................................................... 85
External Interrupts............................................................................. 88
8-bit Timer/Counter0 with PWM and Asynchronous Operation .... 91
Overview............................................................................................................. 91
Timer/Counter Clock Sources............................................................................. 92
Counter Unit........................................................................................................ 93
Output Compare Unit.......................................................................................... 93
Compare Match Output Unit ............................................................................... 95
Modes of Operation ............................................................................................ 96
Timer/Counter Timing Diagrams....................................................................... 100
8-bit Timer/Counter Register Description ......................................................... 102
Asynchronous Operation of the Timer/Counter ................................................ 105
Timer/Counter Prescaler................................................................................... 108
16-bit Timer/Counter (Timer/Counter1 and Timer/Counter3)....... 110
Overview........................................................................................................... 110
Accessing 16-bit Registers ............................................................................... 113
Timer/Counter Clock Sources........................................................................... 115
Counter Unit...................................................................................................... 116
Input Capture Unit............................................................................................. 117
Output Compare Units ...................................................................................... 119
Compare Match Output Unit ............................................................................. 120
Modes of Operation .......................................................................................... 122
Timer/Counter Timing Diagrams....................................................................... 129
16-bit Timer/Counter Register Description ....................................................... 131
Timer/Counter3, Timer/Counter2 and Timer/Counter1 Prescalers ....
142
ii ATmega64(L)
2490G–AVR–03/04