Forum Discussion
Altera_Forum
Honored Contributor
16 years agoInterrupt-driven SPI?
Hi. I'm using uC/OS-II (version 2.77) on Nios II platform using Quartus 6.0, Service Pack 1. The SPI included provides a HAL interface that is pretty much limited to the alt_avalon_spi_com...
Altera_Forum
Honored Contributor
16 years agoThanks. I forgot to mention that I am also doing this in my SPI access function:
IOWR_ALTERA_AVALON_SPI_CONTROL( SPI_BUS_IF_BASE, ALTERA_AVALON_SPI_CONTROL_SSO_MSK || ALTERA_AVALON_SPI_CONTROL_IRRDY_MSK ); The inclusion of the ALTERA_AVALON_SPI_CONTROL_IRRDY_MSK seems to make my code always read 0xFF from the RxData register. Thoughts?