310
8331B–AVR–03/12
Atmel AVR XMEGA AU
• Bit 5 – DREIF: Data Register Empty Flag
This flag indicates whether the transmit buffer (DATA) is ready to receive new data. The flag is
one when the transmit buffer is empty and zero when the transmit buffer contains data to be
transmitted that has not yet been moved into the shift register. DREIF is set after a reset to indi-
cate that the transmitter is ready. Always write this bit to zero when writing the STATUS register.
DREIF is cleared by writing DATA. When interrupt-driven data transmission is used, the data
register empty interrupt routine must either write new data to DATA in order to clear DREIF or
disable the data register empty interrupt. If not, a new interrupt will occur directly after the return
from the current interrupt.
• Bit 4 – FERR: Frame Error
The FERR flag indicates the state of the first stop bit of the next readable frame stored in the
receive buffer. The bit is set if the received character had a frame error, i.e., the first stop bit was
zero, and cleared when the stop bit of the received data is one. This bit is valid until the receive
buffer (DATA) is read. FERR is not affected by setting the number of stop bits used, as it always
uses only the first stop bit. Always write this bit location to zero when writing the STATUS
register.
This flag is not used in master SPI mode operation.
• Bit 3 – BUFOVF: Buffer Overflow
This flag indicates data loss due to a receiver buffer full condition. This flag is set if a buffer over-
flow condition is detected. A buffer overflow occurs when the receive buffer is full (two
characters) with a new character waiting in the receive shift register and a new start bit is
detected. This flag is valid until the receive buffer (DATA) is read. Always write this bit location to
zero when writing the STATUS register.
This flag is not used in master SPI mode operation.
• Bit 2 – PERR: Parity Error
If parity checking is enabled and the next character in the receive buffer has a parity error, this
flag is set. If parity check is not enabled, this flag will always be read as zero. This bit is valid until
the receive buffer (DATA) is read. Always write this bit location to zero when writing the STATUS
register. For details on parity calculation, refer to
”Parity Bit Calculation” on page 299
.
This flag is not used in master SPI mode operation.
• Bit 1 – Reserved
This bit is unused and reserved for future use. For compatibility with future devices, always write
this bit to zero when this register is written.
• Bit 0 – RXB8: Receive Bit 8
RXB8 is the ninth data bit of the received character when operating with serial frames with nine
data bits. When used, this bit must be read before reading the low bits from DATA.
This bit is unused in master SPI mode operation.