Altera_Forum
Honored Contributor
12 years agoconfiguring SPI on SOPC
hello, I am trying to configure DE2 board as a Master and connect device(s) to it via SPI.
DE2 -------> Device(s) In SOPC, do I include "SPI (3 wire serial)" from the library or "Avalon-ST Serial Peripheral Interface"? Also do I need to use the expansion headers (GPIO0, GPIO1) and connect MISO,MOSI,SS,SCK to any pins? Because I don't see a SPI port on DE2 board. I just need to know how to configure SPI and which pins to use to connect to device(s). Lastly, are there any example C codes for sending/receiving data via SPI? Thank you very much