The sequence steps for simple mode are outlined in this section.
Wait until the DMA is in an idle state by reading the [STATE] field of
register and ensuring it is either
11. In the
case where the DMA is in PAUSE state, follow the steps to bring the DMA out from
PAUSE as described in Channel Pause.
- Ensure that the
is set =
- Program the data source buffer address LSB into register CH_SRC_DSCR_WD0 .
- Program the data source buffer address MSB into register CH_SRC_DSCR_WD1 .
- Program the data destination buffer address LSB into register CH_DST_DSCR_WD0 .
- Program the data destination buffer address MSB into register CH_DST_DSCR_WD1 .
- In simple DMA mode, both the SRC and DST transaction sizes must be programmed. The DMA uses the SRC transaction size but it also requires programming both registers. Program the source data size into the CH_SRC_DSCR_WD2 register.
- Program the destination data transaction size into the CH_DST_DSCR_WD2 register. Make sure that the SRC and DST transaction sizes are the same.
Optionally, enable an interrupt by setting INTR as a
1 in the PS_DMA.CH_DST_DSCR_WD3 and/or
- If the source and destination buffer are allocated in non-cacheable memory
or software flushes the caches, then:
- Set the DMA_Route [routing] bit.
- Program the [ARCACHE] and [AWCACHE] bits in the
register to indicate a
cacheable transaction (e.g.,
Enable the DMA channel to perform DMA transfers by setting the [EN] bit of CH_CTRL2 register. After enabling DMA, check for possible error conditions as described in Interrupts.