30.01.2015 Views

UM10211 - Standard ICs

UM10211 - Standard ICs

UM10211 - Standard ICs

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

NXP Semiconductors<br />

<strong>UM10211</strong><br />

Chapter 11: LPC2300 Ethernet<br />

The destination address and source address hash CRCs being written in the<br />

StatusHashCRC word are the nine most significant bits of the 32 bit CRCs as calculated<br />

by the CRC calculator.<br />

16.7 Duplex modes<br />

The Ethernet block can operate in full duplex and half duplex mode. Half or full duplex<br />

mode needs to be configured by the device driver software during initialization.<br />

For a full duplex connection the FullDuplex bit of the Command register needs to be set to<br />

1 and the FULL-DUPLEX bit of the MAC2 configuration register needs to be set to 1; for<br />

half duplex the same bits need to be set to 0.<br />

16.8 IEE 802.3/Clause 31 flow control<br />

Overview<br />

For full duplex connections, the Ethernet block supports IEEE 802.3/clause 31 flow control<br />

using pause frames. This type of flow control may be used in full-duplex point-to-point<br />

connections. Flow control allows a receiver to stall a transmitter e.g. when the receive<br />

buffers are (almost) full. For this purpose, the receiving side sends a pause frame to the<br />

transmitting side.<br />

Pause frames use units of 512 bit times corresponding to 128 rx_clk/tx_clk cycles.<br />

Receive flow control<br />

In full-duplex mode, the Ethernet block will suspend its transmissions when the it receives<br />

a pause frame. Rx flow control is initiated by the receiving side of the transmission. It is<br />

enabled by setting the ‘RX FLOW CONTROL’ bit in the MAC1 configuration register. If the<br />

RX FLOW CONTROL’ bit is zero, then the Ethernet block ignores received pause control<br />

frames. When a pause frame is received on the Rx side of the Ethernet block,<br />

transmission on the Tx side will be interrupted after the currently transmitting frame has<br />

completed, for an amount of time as indicated in the received pause frame. The transmit<br />

datapath will stop transmitting data for the number of 512 bit slot times encoded in the<br />

pause-timer field of the received pause control frame.<br />

By default the received pause control frames are not forwarded to the device driver. To<br />

forward the receive flow control frames to the device driver, set the ‘PASS ALL RECEIVE<br />

FRAMES’ bit in the MAC1 configuration register.<br />

Transmit flow control<br />

If case device drivers need to stall the receive data e.g. because software buffers are full,<br />

the Ethernet block can transmit pause control frames. Transmit flow control needs to be<br />

initiated by the device driver software; there is no IEEE 802.3/31 flow control initiated by<br />

hardware, such as the DMA managers.<br />

With software flow control, the device driver can detect a situation in which the process of<br />

receiving frames needs to be interrupted by sending out Tx pause frames. Note that due<br />

to Ethernet delays, a few frames can still be received before the flow control takes effect<br />

and the receive stream stops.<br />

<strong>UM10211</strong>_1<br />

© NXP B.V. 2007. All rights reserved.<br />

User manual Rev. 01 — 27 March 2007 187 of 613

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!