Bidirectional SPI - only slave communication works

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi,

   

I am currently using the PSoC 5 development kit (CY8CKIT-050).

   

I am unable to communicate in both directions. I wrote a simple program where the master reads the slave data, subtract one and writes it so the slave and the slave reads the master data, add one and writes it so the master. So I got two loops. One loop should count up and the other should count down. When I display both values, both are the same and both loops are counting down.

   

Thanks

0 Likes
1 Solution
5 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the forum.

   

Can you please post your complete project or a shortened version that shows the error so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Thanks for your reply.

0 Likes
lock attach
Attachments are accessible only for community members.
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Please include your complete code not just you main.c. Here is an example program for you to study.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Sorry for the late reply. I uploaded a complete bundle.

0 Likes
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Please go through this Forum Thread, this may be useful-

   

http://www.cypress.com/forum/psoc-5-device-programming/spi-bidirectional-newbie-need-help