Forum Discussion
Altera_Forum
Honored Contributor
7 years agoThe CS getting de-selected when the TX FIFO becomes empty is as expected.
In the Cyclone V Handbook Vol# 3, SPI section (19) in the "Master SPI and SSI transfer" sub-section: when the transfer mode is “transmit and receive” or “transmit only” (tmod = 0 ortmod = 1, respectively), transfers are terminated by the shift control logic when the
transmit fifo buffer is empty. for continuous data transfers, you must ensure that the
transmit fifo buffer does not become empty before all the data have been
transmitted. The only real "work-around" is: you must ensure that the transmit fifo buffer does not become empty before all the data have been transmitted.