Forum Discussion
Altera_Forum
Honored Contributor
9 years agoCyclone V SPI master releases chip select when TX FIFO runs empty. HOW TO PREVENT???
Hi, I have noticed that the Cyclone V SPI master releases chip select when TX FIFO runs empty. I use Linux kernel 4.1, but the spi-dw driver is pretty much the same as in the latest kernel. ...
Altera_Forum
Honored Contributor
8 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.