
QSM
REFERENCE MANUAL
SCI SUBMODULE
MOTOROLA
5-5
5.2.1 SCI Control Register 0 (SCCR0)
SCCR0 contains the parameter for configuring the SCI baud rate. The baud rate
should be set before the SCI is enabled. The CPU can read and write this register at
any time.
Bits [15:13] — Not Implemented
SCBR — Baud Rate
The SCI baud rate is programmed by writing a 13-bit value to SCBR and is derived
from the MCU system clock using a modulus counter.
The SCI receiver operates asynchronously. Therefore, the SCI requires an internal
clock to synchronize itself to the incoming data stream. The SCI baud-rate generator
produces a receiver sampling clock with a frequency 16 times that of the expected
baud rate of the incoming data. From transitions within the received waveform, the SCI
determines the most likely position of the bit boundaries and adjusts sampling points
to the proper positions within the bit period. The receiver sampling rate is always 16
times the frequency of the SCI baud rate, which is calculated using the following equa-
tion:
SCI Baud = System Clock/(32 * SCBR)
(5-1)
where SCBR equals {1, 2, 3,... 8191}. Note that zero is a disallowed value for SCBR.
Writing a value of zero to SCBR disables the baud rate generator. There are 8191 dif-
ferent bauds available. The baud value depends on the value for SCBR and the sys-
tem clock, as used in the above equation.
Table 5-2
shows possible baud rates for a
16.78-MHz system clock. The maximum baud rate with this system clock speed is 524
kbaud.
NOTE: These rates are based on a 16.78-MHz system clock.
SCCR0
— SCI Control Register 0
$YFFC08
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
0
0
SCBR
RESET:
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
Table 5-2 Examples of SCI Baud Rates
Nominal Baud Rate
500,000.00
38,400.00
32,768.00
19,200.00
9,600.00
4,800.00
2,400.00
1,200.00
600.00
300.00
110.00
64.00
Actual Baud Rate
524,288.00
37,449.14
32,768.00
19,418.07
9,532.51
4,809.98
2,404.99
1,199.74
599.87
299.94
110.01
64.00
Percent Error
4.86
–2.48
0.00
1.14
–0.70
0.21
0.21
–0.02
–0.02
–0.02
0.01
0.01
Value ofSCBR
1
14
16
27
55
109
218
437
874
1,748
4,766
8,191
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.