SPI in Slave mode | Cypress Semiconductor
SPI in Slave mode
I am trying to configure SPI in PSoC 5 as Slave.
Whenever I do get a byte of data from the Master, I need to immediately transmit the byte to the Master.
The response to Master will change based on the data received from the Master.
The following are the configuration of the SPI slave:
- Enabled the Rx internal interrupt
- CPHA = 0 and CPOL =0
- 8 bit word
- Tied a interrupt component to SPIS
I am not able to get the interrupts and on the MISO line I am not able to see the data what I intended to transmit (Used an oscilloscope to check the data on MISO).
Can anyone let me know, what is wrong?
I have attached the project.