Datasheet

187
ATtiny828 [DATASHEET]
8371A–AVR–08/12
z Bits 5:4 – UPM1:0: Parity Mode
These bits enable and set type of parity generation and check. If enabled, the transmitter will automatically generate 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 UPM setting. If a mismatch is detected, the UPE flag is set.
Table 68. Parity Mode Selection
z Bit 3 – USBS: Stop Bit Select
This bit selects the number of stop bits to be inserted by the transmitter. The receiver ignores this setting.
Table 69. Stop Bit Selection
z Bits 2:1 – UCSZ[1:0]: Character Size
Together with the UCSZ2 bit, the UCSZ[1:0] bits sets the number of data bits (Character Size) in a frame the receiver
and transmitter use. See Table 70.
Table 70. Character Size Settings
UPM1 UPM0 Parity Mode
0 0 Disabled
0 1 Reserved
1 0 Enabled, Even Parity
1 1 Enabled, Odd Parity
USBS Stop Bit(s)
0 1-bit
1 2-bit
UCSZ2 UCSZ1 UCSZ0 Character Size
0 0 0 5-bit
0 0 1 6-bit
0 1 0 7-bit
0 1 1 8-bit
1 0 0 Reserved
1 0 1 Reserved
1 1 0 Reserved
1 1 1 9-bit