This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x: DMA ADC problem

Dear all:

       I am using the AM335x to the processor of our project. For acquiring the AC signal, I try to access the ADC FIFO data by DMA. I use 3 ADC channels from AIN0 to AIN2 configure from step1 to step3, then configure 3 words in FIFO0 before generating a DMA request by the DMA0REQ Register. One DMA envnt will occur when 20 times DMA request finish to enter a callback function to turn off the DMA and ADC steps. I can acquire 24 channels data with the 4051, but there is always a problem, most of time it works OK, but some times like the DMA access the last 4051 channel data. For example, last time is 1024, 2501, 3214, this time is 780, 2147, 450, but this time the 60 words have some like 1024, 2501, 3214 value.

Please do the needful.

Thanks in Advance,

Yejiheng