USB2MDIO Userguide
USB2MDIO Userguide
User's Guide
The USB-2-MDIO software tool allows users of Texas Instruments' Ethernet PHYs to access MDIO status
and control registers. The USB-2-MDIO tool consists of an MSP430 LaunchPad™ interfaced with a
lightweight GUI. The LaunchPad implements an MDIO bus controller that can manipulate registers on
PHYs attached to the bus.
1 USB-2-MDIO Description
USB-2-MDIO software tool is used to configure the registers of a PHY using the MSP430 LaunchPad.
This development tool allows for simple hardware setup and software support for customers that do not
have MDIO communication capability.
USB-2-MDIO allows access to all Texas Instruments’ Ethernet PHYs that support MDIO bus serial
management. USB-2-MDIO allows users to read, write, script register read/write transactions and log data
coming from the MDIO bus.
Figure 2 shows the necessary connections to enable MDIO register access. MSP430G2 Series
LaunchPad pin configurations are as follows:
• MDIO (EVM) Connect to P1.5 (LaunchPad)
• MDC (EVM) Connect to P1.4 (LaunchPad)
• GND (EVM) Connect to GND (LaunchPad)
Figure 2. MSP430G2 LaunchPad Connections, MDC (Red Wire, P1.4), MDIO (Blue Wire, P1.5), and GND
(Black Wire)
NOTE: MSP430 drivers are required to properly connect the MSP430 LaunchPad to a user’s
computer. Drivers can be downloaded here: http://software-
dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSP430_FET_Drivers/latest/index_FDS.h
tml.
NOTE: To find what port the LaunchPad is connected to go to Device Manager on your computer
and look under Ports. If the device is not found under Ports, please ensure that the drivers
specified above are installed on the user’s computer.
begin
// To read a register, write the 16bit register address in hex (from 0000 to FFFF)
// The scripts are not case sensitive
// Example to read registers 0x0001, 0x000A, and 0x0017
0001
000A
0017
// To write a register, write the 16bit register address in hex (from 0000 to FFFF)
// followed by the 16bit value in HEX you desire to write to the register (from 0000 to FFFF)
// Example to write 0x2100 to 0x0000
// Example to write 0x0110 to register 0x0016
0000 2100
00160110
// As shown above, the register address does not have to be separated by a space from the
// value being written. If a space is desired, only 1 space should by inserted between
// register address and the value.
// You must end the script by adding 'end' once you are finished
end
Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, enhancements, improvements and other
changes to its semiconductor products and services per JESD46, latest issue, and to discontinue any product or service per JESD48, latest
issue. Buyers should obtain the latest relevant information before placing orders and should verify that such information is current and
complete. All semiconductor products (also referred to herein as “components”) are sold subject to TI’s terms and conditions of sale
supplied at the time of order acknowledgment.
TI warrants performance of its components to the specifications applicable at the time of sale, in accordance with the warranty in TI’s terms
and conditions of sale of semiconductor products. Testing and other quality control techniques are used to the extent TI deems necessary
to support this warranty. Except where mandated by applicable law, testing of all parameters of each component is not necessarily
performed.
TI assumes no liability for applications assistance or the design of Buyers’ products. Buyers are responsible for their products and
applications using TI components. To minimize the risks associated with Buyers’ products and applications, Buyers should provide
adequate design and operating safeguards.
TI does not warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or
other intellectual property right relating to any combination, machine, or process in which TI components or services are used. Information
published by TI regarding third-party products or services does not constitute a license to use such products or services or a warranty or
endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the
third party, or a license from TI under the patents or other intellectual property of TI.
Reproduction of significant portions of TI information in TI data books or data sheets is permissible only if reproduction is without alteration
and is accompanied by all associated warranties, conditions, limitations, and notices. TI is not responsible or liable for such altered
documentation. Information of third parties may be subject to additional restrictions.
Resale of TI components or services with statements different from or beyond the parameters stated by TI for that component or service
voids all express and any implied warranties for the associated TI component or service and is an unfair and deceptive business practice.
TI is not responsible or liable for any such statements.
Buyer acknowledges and agrees that it is solely responsible for compliance with all legal, regulatory and safety-related requirements
concerning its products, and any use of TI components in its applications, notwithstanding any applications-related information or support
that may be provided by TI. Buyer represents and agrees that it has all the necessary expertise to create and implement safeguards which
anticipate dangerous consequences of failures, monitor failures and their consequences, lessen the likelihood of failures that might cause
harm and take appropriate remedial actions. Buyer will fully indemnify TI and its representatives against any damages arising out of the use
of any TI components in safety-critical applications.
In some cases, TI components may be promoted specifically to facilitate safety-related applications. With such components, TI’s goal is to
help enable customers to design and create their own end-product solutions that meet applicable functional safety standards and
requirements. Nonetheless, such components are subject to these terms.
No TI components are authorized for use in FDA Class III (or similar life-critical medical equipment) unless authorized officers of the parties
have executed a special agreement specifically governing such use.
Only those TI components which TI has specifically designated as military grade or “enhanced plastic” are designed and intended for use in
military/aerospace applications or environments. Buyer acknowledges and agrees that any military or aerospace use of TI components
which have not been so designated is solely at the Buyer's risk, and that Buyer is solely responsible for compliance with all legal and
regulatory requirements in connection with such use.
TI has specifically designated certain components as meeting ISO/TS16949 requirements, mainly for automotive use. In any case of use of
non-designated products, TI will not be responsible for any failure to meet ISO/TS16949.
Products Applications
Audio www.ti.com/audio Automotive and Transportation www.ti.com/automotive
Amplifiers amplifier.ti.com Communications and Telecom www.ti.com/communications
Data Converters dataconverter.ti.com Computers and Peripherals www.ti.com/computers
DLP® Products www.dlp.com Consumer Electronics www.ti.com/consumer-apps
DSP dsp.ti.com Energy and Lighting www.ti.com/energy
Clocks and Timers www.ti.com/clocks Industrial www.ti.com/industrial
Interface interface.ti.com Medical www.ti.com/medical
Logic logic.ti.com Security www.ti.com/security
Power Mgmt power.ti.com Space, Avionics and Defense www.ti.com/space-avionics-defense
Microcontrollers microcontroller.ti.com Video and Imaging www.ti.com/video
RFID www.ti-rfid.com
OMAP Applications Processors www.ti.com/omap TI E2E Community e2e.ti.com
Wireless Connectivity www.ti.com/wirelessconnectivity
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2016, Texas Instruments Incorporated