electrobuz
Member level 2
- Joined
- May 20, 2013
- Messages
- 46
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,638
I am trying to use SPI to connect to FPGA and microcontroller. When a switch on the FPGA is pressed I want to send a code (8 bit code assigned to each switch by me) to the microcontroller.
For this I have made the FPGA as master and written a code for data transmission. First I serialise the 8bits, using a shift register and send 1 bit at a time through the I/O pins. Along with MOSI, I also send SS and SCLK (reduced from 50Mhz to ~12Mhz).
But I am not getting anything on the microcontroller.
Appreciate any help. If required I can post the codes too.
For this I have made the FPGA as master and written a code for data transmission. First I serialise the 8bits, using a shift register and send 1 bit at a time through the I/O pins. Along with MOSI, I also send SS and SCLK (reduced from 50Mhz to ~12Mhz).
But I am not getting anything on the microcontroller.
Appreciate any help. If required I can post the codes too.