SNLU197A February   2016  – August 2026 DP83867CR , DP83867CS , DP83867E , DP83867IR , DP83867IS

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1USB-2-MDIO Description
    1. 1.1 Components Needed for USB-2-MDIO Setup
  5. 2Flashing MSP430 Launchpad
  6. 3Hardware Setup
    1. 3.1 Power Sequencing
  7. 4USB-2-MDIO Setup
    1. 4.1 Creating a Script
    2. 4.2 Opening and Running a Script File
    3. 4.3 Saving Data Results
  8. 5Off-Board Flash Setup
  9. 6Revision History

Creating a Script

USB-2-MDIO supports scripts for rapid register configuration. Scripts are created in a .txt format, where each line of text represents one read or write operation. Below is an example of how a USB-2-MDIO script is implemented.

//Example USB-2-MDIO Script
begin
0000 0140     //Write 0x0140 to register 0x0000
0001          //Read register 0x0001
end

As shown in the above example, register operations begin with the 4-digit hex value of the register to be written to or read from. USB-2-MDIO interprets the operation as a read if only a register value is present on a line of text. If a register value is followed by a 4-digit data value, USB-2-MDIO interprets this as a write operation.