Using the DMA to thansfer data between peripherals

Hi,

I am working on a project, on which a little help would be appreciated!

I would like to create a data logger with a 16 bit ADC connected to the SPI. The sampling rate has to be at least 30 kHz and i need to record 1 sec of data. To save the data i'm using a FRAM memory which is connected by SPI to my Zero. So i was wondering if it's possible to use the DMA to get the data in the ADC and send direct to the FRAM memory at high rates.

I read in the data sheet of the SAMD21 that the transfer between peripherals is possible using de DMA but i have no idea how to do it.

Thanks for your help.

Hi pedrohenriquefguerra,

There are some excellent examples of using DMA transfer with the SAMD21 on manitou48's github page, located here: GitHub - manitou48/ZERO.