Direct Memory Access Controller (DMAC)
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
187
Fig 9-56 DMA transfer flow for source address auto-reloaded and linked list destination address
9.4.5.5
Multi-Block Transfer with Source Address Auto-Reloaded and Contiguous Destination Address (Row 3)
Note
: This type of multi-block transfer can only be enabled when either of the following parameters is set:
DMAH_CHx_MULTI_BLK_TYPE = 0
DMAH_CHx_MULTI_BLK_TYPE = RELOAD_CONT
(1)
Read the Channel Enable register to choose a free (disabled) channel.
(2)
Clear any pending interrupts on the channel from the previous DMA transfer by writing to the Interrupt Clear registers: ClearTfr,
ClearBlock, ClearSrcTran, ClearDstTran, and ClearErr. Reading the Interrupt Raw Status and Interrupt Status register) confirms that all
interrupts have been cleared.
(3)
Program the following channel registers:
a)
Write the starting source address in the SARx register for channel
x.
b)
Write the starting destination address in the DARx register for channel
x.
c)
Program CTL
x
and CFG
x
according to Row 3, as shown in Table 9-19. Program the LLPx register with 0.
d)
Write the control information for the DMA transfer in the CTLx register for channel
x
. For example, in the register, you can program
the following:
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03