Forum Discussion
Altera_Forum
Honored Contributor
10 years agoconnecting 4 GPIO pins to DAC using SPI interface
Hi. I am new to altera and am interested in connecting a DAC via the GPIO pins on my development board. the DAC takes a data connection using the spi interface so I am wondering what is the best ...
Altera_Forum
Honored Contributor
10 years agoupdate:
i debuged the noise II processor. it turns out that within the alt_avalon_spi_command function the code gets stuck in this line: do { status = IORD_ALTERA_AVALON_SPI_STATUS(base); } while (((status & ALTERA_AVALON_SPI_STATUS_TRDY_MSK) == 0 || credits == 0) && (status & ALTERA_AVALON_SPI_STATUS_RRDY_MSK) == 0); any thoughts why?