AnsweredAssumed Answered

ADFMCOMMS-1 ZedBoard Reference Design DMA Configuration

Question asked by odiz on Feb 24, 2014
Latest reply on Mar 4, 2014 by larsc
Branched to a new discussion

Hi,

We are currently working on the reference design for ADFMCOMMS-1 ZedBoard. It seems that the DMA for ADC is configured in scatter-gather (SG) mode and polling or interrupt are not used in order to inform the CPU that the transaction is done (I am talking about the "adc_capture" function in "test.c" file. There is a portion of code which waits for a certain condition as given below. However, the code seems to rely on the wait functions instead of this condition. My question is: Is it possible to use this design in simple DMA mode in order to understand the basics of DMA better? If it is not, what are the required modifications on the driver code to be able to work in simple DMA mode?

 

do

{

  delay_ms(1);

}

while ((Xil_In32(baddr + 0x088) & 0x1) == 1);  

 

Thanks in advance,

Onur

Outcomes