Datasheet

Table Of Contents
iii
2570N–AVR–05/11
ATmega325/3250/645/6450
14.1 Overview ..........................................................................................................60
14.2 Ports as General Digital I/O .............................................................................61
14.3 Alternate Port Functions ..................................................................................66
14.4 Register Description ........................................................................................81
15 8-bit Timer/Counter0 with PWM ............................................................ 85
15.1 Features ..........................................................................................................85
15.2 Overview ..........................................................................................................85
15.3 Timer/Counter Clock Sources .........................................................................86
15.4 Counter Unit ....................................................................................................87
15.5 Output Compare Unit .......................................................................................87
15.6 Compare Match Output Unit ............................................................................89
15.7 Modes of Operation .........................................................................................90
15.8 Timer/Counter Timing Diagrams .....................................................................95
15.9 Register Description ........................................................................................96
16 Timer/Counter0 and Timer/Counter1 Prescalers ................................ 99
16.1 Register Description ......................................................................................101
17 16-bit Timer/Counter1 .......................................................................... 102
17.1 Features ........................................................................................................102
17.2 Overview ........................................................................................................102
17.3 Accessing 16-bit Registers ............................................................................104
17.4 Timer/Counter Clock Sources .......................................................................107
17.5 Counter Unit ..................................................................................................108
17.6 Input Capture Unit .........................................................................................109
17.7 Output Compare Units ...................................................................................111
17.8 Compare Match Output Unit ..........................................................................112
17.9 Modes of Operation .......................................................................................114
17.10 Timer/Counter Timing Diagrams ...................................................................121
17.11 Register Description ......................................................................................123
18 8-bit Timer/Counter2 with PWM and Asynchronous Operation ...... 130
18.1 Features ........................................................................................................130
18.2 Overview ........................................................................................................130
18.3 Timer/Counter Clock Sources .......................................................................131
18.4 Counter Unit ..................................................................................................131
18.5 Output Compare Unit .....................................................................................132
18.6 Compare Match Output Unit ..........................................................................134