Datasheet

Table Of Contents
221
ATmega640/V-1280/V-1281/V-2560/V-2561/V [DATASHEET]
2549Q–AVR–02/2014
22.10.4 UCSRnC – USART Control and Status Register n C
Bits 7:6 – UMSELn1:0 USART Mode Select
These bits select the mode of operation of the USARTn as shown in Table 22-4.
Note: 1. See “USART in SPI Mode” on page 227 for full description of the Master SPI Mode (MSPIM) operation.
Bits 5:4 – UPMn1:0: Parity Mode
These bits enable and set type of parity generation and check. If enabled, the Transmitter will automatically gener-
ate and send the parity of the transmitted data bits within each frame. The Receiver will generate a parity value for
the incoming data and compare it to the UPMn setting. If a mismatch is detected, the UPEn Flag in UCSRnA will be
set.
Bit 3 – USBSn: Stop Bit Select
This bit selects the number of stop bits to be inserted by the Transmitter. The Receiver ignores this setting.
Bit 2:1 – UCSZn1:0: Character Size
The UCSZn1:0 bits combined with the UCSZn2 bit in UCSRnB sets the number of data bits (Character SiZe) in a
frame the Receiver and Transmitter use.
Bit 76543210
UMSELn1 UMSELn0 UPMn1 UPMn0 USBSn UCSZn1 UCSZn0 UCPOLn
UCSRnC
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value00000110
Table 22-4. UMSELn Bits Settings
UMSELn1 UMSELn0 Mode
0 0 Asynchronous USART
0 1 Synchronous USART
1 0 (Reserved)
1 1 Master SPI (MSPIM)
(1)
Table 22-5. UPMn Bits Settings
UPMn1 UPMn0 Parity Mode
0 0 Disabled
01 Reserved
1 0 Enabled, Even Parity
1 1 Enabled, Odd Parity
Table 22-6. USBS Bit Settings
USBSn Stop Bit(s)
01-bit
12-bit