ΣSigmaStudio Ask AI Русский Log in

ADSP21569 SPI DMA slave transmit

Processors & DSP dfwgd Aug 22, 2021 00:00 1 replies Original on forum ↗
Subscribe
dfwgd Question
Aug 22, 2021 00:00

Hi ADI Expert

I use ADSP21569 SPI1 to communicate with the host microcontroller, and I set SPI1 as the slave DMA mode. ADSP21569 can correctly receive the data sent by the microcontroller, but the ADSP21569 SPI1 sends data abnormally. No signal changes can be detected on the pin PA_11/TWI0_SDA/SPI1_MISO/HADC0_EOC_OUT/SMC0_D11/TM0_ACI4, but the SPI1_TFIFO register data change can be observed. The figure below is the initial configuration of SPI1. My hardware test environment is ADSP-21569 EZ-KIT. How can I solve this problem?

ADSP-21569

cces

Audio Signal Processors

sharc

dma

spi

SHARC Audio Processors/SoCs

Show More

3DE159E3-3FFB-4737-AD8E-676C9F2F11FC.png
3DE159E3-3FFB-4737-AD8E-676C9F2F11FC.png
ADIApproved Reply
Aug 25, 2021 00:00

Hi,

To transfer the data from Slave to master, you have to enable master-in-slave-out (MISO) mode in adi_spi_config_2156x.h file. Please set macro "ADI_SPI1_CFG_ENABLE_MISO" as 0x1ul.

Regards,
Anand Selvaraj.