![Ratoc Systems REX-USB61 User Manual Download Page 39](http://html.mh-extra.com/html/ratoc-systems/rex-usb61/rex-usb61_user-manual_788102039.webp)
3.SPI/I2C Control Utility
Page.3-15
Command for I2C only
Fig.3-3 I2C command table
Command
ADDRESSMODE=
Meaning
Set I2C address to 7 bit mode or 10 bit mode. (Default value is 7 bit mode)
Parameter
7 or 10
Command
ADDRESS=
Meaning
Set I2C address
You can change address any time, but if [READ] or [WRITE] command is
written before setting an address, it is a grammatical error.
Parameter
0 – 1023
Command
READ
Meaning
Read bytes set by this command.
Parameter xxH
Set bytes which will be read.
1 - 65536
Command
READF
Meaning
Read bytes set by this command and save the data as a file.
The data is saved as a file name described as FILEn.
Add the data to the existing file if a file already exist.
Parameter xxH FILEn
Set bytes to be read
、
a file to be saved
(
Bytes:1 - 65536
)
Command
WRITE
Meaning
Write data set by this command. If more than one data need to be written,
separate each data by comma.
Parameter xxH,
xxH,
…
Set data to be written by bytes.
Command
WRITEF
Meaning
Send data from a file. Data is treated by a binary data.
Data to be written is read from a file specified as FILEn.
Parameter FILEn
Set a file to be written
Command
STOP
Meaning
Send stop bit.
Parameter None
Command
RESET
Meaning
Issue a reset to bus(send STOP bit)
Parameter None
Command
GPO=
Meaning
Set a port output to DO0 - DO3(#13 - #16 pin)
Parameter
Set 1 for output bit.
Set 0 - 15 when describing in Decimal number.
Set 0h - Fh when describing in Hex number.
Bit3
Bit2
Bit1
Bit0
DO3 DO2 DO1 DO0