Getting started with DMA

Revision as of 11:45, 19 December 2022 by Registered User
Under construction.png Coming soon

This article explains what is DMA and how to use it through examples

1. What is DMA?

DMA stands for Direct Memory Access controller. It is a bus master and system peripheral. The DMA is is used in order to provide high-speed data transfer between peripherals and memory as well as memory to memory. Data can be quickly moved by DMA without any CPU actions. This keeps CPU resources free for other operations.
During this article, we will be using the STM32L476 Nucleo board.
This device embeds 2 DMAs: DMA1 and DMA2. Each channel is dedicated to managing memory access requests from one or more peripherals.
The two DMA controllers have 14 channels in total, each dedicated to managing memory access requests from one or more peripherals. Each has an arbiter for handling the priority between DMA requests.

File:Capture.png

1.1. Objective

1.2. How to

2. Create the project in STM32CubeIde

3. Peripheral to Memory Transfer

4. Memory to Memory Transfer

5. Data Transfer over DMA with Interrupt


[[category:Getting_started_with_STM32_system_peripherals | 30]]