SNLA437 December   2023 DP83822H , DP83822HF , DP83822I , DP83822IF , DP83825I , DP83826E , DP83826I

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1DP83822 Application Overview
  5. 2Troubleshooting the PHY Application
    1. 2.1  Schematic and Layout Checklist
    2. 2.2  Verify Successful Power-up of PHY
    3. 2.3  Read and Check Register Values
    4. 2.4  Peripheral Pin Checks
      1. 2.4.1 Probe the RESET_N Signal
      2. 2.4.2 Probe the RBIAS pin
      3. 2.4.3 Probe the Serial Management Interface (MDC, MDIO) Signals
      4. 2.4.4 Probe the MDI Signals
    5. 2.5  Verifying Strap Configurations During Initialization
    6. 2.6  Debugging Link Quality
    7. 2.7  Built-In Self Test With Various Loopback Modes
    8. 2.8  Debug the Fiber Connection
    9. 2.9  Debug the MAC Interface
    10. 2.10 Debug the Start of Frame Detect
    11. 2.11 Tools and References
      1. 2.11.1 DP83822 Register Access
      2. 2.11.2 Extended Register Access
      3. 2.11.3 Software and Driver Debug on Linux
        1. 2.11.3.1 Common Terminal Outputs and Solutions
  6. 3References

DP83822 Register Access

If register access is not readily available in the application, USB-2-MDIO GUI is available from TI and can be used with an MSP430 Launchpad, purchasable through the TI eStore. The GUI supports reading and writing registers as well as running script files. It can be used with the DP83822 and the other devices in TI's Ethernet portfolio. The USB-2-MDIO User's Guide and GUI are available for download at: http://www.ti.com/tool/usb-2-mdio.

GUID-FA96B5E9-2FEC-4B72-98E3-7CF482051CEA-low.gifFigure 2-21 USB-2-MDIO GUI
GUID-51A73C90-8FD4-49C6-9C38-91A9CBB688B4-low.gifFigure 2-22 MSP430 LaunchPad

Below is an example script that can also be found in the USB-2-MDIO GUI in the Help menu:

// This is how you make a comment. All scripts must start with 'begin' 
begin
// To read a register, all you need to do is put down the 4 digit
// HEX value of the registers (from 0000 to FFFF) 
// Example to read registers 0001, 000A, and 0017 
0001
000A
0017
// To write a register, all you need to do is put down the 4 digit 
// HEX value of the register (from 0000 to FFFF) followed by the 
// HEX you desire to configure the register to (from 0000 to FFFF) 
// Example to write 2100 to register 0000 and
// Example to write 0110 to register 0016 
0000 2100
0016 0110
// You must end the script by adding 'end' once you are finished
end

The Serial Management Interface defined by IEEE 802.3 is a single master bus. The MDC clock is generated by the bus master, typically an Ethernet MAC. To use the USB-2-MDIO GUI, connections must be made directly between the MSP430 Launchpad and the DP83822 MDIO and MDC pins.

  • MSP430 Pin 4.2 → PHY's MDIO Pin
  • MSP420 Pin 4.1 → PHY's MDC Pin