English
Language : 

LAN91C111 Datasheet, PDF (20/125 Pages) SMSC Corporation – 10/100 Non-PCI Ethernet Single Chip MAC + PHY
LAN91C111
7.5.4 MII PACKET DATA COMMUNICATION WITH EXTERNAL PHY
The MIl is a nibble wide packet data interface defined in IEEE 802.3. The LAN91C111 meets all the MIl requirements
outlined in IEEE 802.3 and shown in Figure 7-2.
FIGURE 7-2:
MII FRAME FORMAT & MII NIBBLE ORDER
TX_EN = 0
IDLE
PREAMBLE
PRMBLE
62 BT
START
OF
FRAME
DELIM.
SFD
TX_EN = 1
DATA 1
DATA NIBBLES
DATA 2
DATA N-1
2 BT
DATA N
TX_EN = 0
IDLE
PREAMBLE = [ 1 0 1 0 ... ] 62 BITS LONG
SFD = [ 1 1 ]
DATAn = [ BETWEEN 64-1518 DATA BYTES ]
IDLE = TX_EN = 0
MII
NIBBLE
STREAM
FIRST BIT
MAC's SERIAL BIT STREAM
LSB D0 D1 D2 D3 D4 D5 D6 D7 MSB
FIRST
NIBBLE
SECOND
NIBBLE
TXD0 / RXD0
TXD1 / RXD1
TXD2 / RXD2
TXD3 / RXD3
The Mll consists of the following signals: four transmit data bits (TXD[3:0]), transmit clock (TX25),transmit enable
(TXEN100), four receive data bits(RXD[3:0]), receive clock(RX25), carrier sense (CRS100), receive data valid (RX_DV),
receive data error (RX_ER), and collision (COL100). Transmit data is clocked out using the TX25 clock input, while receive
data is clocked in using RX25. The transmit and receive clocks operate at 25 MHz in 100Mbps mode and 2.5 MHz in
10Mbps.
In 100 Mbps mode, the LAN91C111 provides the following interface signals to the PHY:
• For transmission: TXEN100, TXD0-3, TX25
• For reception: RX_DV, RX_ER, RXD0-3, RX25
• For CSMA/CD state machines: CRS100, COL100
A transmission begins by TXEN100 going active (high), and TXD0-TXD3 having the first valid preamble nibble. TXD0
carries the least significant bit of the nibble (that is the one that would go first out of the EPH at 100 Mbps), while TXD3
carries the most significant bit of the nibble. TXEN100 and TXD0-TXD3 are clocked by the LAN91C111 using TX25 ris-
ing edges. TXEN100 goes inactive at the end of the packet on the last nibble of the CRC.
During a transmission, COL100 might become active to indicate a collision. COL100 is asynchronous to the
LAN91C111’s clocks and will be synchronized internally to TX25.
Reception begins when RX_DV (receive data valid) is asserted. A preamble pattern or flag octet will be present at
RXD0-RXD3 when RX_DV is activated. The LAN91C111 requires no training sequence beyond a full flag octet for
reception. RX_DV as well as RXD0-RXD3 are sampled on RX25 rising edges. RXD0 carries the least significant bit and
RXD3 the most significant bit of the nibble. RX_DV goes inactive when the last valid nibble of the packet (CRC) is pre-
sented at RXD0-RXD3.
RX_ER might be asserted during packet reception to signal the LAN91C111 that the present receive packet is invalid.
The LAN91C111 will discard the packet by treating it as a CRC error.
DS00002276A-page 20
 2011-2016 Microchip Technology Inc.