Changing the source address during the eDMA transmission process

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Changing the source address during the eDMA transmission process

338 Views
Jiuer
Contributor I

Hello NXP Community,

I would like to ask if, after the eDMA channel configuration is completed, it is possible to change the source address after the transmission is completed once. Currently, I am using eDMA to transfer a large amount of data to the DAC output. However, the signal to be output does not have a periodicity, and after the current eDMA output is completed, the output value needs to be changed. Essentially, it requires changing the source address. So, does eDMA have a function that enables the source address to be updated after the DMA transfer is completed?

Best Regards,

Jiuer

Labels (1)
0 Kudos
Reply
1 Reply

286 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @Jiuer 

Yes, eDMA supports changing the source address. You can utilize the scatter/gather function to do this.

Scatter/gather is the process of automatically loading a new TCD into a channel. It allows a DMA channel to use multiple TCDs; this enables a DMA channel to scatter the DMA data to multiple destinations or gather it from multiple sources. When scatter/gather is enabled and the channel has finished its major loop, a new TCD is fetched from system memory and loaded into that channel’s descriptor location in the eDMA programmer’s model, thus replacing the current descriptor.

Detail please refer to chip reference manual. And there is scatter-gather demo under SDK, you can refer to.

Alice_Yang_0-1755677425658.png

 

BR

Alice

0 Kudos
Reply