MK50H28N ST Microelectronics, Inc., MK50H28N Datasheet - Page 9

no-image

MK50H28N

Manufacturer Part Number
MK50H28N
Description
Multi Logical Link Frame Relay Controller
Manufacturer
ST Microelectronics, Inc.
Datasheet
3.1 Functional Blocks
Refer to the block diagram in Figure 2.
The MK50H28 is primarily initialized and control-
led through six 16-bit Control and Status Regis-
ters (CSR0 thru CSR5). The CSR’s are accessed
through two bus addressable ports, the Register
Address Port (RAP), and the Register Data Port
(RDP). The MK50H28 may also generate an in-
terrupt(s) to the Host. These interrupts are en-
abled and disabled through CSR0.
The on-chip microcontroller is used to control the
movement of parallel receive and transmit data,
and to handle the Address field filtering.
3.1.1 Microcontroller
The microcontroller controls all of the other blocks
of the MK50H28. The microcontroller performs
frame processing and protocol processing. All
primitive processing and generation is also done
here. The microcode ROM contains the control
program of the microcontroller.
3.1.2 Receiver
Serial receive data comes into the Receiver (Fig-
ure 2). The Receiver is responsible for:
1. Leading and trailing flag detection.
2. Deletion of zeroes inserted for transparency.
3. Detection of idle and abort sequences.
4. Detection of good and bad FCS (CRC).
5. Monitoring Receiver FIFO status.
NOTE: If frames are received that have an odd
number of bytes then the last byte of the frame is
said to be an odd byte.
8. Detection of non-octet aligned frames.
3.1.3 Transmitter
The Transmitter is responsible for:
1. Serialization of outgoing data.
2. Generating and appending the FCS (CRC).
3. Framing the outgoing frame with flags.
4. Zero bit insertion for transparency.
5. Transmitter Under-Run detection.
6. Transmission of odd byte.
7. RTS/CTS control.
6. Detection of Receiver Over-Run.
Such frames are treated as invalid frames.
7. Odd byte detection.
3.1.4 Frame Check Sequence or Cyclic Re-
dundancy Check
The FCS (CRC) on the transmitter or receiver
may be either 16 bit or 32 bit, and is user select-
able. For full duplex operation, both the receiver
and transmitter have individual FCS computation
circuits. The characteristics of the FCS are:
Transmitted Polarity: Inverted
Transmitted Order: High Order Bit First
Pre-set Value: All 1’s
Polynomial 16 bit:
Remainder 16 bit (if received correctly):
Polynomial 32 bit:
Remainder 32 bit (if received correctly):
3.1.5 Receive FIFO
The Receive FIFO buffers the data received by
the receiver. This performs two major functions.
First, it resynchronizes the data from the receive
clock to the system clock. Second, it allows the
microcontroller time to finish whatever it may be
doing before it has to process the received data.
The receive FIFO holds the data from the receiver
without interrupting the microcontroller until it con-
tains enough data to reach the watermark level.
This watermark level can be programmed in
CSR4 to occur when the FIFO contains at least
18 or more bytes; 34 or more bytes; or 50 or
more bytes. This programmability , along with the
programmable burst length of the DMA controller,
enables the user to define how often and for how
long the MK50H28 must use the host bus. For
more information, see Control/Status Register 4.
For example, if the watermark level is set at 34
bytes and the burst length is limited to 8 word
transfers at a time, the MK50H28 will request
control of the host bus as soon as 34 bytes are
received and again after every 16 subsequent
bytes.
3.1.6 Transmit FIFO
The Transmit FIFO buffers the data to be trans-
mitted by the MK50H28. This also performs two
major functions. First, it resynchronizes the data
from the system clock to the transmit clock. Sec-
ond, it allows the microcontroller and DMA con-
troller to burst read data from the host’s memory
buffers; making both the MK50H28 and the host
bus more efficient.
X
X
High order bit-->0001 1101 0000 1111
high order bit-->1100 0111 0000 0100
32
16
+ X
+ X
+ X
26
8
12
+ X
+ X
+ X
23
7
5
+ X
+ X
+ 1
1101 1101 0111 1011
5
22
+ X
+ X
4
16
+ X
+ X
2
+ X + 1
12
+ X
11
MK50H28
+ X
10
9/64
+

Related parts for MK50H28N