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 />

Transmit flow control is enabled via the ‘TX FLOW CONTROL’ bit in the MAC1<br />

configuration register. If the ‘TX FLOW CONTROL’ bit is zero, then the MAC will not<br />

transmit pause control frames, software must not initiate pause frame transmissions, and<br />

the TxFlowControl bit in the Command register should be zero.<br />

Transmit flow control example<br />

Figure 11–24 illustrates the transmit flow control.<br />

device driver<br />

PauseTimer<br />

register MirrorCounter<br />

TxFlowCtl<br />

writes<br />

clear<br />

TxFlowCtl<br />

(R)MII<br />

transmit<br />

normal<br />

transmission<br />

pause control<br />

frame<br />

transmission<br />

normal transimisson<br />

pause control<br />

frame<br />

transmission<br />

pause control<br />

frame<br />

transmission<br />

MirrorCounter<br />

(1/515 bit<br />

slots)<br />

(R)MII<br />

receive<br />

normal receive<br />

pause in effect<br />

normal receive<br />

0 50 100 150 200 250 300 350 400 450 500<br />

Fig 24. Transmit Flow Control<br />

In this example, a frame is received while transmitting another frame (full duplex.) The<br />

device driver detects that some buffer might overrun and enables the transmit flow control<br />

by programming the PauseTimer and MirrorCounter fields of the FlowControlCounter<br />

register, after which it enables the transmit flow control by setting the TxFlowControl bit in<br />

the Command register.<br />

As a response to the enabling of the flow control a pause control frame will be sent after<br />

the currently transmitting frame has been transmitted. When the pause frame<br />

transmission completes the internal mirror counter will start counting bit slots; as soon as<br />

the counter reaches the value in the MirrorCounter field another pause frame is<br />

transmitted. While counting the transmit datapath will continue normal transmissions.<br />

As soon as software disables transmit flow control a zero pause control frame is<br />

transmitted to resume the receive process.<br />

16.9 Half-Duplex mode backpressure<br />

When in half-duplex mode, backpressure can be generated to stall receive packets by<br />

sending continuous preamble that basically jams any other transmissions on the Ethernet<br />

medium. When the Ethernet block operates in half duplex mode, asserting<br />

the TxFlowControl bit in the Command register will result in applying continuous preamble<br />

on the Ethernet wire, effectively blocking traffic from any other Ethernet station on the<br />

same segment.<br />

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

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

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

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

Saved successfully!

Ooh no, something went wrong!