Datasheet

Table Of Contents
iv
2570N–AVR–05/11
ATmega325/3250/645/6450
18.7 Modes of Operation .......................................................................................135
18.8 Timer/Counter Timing Diagrams ...................................................................139
18.9 Asynchronous Operation of Timer/Counter2 .................................................141
18.10 Timer/Counter Prescaler ...............................................................................142
18.11 Register Description ......................................................................................143
19 SPI – Serial Peripheral Interface ......................................................... 148
19.1 Features ........................................................................................................148
19.2 Overview ........................................................................................................148
19.3 SS
Pin Functionality ......................................................................................152
19.4 Data Modes ...................................................................................................153
19.5 Register Description ......................................................................................154
20 USART0 ................................................................................................. 157
20.1 Features ........................................................................................................157
20.2 Overview ........................................................................................................157
20.3 Clock Generation ...........................................................................................159
20.4 Frame Formats ..............................................................................................162
20.5 USART Initialization .......................................................................................163
20.6 Data Transmission – The USART Transmitter ..............................................165
20.7 Data Reception – The USART Receiver .......................................................167
20.8 Asynchronous Data Reception ......................................................................171
20.9 Multi-processor Communication Mode ..........................................................174
20.10 Examples of Baud Rate Setting .....................................................................176
20.11 Register Description ......................................................................................179
21 USI – Universal Serial Interface .......................................................... 185
21.1 Overview ........................................................................................................185
21.2 Functional Descriptions .................................................................................186
21.3 Alternative USI Usage ...................................................................................192
21.4 Register Descriptions ....................................................................................192
22 Analog Comparator ............................................................................. 197
22.1 Analog Comparator Multiplexed Input ...........................................................198
22.2 Register Description ......................................................................................198
23 Analog to Digital Converter ................................................................ 201
23.1 Features ........................................................................................................201
23.2 Operation .......................................................................................................202