Datasheet
2018 Microchip Technology Inc. Data Sheet Complete DS40002072A-page 5
ATmega32A
15.6 Compare Match Output Unit............................................................................ 79
15.7 Modes of Operation ......................................................................................... 80
15.8 Timer/Counter Timing Diagrams ..................................................................... 84
15.9 Register Description ........................................................................................ 86
16 Timer/Counter0 and Timer/Counter1 Prescalers ................................ 90
16.1 Overview.......................................................................................................... 90
16.2 Internal Clock Source ...................................................................................... 90
16.3 Prescaler Reset ............................................................................................... 90
16.4 External Clock Source ..................................................................................... 90
16.5 Register Description ........................................................................................ 92
17 16-bit Timer/Counter1 ............................................................................ 93
17.1 Features .......................................................................................................... 93
17.2 Overview.......................................................................................................... 93
17.3 Accessing 16-bit Registers .............................................................................. 95
17.4 Timer/Counter Clock Sources ......................................................................... 98
17.5 Counter Unit .................................................................................................... 98
17.6 Input Capture Unit ........................................................................................... 99
17.7 Compare Match Output Unit.......................................................................... 103
17.8 Modes of Operation ....................................................................................... 104
17.9 Timer/Counter Timing Diagrams ................................................................... 111
17.10 Register Description ...................................................................................... 112
18 8-bit Timer/Counter2 with PWM and Asynchronous Operation ...... 119
18.1 Features ........................................................................................................ 119
18.2 Overview........................................................................................................ 119
18.3 Timer/Counter Clock Sources ....................................................................... 120
18.4 Counter Unit .................................................................................................. 120
18.5 Output Compare Unit..................................................................................... 121
18.6 Compare Match Output Unit.......................................................................... 123
18.7 Modes of Operation ....................................................................................... 123
18.8 Timer/Counter Timing Diagrams ................................................................... 127
18.9 Asynchronous Operation of the Timer/Counter ............................................. 129
18.10 Timer/Counter Prescaler ............................................................................... 131
18.11 Register Description ...................................................................................... 131
19 SPI – Serial Peripheral Interface ......................................................... 136
19.1 Features ........................................................................................................ 136