Forum Discussion

AKent1's avatar
AKent1
Icon for New Contributor rankNew Contributor
6 years ago

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

4 Replies

  • AKent1's avatar
    AKent1
    Icon for New Contributor rankNew Contributor

    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?

  • AKent1's avatar
    AKent1
    Icon for New Contributor rankNew Contributor

    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.