Content originally posted in LPCWare by graynomad on Sun Sep 16 18:16:18 MST 2012
Quote:
Set FrameTransfer flag
Clear FrameDataRdy flag
SSP0 (transfer complete):
Check if FrameTransfer is set
I think that FrameTransfer will always be set, the fact that you got the SSP0 interrupt means that a frame is in progress so you don't need the flag.
If you want to prepare multiple frame/packets/whatever in the main code and have the ISR send them if available maybe a counter that is incremented by the main code and tested/decremented by the SSP0 ISR.
Also I don't see the need for the SysTick ISR, it's essentially just starting a transfer and passing a flag to the SSP0 ISR, main() could do that by itself I think.