SERIAL COMMUNICATION INTERFACE (SCI)
MOTOROLA
PORT C
6 - 35
X:$FFF2
1
5
1
4
1
3
1
2
1
1
1
0
9
8
7
6
5
4
3210
TCM
SCP
COD
CD11
CD10
CD9
CD8
CD7
CD6
CD5
CD4
CD3
CD2
CD1
CD0
SCI CLOCK CONTR
OL REGISTER (SCCR)
(READ/WRITE)
STEP 2b
.
SELECT CLOCK AND D
A
T
A RA
TE:
SET
THE CLOCK DIVIDER BITS (CD0 - CD11) A
CCORDING
T
O
T
ABLES 11 - 2 OR 11 - 3.
SET
THE SCI CLOCK PRESCALER BIT (SCP
, BIT 13) A
CCORDING
T
O
T
ABLES 11 - 2 OR 11 - 3.
SET
TRANSMIT CLOCK SOURCE
EXTERNAL CLOCK = 1
INTERNAL CLOCK = 0
SET
RECEIVE CLOCK SOURCE
EXTERNAL CLOCK = 1
INTERNAL CLOCK = 0
SET
SCI CLOCK PRESCALER
DIVIDE BY 8 = 1
DIVIDE BY 1 = 0
SET
CLOCK OUT DIVIDER
IF SCLK PIN IS AN O
TUPUT AND
COD = 1
SCLK OUTPUT = 16
×
COD = 0
SCLK OUTPUT =
1
×
RCM
Figure 6-15 SCI General Initialization Detail – Step 2 (Sheet 2 of 2)
Step 2b
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..