Datasheet

iv
ATmega169A/PA/329A/PA/649A/P/3290A/PA/6490A/P [DATASHEET]
8284E–AVR–02/2013
18.3Timer/Counter clock sources ...............................................................................142
18.4Counter Unit ........................................................................................................142
18.5Output Compare Unit ...........................................................................................143
18.6Compare Match Output Unit ................................................................................144
18.7Modes of Operation .............................................................................................145
18.8Timer/Counter timing diagrams ...........................................................................149
18.9Asynchronous operation of Timer/Counter2 ........................................................151
18.10Register Description ..........................................................................................153
19 SPI – Serial Peripheral Interface ......................................................... 158
19.1Features ..............................................................................................................158
19.2Overview ..............................................................................................................158
19.3SS
pin functionality ..............................................................................................163
19.4Data modes .........................................................................................................163
19.5Register description .............................................................................................165
20 USART0 ................................................................................................. 168
20.1Features ..............................................................................................................168
20.2Overview ..............................................................................................................168
20.3Clock Generation .................................................................................................170
20.4Frame formats .....................................................................................................172
20.5USART initialization .............................................................................................173
20.6Data transmission – the USART transmitter ........................................................174
20.7Data reception – the USART receiver .................................................................177
20.8Asynchronous data reception ..............................................................................181
20.9Multi-processor Communication Mode ................................................................184
20.10Examples of Baud Rate Setting .........................................................................185
20.11Register description ...........................................................................................188
21 USI – Universal Serial Interface .......................................................... 193
21.1Features ..............................................................................................................193
21.2Overview ..............................................................................................................193
21.3Functional descriptions ........................................................................................194
21.4Alternative USI Usage .........................................................................................199
21.5Register description .............................................................................................199
22 Analog Comparator .............................................................................. 203
22.1Overview ..............................................................................................................203
22.2Analog Comparator Multiplexed Input .................................................................203