GD32A50x User Manual
251
1.
Set and configure the DMA channel x completely, except enabling the channel x.
2.
Set and configure the related DMAMUX channel y completely.
3.
Configure the CHEN bit with ‘1’ in the DMA_CHxCTL register to enable the DMA channel
x.
12.4.5.
Interrupt
There are two types of interrupt event, including synchronization overrun event on each
DMAMUX request multiplexer channel, and trigger overrun event on each DMAMUX request
generator channel.
Each interrupt event has a dedicated flag bit, a dedicated clear bit, and a dedicated enable
bit. The relationship is described in the following
Table 12-2. Interrupt events
Interrupt event
Flag bit
Clear bit
Enable bit
Synchronization overrun event on
DMAMUX request multiplexer channel
x
SOIFx
SOIFCx
SOIE
Trigger overrun event on DMAMUX
request generator channel y
TOIFy
TOIFCy
TOIE
Trigger overrun interrupt
When the DMAMUX request trigger overrun flag TOIFx is set, and the trigger overrun interrupt
is enabled by setting TOIE bit, a trigger overrun interrupt will be generated. The overrun flag
TOIFx is reset by writing 1 to the corresponding clear bit of overrun flag TOIFCx in the
DMAMUX_RG_INTC register.
Synchronization overrun interrupt
When the synchronization overrun flag SOIFx is set, and the synchronization overrun interrupt
is enabled by setting SOIE bit, a synchronization overrun interrupt will be generated. The
overrun flag SOIFx is reset by writing 1 to the corresponding clear bit of synchronization
overrun flag bit SOIFCx in the DMAMUX_RM_INTC register.
12.4.6.
DMAMUX mapping
Request multiplexer input mapping
A DMA request is sourced either from the peripherals or from the DMAMUX request generator,
the sources can refer to
Table 12-3. Request multiplexer input mapping
, configured by the
MUXID[6:0] bits in the DMAMUX_RM_CHxCFG register for the DMAMUX request multiplexer
channel x.