Ameba-D User Manual
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
182
Fig 9-52 DMA transfer flow for source and destination linked list address
9.4.5.3
Multi-Block Transfer with Source Address Auto-Reloaded and Destination Address Auto-Reloaded (Row 4)
Note
: This type of multi-block transfer can only be enabled when either of the following parameters is set:
DMAH_CHx_MULTI_BLK_TYPE = NO_HARDCODE
DMAH_CHx_MULTI_BLK_TYPE = RELOAD_RELOAD
(1)
Read the Channel Enable register to choose an available (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 4, 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:
i.
Set up the transfer type (memory or non-memory peripheral for source and destination) and flow control device by
programming the TT_FC of the CTLx register. Table 9-17 lists the decoding for this field.
ii.
Set up the transfer characteristics, such as:
Transfer width for the source in the SRC_TR_WIDTH field; Table 9-16 lists the decoding for this field.
Transfer width for the destination in the DST_TR_WIDTH field; Table 9-16 lists the decoding for this field.
Source master layer in the SMS field where the source resides.
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03