Question:
Example code which helps to transmit 20bytes of data from slave to master using quad SPI mode
Answer:
We need to taken care of the below points while sending data from slave to Master in quad SPI mode
1. In quad SPI mode, the SPI_MISO, SPI_MOSI pins, SPI_D2 and SPI_D3 pins are configured to operate in the same direction.
So direction may be TX or RX and should not be both. Please configure your Slave RX Transceiver properly as below .
ADI_SPI_TRANSCEIVER Transceiver = {NULL, 0, NULL,0, RxBuffer, 20};
2. adi_spi_SetSlaveSelect API is applicable for master only.
3. Use Non blocking mode APIs adi_spi_IsBufferAvailable to confirm transceiver is available (completed its process) and adi_spi_GetBuffer to get back the transceiver from driver.
We request to refer the attached SPI slave TX example which is using SSLDD Device Driver APIs and can be run in ADSPS-BF609 Ezkit with the help of configuring any other processor as a master.