Datasheet
16. TC0 - 8-bit Timer/Counter0 with PWM...................................................................127
16.1. Features................................................................................................................................... 127
16.2. Overview...................................................................................................................................127
16.3. Timer/Counter Clock Sources.................................................................................................. 129
16.4. Counter Unit............................................................................................................................. 129
16.5. Output Compare Unit................................................................................................................130
16.6. Compare Match Output Unit.....................................................................................................132
16.7. Modes of Operation..................................................................................................................133
16.8. Timer/Counter Timing Diagrams...............................................................................................137
16.9. Register Description................................................................................................................. 139
17. TC1 - 16-bit Timer/Counter1 with PWM.................................................................152
17.1. Overview...................................................................................................................................152
17.2. Features................................................................................................................................... 152
17.3. Block Diagram.......................................................................................................................... 152
17.4. Definitions.................................................................................................................................153
17.5. Registers.................................................................................................................................. 154
17.6. Accessing 16-bit Timer/Counter Registers............................................................................... 154
17.7. Timer/Counter Clock Sources.................................................................................................. 157
17.8. Counter Unit............................................................................................................................. 157
17.9. Input Capture Unit.................................................................................................................... 158
17.10. Output Compare Units............................................................................................................. 160
17.11. Compare Match Output Unit.....................................................................................................162
17.12. Modes of Operation..................................................................................................................163
17.13. Timer/Counter Timing Diagrams.............................................................................................. 171
17.14. Register Description.................................................................................................................172
18. Timer/Counter 0, 1 Prescalers...............................................................................185
18.1. Internal Clock Source............................................................................................................... 185
18.2. Prescaler Reset........................................................................................................................185
18.3. External Clock Source..............................................................................................................185
18.4. Register Description................................................................................................................. 186
19. TC2 - 8-bit Timer/Counter2 with PWM and Asynchronous Operation................... 188
19.1. Features................................................................................................................................... 188
19.2. Overview...................................................................................................................................188
19.3. Timer/Counter Clock Sources.................................................................................................. 190
19.4. Counter Unit............................................................................................................................. 190
19.5. Output Compare Unit................................................................................................................191
19.6. Compare Match Output Unit.....................................................................................................193
19.7. Modes of Operation..................................................................................................................194
19.8. Timer/Counter Timing Diagrams...............................................................................................198
19.9. Asynchronous Operation of Timer/Counter2............................................................................ 199
19.10. Timer/Counter Prescaler.......................................................................................................... 201
19.11. Register Description................................................................................................................. 201
20. SPI – Serial Peripheral Interface........................................................................... 214
20.1. Features................................................................................................................................... 214
Atmel ATmega644A [DATASHEET]
Atmel-42716C-ATmega644A_Datasheet_Complete-10/2016
5