ATmega169P
13.3 Counter Unit .........................................................................................................92
13.4 Output Compare Unit ...........................................................................................93
13.5 Compare Match Output Unit .................................................................................95
13.6 Modes of Operation ..............................................................................................96
13.7 Timer/Counter Timing Diagrams ........................................................................100
13.8 8-bit Timer/Counter Register Description ...........................................................102
14 16-bit Timer/Counter1 .......................................................................... 106
14.1 Overview ............................................................................................................106
14.2 Accessing 16-bit Registers .................................................................................109
14.3 Timer/Counter Clock Sources ............................................................................111
14.4 Counter Unit .......................................................................................................112
14.5 Input Capture Unit ..............................................................................................113
14.6 Output Compare Units ........................................................................................115
14.7 Compare Match Output Unit ...............................................................................117
14.8 Modes of Operation ............................................................................................118
14.9 Timer/Counter Timing Diagrams ........................................................................126
14.10 16-bit Timer/Counter Register Description .......................................................128
15 Timer/Counter0 and Timer/Counter1 Prescalers .............................. 135
15.1 Prescaler Reset ..................................................................................................135
15.2 Internal Clock Source .........................................................................................135
15.3 External Clock Source ........................................................................................135
15.4 Register Description ...........................................................................................137
16 8-bit Timer/Counter2 with PWM and Asynchronous Operation ...... 138
16.1 Overview ............................................................................................................138
16.2 Timer/Counter Clock Sources ............................................................................139
16.3 Counter Unit .......................................................................................................139
16.4 Output Compare Unit .........................................................................................140
16.5 Compare Match Output Unit ...............................................................................142
16.6 Modes of Operation ............................................................................................143
16.7 Timer/Counter Timing Diagrams ........................................................................148
16.8 Asynchronous operation of the Timer/Counter ...................................................150
16.9 Timer/Counter Prescaler ....................................................................................152
16.10 8-bit Timer/Counter Register Description .........................................................153
17 SPI – Serial Peripheral Interface ......................................................... 158
17.1 SS Pin Functionality ...........................................................................................163
iii
8018A–AVR–03/06