Hi community,
Our partner have a question about i.MX6S eCSPI.
If the garbage data is stored when starting the transmit or receive operations, we think unexpected operation will be occurred.
So, we want to clear it forcibly.
Would you let me know how to clear both transmit data (transmit FIFO & shift register) and received data (receive FIFO & shift register) forcibly ?
And let me know whether the procedure is different between master and slave mode also?
Best Regards,
Satoshi Shimoda
Solved! Go to Solution.
First, You may reset the eCSPI module via the EN bit of ECSPIx_CONREG.
Also, in master mode one can write 65 zeros to the TXDATA as dummy write op
just after configuring the eSCPI. The recent option is not available for slave mode.
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
First, You may reset the eCSPI module via the EN bit of ECSPIx_CONREG.
Also, in master mode one can write 65 zeros to the TXDATA as dummy write op
just after configuring the eSCPI. The recent option is not available for slave mode.
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------