Direct memory access (dma) is used in order to provide high-speed data transfer between peripherals and memory and between memory and memory. Data can be quickly moved by DMA without any CPU action. This keeps CPU resources free for other operations.
This example describes step by step how to generate a sine waveform (stored in memory) by using dac and DMA.
Please see the attached pdf.