Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12612 Discussions

Altera_Avalon_SPI Cyclone II DSK

Altera_Forum
Honored Contributor II
1,119 Views

I have a NIOS II/s processor at 50 MHz that has an two SPI's which interfaces with TI's AIC23 on the Cyclone II DSK board. One (master) SPI programs the AIC23. Other (Slave) SPI does the data transfer. The AIC23 programs OK. The data transfer does not work correctly. 

 

I have a loopback shift register. It works OK. This means the SS_N chip select I generate is working. 

I have an SPI VHDL code I wrote. It works OK. 

 

Anyone know why or has had similar problems with the Altera_Avalon_SPI in slave mode has problems? I have tried everything.  

 

Thanks
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
398 Views

I have found something. I am able to get the audio working like it should but I don't know if the problem is with the Altera_Avalon_SPI or a software issue. More test are needed.

0 Kudos
Altera_Forum
Honored Contributor II
398 Views

I believe the Altera_Avalon_SPI is "slave" mode has problems. If not, I want to see the code/QSYS for a simple system to read/write 10 msec of data at 44.1 KHz sample rate from the AIC23 on a Cyclone 2 DSK board.

0 Kudos
Reply