Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20688 Discussions

I have some questions regarding SPI code implementation with nios ii .

AKent1
Beginner
600 Views
 
0 Kudos
4 Replies
AKent1
Beginner
286 Views

 I am a novice fpga programmer forced to do firmware so I am not super knowledgeable. I successfully was able to create a nios embedded system with SPI, and am using the alt_avalon_spi_command

Now in reading the documentation, it says that it writes a buffer to mosi of arbitrary length but in the same breath it says that it only works for 8 bit data widths. 

I am looking at the output with signal tap and it seems to indeed be limited to 8 bits.

Is this correct?

0 Kudos
Ahmed_H_Intel1
Employee
286 Views

Hi,

Thanks for choosing FPGA in your application. If you just started I recommend you to start from Intel design store. This store shows you very useful examples of how to use Intel's IPs. The following link shows the available examples for SPI

https://fpgacloud.intel.com/devstore/?search=spi

 

Regards,

0 Kudos
AKent1
Beginner
286 Views

Yes thanks for the links.. I get it. Looking over stuff it appears that alt_avalon_spi_command is of very limited capability

and that I will have to delve into IO.h "primitives"

I was puzzled on the documentation for it.

0 Kudos
Ahmed_H_Intel1
Employee
286 Views

You are welcome,

Please let me know if you need more support.

Regards,

0 Kudos
Reply