你好,
我尝试用EZ I2C从组件上的cy8c3666在我的项目模拟I2C EEPROM。然而,它不起作用。
我看到的症状,做一个起始位,然后8钟,但第九钟的AK点缺失。也许是因为时钟拉伸而保持低调?我不知道,很难说清楚。
所以我尝试如下:
*我的CY8C3666项目板上的EZ I2C示例项目。这很好。
*我的CY8C5666 DEV板上的EZ I2C示例项目。这很好。
*将I2C主机布线到DEV板中。这很好。
所以我确信所有的组件都是独立工作的。我唯一可以认为是错的是建立我的项目;对ezi2c组件或代码的配置。我检查了我的代码和示例项目,看起来好。此外,我在所有情况下都使用I2C0引脚3和4。
唯一的区别,我可以看到我的项目和工程实例之间是ezi2c配置窗口。在示例项目,灰色的针的连接选项,尽管一切看起来都一样。我做的任何事情似乎都不可能是灰色的。
有什么我可以错过的吗?
雨果
EZY-I2C.PNG
18.5 K
以上来自于百度翻译
以下为原文
Hi,
I am trying to use the EZ I2C Slave component on a CY8C3666 to emulate an I2C EEPROM in my project. However, it is not working.
The symptoms I see is that the master does a Start bit, then 8 clocks, but the 9th clock for the AK bit is missing. Perhaps it's being held low for clock stretching? I don't know, it's hard to tell.
So I tried the following:
* The EZ I2C example project on my CY8C3666 project board. This works fine.
* The EZ I2C example project on my CY8C5566 dev board. This works fine.
* Wiring the I2C Master into the dev board. This works fine.
So I'm sure that all of the components work individually. The only thing I can think that's wrong is the set up of my project; the configura
tion of the EZI2C component or the code. I have checked my code against the example project, and it looks OK. Also, I am using the I2C0 pins 3 & 4 in all cases.
The only difference I can see between my project and the example project is the EZI2C config window. In the example project, the Pin Connections option is greyed out, even though everything else looks the same. Nothing I do seems to be able to un-grey this option.
Is there anything I could be missing?
Hugo