Datasheet
iii
8018O–AVR–10/09
ATmega169P
14.1Features ................................................................................................................91
14.2Overview ...............................................................................................................91
14.3Timer/Counter Clock Sources ...............................................................................92
14.4Counter Unit ..........................................................................................................92
14.5Output Compare Unit ............................................................................................93
14.6Compare Match Output Unit ..................................................................................95
14.7Modes of Operation ...............................................................................................96
14.8Timer/Counter Timing Diagrams .........................................................................100
14.98-bit Timer/Counter Register Description ............................................................102
15 16-bit Timer/Counter1 .......................................................................... 106
15.1Features ..............................................................................................................106
15.2Overview .............................................................................................................106
15.3Accessing 16-bit Registers ..................................................................................109
15.4Timer/Counter Clock Sources .............................................................................111
15.5Counter Unit ........................................................................................................112
15.6Input Capture Unit ...............................................................................................113
15.7Output Compare Units .........................................................................................115
15.8Compare Match Output Unit ................................................................................117
15.9Modes of Operation .............................................................................................118
15.10Timer/Counter Timing Diagrams .......................................................................126
15.1116-bit Timer/Counter Register Description ........................................................128
16 Timer/Counter0 and Timer/Counter1 Prescalers .............................. 135
16.1Prescaler Reset ...................................................................................................135
16.2Internal Clock Source ..........................................................................................135
16.3External Clock Source .........................................................................................135
16.4Register Description ............................................................................................137
17 8-bit Timer/Counter2 with PWM and Asynchronous Operation ...... 138
17.1Overview .............................................................................................................138
17.2Timer/Counter Clock Sources .............................................................................139
17.3Counter Unit ........................................................................................................139
17.4Output Compare Unit ..........................................................................................140
17.5Compare Match Output Unit ................................................................................142
17.6Modes of Operation .............................................................................................143
17.7Timer/Counter Timing Diagrams .........................................................................148
17.8Asynchronous operation of the Timer/Counter ....................................................150