Problem with SPI salve in interrupt mode

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 everybody..

   

I am trying to receive 3 words of 16 bit each in a SPI slave from a master using interrupt on the slave side. Both master and slave are implemented on separate PSOC5 development kits. In the 1st PSOC kit(SPI Master) I am receiving some data from a GUI through UART and displaying it on LCD. Then I am sending 3 words of 16 bits through SPI master.

   

On the other PSOC kit I am trying to receive the words with SPI slave using interrupt and display it on LCD. From the SPI master data is sent correctly.On the SPI slave side the interrupt is getting generated correctly but the data received is random.

   

All the four lines(CS,CLK,MOSI,MISO) of SPI Master are connected to corresponding lines of slave.Please suggest if some hardware settings are wrong or the code itself.  Thanx in advance. Please find the attached files.

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the forum.

   

See AC maximum values in SPI datasheet: Reduce fclock to 10MHz

   

Your components are outdated, make sure you are running Creator 4.0 SP1, Run a Update Components.

   

 

   

Bob

0 Likes