ATmega169P
Receiver will generate a parity value for the incoming data and compare it to the UPM0n setting.
If a mismatch is detected, the UPEn Flag in UCSRnA will be set.
Table 18-5. UPM Bits Settings
UPM1n
UPM0n
Parity Mode
0
0
1
1
0
1
0
1
Disabled
Reserved
Enabled, Even Parity
Enabled, Odd Parity
• 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.
Table 18-6. USBSn Bit Settings
USBSn
Stop Bit(s)
1-bit
0
1
2-bit
• Bit 2:1 – UCSZ1n:0: Character Size
The UCSZ1n: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.
Table 18-7. UCSZ Bits Settings
UCSZn2
UCSZ1n
UCSZ0n
Character Size
5-bit
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
6-bit
7-bit
8-bit
Reserved
Reserved
Reserved
9-bit
• Bit 0 – UCPOLn: Clock Polarity
This bit is used for synchronous mode only. Write this bit to zero when asynchronous mode is
used. The UCPOLn bit sets the relationship between data output change and data input sample,
and the synchronous clock (XCK).
Table 18-8. UCPOLn Bit Settings
Transmitted Data Changed
(Output of TxD Pin)
Received Data Sampled (Input on RxD
Pin)
UCPOLn
0
1
Rising XCK Edge
Falling XCK Edge
Falling XCK Edge
Rising XCK Edge
193
8018A–AVR–03/06