Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

Communicate with the I2C interface of the EZUSB parts

Communicate with the I2C interface of the EZUSB parts

Anonymous
Not applicable
Question: How does EZUSB communicate with I2C interface?What is the address that is used in the EZUSB_WriteI2C() routine?Where can I find the source code for this function?

 

Answer:

The APIs EZUSB_ReadI2C() and EZUSB_WriteI2C() may be used for communication with I2C devices.These routines are included in EZUSB library.The address in the EZUSB_WriteI2C() routine is the address of the device that it is talking to. Please see the dev_io example provide in C:\Cypress\USB\Examples\FX2LPdev_io for reference. In this example the address of the LED is used in the EZUSB_WriteI2C() routine.
 The source code for the routines are in i2c.c, i2c_rw.c files which are provided in the development kit in C:\Cypress\USB\Target\Lib\LP.For more information on I2C communication,refer to Section 13.4 of Technical Reference Manual


 

0 Likes
389 Views
Contributors