Cypress技术论坛
直播中

李浯

7年用户 1011经验值
私信 关注
[问答]

使用F2LP的I2C

你好
我想使用F2LP的I2C。但是我不知道你能不能给我?
我也有问题
1。如果我使用EZUBSRead或EZUBBIX写的EZUB.LIB,我是Nedi2CyHW.C文件吗?
2。我可以使用供应商命令I2C函数OF2CYHH.C吗?这是一样的工作吗?

以上来自于百度翻译


     以下为原文
   hi
    i want use i2c of fx2lp. but i can not found i2c_hw.c could you please give to me ?
     
    also i have questions
     
    1. if i use EZUSB_READ or EZUSB_WRITE of EZUSB.LIB, am i need i2c_hw.c file?
    2. can i use vendor command insted i2c function of i2c_hw.c? is this same work?

回帖(3)

傅姁妮

2019-5-24 14:37:20
你好,
你是说I2CYRW.C文件吗?你说的I2CH HW. C是什么意思?在安装FX2LP DVK后,可以在“C:CyPress  USB 目标 LIB ”位置找到I2C.C和I2CYRW.C文件。
当做,
加亚特里

以上来自于百度翻译


     以下为原文
   Hi,
     
    Did you mean i2c_rw.c file? What did you mean by i2c_hw.c? i2c.c and i2c_rw.c file can be found at the location "C:CypressUSBTargetLibLP" after installing FX2LP DVK.
     
    Regards,
    Gayathri
举报

蔡彦壁

2019-5-24 14:49:58
引用: sczclever 发表于 2019-5-24 17:26
你好,
你是说I2CYRW.C文件吗?你说的I2CH HW. C是什么意思?在安装FX2LP DVK后,可以在“C:CyPress  USB 目标 LIB ”位置找到I2C.C和I2CYRW.C文件。
当做,

我想用EEXPRM接口引导和RTC,温度传感器I2C与FX2LP。
我在这个路径中找到了I2C示例::CyPress  USB(Cy3684EZ-EZ-UBSFX2LPYDVK  1.1 目标 LIB)
1)I2C.C
2)I2CYRW C
何时使用这些.c文件?
两者都一样吗?
我能用这些I2C函数来连接EEPROM(引导加载)和RTC吗??

以上来自于百度翻译


     以下为原文
  i want to  interface eeprom for booting and rtc,temperature sensortrough i2c with fx2lp.
i have found i2c example in this path C:CypressUSBCY3684_EZ-USB_FX2LP_DVK1.1TargetLibLP
1)i2c.c
2)i2c_rw.c
when to use these .c file?
both are same?
can i use these i2c functions to interface both eeprom(boot loading)and rtc??
举报

杜美娜

2019-5-24 15:03:50
引用: 报纸弟弟麦花 发表于 2019-5-24 17:39
我想用EEXPRM接口引导和RTC,温度传感器I2C与FX2LP。
我在这个路径中找到了I2C示例::CyPress  USB(Cy3684EZ-EZ-UBSFX2LPYDVK  1.1 目标 LIB)
1)I2C.C

你好,Geetha Diwakar,
I2C.C和I2CYRW.C不是他们自己的例子。这些文件用于执行使用FX2LP的I2C通信。
这两个文件不一样。
-使用I2C接口进行引导,不需要使用这些文件。设备中的引导加载程序将查找I2C线路上的EEPROM的存在。
最好的问候,
斯里纳斯

以上来自于百度翻译


     以下为原文
  Hello Geetha Diwakar,
 
- The i2c.c and i2c_rw.c are not examples by themselves. These files are used to perform I2C communication using the FX2LP.
- Both these files are not the same.
- To use the I2C interface for booting, these files need not be used. The boot-loader present in the device will look for the presence of EEPROM on the I2C lines.
 
Best regards,
Srinath S
举报

更多回帖

发帖
×
20
完善资料,
赚取积分