cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

Anonymous
Not applicable

Hello Every one,

   

I am trying to communicated two PSoC boards (5LP) using bidirectional spi communication but it is not working. I do not know why I am enabling and disabling the TR and RX side correctly. 

   

I have not found any example project on the internet where i can get some help.

   

I would be very thankful to you if any body can share some example project that can help me.

   

Looking forward for your answer.

   

Regards

0 Likes
Reply
1 Solution
11 Replies
Honored Contributor II

Here is a program that should work just put the master section on one chip and the Slave on the other you may have to cut and paste some code. There is a PDF that explains how it works.

0 Likes
Reply
Anonymous
Not applicable

Thank you bobgoar for your reply.

   

When I tried to open the project it shows me the error mentioned in attachment.

0 Likes
Reply
Honored Contributor II

You are not running PSoc Creator 4.0 SP 1 Please update your PSoc Creator Software.

0 Likes
Reply
Anonymous
Not applicable

I update creator to 4.1 but still, the error is there.

0 Likes
Reply
Honored Contributor II

I always keep my PSoc Creator up to date.

0 Likes
Reply
Anonymous
Not applicable

Now every thing is up-to date but the error is still there.

   

One more thing I have a look at the pdf file and main.c file. This shows the normal spi code example project already available(not bidirectional spi). Is it correct?

0 Likes
Reply
Honored Contributor II

Did you unzip the file Psoc Creator will not unzip the files.

0 Likes
Reply
Anonymous
Not applicable

Yes, I unzip it and now it's working.

   

But, it is not the bidirectional mode SPI.

0 Likes
Reply
Honored Contributor II

You can change the SPI component to Bi-directional by a setting in the Component right click on the component and then select Data lines and select Bi-directional.  Also read the data sheet for the SPI components.

0 Likes
Reply
Anonymous
Not applicable

I already tried this thing before posting my question here. It s not working.

   

Can you please give me a demo code if it is possible 4 u?

0 Likes
Reply