Is there a way clear the RX and TX buffers within the SSI peripheral without calling SysCtlPeripheralReset()?
Tx,
Brad
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Is there a way clear the RX and TX buffers within the SSI peripheral without calling SysCtlPeripheralReset()?
Tx,
Brad
Hi Bradley,
RX Buffer can be cleared by reading it out till the RXFE does not set.
If the TX Data does not matter, then when enabled the TXFE will be set by the SSI when it completes the transmission.
If however the requirement is not to do either of the above then SysCtlPeripheralReset is the only way of clearing both of them
Regards
Amit Ashara
I have a situation where the the TX buffer DOES matter. I had an intermittent connection on SCLK, so my data wasn't entirely being clocked out. If I could clear the TX buffers when CS inactive, I would then be able to recover from a bit error, instead of corrupting all future data after the error...
Hi Bradley,
The CS is controlled by the SSI. The only other method will be to use a GPIO to control the CS instead of using SSI to control it which can be done by making the CS as a GPIO.
There is no clear FIFO mechanism
Regards
Amit