- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi dear!
I study the program example "EZI2C_Slave_SCB", but it can not run on the CY8CKIT-042 development kit normally.
is the document of this example incomplete, there is not the content of hardware connection
thank you very much
Solved! Go to Solution.
- Labels:
-
PSoC 4 Architecture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
孟工,
例程可以在这里下载到:
在这个KIT的硬件上,P3[0]和P3[1]被连接到仿真器上,P4[0]和P4[1]虽然可以配置为I2C管脚但是硬件上并没有连接。
如果想在论坛中上传工程,请点击回复框右上角的Use advanced editor.
然后稍微等待网页刷出来,在新跳出来的界面的右下角有个Attach的图标,就可以上传工程到这里了。
Thanks,
Ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I see that Table-2 in the document mentions the I2C pins in CY8CKIT-042 incorrectly. It should be set as below-
I2C-SCL: P3[0]
I2C-SDA: P3[1]
We will correct the document. Thanks for bringing it up.
Also, please note that you need to change the device to "default" PSoC 4 in the project to run on CY8CKIT-042.
-Rajiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi dear
thank you
this project uses EZI2C communication component, the pin is
EZI2C-SCL: P4[0]
EZI2C-SDA: P4[1]
it is right.
my question is whether the interfaces of P4[0] and P4[1] need to be connected to other interfaces.
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
No. Port pins P4.0 and P4.1 need not be connected.
Just change in the pin assignment for i2c pins to P3.0 and P3.1 is required.
- Rajiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
thank you for your answer.
but this is a EZI2C example program,is it a wrong example? should I change EZI2C to I2C
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
No. Please keep the SCB (serial communication block) configuration as EZI2C.
EZI2C uses I2C block in the device with the library code to introduce abstraction. The communication between master and slave is handled in the ISR generated by the component. Very minimal action is required in the user code as compared to the I2C component; thus the name EZ (easy).
I would suggest reading EZI2C component datasheet for knowing this component in detail-
http://www.cypress.com/documentation/component-datasheets/ezi2c-slave
Are you getting any error while building the project? Or while testing?
-Rajiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi dear
there is no error in building the project, but it doesn't work as document described
the fourth and eighth items are abnormal as follows
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you please attach the project that you are using?
-Rajiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi dear
I can not attach this project in this reply, can you give me your email,
I send this project to you
also, I can not find the link of this project, I can only download this project from Psoc creator 4.2
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
孟工,
例程可以在这里下载到:
在这个KIT的硬件上,P3[0]和P3[1]被连接到仿真器上,P4[0]和P4[1]虽然可以配置为I2C管脚但是硬件上并没有连接。
如果想在论坛中上传工程,请点击回复框右上角的Use advanced editor.
然后稍微等待网页刷出来,在新跳出来的界面的右下角有个Attach的图标,就可以上传工程到这里了。
Thanks,
Ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ryan
非常感谢,刚开始学习CYPress,好多东西不太熟悉
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ryan
我将EZI2C的通讯端口,改为P3[0]和P3[1]后, Kit可以连接了
但是LED灯还不正常,是不是LED灯接口也有问题,所以想问一下 ,有没有CY8CKIT-042的原理图,
谢谢!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
孟工:
在如下链接中下载CY8CKIT-042 Kit Only之后并安装,就可以找到KIT的sch了。
http://www.cypress.com/documentation/development-kitsboards/cy8ckit-042-psoc-4-pioneer-kit
Thanks,
Ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ryan and Rajiv
thanks for you help, I find the schematic of CY8CKIT-042, the Led pin is wrong too
after I correct this mistake, it is ok now
thanks a lot