![ARTERY AT32F435 Series Reference Manual Download Page 683](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592683.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 683
Rev 2.03
29.3.10 Interrupts
An interrupt can be generated on a DMA half-transfer, transfer complete, transfer error, FIFO error and
direct mode error. Each channel has its specific interrupt flag, clear and enable bits, as shown in the
table below.
Table 29-2 DMA interrupts
Interrupt events Event flag
Clear control bit
Enable control bit
Half-transfer
FDTF
FDTFC
FDTIEN
Transfer complete HDTF
HDTFC
HDTIEN
Transfer error
DTERRF
DTERRFC
DTERRIEN
FIFO error
FERRF
FERRFC
FERRIEN
Direct mode error DMERRF
DMERRFC
DMERRIEN
29.4 DMA multiplexer (DMAMUX)
DMAMUX manages DMA requests/acknowledge between peripherals and DMA controller.
The DMA controller selects the DMA mapping table with the TBL_SEL bit in the DMA_MUXSEL
register. Each DMA controller stream selects only one DMA request from the flexible mapping table. In
flexible mapping mode, each channel can bypass or synchronize 127 possible channel requests from
peripherals or generators through the REQSEL [6: 0] bit in the DMA_MUXCxCTRL register.
EXINT LINE is used as the trigger input for request generators and the synchronized input for requests.
29.4.1 DMAMUX functional overview
The DMAMUX consists of a request generator and a request multiplexer.
Each of the DMAMUX generator channel x has a GEN enable bit in the DMA_MUXGxCTR register. The
SIGSEL bit is used to select the trigger input of the DMAMUX generator. Typically, the number of DMA
requests equals G 1. The GPOL bit is used in the DMA_MUXGxCTRL register to select a
trigger event that can be on a rising edge, falling edge or either of them.
Each of the DMAMUX stream x comes from all_req [127: 1].
In flexible mapping mode, the SYNCEN bit in the DMA_MUXSxCTRL register is used to synchronize the
selected DMA request input. In synchronous mode, the SYNCSEL bit in the DMA_MUXSxCTRL register
is used to select synchronized input. The selected DMA request input will be transferred to chx_mux_req
[7: 0] as soon as a valid edge of the synchronized input is detected by the SYNCPOL [1: 0] in the
DMA_MUXSxCTRL register. In addition, when the EVTGEN bit is set in the DMA_MUXCxCTRL register,
the programmable request counter (REQCNT) is used to generate a request output and event output.