
AT32F413
Series Reference Manual
2022.06.27
Page 108
Rev 2.00
Figure 9-5
PWIDTH: word, MWIDTH: byte
BF
BB
BE
BA
B7
B3
B6
B2
BD
B9
BC
B8
B5
B1
B4
B0
Byte3
Byte2
Byte1
Byte0
4
th
3
rd
2
nd
1
st
W3 W2 W1 W0
4
th
3
rd
2
nd
1
st
B3 B2 B1 B0
AHB Read Sequence
AHB Write Sequence
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: DMA 2 channel 4/channel 5, channel 6/channel 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 peripheral request can be enabled on one channel 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
SPI1/2
SPI1_RX
SPI1_TX
SPI2/I2S2_RX SPI2/I2S2_TX
USART1
/2/3
USART3_TX USART3_RX USART1_TX USART1_RX USART2_RX USART2_TX
I2C1/2
I2C2_TX
I2C2_RX
I2C1_TX
I2C1_RX
TMR1
TMR1_CH1
TMR1_CH2
TMR1_CH4
TMR1_TRIG
TMR1_HALL
TMR1_OVERF
LOW
TMR1_CH3
TMR2 TMR2_CH3
TMR2_OVERF
LOW
TMR2_CH1
TMR2_CH2
TMR2_CH4
TMR3
TMR3_CH3
TMR3_CH4
TMR3_
OVERFLOW
TMR3_CH1
TMR3_TRIG
TMR4 TMR4_CH1
TMR4_CH3