Datasheet
iii
8272E–AVR–04/2013
ATmega164A/PA/324A/PA/644A/PA/1284/P
13.1Overview ...............................................................................................................67
13.2Register description ...............................................................................................67
14 I/O-Ports .................................................................................................. 72
14.1Overview ...............................................................................................................72
14.2Ports as General Digital I/O ...................................................................................73
14.3Alternate Port Functions ........................................................................................77
14.4Register description ...............................................................................................91
15 8-bit Timer/Counter0 with PWM ............................................................ 93
15.1Features ................................................................................................................93
15.2Overview ...............................................................................................................93
15.3Timer/Counter Clock Sources ...............................................................................94
15.4Counter Unit ..........................................................................................................94
15.5Output Compare unit .............................................................................................95
15.6Compare Match Output unit ..................................................................................97
15.7Modes of operation ................................................................................................98
15.8Timer/Counter Timing diagrams ..........................................................................102
15.9Register description .............................................................................................104
16 16-bit Timer/Counter1 and Timer/Counter3
(1)
with PWM .................. 111
16.1Features ..............................................................................................................111
16.2Overview .............................................................................................................111
16.3Accessing 16-bit Registers ..................................................................................113
16.4Timer/Counter Clock Sources .............................................................................116
16.5Prescaler Reset ...................................................................................................117
16.6Counter Unit ........................................................................................................117
16.7Input Capture Unit ...............................................................................................118
16.8Output Compare units .........................................................................................120
16.9Compare Match Output unit ................................................................................123
16.10Modes of Operation ...........................................................................................124
16.11Timer/Counter Timing diagrams ........................................................................131
16.12Register description ...........................................................................................133
17 8-bit Timer/Counter2 with PWM and asynchronous operation ........ 143
17.1Features ..............................................................................................................143
17.2Overview .............................................................................................................143
17.3Timer/Counter clock sources ...............................................................................144
17.4Counter unit .........................................................................................................145