Hi chris 72,
thanks for your support!
I tried what you`ve told me and also control the pin assignment for the loopback board. For this I used the loopback_test_lowcost.pdf from Altera.
My assignment looks like it is benife:
spi_master_MISO,Input,PIN_Y4 spi_master_MOSI,Output,PIN_R6 spi_master_SCLK,Output,PIN_R7 spi_master_SS_n,Output,PIN_V3 spi_slave_MISO,Output,PIN_V4 spi_slave_MOSI,Input,PIN_AB1 spi_slave_SCLK,Input,PIN_AB2 spi_slave_SS_n,Input,PIN_Y3
I also tested to connect the MOSI of the Master to a LED on the board but I can't see anything. Maybe it is because of the frequency:). The frequency of my system is 50MHZ and the frequency for the SPI is 128kHZ. could this be a problem?
I also looked through the Controlregs and the Statusregs of the Spi:
Befor transmitting data:
Statusregister of the Master: 0x260.(1001100000)
Controlregister of the Master: 0x400.(10000000000)
Statusregister of the Slave: 0x310.(1100010000)
Controlregister of the Slave: 0x0(0)
After transmitting and reading data:
Statusregister of the Master: 0x260.(1001100000)
Controlregister of the Master: 0x0.(0)
Statusregister of the Slave: 0x310.(1100010000)
Controlregister of the Slave: 0x0.(0)
I thank you in advance for your help!