LPC1225 slave mode SPI

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by denn4208 on Fri Nov 08 16:38:12 MST 2013
I have configured the LPC1225 to act as an SPI slave.
Does anyone know how to clear the slaves transmit FIFO.
For example, if the master sends a read request and I load the FIFO with 4 bytes of data, but the master only reads 2 bytes  how do I clear the remaing 2 bytes from the buffer so that they are not sent out on the next request.

The user manual does not specify any way to clear the transmit FIFO.  I have also look at the ARM PrimeCell Synchronous Serial Port (PL022)
Technical Reference Manual and did not find any thing there either.

Thank you