Datasheet

17.3. Alternate Port Functions...........................................................................................................103
17.4. Register Description................................................................................................................. 118
18. TC0 - 8-bit Timer/Counter0 with PWM...................................................................133
18.1. Features................................................................................................................................... 133
18.2. Overview.................................................................................................................................. 133
18.3. Timer/Counter Clock Sources.................................................................................................. 135
18.4. Counter Unit............................................................................................................................. 135
18.5. Output Compare Unit............................................................................................................... 136
18.6. Compare Match Output Unit.....................................................................................................138
18.7. Modes of Operation..................................................................................................................140
18.8. Timer/Counter Timing Diagrams.............................................................................................. 144
18.9. Register Description................................................................................................................. 146
19. TC1, 3, 4 - 16-bit Timer/Counter1, 3, 4 with PWM.................................................158
19.1. Features................................................................................................................................... 158
19.2. Overview.................................................................................................................................. 158
19.3. Accessing 16-bit Timer/Counter Registers...............................................................................159
19.4. Timer/Counter Clock Sources.................................................................................................. 162
19.5. Counter Unit............................................................................................................................. 162
19.6. Input Capture Unit.................................................................................................................... 163
19.7. Compare Match Output Unit.....................................................................................................165
19.8. Output Compare Units..............................................................................................................166
19.9. Modes of Operation..................................................................................................................168
19.10. Timer/Counter Timing Diagrams.............................................................................................. 175
19.11. Register Description................................................................................................................. 177
20. Timer/Counter 0, 1, 3, 4 Prescalers.......................................................................214
20.1. Internal Clock Source............................................................................................................... 214
20.2. Prescaler Reset........................................................................................................................214
20.3. External Clock Source..............................................................................................................214
20.4. Register Description................................................................................................................. 216
21. TC2 - 8-bit Timer/Counter2 with PWM and Asynchronous Operation................... 218
21.1. Features................................................................................................................................... 218
21.2. Overview.................................................................................................................................. 218
21.3. Timer/Counter Clock Sources.................................................................................................. 220
21.4. Counter Unit............................................................................................................................. 220
21.5. Output Compare Unit............................................................................................................... 221
21.6. Compare Match Output Unit.....................................................................................................223
21.7. Modes of Operation..................................................................................................................224
21.8. Timer/Counter Timing Diagrams.............................................................................................. 228
21.9. Asynchronous Operation of Timer/Counter2............................................................................229
21.10. Timer/Counter Prescaler.......................................................................................................... 231
21.11. Register Description................................................................................................................. 231
22. OCM - Output Compare Modulator....................................................................... 246
22.1. Overview.................................................................................................................................. 246
ATmega328PB
© 2018 Microchip Technology Inc.
Datasheet Complete
DS40001906C-page 5