Datasheet

2
2490R–AVR–02/2013
ATmega64(L)
Idle Mode 47
ADC Noise Reduction Mode 47
Power-down Mode 47
Power-save Mode 47
Standby Mode 48
Extended Standby Mode 48
Minimizing Power Consumption 49
System Control and Reset 51
Internal Voltage Reference 56
Watchdog Timer 56
Timed Sequences for Changing the Configuration of the Watchdog Timer 60
Interrupts 61
Interrupt Vectors in ATmega64 61
I/O Ports 66
Introduction 66
Ports as General Digital I/O 66
Alternate Port Functions 71
Register Description for I/O Ports 87
External Interrupts 90
8-bit Timer/Counter0 with PWM and Asynchronous Operation 93
Overview 93
Timer/Counter Clock Sources 94
Counter Unit 95
Output Compare Unit 95
Compare Match Output Unit 97
Modes of Operation 98
Timer/Counter Timing Diagrams 102
8-bit Timer/Counter Register Description 104
Asynchronous Operation of the Timer/Counter 107
Timer/Counter Prescaler 110
16-bit Timer/Counter (Timer/Counter1 and Timer/Counter3) 112
Overview 112
Accessing 16-bit Registers 115
Timer/Counter Clock Sources 117
Counter Unit 117
Input Capture Unit 119
Output Compare Units 121
Compare Match Output Unit 122
Modes of Operation 124
Timer/Counter Timing Diagrams 131