
AT32F413
Series Reference Manual
2022.06.27
Page 147
Rev 2.00
12.5 DMA transfer introduction
Enable transmit data buffer and receive data buffer using DMA to achieve continuous high-speed
transmission for USART, which is detailed in subsequent sections. For more information on specific DMA
configuration, refer to DMA chapter.
12.5.1 Transmission using DMA
1.
Select a DMA channel: Select a DMA channel from DMA channel map table described in DMA
chapter.
2.
Configure the destination of DMA transfer: Configure the USART_DT register address as the
destination address bit of DMA transfer in the DMA control register. Datat will be sent to this address
after transmit request is received by DMA.
3.
Configure the source of DMA transfer: Configure the memory address as the source of DMA transfer
in the DMA control register. Data will be loaded into the USART_DT register from the memory
address after transmit request is received by DMA.
4.
Configure the total number of bytes to be transferred in the DMA control register.
5.
Configure the channel priority of DMA transfer in the DMA control register.
6.
Configure DMA interrupt generation after half or full transfer in the DMA control register.
7.
Enable DMA transfer channel in the DMA control register.
12.5.2 Reception using DMA
1.
Select a DMA transfer channel: Select a DMA channel from DMA channel map table described in
DMA chapter.
2.
Configure the destination of DMA transfer: Configure the memory address as the destination of DMA
transfer in the DMA control register. Data will be loaded from the USART_DT register to the
programmed destination after reception request is received by DMA.
3.
Configure the source of DMA transfer: Configure the USART_DT register address as the source of
DMA transfer in the DMA control register. Data will be loaded from the USART_DT register to the
programmed destination after reception request is received by DMA.
4.
Configure the total number of bytes to be transferred in the DMA control register.
5.
Configure the channel priority of DMA transfer in the DMA control register.
6.
Configure DMA interrupt generation after half or full transfer in the DMA control register.
7.
Enable a DMA transfer channel in the DMA control register.