AnsweredAssumed Answered

fmcomms1 adc_capture and printing adc values

Question asked by AZubair on Mar 16, 2015
Latest reply on Apr 5, 2015 by AZubair

Hello all,

 

I need few clarifications in adc_capture function. I have seen other threads on this and followed the solutions , but still I am unable to understand properly.

In my case i have like four samples:

 

uint16_t sine_lut_i[4] = { 0x0000 , 0x0000 , 0xFFFF , 0xFFFF};

 

uint16_t sine_lut_q[4]={0xFFFF, 0xFFFF , 0x0000, 0x0000};

 

But when I write this code to retrieve this from adc , i do not get the same pattern ,

 

adc_capture(fmcSel, 8, DDR_BASEADDR);

        delay_ms(1000);

 

    for(n=0;n<8;n=n+1)
   {
   rdata = Xil_In32(DDR_BASEADDR+(n*4));
   sampleI = rdata & 0xFFFF;
   sampleQ = (rdata >> 16) & 0xFFFF ;
  
   xil_printf(" 0x%x ",rdata);

   }

 

What may be the problem?

Can you relate the size parameter of the adc_capture function with the no. of samples.

Am i using correct?

Outcomes