Hi, I'm working on a project where I have to use the SPI Communication to interface the DE10 nano board (master) with an ADC (slave) to convert the anolog signal to a binary value. I checked and I saw that there is a SPI (3 wire serial) core built in Qsys, but I have no idea how to use it. I read in some documentations about the SPI core but I didn't understand very well. If anyone has any examples or can help me I appreciate it.
You can find very good references about how to use SPI communication, here is a good example of how to use SPI slave to AVALON memory mapped.
Attached is a project I've created to read an ADC value via SPI using the ADC Controller for DE-series Boards IP Core.
I made a similar project using the internal ADC too, but now I need to interface the FPGA with an external ADC because I have to read two channels simultaneously. Do you know if the commands to write/read with an external ADC are the same? Like IOWR() and IORD(). Thanks.