Datasheet

20. Timer/Counter0 and Timer/Counter1 Prescalers................................................... 111
20.1. Overview...................................................................................................................................111
20.2. Internal Clock Source................................................................................................................111
20.3. Prescaler Reset........................................................................................................................ 111
20.4. External Clock Source.............................................................................................................. 111
20.5. Register Description................................................................................................................. 112
21. 16-bit Timer/Counter1............................................................................................ 114
21.1. Features................................................................................................................................... 114
21.2. Overview...................................................................................................................................114
21.3. Accessing 16-bit Registers....................................................................................................... 117
21.4. Timer/Counter Clock Sources...................................................................................................119
21.5. Counter Unit............................................................................................................................. 119
21.6. Input Capture Unit.................................................................................................................... 120
21.7. Output Compare Units..............................................................................................................122
21.8. Compare Match Output Unit.....................................................................................................124
21.9. Modes of Operation..................................................................................................................125
21.10. Timer/Counter Timing Diagrams.............................................................................................. 133
21.11. Register Description................................................................................................................. 134
22. 8-bit Timer/Counter2 with PWM and Asynchronous Operation.............................150
22.1. Features................................................................................................................................... 150
22.2. Overview.................................................................................................................................. 150
22.3. Timer/Counter Clock Sources.................................................................................................. 151
22.4. Counter Unit............................................................................................................................. 151
22.5. Output Compare Unit............................................................................................................... 152
22.6. Compare Match Output Unit.....................................................................................................154
22.7. Modes of Operation..................................................................................................................155
22.8. Timer/Counter Timing Diagrams.............................................................................................. 159
22.9. Asynchronous Operation of the Timer/Counter........................................................................161
22.10. Timer/Counter Prescaler..........................................................................................................163
22.11. Register Description................................................................................................................. 163
23. SPI – Serial Peripheral Interface........................................................................... 173
23.1. Features................................................................................................................................... 173
23.2. Overview.................................................................................................................................. 173
23.3. SS Pin Functionality................................................................................................................. 176
23.4. Data Modes..............................................................................................................................177
23.5. Register Description.................................................................................................................178
24. USART - Universal Synchronous and Asynchronous serial Receiver and
Transmitter.............................................................................................................183
24.1. Features................................................................................................................................... 183
24.2. Overview.................................................................................................................................. 183
24.3. Clock Generation......................................................................................................................185
24.4. Frame Formats.........................................................................................................................188
24.5. USART Initialization................................................................................................................. 189
AVR 8-Bit Microcontroller
© 2017 Microchip Technology Inc.
Datasheet Complete
40001974A-page 5