![Ratoc Systems REX-USB61 User Manual Download Page 41](http://html.mh-extra.com/html/ratoc-systems/rex-usb61/rex-usb61_user-manual_788102041.webp)
3.SPI/I2C Control Utility
Page.3-17
How to use REPEAT command
This section explains REPEAT script and inside process of
{
}
and STOP.
Script code
Explanation of function
REPEAT=10
READ 1 STOP
After receiving 10 bytes of data, STOP condition is sent.
REPEAT=10
{
READ 1 STOP
}
Repeat the following 10 times:
[Send STOP condition by 1 byte each]
REPEAT=10
READ 1
STOP
STOP condition is sent after receiving 10 bytes of data.
REPEAT=10
{
READ 1
}
STOP
STOP condition is sent after receiving 10 bytes of data.
REPEAT=10
{
READ 1
STOP
}
Repeat the following 10 times:
[STOP condition is sent after receiving 1 byte of data]