Content originally posted in LPCWare by rodri on Mon May 02 17:43:35 MST 2016
Hi,
have you tried to perform adc operations continously? You are halting the adc at the 8th sample, but what happens if you return to the first position of the descriptor table without halting?
I am not halting the adc and I don't loose any sample, you can configure the length of the sampling operation by DMA, saving only the intervals that you are interested
In my previous programs, I performed a 16 descriptor + halt operation, and this not work ok for me. Using only 1 descriptor + halt worked fine, but not using halt works better.
While ADC takes samples at a given clk, DMA is saving your samples to the specified address with a higher frequency, but if you want to improove the performance, you can extend to "15" the max FIFO (DMA empty all your FIFO in one interrupt) and try to compact the words in 32 bit format that is more efficient.
Try this!
regards