128
AT94KAL Series FPSLIC
Rev. 1138G–FPSLI–11/03
UART0 Baud-rate Register Low Byte – UBRR0
UART1 Baud-rate Register Low Byte – UBRR1
UBRRn stores the 8 least significant bits of the UART baud-rate register.
Double Speed
Transmission
The FPSLIC provides a separate UART mode that allows the user to double the communica-
tion speed. By setting the U2X bit in UART Control and Status Register UCSRnA, the UART
speed will be doubled. The data reception will differ slightly from normal mode. Since the
speed is doubled, the receiver front-end logic samples the signals on the RXDn pin at a fre-
quency 8 times the baud-rate. While the line is idle, one single sample of logic 0 will be
interpreted as the falling edge of a start bit, and the start bit detection sequence is initiated. Let
sample 1 denote the first zero-sample. Following the 1-to-0 transition, the receiver samples
the RXDn pin at samples 4, 5 and 6. If two or more of these three samples are found to be
logic 1s, the start bit is rejected as a noise spike and the receiver starts looking for the next 1-
to-0 transition.
If however, a valid start bit is detected, sampling of the data bits following the start bit is per-
formed. These bits are also sampled at samples 4, 5 and 6. The logical value found in at least
two of the three samples is taken as the bit value. All bits are shifted into the transmitter shift
register as they are sampled. Sampling of an incoming character is shown in Figure 67.
Figure 67.
Sampling Received Data when the Transmission Speed is Doubled
The Baud-rate
Generator in Double
UART Speed Mode
Note that the baud-rate equation is different from the equation
at page 126 when the UART
speed is doubled:
•
BAUD = Baud-rate
•
f
CK
= Crystal Clock Frequency
•
UBR = Contents of the UBRRHI and UBRRn Registers, (0 - 4095)
Note:
1. This equation is only valid when the UART transmission speed is doubled.
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 1.5% from the target baud-rate, are bold in the table. However since the number of sam-
ples are reduced and the system clock might have some variance (this applies especially
when using resonators), it is recommended that the baud-rate error is less than 0.5%. See
Table 37 for the UBR settings at various crystal frequencies in double UART speed mode.
Bit
7
6
5
4
3
2
1
0
$09 ($29)
MSB
LSB
UBRR0
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
0
0
0
0
0
0
0
0
Bit
7
6
5
4
3
2
1
0
$00 ($20)
MSB
LSB
UBRR1
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
0
0
0
0
0
0
0
0
START BIT
D0
D1
D2
D3
D4
D5
D6
D7
STOP BIT
RXD
RECEIVER
SAMPLING
BAUD
f
CK
8(UBR
1
)
+
------------------------------
=