Set the SCB SPI to byte mode, Rx and Tx buffer to > 16. Then you have all interrupts you want.
The reason for the different components is related to the underlying hardware the SPI is build from. USB differs from SCB dramatically.
I will try this.
Is it neccessary to have the exact (or a greater) Timing Correlation as described in the SCB Datasheet on page 120?
What, if the trailing (or/or in addition) 1 or 1/2 SCLK period is missing and the clock and the select is inactive directly
after the last bit?
1 of 1 people found this helpful
For the slave there is a 100ns timing between ssel and sclock needed, obviously no hold required. See datasheet, AC characteristics. My component is 3.10, but changes from 3.0 are in datasheet only. Nonetheless, update.
I changed the settings of the SCB SPI now to byte mode, Rx and Tx buffer to == 32.
And implemented the interrupts, but only receive an tx interrupt, no rx interrupt and
the buffer size remains 0.
When I switch to the USB component, I receive the frames...
This is really weird...
Do you have an simple example with the SCB component correctly configured
as a slave with interrupts?
When using an interrupt on the SCP SPI, you need to select the proper interrupt source. You probably want to activate 'RX FIFO not empty', together with external interrupts, which should be triggered after the first byte has been received. (for external interrupts set the FIFO level to 8, otherwise internal buffer handling is needed)
thanks for the example, but the USB component is at least receiving some date - not in the correct order, but receiving something at least. The problem is the SCB component. The controller we use just supports this SCB SPI component and does not receive a single byte sent bythe same master. Its really weird and confusing. When I have two SCB SPI components on different Cypress Eval Boards one as master and the other as slave everything is fine, but if I change the master nothing works. Have tried an Arduino as master as well with the same result - no bytes receiving, while the USB SPI component (is USB correct? You where using this expression) receives data as well from the arduino, but not correct as well, I send 8 times a 0xBB and the SCB SPI component receives eight times a 0x77...
Reduce the project(s) to the barest SPI communication master/slave. Then post your complete project, 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.