AT32WB415
Series Reference Manual
2022.04.13
Page 103
Ver 2.00
9.3.5
Errors
Table 9-1 DMA error event
Error event
Transfer error
AHB response error occurred during DMA read/write access
9.3.6
Interrupts
An interrupt can be generated on a DMA half-transfer, transfer complete and transfer error. Each channel
has its specific interrupt flag, clear and enable bits, as shown in the table below.
Table 9-2 DMA interrupt requests
Interrupt event
Event flag bit
Clear control bit
Enable control bit
Half transfer
HDTF
HDTFC
HDTIEN
Transfer completed
FDTF
FDTFC
FDTIEN
Transfer error
DTERRF
DTERRFC
DTERRIEN
Note: DMA2 channel4/5, channel6/7 interrupts are mapped onto the same interrupt vector.
9.3.7
Fixed DMA request mapping
Several peripheral requests are mapped to the same DMA channel through logic ORed. This means that
only one request can be enabled at a time.
The peripheral DMA requests can be independently activated/de-activated by setting the control bits in
the corresponding peripheral registers.
Table 9-3 DMA1 requests for each channel
Periphe
rals
Channel 1
Channel 2
Channel 3
Channel 4
Channel 5
Channel 6
Channel 7
ADC1
ADC1
SPI
SPI2
SPI2
USART
USART3_TX USART3_RX USART1_TX USART1_RX USART2_RX USART2_TX
I2C
I2C1_TX
I2C1_RX
TMR1
TMR1_CH1
TMR1_CH2
TMR1_CH4
TMR1_TRIG
TMR1_HALL
TMR1_
OVERFLOW
TMR1_CH3
TMR2 TMR2_CH3
TMR2_
OVERFLOW
TMR2_CH1
TMR2_CH2
TMR2_CH4
TMR3
TMR3_CH3
TMR3_CH4
TMR3_
OVERFLOW
TMR3_CH1
TMR3_TRIG
TMR4 TMR4_CH1
TMR4_CH2
TMR4_CH3
TMR4_
OVERFLOW
Table 9-4 DMA2 requests for each channel
Periphe
rals
Channel 1
Channel 2
Channel 3
Channel 4
Channel 5
Channel 6
Channel 7
TMR5
TMR5_CH4
TMR5_TRIG
TMR5_CH3
TMR5_
OVERFLOW
TMR5_CH2
TMR5_CH1
9.3.8
Flexible DMA request mapping
In flexible request mode (DMA_FLEX_EN = 1), the request source for each channel is selected through
the CHx_SRC register (x=1~7). For example, to configure the DMA channel 1 as USART3_TX, and
channel 3 to USART3_RX, others unused, then DMA_FLEX_EN=1, CH1_SRC=30, CH3_SRC=29,
CH[2/4/5/6/7]_SRC=0 must be asserted.
Table 9-5 lists the DMA flexible request sources.