mc68331cpv20b1 Freescale Semiconductor, Inc, mc68331cpv20b1 Datasheet - Page 237

no-image

mc68331cpv20b1

Manufacturer Part Number
mc68331cpv20b1
Description
Mc68331 32 Bit Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
D.4.6 SCSR — SCI Status Register
TDRE — Transmit Data Register Empty
TC — Transmit Complete
RDRF — Receive Data Register Full
RAF — Receiver Active
IDLE — Idle-Line Detected
OR — Overrun Error
NF — Noise Error Flag
MC68331
USER’S MANUAL
15
SCSR contains flags that show SCI operating conditions. These flags are cleared ei-
ther by SCI hardware or by a CPU32 read/write sequence. The sequence consists of
reading SCSR, then reading or writing SCDR.
If an internal SCI signal for setting a status bit comes after the CPU32 has read the
asserted status bits, but before the CPU has written or read SCDR, the newly set sta-
tus bit is not cleared. SCSR must be read again with the bit set and SCDR must be
written or read before the status bit is cleared.
A long-word read can consecutively access both SCSR and SCDR. This action clears
receive status flag bits that were set at the time of the read, but does not clear TDRE
or TC flags. Reading either byte of SCSR causes all 16 bits to be accessed, and any
status bit already set in either byte are cleared on a subsequent read or write of regis-
ter SCDR.
RESET:
0 = Register TDR still contains data to be sent to the transmit serial shifter.
1 = A new character can now be written to register TDR.
0 = SCI transmitter is busy.
1 = SCI transmitter is idle.
0 = Register RDR is empty or contains previously read data.
1 = Register RDR contains new data.
0 = SCI receiver is idle.
1 = SCI receiver is busy.
0 = SCI receiver did not detect an idle-line condition.
1 = SCI receiver detected an idle-line condition.
0 = RDRF is cleared before new data arrives.
1 = RDRF is not cleared before new data arrives.
0 = No noise detected on the received data
1 = Noise occurred on the received data.
NOT USED
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
REGISTER SUMMARY
9
TDRE
8
1
TC
7
1
RDRF
6
0
RAF
5
0
IDLE
4
0
OR
3
0
NF
2
0
$YFFC0C
FE
1
0
D-29
PF
0
0
D

Related parts for mc68331cpv20b1