Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 22625

Re: Store FMCOMMS3 ADC I and Q data

$
0
0

Hi Trip,

 

The function stores in memory the adc_data_q1, adc_data_i1, adc_data_q2 and adc_data_i2 samples (AD9361 has 2 receive channels). So you will have something like this:

 

   adc_capture(samples_no, ADC_DDR_BASEADDR)

   for(index = 0; index < length; index += 2)

   {

       data = Xil_In32((ADC_DDR_BASEADDR + (index * 4)));

       adc_data_q1[index / 2] = (data & 0xFFFF);

       adc_data_i1[index / 2] = (data >> 16) & 0xFFFF;

       data = Xil_In32((ADC_DDR_BASEADDR + ((index + 1) * 4)));

       adc_data_q2[index / 2] = (data & 0xFFFF);

       adc_data_i2[index / 2] = ((data >> 16) & 0xFFFF);

   }

 

Regards,

Dragos


Viewing all articles
Browse latest Browse all 22625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>