User guide

CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *B 77
Advanced Topics
Figure 6-5. Reading from I
2
C Slave in BCP
The command format to communicate with this kit using the BCP is as follows:
Write data command format: To write ‘N’ bytes of data after the register offset address, use this
format to send data.
Read data command format: To read ‘N’ bytes of data beginning with the register offset address,
use this format to receive data.
Notes:
The Write/Read transaction with an MBR3 device requires specifying an offset address to the
MBR3 device from which the data reading/writing should start. The MBR3 device automatically
increments the register address for every byte after the offset address. Therefore, a Read/Write
transaction with an MBR3 device starts with an I
2
C write operation to specify the register offset to
the MBR3 device.
All bytes in the IIC file are in hex format.
The status box below the editor window shows the offset register content, where:
w – Write command.
Address – Slave device address (in hex). Default address for the device on this kit is 0x37.
Register offset – Offset address of the configuration register you want to write. See the datasheet
for the list of registers and their offset addresses.
Data – Write ‘N’ byte data here to write sequentially beginning with the offset address.
r – Read command.
w Slave address Register offset Data to write (N bytes) p
w Slave address Register offset r Slave address
write ‘N’ number of x’s with
spaces
p