SNLU197A February 2016 – August 2026 DP83867CR , DP83867CS , DP83867E , DP83867IR , DP83867IS
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
endAs 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.