The world's largest supply platform for sources of shortages and hard-to-find parts

What are DMA

Published Time: 2022-11-14 14:31:57
DMA, the full name is Direct Memory Access, that is, direct memory access.

What are DMAs?

DMA, the full name is Direct Memory Access, that is, direct memory access. DMA transfers copy data from one address space to another, providing high-speed data transfers between peripherals and memory or between memory and memory.


The role of DMA is to realize the direct transmission of data, which removes the traditional data transmission that requires the participation of CPU registers. It mainly involves data transmission in four cases, but they are essentially the same, and they are all transferred from a certain area of the memory to the memory. Another area (the data register of the peripheral is essentially a storage unit of memory).


The data transfer for the four cases is as follows:

peripherals to memory

memory to peripheral

memory to memory

peripheral to peripheral


 DMA transfer parameters 

For data transmission, the core parameters required by DMA are these four:

1. The source address of the data

2. Destination address of data transfer location

3. How much data is transferred?

4. Transfer mode for how many transfers are made


When the user sets the parameters, mainly involving the source address, destination address, and the amount of data to be transferred, the DMA controller will start the data transfer. When the remaining amount of transferred data is 0, the end of the transfer is reached and the DMA transfer ends.


Of course, DMA also has a cyclic transfer mode. When the end of the transfer is reached, the DMA transfer is restarted. That is to say, as long as the amount of remaining data to be transferred is not 0 and the DMA is enabled, data transfer will occur.


 Main features of DMA 

1. On the same DMA module, the priority among multiple requests can be set by software programming (there are four levels in total: very high, high, medium and low), and when the priority settings are equal, it is determined by the hardware (request 0 has priority over request 1, and so on);

2. The transmission width (byte, half-word, full-word) of the independent data source and target data area, simulating the process of packing and unpacking. The source and destination addresses must be aligned by the data transfer width;

4. Support circular buffer management;

5. Each channel has 3 event flags (DMA half transfer, DMA transfer complete and DMA transfer error), these 3 event flags logically OR become a separate interrupt request;

5. Transmission between memory and memory, peripheral and memory, and transmission between memory and peripheral;

6. Flash memory, SRAM, SRAM of peripherals, APB1, APB2 and AHB peripherals can be used as the source and target of access;

7. Programmable data transmission number: the maximum is 65535.


 DMA transfer method 

Method 1: DMA_Mode_Normal, normal mode.

When a DMA data transfer is completed, the DMA transfer is stopped, that is, only one transfer is performed.


Method 2: DMA_Mode_Circular, cyclic transmission mode.

When the transmission is over, the hardware will automatically reload the transmission data volume register for the next round of data transmission. That is, multiple transfer mode.

More Products Hot Selling

MECT-110-01-M-D-RA1
Pluggable Connectors
MECT-110-01-M-D-RA1
20 Position SFP+ Receptacle Connector Solder Surface Mount, Right Angle
FG6943010R
Transistors - FETs, MOSFETs - Arrays
FG6943010R
FG6943010R Panasonic Electronic Components
TSHA4401
LED Emitters - Infrared, UV, Visible
TSHA4401
TSHA4401 Vishay Semiconductor Opto Division
MAX7456EUI-T
Audio Special Purpose
MAX7456EUI-T
MAX7456EUI+T Manufacturer Analog Devices Inc./Maxim Integrated Video IC Serial, SPI NTSC, PAL 28-TSSOP-EP Package
EPM7064SLI44-7N
Embedded - PLDs (Programmable Logic Device)
EPM7064SLI44-7N
EPM7064SLI44-7N Altera IC CPLD 64MC 7.5NS 44PLCC
APTGF75H120TG
Transistors - IGBTs - Modules
APTGF75H120TG
APTGF75H120TG Manufacturers Microchip Technology IGBT Modules Power Module - IGBT
R-785-0-0-5
PMIC - DC-DC Converter
R-785-0-0-5
R-785.0-0.5 Manufacturer Recom Power Linear Regulator Replacement DC DC Converter 1 Output 5V 500mA 6.5V - 32V Input
R570452000
Coaxial Switches
R570452000
R570452000 Coaxial Switches SPDT Ramses SMA 18GHz Latching Self-cut-off 12Vdc Diodes Pins Terminals
NTCALUG01T103G400A
Temperature Sensors - Thermostats - Solid State
NTCALUG01T103G400A
NTCALUG01T103G400A Temperature Sensors - Thermostats NTC LUG01T 10K 2% 3984K G26 40MM
AD8223ARMZ-R7
Audio Special Purpose
AD8223ARMZ-R7
Single-Supply, Low Cost Instrumentation Amplifier
M29W640GB70NA6E
Memory IC
M29W640GB70NA6E
Parallel NOR Flash Embedded Memory M29W640GH, M29W640GL M29W640GT, M29W640GB

Recommended Parts