Altera_Forum
Honored Contributor
17 years agoDMA controller loop/circular transfer, how to?
Hello all,
I would like to use a DMA controller to fill a SDRAM memory in a "circular" way (as a circular buffer). I currently use the DMA controller (provided by Altera) to fill the memory from a constant address (my custom peripheral). I start the DMA transfer from software and the DMA stops when the length reaches 0. It works fine. But my new requirement is: when the transfer length reaches 0 I need the DMA controller reloads the start address and begin a new transfer (as a loop or rollover). I read in the Altera datasheet that if the bit "LEEN" is set the DMA controller stops the transfer when the length reaches 0 but what's happen if LEEN = 0? Is the controller begin a new transfer from the start address? Any help would be very appreciated. Regards, -Pierre