Phy Management Interface (mdio)
For gibit Ethernet, a serial communication bus is called mdio ). This bus is defined by several terms of the IEEE Standard over Ethernet IEEE 802.3. Mdio is a simple dual-line serial interface that combines management devices (such as Mac controllers and microprocessors) with management-enabled transceiver (such as multi-port gibit Ethernet transceiver or 10gbe xaui transceiver) connect to control the transceiver and collect status information from the transceiver. Information collected includes Link Status, transmission speed and selection, power failure, low-power sleep status, TX/Rx mode selection, automatic negotiation control, and loop back mode control. In addition to features required by IEEE, transceiver vendors can also add more information collection functions.
MDC is the clock input for data management, and the maximum speed can be 8.3 MHz. Mdio is a bidirectional interface for data input and output management, and data is synchronized with the MDC clock. The mdio workflow is as follows:
- The mdio interface is in a high-impedance state on the idle data line that does not transmit data.
- A 2bit start code (01) is displayed for mdio and a read/write operation starts.
- Mdio displays a 2bit data to identify whether it is a read operation (10) or a write operation (01 ).
- Mdio displays a 5-Bit Data mark PHY address.
- A 5bitphy Register address is displayed in mdio.
- Mdio requires two clock access times.
- Mdio reads/writes 16-bit register data in sequence.
- The mdio is restored to the idle state, and the mdio enters the high-impedance state.