English
Language : 

KSZ8864RMN Datasheet, PDF (46/112 Pages) Micrel Semiconductor – Integrated 4-Port 10/100 Managed Switch with Two MACs MII or RMII Interfaces
Micrel, Inc.
KSZ8864RMN
MII Management Interface (MIIM)
The KSZ8864RMN supports the standard 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 states of the
KSZ8864RMN. An external device with MDC/MDIO capability is used to read the PHY status or configure the PHY
settings. Further detail on the MIIM interface is found in Clause 22.2.4.5 of the IEEE 802.3u Specification.
The MIIM interface consists of the following:
 A physical connection that incorporates the data line (pin 54 MDIO) and the clock line (pin 53 MDC).
 A specific protocol that operates across the aforementioned physical connection that allows an external
controller to communicate with the KSZ8864RMN device.
 Access to a set of eight 16-bit registers, consisting of 8 standard MIIM registers [0:5h], 1d and 1f MIIM
registers per port.
The MIIM Interface can operate up to a maximum clock speed of 10MHz MDC clock.
Table 9 depicts the MII Management Interface frame format.
Read
Write
Preamble
32 1’s
32 1’s
Start of Frame
01
01
Read/Write
OP Code
10
01
PHY
Address
Bits [4:0]
AAAAA
AAAAA
REG
Address
Bits [4:0]
RRRRR
RRRRR
TA
Data Bits [15:0]
Idle
Z0 DDDDDDDD_DDDDDDDD Z
10 DDDDDDDD_DDDDDDDD Z
Table 9. MII Management Interface Frame Format
The MIIM interface does not have access to all the configuration registers in the KSZ8864RMN. It can only access
the standard MIIM registers. See “MIIM Registers”. The SPI interface and MDC/MDIO SMI mode, on the other hand,
can be used to access the entire KSZ8864RMN feature set.
Serial Management Interface (SMI)
The SMI is the KSZ8864RMN non-standard MIIM interface that provides access to all KSZ8864RMN configuration
registers. This interface allows an external device with MDC/MDIO interface to completely monitor and control the
states of the KSZ8864RMN.
The SMI interface consists of the following:
A physical connection that incorporates the data line (MDIO) and the clock line (MDC).
A specific protocol that operates across the aforementioned physical connection that allows an external controller to
communicate with the KSZ8864RMN device.
Access all KSZ8864RMN configuration registers. Register access includes the Global, Port and Advanced Control
Registers 0-255 (0x00 – 0xFF), and indirect access to the standard MIIM registers [0:5] and custom MIIM registers
[29, 31].
The SMI Interface can operate up to a maximum clock speed of 10MHz MDC clock.
Table 10 depicts the SMI frame format.
Read
Write
Preamble
32 1’s
32 1’s
Start of Frame
01
01
Read/Write
OP Code
10
01
PHY
Address
Bits [4:0]
RR11R
RR11R
REG
Address
Bits [4:0]
RRRRR
RRRRR
TA
Data
Bits [15:0]
Idle
Z0 0000_0000_DDDD_DDDD Z
10 xxxx_xxxx_DDDD_DDDD Z
Table 10. Serial Management Interface (SMI) Frame Format
September 2011
46
M9999-092011-1.4