(ADSP-21571)About a interrupt in non-DMA mode
Hi
I am trying to perform SPI communication in non-DMA mode.
However, no interrupt is received after reception.
I write the register and value that I set up below
Are you missing the setting? Or is it wrong?
Please confirm.
SPI0_CTL = 0x0431
SIZE = 10b
CPOL = 1b
CPHA = 1b
EN = 1b
SPI0_TXCTL = 0x0100
TDU = 1b
SPI0_RXCTL = 0x005D
RDR = 101b
RWCEN = 1b
RTI = 1b
REN = 1b
SPI0_STAT = 0x0400
RF = 1b
SPI0_IMSK_SET = 0x0400
RF = 1b
Besides this, setting of Priority and Handler is done.
Best regards
Mountain999
Hello,
Please find the SPI example code for ADSP-SC58x in the attachment. This code is configured for both Non-DMA and DMA modes. Please use this as a reference and modify as per your requirement. You can understand the working of the code from the comments embedded within.
SPI_Sample_Auto_Core1.zip
Regards,
Lalitha.S
Please log in to reply.