Teleorigin RB800 User Manual page 36

Table of Contents

Advertisement

#I2C - I2C Bus Control
operation.
Any command is preceded by start condition and followed by stop
condition.
Write N bytes to slave device:
N (number of
SLAVE ADDR + W
DATA 1
...
DATA N
bytes to write)
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
N (number of
SLAVE
M (number of
...
DATA 1
DATA N
ADDR + W
bytes to write)
ADDR + R
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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rb900Rb800u

Table of Contents