
231
8210C–AVR–09/11
Atmel AVR XMEGA D
• Bits 5:4 – PMODE[1:0]: Parity Mode
These bits enable and set the type of parity generation according to
When 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 PMODE setting, and if a mismatch is detected, the PERR flag in STATUS will
be set.
These bits are unused in master SPI mode operation.
• Bit 3 – SBMODE: Stop Bit Mode
This bit selects the number of stop bits to be inserted by the transmitter according to
. The receiver ignores this setting.
This bit is unused in master SPI mode operation.
• Bit 2:0 – CHSIZE[2:0]: Character Size
The CHSIZE[2:0] bits set the number of data bits in a frame according to
. The receiver and transmitter use the same setting.
Table 18-7.
PMODE bit settings.
PMODE[1:0]
Group Configuration
Parity Mode
00
DISABLED
Disabled
01
Reserved
10
EVEN
Enabled, even parity
11
ODD
Enabled, odd parity
Table 18-8.
SBMODE bit settings.
SBMODE
Stop Bit(s)
0
1
1
2
Table 18-9.
CHSIZE bit settings.
CHSIZE[2:0]
Group Configuration
Character Size
000
5BIT
5-bit
001
6BIT
6-bit
010
7BIT
7-bit
011
8BIT
8-bit
100
Reserved
101
Reserved
110
Reserved
111
9BIT
9-bit