LPC1225 slave mode SPI

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1225 slave mode SPI

556 Views
lpcware
NXP Employee
NXP Employee
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
Labels (1)
0 Kudos
1 Reply

451 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by joshuaclayton on Tue Feb 25 14:21:03 MST 2014
This is not an answer to your question, but why not write the same number of bytes you read?
Either only put 2 bytes in the fifo, or read all 4 from the master?
0 Kudos