Altera_Forum
Honored Contributor
10 years agoDE0-nano SPI slave device
Hello all,
I'm interfacing my DE0-nano with a micro-controller using SPI protocol. The FPGA is acting as a slave and the Micro-controller as a master. All the input signals of the SPI (MOSI, SCLK, CS) are synchronised with the FPGA clock (100 MHz) Everything is working fine with low SPI clocks. Now i'm trying to increase the speed of the SPI(SCLK=5 MHz) but the MISO DATAs are shifted. With my logic analyzer, I detect the problem. In fact, in the falling edge of the SPI clock , data on the MISO line should be ready before the the next rising edge of SPI clock.But it is not the case. The time that the MISO data required after the falling edge of the SPI clock is about (0.125 us). So if i want to get high speed communication, i must reduce this delay. I'd like to ask for help of the experts of community if there is a way to do that. Kind Regards,