EasyManua.ls Logo

Teleorigin RB800 - Page 36

Teleorigin RB800
51 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
#I2C - I2C Bus Control
operation.
Any command is preceded by start condition and followed by stop
condition.
Write N bytes to slave device:
SLAVE ADDR + W
N (number of
bytes to write)
DATA 1 ... DATA N
Response for write operation is only “OK” if succeed.
Read N bytes from slave device:
SLAVE ADDR + R N (number of bytes to read)
If succeed, response to read operation is read the data stream in
hexadecimal format.
Write N bytes to slave device and read M bytes from slave device:
SLAVE
ADDR + W
N (number of
bytes to write)
DATA 1
...
DATA N
SLAVE
ADDR + R
M (number of
bytes to read)
Between write and read command will be perform repeated start condition.
If succeed, response for read operation is read data stream in hexadecimal
format.
If any operation fails, response will be follow:
ERROR <err>
where
<err>
1 – NACK on address byte
2 – NACK on data byte
3 – arbitration lost
4 – timeout
5 – I2C bus busy
6 – <cmd> parse error
NOTE: At the end of the execution GPIO will be restored to the original
setting ( check AT#GPIO Command )
36

Related product manuals