Datasheet
iii
8011K–AVR–09/08
ATmega164P/324P/644P
13.3 Alternate Port Functions .......................................................................................79
13.4 Register Description .............................................................................................92
14 8-bit Timer/Counter0 with PWM ............................................................ 94
14.1 Features ...............................................................................................................94
14.2 Overview ..............................................................................................................94
14.3 Timer/Counter Clock Sources ..............................................................................95
14.4 Counter Unit .........................................................................................................95
14.5 Output Compare Unit ...........................................................................................96
14.6 Compare Match Output Unit .................................................................................98
14.7 Modes of Operation ..............................................................................................99
14.8 Timer/Counter Timing Diagrams ........................................................................103
14.9 Register Description ...........................................................................................105
15 16-bit Timer/Counter1 with PWM ........................................................ 112
15.1 Features .............................................................................................................112
15.2 Overview ............................................................................................................112
15.3 Accessing 16-bit Registers .................................................................................114
15.4 Timer/Counter Clock Sources ............................................................................117
15.5 Counter Unit .......................................................................................................118
15.6 Input Capture Unit ..............................................................................................119
15.7 Output Compare Units ........................................................................................121
15.8 Compare Match Output Unit ...............................................................................123
15.9 Modes of Operation ............................................................................................124
15.10 Timer/Counter Timing Diagrams ......................................................................131
15.11 Register Description .........................................................................................133
16 8-bit Timer/Counter2 with PWM and Asynchronous Operation ...... 140
16.1 Features .............................................................................................................140
16.2 Overview ............................................................................................................140
16.3 Timer/Counter Clock Sources ............................................................................141
16.4 Counter Unit .......................................................................................................142
16.5 Output Compare Unit .........................................................................................142
16.6 Compare Match Output Unit ...............................................................................144
16.7 Modes of Operation ............................................................................................145
16.8 Timer/Counter Timing Diagrams ........................................................................149
16.9 Asynchronous Operation of Timer/Counter2 ......................................................151
16.10 Timer/Counter Prescaler ..................................................................................153