2020-05-10 09:40 PM
Hi all, i want to ask about except from the reference manual where can i find out more question about the memory to memory DMA transfer.
I want to figure out is there trade-off for memory to memory DMA transfer when the data size is big and small?
Regards,
2020-05-10 09:54 PM
Tradeoff between what and what?
JW
2020-05-10 11:10 PM
trade of between memory to memory
2020-05-11 02:04 AM
Memory to memory DMA takes time to set up so for smaller transfers it will be slower than normal CPU. If speed is really an issue and you don't mind a blocking transfer then, depending on the processor, there are techniques that are even faster than DMA. Google _Z10copy_wordsPKmPmm
2020-05-11 10:52 PM
In my understanding the CPU need to receive data, tempeorarily store data and then transfer data. In general, as long as the data size transferred is small, even though CPU requires multiple step but still faster than DMA?