Community
cancel
Showing results for 
Search instead for 
Did you mean: 
AKent1
Beginner
356 Views

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

 
0 Kudos
4 Replies
AKent1
Beginner
42 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?

Ahmed_H_Intel1
Employee
42 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,

AKent1
Beginner
42 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.

Ahmed_H_Intel1
Employee
42 Views

You are welcome,

Please let me know if you need more support.

Regards,

Reply