Maxim DS33R11 Switch User Manual


 
DS33R11 Ethernet Mapper with Integrated T1/E1/J1 Transceiver
53 of 344
9.13 Flow Control
Flow control may be required to ensure that data queues do not overflow and packets are not lost. The DS33R11
allows for optional flow control based on the queue high watermark or through host processor intervention. There
are 2 basic mechanisms that are used for flow control:
In half duplex mode, a jam sequence is sent that causes collisions at the far end. The collisions cause the
transmitting node to reduce the rate of transmission.
In full duplex mode, flow control is initiated by the receiving node sending a pause frame. The pause frame
has a timer parameter that determines the pause timeout to be used by the transmitting node.
Note that the terms “transmit queue” and “receive queue” are with respect to the Ethernet Interface. The Receive
Queue is the queue for the data that arrives on the MII/RMII interface, is processed by the MAC and stored in the
SDRAM. Transmit queue is for data that arrives from the Serial port, is processed by the HDLC and stored in the
SDRAM to be sent to the MAC transmitter.
The following flow control options are possible:
Automatic flow control can be enabled in software mode with the
SU.GCR.ATFLOW bit. Note that the user
does not have control over
SU.MACFCR.FCE and FCB bits if ATFLOW is set. The mechanism of sending
pause or jam is dependent only on the receive queue high threshold.
Manual flow control can be performed through software when SU.GCR.ATFLOW=0. The host processor
must monitor the receive queues and generate pause frames (full duplex) and/or jam bytes through the
SU.MACFCR.FCB, SU.GCR.JAME, and SU.MACFCR.FCE bits.
Note that in order to use flow control, the receive queue size (in AR.RQSC1) must be 02h or greater. The receive
queue high threshold (in
SU.RQHT) must be set to 01h or greater, but must be less than the queue size. If the high
threshold is set to the same value as the queue size, automatic flow control will not be effective. The high threshold
must always be set to less than the corresponding queue size.
The following table provides all the options on flow control mechanism for DS33R11.
Table 9-4. Options for Flow Control
TYPE MODE
Configuration
Half Duplex; Manual
Flow Control
Half Duplex;
Automatic Flow
Control
Full Duplex; Manual
Flow Control
Full Duplex;
Automatic Flow
Control
ATFLOW Bit
0 1 0 1
JAME Bit
Controlled By User
Controlled
Automatically
N/A N/A
FCB Bit
(Pause)
N/A N/A Controlled by User
Controlled
Automatically
FCE Bit
Controlled By User
Controlled
Automatically
Controlled By User
Controlled
Automatically
Pause Timer
N/A N/A Programmed by User Programmed by User