Forum Discussion
Altera_Forum
Honored Contributor
16 years agoC code question !! / NIOS II / SPI interface
Hello, I have a question about implementing the spi interface in a FPGA, I already constructed a working CPU with a implementation of the SPI, and added the correct settings in SOIC, however i...
Altera_Forum
Honored Contributor
13 years agoThere is also a register you can use to read back the data that was received from the SPI bus. Have a look at the SPI IP documentation.
The SPI IP just sends and reads back a bunch of bits. It has no idea about the protocol underneath and you need to do it yourself. So to deal with "addresses and stuff", have a look at your SPI memory datasheet and see how you should implement the protocol.