Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

SPI Protocol friendly example - DE2i-150

Dear Gentlemen,

I am beginner for program FPGA, we have the device DE2i-150 terasic with FPGA EP4CGX150DF31C7. My problem is that I can to reproduce the SPI protocol in Master Mode in 8 bits for one extarnal slave DAC device.

PLease, just I need reproduce a word of 8 bits for write an external DAC MCP4922 (Microchip). I think that I can use to connect the by using the port GPIO for 3 lines, that is

fpga spi protocol - dac spi protocol

GPIO1 for SCK - SCK of DAC

GPIO3 for MOSI - MISO of DAC

GPIO5 for SS DAC - CS of DAC

Please, I have checking the example of the website but the example available do not allow compile for complete the example on device DE2i-150, but I can to reproduce the SPI PROTOCOL yet by usung DE2i-150. I have been use microcontroller and is very easy, but in FPGA I think that is very difficult :(.

Thank for advance,

Regards,

Rod
No RepliesBe the first to reply