Altera_Forum
Honored Contributor
12 years agoSPI with NIOS2 in qsys
Hi,
I want to implement SPI in Qsys with one side NIOS 2. Well in SPI core of altera there is a function " int alt_avalon_spi_command(alt_u32 base, alt_u32 slave,alt_u32 write_length,const alt_u8* wdata,alt_u32 read_length,alt_u8* read_data,alt_u32 flags) " does a single call to this function is enough. Can you help me what and where to code if it is not asking to much I mean what should the code look like and it should be put in NIOS I guess although the SPI core gets the job done? I really need help so I will appriciate any help you can give? Thank you