Flush Queued SPI TX FIFO

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User20089
Level 1
Level 1
Hello

I am implementing Queued SPI in slave mode on a TC23x, the transmit and receive interrupts are working. On a receive interrupt I load new data into the Tx FIFO (shift register) through DATA_ENTRY, which will be sent on the next clock.
I would like to "flush" the Tx FIFO on the slave side at the EoF or SLSI deselection, I cannot find a method to flush the TxFIFO. Is there a method, or do someone know of a workaround.
0 Likes
1 Reply
cwunder
Employee
Employee
5 likes given 50 likes received 50 solutions authored
You can reset the QSPI State machine and both the TXFIFO and RXFIFO by setting GLOBALCON.RESETS = 7
0 Likes