Download Chapter 4: Data Communication Modes

Transcript
SCC™/ESCC™ User’s Manual
Data Communication Modes
4.1 INTRODUCTION (Continued)
For asynchronous data, the Transmit Shift register is formatted with start and stop bits along with the data; optionally with parity information bit. The formatted character is
shifted out to the transmit multiplexer at the selected clock
rate. WR6 & WR7 are not used in Asynchronous mode.
Synchronous data (except SDLC/HDLC) is shifted to the
CRC generator as well as to the transmit multiplexer.
SDLC/HDLC data is shifted to the CRC Generator and out
through the zero insertion logic (which is disabled while the
flags are being sent). A 0 is inserted in all address, control,
information, and frame check fields following five contiguous 1s in the data stream. The result of the CRC generator
for SDLC data is also routed through the zero insertion logic and then to the transmit multiplexer.
4.1.2 Receive Data Path Description
On the ESCC, the receiver has an 8-byte deep, 8-bit wide
Data FIFO, while the NMOS/CMOS version receiver has a
3-byte deep, 8-bit wide data buffer. In both cases, the Data
buffer is paired with an 8-bit Error FIFO and an 8-bit Shift
Register. The receive data path is shown in Figure 4-2.
This arrangement creates a 8-character buffer, allowing
time for the CPU to service an interrupt or for the DMA to
acquire the bus at the beginning of a block of high-speed
data. It is not necessary to enable the Receive FIFO, since
it is available in all modes of operation. For each data byte
in the Receive FIFO, a byte is loaded into the Error FIFO
to store parity, framing, and other status information. The
Error FIFO is addressed through Read Register 1.
CPU I/O
I/O Data buffer
Internal Data Bus
Upper Byte (WR13)
Time Constant
BRG
Input
Lower Byte (WR12)
Time Constant
16-Bit Down Counter
Status FIFO
10 x 19 Frame*
BRG
Output
DIV 2
See
Note
Rec. Data FIFO**
See
Note
14-Bit Counter
Rec. Error FIFO**
See
Note
Rec. Error Logic
Hunt Mode (BISYNC)
DPLL
IN
DPLL
OUT
DPLL
SYNC Register
& Zero Delete
3-Bit
Receive Shift
Register
Internal TXD
RxD
1-Bit
MUX
NRZI Decode
CRC Delay
Register (8 bits)
MUX
To Transmit Section
SDLC-CRC
CRC
Checker
Notes:
* Not with NMOS.
** Rec. Data FIFO and Rec. Error FIFO are 8 Bytes Deep (ESCC), 3 Bytes Deep (NMOS/CMOS).
Figure 4-2. Receive Data Path
4-2
SYNC
CRC
CRC Result