Teleorigin RB900 User Manual page 42

Rb-900 series
Hide thumbs Also See for RB900:
Table of Contents

Advertisement

#I2C - I2C Bus Control
Example
SLAVE
N (number of
ADDR + W
bytes to write)
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 )
Write 6 bytes to slave device with address 0x53, with 100kHz clock
AT#I2C=0,"a60601aabbccddee"
OK
Read 5 bytes from slave device with address 0x53, with 400kHz clock
AT#I2C=3,"a705"
0000000001
OK
Read data is 0x00, 0x00, 0x00, 0x00, 0x01
Write 1 bytes and read 5 bytes from slave device with address 0x53, with
repeated start condition.
AT#I2C=0,"A60101A705"
...
DATA 1
DATA N
SLAVE
M (number of
ADDR + R
bytes to read)
42

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents