How to clear the System FIFO transmit

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

How to clear the System FIFO transmit

447 Views
chrisoneill
Contributor I

Using the 54102 with the System FIFO connected to a SPI peripheral.  Each transaction leaves a few extra bytes in the transmit FIFO, want to clear before the next transaction.  Set the TXFLUSH bit in the CTLSETSPI register, then TXFLUSHCLR bit in CTLCLRSPI register.  TXCOUNT doesn't change and the extra bytes are transmitted out in the next SPI operation.

Labels (1)
0 Kudos
1 Reply

371 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hi Chris,

In which moment are you flushing the FIFO? I think it you would need to stop the transmission and reception first to not interfere with the flush of the FIFO, also, if you have the interruption enabled could be useful to dissable it before.

Let me know if this helps you.

Best Regards,

Alexis Andalon

0 Kudos