EasyManua.ls Logo

Cmsemicon CMS32L051 - Repeat Pattern

Default Icon
703 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
V1.2.2
CMS32L051 User Manual |Chapter 16 Enhanced DMA
www.mcu.com.cn 596 / 703
16.4.3 Repeat pattern
The transfer data for one initiation is 1 to 65535 bytes. The source or destination is designated as a
repeat area, and the number of transfers is 1 to 65535 times. Once the specified number of transfers is
complete, initialize the DMACTj(j=0~23) register and the address specified as a repeat, and then repeat
the transfer. This is when the RPTINT bit of the DMACRj register is 1 (interrupts are allowed) and a data
transfer is made where the DMACTj register becomes 0 DMA generates an interrupt request for the
corresponding start source to the interrupt controller during operation, and the DMAENi0~DMAENi7 of
the corresponding DMAENi (i=0~2) registers Position 0 (disable startup). When the RPTINT bit of the
DMACRj register is 0 (interrupt is prohibited), even if the DMACTj register becomes 0 data transfer, no
interrupt requests are generated, and the DMAENi0~DMAENi7 bits are unchanged from 0.
The register function and data transfer of the repeating pattern are shown in Table 16-8 Figure
16-18, respectively.
Table 16-8 Register Functions for Repeat Pattern
The register name
symbol
function
DMA block size register j
DMBLSj
The size of the data block to be transferred by 1
start
DMA transfer count register j
DMACTj
The number of times the data was transmitted
DMA transfer number of times to reload register j
DMRLDj
Reload the value of this register into the DMACT
register.
(Initialize the number of data transfers)
DMA source address register j
DMSARj
The address of the source of the data
DMA destination address register j
DMDARj
The destination address of the data
Note j=0~23

Table of Contents

Related product manuals