KSZ9031MNX-EVAL Board User’s Guide
Micrel, Inc.
August 17, 2012
Rev.
1.0
22/23
The following screen shows the execution of the direct register read/write commands.
mdioConfig.exe
Program – Direct Register Read / Write Examples
6.1.3
Creating and running a script file
A group of single command lines can be put in a text file (*.txt) to produce a PHY configuration
script file. The script file can then be run to program a set of PHY registers.
The script file format is as follow:
•
Lines starting with the ”#” symbol are ignored and can be used to provide comments
•
Empty lines with just the
<ENTER>
key are ignored
•
Each command line for register read or register write is entered on a separate line and
followed by the
<ENTER>
key
For example, the following is the content of a script file called “
sample.txt
”.
# Sample script file to read PHY registers 0-3 and write to PHY registers 0 twice
#
r 0
r 1
r 2
r 3
w 0 8000
w 0 2500