![Ratoc Systems REX-USB61 Скачать руководство пользователя страница 37](http://html.mh-extra.com/html/ratoc-systems/rex-usb61/rex-usb61_user-manual_788102037.webp)
3.SPI/I2C Control Utility
Page.3-13
(3-4)
Grammar for script description
This utility can treat a script file where a description of a device access is written.
You can describe a comment at the script file. By using the script file, you can access
a device. You need to describe a script by the following rule:
Common command for SPI/I2C
The following is a common command for both SPI and I2C.
・
Definition of values
Describe values as Decimal number or Hex number.
・
The values ranges from 0
~
65536 and if the values is Hex number, put [h] or [H]
at the end of the values. If you describe the values consecutively, put [,] between
a value and another value.
・
Definition of characters
This script file doesn’t distinguish a small letter and a large letter of alphabet.
You may write Japanese comments.
・
Grammar
Be sure to put space(one-byte) or TAB between a command and another
command, or a value and another value.
Two-byte characters are a grammatical error.
Fig.3-2 Common command table
Command #
Meaning
The sentence after [#] is treated as a comment.
Parameter None
Command MODE=
Meaning
Set mode for SPI, or I2C.
There is not a default value for this MODE command.
If you don’t set a mode, it is a grammatical error.
After setting, you can not change modes halfway.
Parameter SPI
I2C
Command FREQUENCY=
Meaning
Set a sampling rate(frequency).
You can set a sampling rate(frequency) by 1KHz each.
For SPI, a sampling rate(frequency) will be set at an approximate value which
can be really set. (I2C:47KHz - 1MHz / SPI: Up to 12MHz)
* For how to calculate an approximate value, please refer to a
usb61_spi_set_freq()
function at Chapter 4.
If you don’t set Frequency, the following is a default value.
Mode
Sampling rate (Frequency)
SPI 100KHz
I2C 100KHz
You can change sampling rate(frequency) any time.
Parameter You can set the below setting for SPI,I2C.
Mode
Setting value
SPI
1 - 12000
I2C
47 - 1000
Содержание REX-USB61
Страница 1: ...USB SPI I2C Protocol Emulator 2013 10 Rev 1 0 ...
Страница 75: ...RATOC Systems Inc All rights reserved ...