English
Language : 

ATMEGA640V_0701 Datasheet, PDF (442/449 Pages) ATMEL Corporation – 8-bit Microcontroller with 64K/128K/256K Bytes In-System Programmable Flash
Power Management and Sleep Modes............................................. 50
Sleep Modes....................................................................................................... 50
Idle Mode ............................................................................................................ 51
ADC Noise Reduction Mode............................................................................... 51
Power-down Mode.............................................................................................. 51
Power-save Mode............................................................................................... 51
Standby Mode..................................................................................................... 52
Extended Standby Mode .................................................................................... 52
Minimizing Power Consumption ......................................................................... 52
Register Description ........................................................................................... 54
System Control
and Reset............................................................................................ 57
Internal Voltage Reference ................................................................................. 61
Watchdog Timer ................................................................................................. 62
Register Description ........................................................................................... 66
Interrupts ............................................................................................ 69
Interrupt Vectors in ATmega640/1280/1281/2560/2561..................................... 69
Reset and Interrupt Vector placement ................................................................ 71
Moving Interrupts Between Application and Boot Section .................................. 74
Register Description ........................................................................................... 76
External Interrupts............................................................................. 77
Pin Change Interrupt Timing............................................................................... 77
Register Description ........................................................................................... 78
I/O-Ports.............................................................................................. 83
Introduction ......................................................................................................... 83
Ports as General Digital I/O ................................................................................ 84
Alternate Port Functions ..................................................................................... 89
Register Description for I/O-Ports..................................................................... 115
8-bit Timer/Counter0 with PWM...................................................... 119
Overview........................................................................................................... 119
Timer/Counter Clock Sources........................................................................... 120
Counter Unit...................................................................................................... 120
Output Compare Unit........................................................................................ 121
Compare Match Output Unit ............................................................................. 123
Modes of Operation .......................................................................................... 124
Timer/Counter Timing Diagrams....................................................................... 128
Register Description ......................................................................................... 130
16-bit Timer/Counter (Timer/Counter 1, 3, 4, and 5) ..................... 137
Overview........................................................................................................... 137
Accessing 16-bit Registers ............................................................................... 139
ii ATmega640/1280/1281/2560/2561
2549K–AVR–01/07