English
Language : 

KSZ8041NLITR Datasheet, PDF (23/54 Pages) Micrel Semiconductor – 10Base-T/100Base-TX Physical Layer Transceiver
Micrel, Inc.
KSZ8041NL/RNL
MII Management (MIIM) Interface
The KSZ8041NL/RNL supports the IEEE 802.3 MII Management Interface, also known as the Management Data Input /
Output (MDIO) Interface. This interface allows upper-layer devices to monitor and control the state of the
KSZ8041NL/RNL. An external device with MIIM capability is used to read the PHY status and/or configure the PHY
settings. Further details on the MIIM interface can be found in Clause 22.2.4 of the IEEE 802.3 Specification.
The MIIM interface consists of the following:
• A physical connection that incorporates the clock line (MDC) and the data line (MDIO).
• A specific protocol that operates across the aforementioned physical connection that allows a external controller
to communicate with one or more PHY devices. Each KSZ8041NL/RNL device is assigned a unique PHY address
between 1 and 7 by its PHYAD[2:0] strapping pins. Also, every KSZ8041NL/RNL device supports the broadcast
PHY address 0, as defined per the IEEE 802.3 Specification, which can be used to read/write to a single
KSZ8041NL/RNL device, or write to multiple KSZ8041NL/RNL devices simultaneously.
• A set of 16-bit MDIO registers. Register [0:6] are required, and their functions are defined per the IEEE 802.3
Specification. The additional registers are provided for expanded functionality.
The Table 1 shows the MII Management frame format for the KSZ8041NL/RNL.
Preamble Start of
Frame
Read 32 1’s
01
Write 32 1’s
01
Read/Write
OP Code
10
PHY
Address
Bits [4:0]
00AAA
01
00AAA
REG
Address
Bits [4:0]
RRRRR
RRRRR
TA Data
Idle
Bits [15:0]
Z0 DDDDDDDD_DDDDDDDD Z
10 DDDDDDDD_DDDDDDDD Z
Table 1. MII Management Frame Format
Interrupt (INTRP)
INTRP (pin 21) is an optional interrupt signal that is used to inform the external controller that there has been a status
update to the KSZ8041NL/RNL PHY register. Bits[15:8] of register 1Bh are the interrupt control bits, and are used to
enable and disable the conditions for asserting the INTRP signal. Bits[7:0] of register 1Bh are the interrupt status bits, and
are used to indicate which interrupt conditions have occurred. The interrupt status bits are cleared after reading register
1Bh.
Bit 9 of register 1Fh sets the interrupt level to active high or active low.
MII Data Interface (KSZ8041NL only)
The Media Independent Interface (MII) is specified in Clause 22 of the IEEE 802.3 Specification. It provides a common
interface between physical layer and MAC layer devices, and has the following key characteristics:
• Supports 10Mbps and 100Mbps data rates.
• Uses a 25MHz reference clock, sourced by the PHY.
• Provides independent 4-bit wide (nibble) transmit and receive data paths.
• Contains two distinct groups of signals: one for transmission and the other for reception.
By default, the KSZ8041NL is configured to MII mode after it is power-up or reset with the following:
• A 25MHz crystal connected to XI, XO (pins 9, 8), or an external 25MHz clock source (oscillator) connected to XI.
• CONFIG[2:0] (pins 18, 29, 28) set to ‘000’ (default setting).
September 2010
23
M9999-090910-1.4