cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

Anonymous
Not applicable

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

pastedImage_1.png

0 Likes
Reply
1 Solution
Moderator
Moderator

孟工,

例程可以在这里下载到:

http://www.cypress.com/documentation/code-examples/ce195362-psoc-4-ezi2c-slave-serial-communication-...

在这个KIT的硬件上,P3[0]和P3[1]被连接到仿真器上,P4[0]和P4[1]虽然可以配置为I2C管脚但是硬件上并没有连接。

如果想在论坛中上传工程,请点击回复框右上角的Use advanced editor.

pastedImage_1.png

然后稍微等待网页刷出来,在新跳出来的界面的右下角有个Attach的图标,就可以上传工程到这里了。

pastedImage_0.png

Thanks,

Ryan

View solution in original post

0 Likes
Reply
14 Replies
Anonymous
Not applicable

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

0 Likes
Reply
Anonymous
Not applicable

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

0 Likes
Reply
Anonymous
Not applicable

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

0 Likes
Reply
Anonymous
Not applicable

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

pastedImage_0.png

0 Likes
Reply
Anonymous
Not applicable

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

0 Likes
Reply
Anonymous
Not applicable

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 you1111111111.png

0 Likes
Reply
Anonymous
Not applicable

Hi,

Can you please attach the project that you are using?

-Rajiv

0 Likes
Reply
Anonymous
Not applicable

Hi,

You can try the attached project which I have tested it to be working fine.

-Rajiv

Anonymous
Not applicable

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 youpastedImage_0.png

0 Likes
Reply
Moderator
Moderator

孟工,

例程可以在这里下载到:

http://www.cypress.com/documentation/code-examples/ce195362-psoc-4-ezi2c-slave-serial-communication-...

在这个KIT的硬件上,P3[0]和P3[1]被连接到仿真器上,P4[0]和P4[1]虽然可以配置为I2C管脚但是硬件上并没有连接。

如果想在论坛中上传工程,请点击回复框右上角的Use advanced editor.

pastedImage_1.png

然后稍微等待网页刷出来,在新跳出来的界面的右下角有个Attach的图标,就可以上传工程到这里了。

pastedImage_0.png

Thanks,

Ryan

View solution in original post

0 Likes
Reply
Anonymous
Not applicable

Ryan

非常感谢,刚开始学习CYPress,好多东西不太熟悉

0 Likes
Reply
Anonymous
Not applicable

Hi Ryan

我将EZI2C的通讯端口,改为P3[0]和P3[1]后, Kit可以连接了

但是LED灯还不正常,是不是LED灯接口也有问题,所以想问一下 ,有没有CY8CKIT-042的原理图,

谢谢!

pastedImage_0.png

0 Likes
Reply
Moderator
Moderator

孟工:

在如下链接中下载CY8CKIT-042 Kit Only之后并安装,就可以找到KIT的sch了。

http://www.cypress.com/documentation/development-kitsboards/cy8ckit-042-psoc-4-pioneer-kit

Thanks,

Ryan

0 Likes
Reply
Anonymous
Not applicable

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

0 Likes
Reply