SERIAL COMMUNICATION INTERFACE (SCI)
MOTOROLA
PORT C
6 - 39
routine for minimum overhead. This interrupt is enabled by SCR bit 11 (RIE).
2. SCI Receive Data with Exception Status – caused by receive data register full
with a receiver error (parity, framing, or overrun error). The SCI status register
must be read to clear the receiver error flag. A long interrupt service routine
should be used to handle the error condition. This interrupt is enabled by SCR
bit 11 (RIE).
3. SCI Transmit Data – caused by transmit data register empty. This error-free
interrupt may use a fast interrupt service routine for minimum overhead. This
interrupt is enabled by SCR bit 12 (TIE).
4. SCI Idle Line – occurs when the receive line enters the idle state (10 or 11 bits
of ones). This interrupt is latched and then automatically reset when the inter-
rupt is accepted. This interrupt is enabled by SCR bit 10 (ILIE).
5. SCI Timer – caused by the baud rate counter underflowing. This interrupt is
automatically reset when the interrupt is accepted. This interrupt is enabled by
SCR bit 13 (TMIE).
6.3.6
Synchronous Data
The synchronous mode (WDS=0, shift register mode) is designed to implement seri-
al-to-parallel and parallel-to-serial conversions. This mode will directly interface to
8051/8096 synchronous (mode 0) buses as both a controller (master) or a peripheral
(slave) and is compatible with the SSI mode if SCKP equals one. In synchronous mode,
the clock is always common to the transmit and receive shift registers.
As a controller (synchronous master) shown in Figure 6-17, the DSP puts out a clock on
the SCLK pin when data is present in the transmit shift register (a gated clock mode). The
master mode is selected by choosing internal transmit and receive clocks (setting TCM
and RCM=0). The example shows a 74HC165 parallel-to-serial shift register and
74HC164 serial-to-parallel shift register being used to convert eight bits of serial I/O to
eight bits of parallel I/O. The load pulse latches eight bits into the 74HC165 and then
SCLK shifts the RXD data into the SCI (these data bits are sample bits 0-7 in the timing
diagram). At the same time, TXD shifts data out (B0-B7) to the 74HC164. When using the
internal clock, data is transmitted when the transmit shift register is full. Data is valid on
both edges of the output clock, which is compatible with an 8051 microprocessor. Re-
ceived data is sampled in the middle of the clock low time if SCKP equals zero or in the
middle of the clock high time if SCKP equals one. There is a window during which STX
must be written with the next byte to be transmitted to prevent a gap between words. This
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
.
..
Содержание DSP56002
Страница 380: ......
Страница 382: ......
Страница 390: ...Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...