Direct Memory Access Controller (DMAC)
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
177
// 4 16-bit words each with scatter/gather interval in each block
// ( will work only with scatter_gather count of 2)
sarx = sarx + 24;
darx = darx + 24;
end
(4)
If Gather is enabled—DMAH_CHx_SRC_GAT_EN = True and CTLx.SRC_GATHER_EN is enabled— program the SGRx register for Channel 1.
(5)
If Scatter is enabled—DMAH_CHx_DST_SCA_EN = True and CTLx.DST_SCATTER_EN is enabled—program the DSRx register for Channel 1.
(6)
Clear any pending interrupts on the channel from the previous DMA transfer by writing to the Interrupt Clear registers.
(7)
Finally, enable the channel by writing a 1 to the ChEnReg.CH_EN bit; the transfer is performed.
Fig 9-49 Flowchart for DMA programming example
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03