NorthGuy
Well-Known Member
Are you suggesting to trigger the DMA after every write?
Yes.
It'd be a waste to trigger the DMA every time I write few bytes to the 10KB buffer.
My guess is that triggering DMA will take less CPU cycles than deciding whether to trigger it.
My main problem is, how to efficiently decide when to trigger the DMA?
And base on what to make that decision?
How many cycles do you need to trigger DMA? Can you post DMA triggering code?
How many cycles do you need to evaluate the size of the buffer and decide that it is filled enough?