Manual
ii
ATmega169V/L
2514A–AVR–08/02
System Control and Reset................................................................. 36
Internal Voltage Reference ................................................................................. 41
Watchdog Timer ................................................................................................. 42
Timed Sequences for Changing the Configuration of the Watchdog Timer ....... 44
Interrupts............................................................................................. 45
Interrupt Vectors in ATmega169......................................................................... 45
I/O-Ports............................................................................................... 50
Introduction ......................................................................................................... 50
Ports as General Digital I/O ................................................................................ 51
Alternate Port Functions ..................................................................................... 55
Register Description for I/O-Ports....................................................................... 72
External Interrupts.............................................................................. 75
8-bit Timer/Counter0 with PWM......................................................... 78
Overview............................................................................................................. 78
Timer/Counter Clock Sources............................................................................. 79
Counter Unit........................................................................................................ 79
Output Compare Unit.......................................................................................... 80
Compare Match Output Unit ............................................................................... 82
Modes of Operation ............................................................................................ 83
Timer/Counter Timing Diagrams......................................................................... 87
8-bit Timer/Counter Register Description ........................................................... 88
Timer/Counter0 and Timer/Counter1 Prescalers ............................. 92
16-bit Timer/Counter1 ........................................................................ 94
Overview............................................................................................................. 94
Accessing 16-bit Registers ................................................................................. 97
Timer/Counter Clock Sources........................................................................... 100
Counter Unit...................................................................................................... 100
Input Capture Unit............................................................................................. 101
Output Compare Units ...................................................................................... 103
Compare Match Output Unit ............................................................................. 105
Modes of Operation .......................................................................................... 106
Timer/Counter Timing Diagrams....................................................................... 114
16-bit Timer/Counter Register Description ....................................................... 116
8-bit Timer/Counter2 with PWM and Asynchronous Operation ... 123
Overview........................................................................................................... 123
Timer/Counter Clock Sources........................................................................... 124
Counter Unit...................................................................................................... 124
Output Compare Unit........................................................................................ 125
Compare Match Output Unit ............................................................................. 127