Forum Discussion
Altera_Forum
Honored Contributor
20 years agoSPI Slave bug?
Has anybody used the SPI core as a slave device in a NIOS II implementation? If so, have you had relatively frequent data errors? There is no HAL for the SPI as slave, so I'm just using th...
Altera_Forum
Honored Contributor
20 years agoWhat version of the tools and speeds (Avalon clock and sclk) are you using?
Enhancements to the SPI component have reduced the maximum speed of the SPI slave device (so don't run it at speeds up to half the Avalon clock rate anymore). I do not recommend exceeding 1/10th the Avalon speed. Also I didn't look at the code but in case you were not aware, this is important: If the SPI slave is selected and it has not readied it's TX register, when data is recieved (via RX) it will be looped around and sent back through the TX signal (SPI is fully duplex so it has to send something back).