Texas Instruments OMAP5912 Reference Manual page 1106

Multimedia processor device overview and architecture
Hide thumbs Also See for OMAP5912:
Table of Contents

Advertisement

DMA Transmit and Receive Protocol in Master Mode
SPRU760B
The protocol has several steps:
Step 1: MCU-DSP writes to the setup and control registers (SPI_SET1,
SPI_SET2, and SPI_CTRL).
When DMA_EN is set, a transmit DMA request is generated, once the
RD and WR bits are set.
Step 2: The DMA writes the data in the transmit register (SPI_TX). Once the
data is written:
The transmit DMA request is released.
-
TX_EMPTY is reset in the data status register (SPI_DSR).
-
The transmit register (SPI_TX) is copied into the shift register
-
(SPI_SR).
The device enable goes low (nTSPENi), if CEi = 0 in SPI_SET2.
-
The shift register clock (SRCLK) is activated and the transmis-
-
sion and reception start.
Step 3: When the transmission and the reception are completed:
The device enable goes high (nTSPENi), if CEi = 0 in SPI_SET2.
-
The shift register (SPI_SR) is copied into the receive register
-
(SPI_RX).
RX_FULL and TX_EMPTY are set in the data status register
-
(SPI_DSR).
A receive DMA request is generated.
-
Step 4: Once the DMA reads the receive register (SPI_RX):
The RX_FULL status bit is reset in the data status register
-
(SPI_DSR).
The receive DMA request is released.
-
A transmit DMA request is generated.
-
Another transmission and reception can start (Step 2 → Step 3
-
→ Step 4 → Step 2 → Step 3 → Step4 →...).
To stop the process, the MCU-DSP has to reset the RD and WR bits
in the control register (SPI_CTRL).
SPI Master/Slave
Serial Interfaces
41

Advertisement

Table of Contents
loading

Table of Contents