Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHow to use
i m using alt_avalon_spi_command() now, and i did it according to Altera Embedded Peripherals Handbook chapter 7. I m looking using SPI to transfer some data to another board. And i can't figure ...
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- [/b] --- Quote End --- 1. alt_u32 slave is the number of slave connected to your master, with the first one starting from "0", as pointed out in the documentation. So if I have 4 slaves connected to the SPI master, I should set slave =0x03? I think this argument is used to select which slave I want to write or read, e.g.: if I want to read or write slave 0, I should set slave = 0x00, correct? Thanks.