SNLA431 January   2024 DP83TC812R-Q1 , DP83TC812S-Q1

 

  1.   1
  2.   Trademarks
  3. 1Preface
  4.   Notational Conventions
  5. 2Related Documentation
  6. 3Support Resources
  7. 4Troubleshooting the PHY Application
    1. 4.1  Schematic and Layout Checklist
    2. 4.2  Verify Successful Power-up of PHY
    3. 4.3  Peripheral Pin Checks
      1. 4.3.1 Probe the RESET_N pin
      2. 4.3.2 Probe the INH pin
      3. 4.3.3 Probe the CLKOUT pin
      4. 4.3.4 Probe the Serial Management Interface (MDC, MDIO) Pins
    4. 4.4  Register Dump Comparison
    5. 4.5  Verifying Strap Configurations
    6. 4.6  Check the MDI Signal
    7. 4.7  Link Up Failed Common Issues
    8. 4.8  Signal Quality Check
    9. 4.9  Power Up Timing
    10. 4.10 Loopback Testing
    11. 4.11 Debugging the MAC Interface
    12. 4.12 Verify Open Alliance PMA Compliance
    13. 4.13 Tools and References
      1. 4.13.1 DP83TC812 Register Access
      2. 4.13.2 DP83TC812 USB2MDIO Scripts
      3. 4.13.3 Extended Register Access
      4. 4.13.4 Software and Driver Debug on Linux
        1. 4.13.4.1 Commonly Seen Linux Terminal Outputs
  8. 5Conclusion

DP83TC812 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. The GUI supports reading and writing registers as well as running script files. The GUI can be used with the DP83TC812 and all other TI Ethernet PHYs. The USB-2-MDIO User's Guide and GUI are available for download here.

GUID-5132ABF0-B3B2-4411-A179-CD1F79245D9B-low.gifFigure 4-14 USB-2-MDIO GUI
GUID-D0E2157E-517B-413B-97B7-AE9091338CE1-low.gifFigure 4-15 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 DP83TC812 MDIO and MDC pins.

  • Launchpad Pin 4.2 → PHY's MDIO Pin
  • Launchpad Pin 4.1 → PHY's MDC Pin