i2c operation

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

cross mob
CSK10
Level 3
Level 3
First like received First like given 50 sign-ins

How to use i2c.c file Is there any working example related to it ?

How does the I2CMODE |= 0x02;  work? 

I cannot find any reference to it in the TRM ?

0 Likes
1 Solution
MallikaK_22
Moderator
Moderator
Moderator
50 likes received 750 replies posted 250 solutions authored

Hi, 

The file which you referred is the library file. You may refer to an I2C example, Vend_Ax.c

The I2C functions such as EZUSB_ReadI2C() and EZUSB_WriteI2C() defined in i2c.c are called in Vend_Ax.c.

Regards,

Mallika

View solution in original post

0 Likes
3 Replies
MallikaK_22
Moderator
Moderator
Moderator
50 likes received 750 replies posted 250 solutions authored

Hi,

Kindly let me know which I2C example are you referring to?

Regards,

Mallika

0 Likes

Hello ,

I refer to the file i2c.c in the folder  C:\Cypress\USB\CY3684_EZ-USB_FX2LP_DVK\1.1\Target\Lib\LP 

0 Likes
MallikaK_22
Moderator
Moderator
Moderator
50 likes received 750 replies posted 250 solutions authored

Hi, 

The file which you referred is the library file. You may refer to an I2C example, Vend_Ax.c

The I2C functions such as EZUSB_ReadI2C() and EZUSB_WriteI2C() defined in i2c.c are called in Vend_Ax.c.

Regards,

Mallika

0 Likes