3 ms·
That sounds like double-buffering. Or did I misunderstand? Is it actually a ring-buffer? Can you give more details? What is a Half-Transfer interrupt?
by aktau 2y ago
That sounds like double-buffering. Or did I misunderstand? Is it actually a ring-buffer? Can you give more details? What is a Half-Transfer interrupt?
- the__alchemist 2y agoYea; it's double-buffering in a ring buffer? Or maybe I don't really understand ring buffers or the terminology; thought I did from the article, since it said they were called circular buffers, and you set up the DMA in "circular" mode for this, and it's using a buffer! Half-transfer means when 1/2 of the DMA transfer size is done, an interrupt fires. So, you can use this and full-transfer interrupts to manage the sequencing.
- flohofwoe 2y agoIn a regular ringbuffer the writer just continuously pushes data to the 'head' and the reader continuously pops data from the 'tail' (and the size of the buffer is used to compensate for any 'hickups' on either side).