ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev.4 Page 306 of 545 2020-04-15
3.8.10. AT#I2CRD - Read from I2C
This command is used to read data from an I2C peripheral connected to module.
[1] Hardware User's Guide of the used module
AT#I2CRD=<sdaPin>,<sclPin>,<deviceId>,<registerId>,<len>
Execution command reads data from an I2C peripheral connected to module GPIOs. After the
reading activity has been accomplished, the GPIOs will not be restored to the original setting. Use
#GPIO command to see the status of the used GPIOs. To have information on GPIO pins refer to
document [1].
Parameters:
GPIO number for SDA. To know the range use #I2CRD test
command.
GPIO number for SCL. To know the range use #I2CRD test
command.
address of the I2C device (7 bits). The Least Significant Bit
is used for read/write command, but in this #I2CCF
implementation, it doesn't matter if the LSB is set to 0 or 1.
Address must be written in hexadecimal form without 0x.
10 bit address is also supported
addressing range extended to 10 bit
Register to read data from
value must be written in hexadecimal form without 0x
Number of data to receive
• Data Read from I2C will be dumped in
hexadecimal format
• If data requested are more than data available in
the device, dummy data (normally 0x00 or 0xff) will
be dumped
number of data to receive
AT#I2CRD=?
Test command returns the range of available values for parameters <sdaPin>, <sclPin>,
<deviceId>, <registerId>, <len>.