This application note describes how to use the STM32F1x and STM32L1x direct memory access (DMA) controller. The STM32F1x and STM32L1x DMA controller, the Cortex™-M3 core, the advanced microcontroller bus architecture (AMBA) bus and the memory system contribute to provide a high data bandwidth and to develop very-low latency response time software. This application note also describes how to take full advantage of these features and ensure correct response times for different peripherals and subsystems. The STM32F1x and STM32L1x will be referred to as STM32F1x/L1x, and the DMA controller as DMA throughout the document.
This document describes the Direct Memory Access (DMA) controller for STM32F1x and STM32L1x microcontrollers. It details how the DMA controller utilizes the Cortex-M3 core and AMBA bus architecture to provide high data bandwidth and low latency response times. The note explains that the DMA allows data transfers to occur in the background without CPU intervention, enabling the processor to execute other tasks until a data block is ready.
| Number of DMA channels | Twelve DMA channels (7 for DMA1 and 5 for DMA2) |
|---|---|
| Maximum data tokens per transfer | 65536 data tokens |
| Transfer modes | Non-circular/circular mode |
| Transfer types | Memory-to-memory, memory-to-peripheral, peripheral-to-memory and peripheral-to-peripheral |
| Arbitration time (tA) | 2 AHB clock cycle |
| Peripheral access time (tACC) | 1 AHB clock cycle + 2 APB clock cycles + 1 AHB clock cycle |
The required data bandwidth must be lower than 25% of the maximum APB transfer rate.
The STM32 DMA uses a single bus cycle for data transfers (bus stealing) rather than operating in burst mode.
No, peripherals connected to the same DMA channel cannot be used simultaneously when the DMA function is active.