Reprints     Printer-Friendly    Email this Article    RSS        Font Size     What's This?

[Design Application]

Use The MDIO Bus To Interrogate Complex Devices


ITwo-pin bus specified in IEEE RFC802.3 lets designers communicate with switches and routers.

Contributing Author  |   ED Online ID #3497  |   December 3, 2001

Article Rating:

Semiconductor devices can modify their behaviors based on the parameters written to the internal registers, or the control-voltage levels provided to the input pins. Pin count is sometimes a limiting factor, though, and many designers prefer to utilize the register approach. There are several ways to write the parameters in registers. Some of the most common methods include:

  • The control register located at the dedicated address inside the device. This is common among memory devices, such as flash memory. To write the parameters, the host addresses the specific location and supplies the parameter value to this register.
  • The chip select specific to the control registers. This type of device provides a dedicated line that, when asserted, accesses the read/write operation to the control registers.
  • A dedicated bus to write to the control registers. Dedicated pins are assigned, which a host uses to write the parameters to the device.

What is MDIO?
Management Data Input/Output, or MDIO, is a standard-driven, dedicated-bus approach that's specified in IEEE RFC802.3. The MDIO interface is implemented by two pins, an MDIO pin and a Management Data Clock (MDC) pin. The IEEE RFC802.3 specification defines MDIO in Chapter 22, and Chapter 45 further defines the 802.3ae specification. This article discusses both sections of the specification in that order.

In Chapter 22, the MDIO interface is defined in relationship to the accessing and modification of various registers within physical-layer (PHY) devices, and how they relate to connecting to media access controllers (MACs) in 1- and 10-Gbit/s Ethernet solutions. See Figure 1 for an example of the interface.

One MDIO interface can access up to 32 registers, in 32 different devices. A device driving an MDIO bus is called a station management entity (STA), and the device being managed by the STA is called the MDIO Manageable Device (MMD). The STA drives the MDC line. It initiates a command using an MDIO frame and provides the target register address. During a write command, the STA also provides the data. In the case of a read command, the MMD takes over the bus and supplies the STA with the data. Figure 2a illustrates the MDIO frame format, while Figure 2 defines the terminology. Figure 3 shows both the read and write frames.

Chapter 45 specifies the extension to the MDIO, where the following changes are made:

  • Capability added to address more registers--up to 65,536 registers in each device.
  • More OP-code and ST-code added, which specify the extension (two additional OP-codes and ST-code from 01 to 00).
  • Modification of electrical interfaces from the original specification. The earlier specification stated 5- and 3.3-V signal levels. The extension includes signal levels to 1.5 V

The extension specification also allows one STA to drive 32 ports of 32 devices. To access the registers, the STA issues a read or write command to the given addressed MMD and register in that MMD. Where a register isn't implemented, a write command to the unimplemented register or bits doesn't affect the MMD's operation. A read command to the unimplemented bit or register returns a value of 0.

The PHY specification: MDIO/MDC pins are implemented using 5- or 3.3-V TTL signals. For the extension, "0- to 1.5-V" signal logic is specified.

MDIO is a bidirectional signal sourced by the host (STA), or by the slave (MMD). The standard specifies timing distinction, such that when the STA sources the MDIO signal, it provides a minimum of 10-ns setup and hold time with respect to the MDC signal. If the MMD is supplying the MDIO signal, the specification allows the clock-to-data delay to be a minimum of 0 ns and a maximum of 300 ns. This is an important factor in the ease of implementing the interface. However, it puts a restriction on the bus bandwidth.




<-- prev. page     [1] 2     next page -->

Reprints     Printer-Friendly    Email this Article    RSS        Font Size     What's This?


  • 2008 BEST Electronic Design Winners
  • In EDA, A Year Of Mergers, Failed And Otherwise
  • 2008 BEST Electronic Design Winners
  • Engineers Rely On Internet For Product Info
  • Rochester Electronics Establishes New Design and Technology Group
  • November 17, 2008
  • Custom Sources Light Way To 22-nm IC Lithography
  • Software Turns Scopes Into Vector RF Signal Analyzers
    1) Switch-Mode ICs Promote Efficient Power Management, Part 1: Switch-Mode Fundamentals
    (1850 views today)
    2) Ubuntu Goes Embedded
    (440 views today)
    3) Parts Add Up To Home Theater PC
    (320 views today)
    4) Build A Smart Battery Charger Using A Single-Transistor Circuit
    (221 views today)
    5) The ABCs Of Fiber Bragg Gratings
    (192 views today)
    ALL TOP 20







    Reader Comments

    Nice presentation. I have one comment though, the data is on 16b (IEEE 802.3 22.2.4.5.8 DATA (data)) not 32b as Figure 2a depicts it. And also I have a question, in a normal interframe (where MDIO is in high-impedance state) how should MDC be sourced (as a normal clock - active or MDC should be left in 0 logic)? Thanks

    Alex -November 14, 2006   (Article Rating: )

    this was my first article on MDIO, and feeling lucky ,i found the right one..

    rest can be explored if u know the idea behind .. thnx

    dorjee -June 28, 2006   (Article Rating: )

    its useful

    Anonymous -April 21, 2006   (Article Rating: )
    Read more comments...

    POST YOUR COMMENTS HERE

    Name:

    Email:
    Rate this article:

     less useful more useful 
    1
    2
    3
    4
    5
    Your Comments:

    Enter the text from the image below




    Please refresh the page if you have trouble reading this text.
     
     

    PartFinder

    Find real-time pricing, stock status, same-day/next-day shipping options and more. Brought to you by Digi-Key. Go to PartFinder.    
    GlobalSpec

    PART SEARCH :
    Powered by: GlobalSpec - The Engineering Search Engine
    Sponsored Links

    Electronic Design Europe Electronic Design China EEPN Power Electronics Auto Electronics Microwaves & RF
    Mobile Dev & Design Schematics Find Power Products Military Electronics EE Events Related Resources