LPC1225 slave mode SPI

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC1225 slave mode SPI

1,022件の閲覧回数
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
ラベル(1)
0 件の賞賛
返信
1 返信

917件の閲覧回数
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 件の賞賛
返信