Other Parts Discussed in Thread: EK-TM4C1294XL
Hi team
Regarding SSI of TM4C1290, how to clear the Tx FIFO? When using TM4C as a SPI slave, it would receive the data from the master and send the data back. The master would need to reset sometimes, so there is some data left in the slave Tx FIFO(TM4C side). Next time the master has to send several dummy bytes to clear the Tx FIFO of the slave.
Now, customer uses another way, they reset the SPI module as below, but they found that the first byte is still the byte received from last time, that’s what makes them confused.(what is the reason for this?)
Code:
ROM_SSIDisable(SSI2_BASE);
ROM_SSIConfigSetExpClk(SSI2_BASE, 120000000, SSI_FRF_MOTO_MODE_1, SSI_MODE_SLAVE, 120000, 16);
ROM_SSIEnable(SSI2_BASE);
So we may need you insight, to explain the reason for the case mentioned above and clarify how to clear the SPI Tx FIFO of TM4C.Thanks.