126
AT94KAL Series FPSLIC
Rev. 1138G–FPSLI–11/03
• Bit 3 - TXEN0/TXEN1: Transmitter Enable
This bit enables the UART transmitter when set (one). When disabling the transmitter while
transmitting a character, the transmitter is not disabled before the character in the shift register
plus any following character in UDRn has been completely transmitted.
• Bit 2 - CHR90/CHR91: 9-bit Characters
When this bit is set (one) transmitted and received characters are 9-bit long plus start and stop
bits. The 9-bit is read and written by using the RXB8n and TXB8n bits in UCSRnB, respec-
tively. The 9th data bit can be used as an extra stop bit or a parity bit.
• Bit 1 - RXB80/RXB81: Receive Data Bit 8
When CHR9n is set (one), RXB8n is the 9th data bit of the received character.
• Bit 0 - TXB80/TXB81: Transmit Data Bit 8
When CHR9n is set (one), TXB8n is the 9th data bit in the character to be transmitted.
Baud-rate Generator
The baud-rate generator is a frequency divider which generates baud-rates according to the
following equation
•
BAUD = Baud-rate
•
f
CK
= Crystal Clock Frequency
•
UBR = Contents of the UBRRHI and UBRRn Registers, (0 - 4095)
Note:
1. This equation is not valid when the UART transmission speed is doubled. See “Double
Speed Transmission” on page 128 for a detailed description.
For standard crystal frequencies, the most commonly used baud-rates can be generated by
using the UBR settings in Table 36. UBR values which yield an actual baud-rate differing less
than 2% from the target baud-rate, are bold in the table. However, using baud-rates that have
more than 1% error is not recommended. High error ratings give less noise resistance.
BAUD
f
CK
16(UBR
1
)
+
----------------------------------
=