Datasheet

iii
ATmega169A/PA/329A/PA/649A/P/3290A/PA/6490A/P [DATASHEET]
8284E–AVR–02/2013
14 I/O-ports ..................................................................................................65
14.1Overview ................................................................................................................65
14.2Ports as general digital I/O ....................................................................................66
14.3Alternate port functions ..........................................................................................71
14.4Register description ...............................................................................................91
15 8-bit Timer/Counter0 with PWM ............................................................ 95
15.1Features ................................................................................................................95
15.2Overview ................................................................................................................95
15.3Timer/Counter Clock Sources ...............................................................................96
15.4Counter Unit ..........................................................................................................96
15.5Output Compare Unit .............................................................................................98
15.6Compare Match Output Unit ..................................................................................99
15.7Modes of Operation .............................................................................................100
15.8Timer/Counter Timing Diagrams .........................................................................104
15.9Register description .............................................................................................105
16 16-bit Timer/Counter1 .......................................................................... 109
16.1Features ..............................................................................................................109
16.2Overview ..............................................................................................................109
16.3Accessing 16-bit registers ...................................................................................111
16.4Timer/Counter Clock Sources .............................................................................114
16.5Counter Unit ........................................................................................................114
16.6Input Capture Unit ...............................................................................................115
16.7Output Compare Units .........................................................................................117
16.8Compare Match Output Unit ................................................................................119
16.9Modes of Operation .............................................................................................120
16.10Timer/Counter timing diagrams .........................................................................127
16.11Register description ...........................................................................................128
17 Timer/Counter0 and Timer/Counter1 Prescalers ............................... 135
17.1Internal Clock Source ..........................................................................................135
17.2Prescaler Reset ...................................................................................................135
17.3External Clock Source .........................................................................................135
17.4Register description .............................................................................................137
18 8-bit Timer/Counter2 with PWM and Asynchronous Operation ....... 141
18.1Features ..............................................................................................................141
18.2Overview ..............................................................................................................141