This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAP-L138: How to configure only SPIREVT (EDMA event) for SPI DMA

Part Number: OMAP-L138
Other Parts Discussed in Thread: OMAPL138

Hi,

Iam using OMAPL138 for our project .In that I want to use SPIREVT for DMA enable for SPI.Since Iam only using SPI Rx (Here OMAP is SPI Slave)But I could not able to see any register which contains SPIREVT.

Can any one tell me how to use/config that particular event in software. 

Thanks in advance

Regards,

Satheesh

  • Hi Satheesh,

    SPIREVT is a signal to the EDMA3 that tells the DMA to read from the RXDATA from SPIBUF.

    See 30.2.13 DMA Events Support in the TRM (SPRUH77)

    The SPI module enables DMA requests by enabling the DMA request enable (DMAREQEN) bit in the SPI interrupt register (SPIINT0).

    When a character is received, the SPI module signals the DMA via the REVT signal. The DMA controller then reads the data from the SPI receive buffer register (SPIBUF) and transfers it to a destination buffer for ready access.

    Refer also to 30.2.19 Initialization (Steps 10 and 11 setup the DMA).

    Table 6-14. EDMA Synchronization Events in the Data Manual (SPRS586) maps the DMA event number to peripheral. EDMA3 Channel Controller 0 Event 14 is tied to SPI0 Receive (SPIREVT).

    Some helpful E2E links:

    * e2e.ti.com/.../221160
    - Lots of links to the old StarterWare software
    - Download StarterWare here: processors.wiki.ti.com/.../StarterWare
    - Find SPI DMA exmaple under <INSTALL_PATH>\OMAPL138_StarterWare_1_10_04_01\examples\lcdkOMAPL138\spi_edma\spiEdma.c
    - processors.wiki.ti.com/.../QuickStartOMAPL1x_rCSL
    + DMA examples (but not SPI) - see OMAPL1x_rCSL-2.0\quickStartOMAPL1x_rCSL\OMAPL1x\rCSL_examples\evmOMAPL138\ARM_examples\edma
    - processors.wiki.ti.com/.../StarterWare_SPI
    + StarterWare SPI usage notes (including DMA)

    * e2e.ti.com/.../2699109
    - Suggestion to use K2G SPI examples as reference

    Regards,
    Mark
  • Hi Mark,

    Thanks for the details.

    Regards,

    Satheesh