Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
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.