Datasheet

iii
8021G–AVR–03/11
ATmega329P/3290P
13.3Alternate Port Functions ........................................................................................69
13.4Register Description ..............................................................................................90
14 8-bit Timer/Counter0 with PWM ............................................................ 94
14.1Features ................................................................................................................94
14.2Overview ...............................................................................................................94
14.3Timer/Counter Clock Sources ...............................................................................95
14.4Counter Unit ..........................................................................................................95
14.5Output Compare Unit ............................................................................................97
14.6Compare Match Output Unit ..................................................................................98
14.7Modes of Operation ...............................................................................................99
14.8Timer/Counter Timing Diagrams .........................................................................104
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 .......................................................................125
15.11Register Description ..........................................................................................127
16 Timer/Counter0 and Timer/Counter1 Prescalers .............................. 134
16.1Register Description ............................................................................................136
17 8-bit Timer/Counter2 with PWM and Asynchronous Operation ...... 141
17.1Features ..............................................................................................................141
17.2Overview .............................................................................................................141
17.3Timer/Counter Clock Sources .............................................................................142
17.4Counter Unit ........................................................................................................143
17.5Output Compare Unit ..........................................................................................143
17.6Compare Match Output Unit ................................................................................145
17.7Modes of Operation .............................................................................................146
17.8Timer/Counter Timing Diagrams .........................................................................150
17.9Asynchronous Operation of Timer/Counter2 .......................................................152