Datasheet
2018 Microchip Technology Inc. Data Sheet Complete DS40002061A-page 5
ATmega48A/PA/88A/PA/168A/PA/328/P
13.2 Register Description ........................................................................................ 80
14 I/O-Ports ..................................................................................................................................... 84
14.1 Overview.......................................................................................................... 84
14.2 Ports as General Digital I/O............................................................................. 85
14.3 Alternate Port Functions .................................................................................. 89
14.4 Register Description ...................................................................................... 100
15 8-bit Timer/Counter0 with PWM ................................................................................ 102
15.1 Features ........................................................................................................ 102
15.2 Overview........................................................................................................ 102
15.3 Timer/Counter Clock Sources ....................................................................... 103
15.4 Counter Unit .................................................................................................. 103
15.5 Output Compare Unit..................................................................................... 104
15.6 Compare Match Output Unit.......................................................................... 106
15.7 Modes of Operation ....................................................................................... 107
15.8 Timer/Counter Timing Diagrams ................................................................... 111
15.9 Register Description ...................................................................................... 113
16 16-bit Timer/Counter1 with PWM ............................................................................. 120
16.1 Features ........................................................................................................ 120
16.2 Overview........................................................................................................ 120
16.3 Accessing 16-bit Registers ............................................................................ 122
16.4 Timer/Counter Clock Sources ....................................................................... 125
16.5 Counter Unit .................................................................................................. 125
16.6 Input Capture Unit ......................................................................................... 126
16.7 Output Compare Units................................................................................... 128
16.8 Compare Match Output Unit.......................................................................... 130
16.9 Modes of Operation ....................................................................................... 131
16.10 Timer/Counter Timing Diagrams ................................................................... 138
16.11 Register Description ...................................................................................... 140
17 Timer/Counter0 and Timer/Counter1 Prescalers ........................................... 147
17.1 Internal Clock Source .................................................................................... 147
17.2 Prescaler Reset ............................................................................................. 147
17.3 External Clock Source ................................................................................... 147
17.4 Register Description ...................................................................................... 149
18 8-bit Timer/Counter2 with PWM and Asynchronous Operation ........... 150
18.1 Features ........................................................................................................ 150