Everything is controlled by the clock so that is what you need to respond to. How much control do you have over the master? Is is in one of your own projects?
i was making my own DOSonChip and Wanted to use SPI as the protocol for sending and recieving data.
Both the master and slave are PICs with my own code so... complete control...
i assumed that Nigel thanks
Ill try to add the feature today and ill use interrupts and flags when data is sent and read this way i know when its complete. I need to make a packet system tho like so i know commands and arguments. Like: