Datasheet

2018 Microchip Technology Inc. Data Sheet Complete DS40002070A-page 5
ATmega164A/PA/324A/PA/644A/PA/1284/P
14 I/O-Ports ..................................................................................................................................... 80
14.1 Overview.......................................................................................................... 80
14.2 Ports as General Digital I/O............................................................................. 81
14.3 Alternate Port Functions .................................................................................. 85
14.4 Register description......................................................................................... 97
15 8-bit Timer/Counter0 with PWM .................................................................................. 99
15.1 Features .......................................................................................................... 99
15.2 Overview.......................................................................................................... 99
15.3 Timer/Counter Clock Sources ....................................................................... 100
15.4 Counter Unit .................................................................................................. 100
15.5 Output Compare unit ..................................................................................... 101
15.6 Compare Match Output unit .......................................................................... 102
15.7 Modes of operation........................................................................................ 103
15.8 Timer/Counter Timing diagrams .................................................................... 107
15.9 Register description....................................................................................... 109
16 16-bit Timer/Counter1 and Timer/Counter3
(1)
with PWM .......................... 115
16.1 Features ........................................................................................................ 115
16.2 Overview........................................................................................................ 115
16.3 Accessing 16-bit Registers ............................................................................ 117
16.4 Timer/Counter Clock Sources ....................................................................... 120
16.5 Prescaler Reset ............................................................................................. 120
16.6 Counter Unit .................................................................................................. 121
16.7 Input Capture Unit ......................................................................................... 122
16.8 Output Compare units ................................................................................... 123
16.9 Compare Match Output unit .......................................................................... 126
16.10 Modes of Operation ....................................................................................... 127
16.11 Timer/Counter Timing diagrams .................................................................... 134
16.12 Register description....................................................................................... 136
17 8-bit Timer/Counter2 with PWM and asynchronous operation ............. 146
17.1 Features ........................................................................................................ 146
17.2 Overview........................................................................................................ 146
17.3 Timer/Counter clock sources......................................................................... 147
17.4 Counter unit ................................................................................................... 148
17.5 Output Compare unit ..................................................................................... 148
17.6 Compare Match Output unit .......................................................................... 150