Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

Avalon SPI Interface: Bus width?

when using the SPI avalon interface function "alt_avalon_spi_command", it supports only 8bit bus width. Is there another way (function) to send also 16bit?

Thanks!

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Hugo,

    You could write your own version of the spi_read / spi_write functions using IORD and IOWR directly. The Embedded Peripherals IP User Guide is a good reference on how to do that manually

    Cheers,

    Thiago