Question
How to end a DMA circular mode transfer?
Posted on April 15, 2013 at 12:05
Hello
I have setup a timer comparator to toggle an output pin. The comparator values are loaded with a DMA set up to work in circular mode and the output toggles as expected until the last round of data to be output. The last time I fill one half of the circular buffer I'm not likely to have the right number of data to fill it all and I can not just fill it with dummy data as this would cause undesirable toggling of the output pin. I can not change the number of data to transfer while the DMA channel is enabled. Does any one know how to deal with this. #dma-circular-mode-timer-toggle