MPC555
/
MPC556
QUEUED SERIAL MULTI-CHANNEL MODULE
MOTOROLA
USER’S MANUAL
Rev. 15 October 2000
14-47
14.8.4 SCI Status Register (SCxSR)
SCxSR contains flags that show SCI operating conditions. These flags are cleared ei-
ther by SCIx hardware or by a read/write sequence. The sequence consists of reading
the SCxSR (either the upper byte, lower byte, or the entire half-word) with a flag bit set,
then reading (or writing, in the case of flags TDRE and TC) the SCxDR (either the low-
er byte or the half-word).
The contents of the two 16-bit registers SCxSR and SCxDR appear as upper and low-
er half-words, respectively, when the SCxSR is read into a 32-bit register. An upper
byte access of SCxSR is meaningful only for reads. Note that a word read can simul-
taneously access both registers SCxSR and SCxDR. This action clears the receive
status flag bits that were set at the time of the read, but does not clear the TDRE or
TC flags. To clear TC, the SCxSR read must be followed by a write to register SCxDR
(either the lower byte or the half-word). The TDRE flag in the status register is read-
only.
If an internal SCI signal for setting a status bit comes after the CPU has read the as-
serted status bits but before the CPU has read or written the SCxDR, the newly set
status bit is not cleared. Instead, SCxSR must be read again with the bit set and
SCxDR must be read or written before the status bit is cleared.
NOTE
None of the status bits are cleared by reading a status bit while it is
set and then writing zero to that same bit. Instead, the procedure out-
lined above must be followed. Note further that reading either byte of
SCxSR causes all 16 bits to be accessed, and any status bits already
set in either byte are armed to clear on a subsequent read or write of
SCxDR.
14
RWU
0 = Normal receiver operation (received data recognized).
1 = Wakeup mode enabled (received data ignored until receiver is awakened).
15
SBK
Send break
0 = Normal operation.
1 = Break frame(s) transmitted after completion of current frame.
SCxSR —
SCIx Status Register
0x30 500C, 0x30 5024
MSB
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
LSB
15
RESERVED
TDRE
TC
RDRF
RAF
IDLE
OR
NF
FE
PF
RESET:
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
Table 14-24 SCCxR1 Bit Descriptions (Continued)
Bit(s)
Name
Description
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
.
..