SPI-3-wire SPI_CS pin Configuration
Hi there,
Im need to configurate a SPI interface on a Cyclone V. On the deplyment, i did some measurements and i noted that the SPI_SS_N is not toggling, no matter which flags i use.
int_result=alt_avalon_spi_command(base_address,slave,size,buffer,0,0,ALT_AVALON_SPI_COMMAND_MERGE);
int_result=alt_avalon_spi_command(base_address,slave,size,buffer,size,rx_buffer,0);
also, i configurate also the SPI_CS_n pin on the vhdl code, but it is not working though ...
spi_adf5610_external_MISO => adf5610_spi_sdo,
spi_adf5610_external_MOSI => adf5610_spi_sdi,
spi_adf5610_external_SCLK => adf5610_spi_sclk,
spi_adf5610_external_SS_n => adf5610_spi_csn,
im tested succesfully a similar code on an Arduino. But, in these case the SPI_CS is driven as a GPIO, and the SPI port is enabled/disabled by request.
I wondering if i had to do something similar on the eclipse-nios2 code..
i appreciate any comment or sugestion