R e v 1 . 1
| Page
36
Using Scripts
Scripts can be written in Notepad and saved with a file extension of .txt
The following are examples can be used:
•
To write to a PACKET_RAM register enter the line “18xxyy” where “xx” represents the last eight
bits of the address to be written to and “yy” represents the value to be stores at this address.
o
For Example if you need to write 0xAB to PACKET_RAM location 0x010, then the script
code would be : 1810AB
•
To write to a BBRAM register enter the line “19xxyy” where “xx” represents the last eight bits of
the address to be written to and “yy” represents the value to be stores at this address.
o
For Example if you need to write 0xCD to BBRAM location 0x123, then the script code
would be : 1923CD
•
To write to a MCR register enter the line “1Bxxyy” where “xx” represents the last eight bits of
the address to be written to and “yy” represents the value to be stores at this address.
o
For Example if you need to write 0xEF to MCR location 0x345, then the script code
would be : 1B45EF
•
To introduce a delay before the next script command enter the line “Sxxxx”. Where “xxxx”
represents an integer multiple of 1ms.
o
For example to enter a delay of 120ms before the next command is to be issued then
the script code would be: “S120”
•
To issue a COMMAND enter the desired command.
o
For Example to enter “
PHY_OFF
”, then the script code would be : B1
o
For Example to enter “
PHY_ON
”, then the script code would be : B2
o
For Example to enter “
PHY_TX
”, then the script code would be : B5
•
To introduce comments in the file use “//” before the comment.
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from