Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5002

General • Re: RP2350 DMA Ring Buffer?

$
0
0
And still, I don't get the purpose of the auto-trigger, if I have a 64k buffer, then I configure the DMA to do 32k transfers and auto-trigger itself, after the second 32k transfer the DMA will overrun the buffer, it will never roll back to the beginning, so, what's the point? That's what I don't get at all, if the channel retriggers itself and the read/write addresses continue were they ended then there is no way to use it for a ring buffer...
Well, it's primarily for use with the ring buffer mode. If your application can't use the ring buffer mode for other reasons, then you can't make much use of this either. With a more pedestrian data rate, it lets you have a circular buffer with multiple interrupts during the cycle.

Statistics: Posted by arg001 — Wed Aug 28, 2024 9:57 pm



Viewing all articles
Browse latest Browse all 5002

Trending Articles