How to read data from ADC in FMCOMMS2

Hi all,

 

I am using FMCOMMS2 with zedboard. I understood that the DAC is 12-bit so when we make he data accessible to adc the last 4 bits from the 16-bits memory aligned are ignored in DAC. Now I want to read data back from ADC. I capture data with adc_capture() function and save them in DDR location. How should I read these data!? Should I ignore the last 4 bits in every 16 bits or I have to read with 12 bits step every single bit without ignoring anything!?

 

Any help would be appreciated.

 

Regards,

Jet

Parents
  • Hi Dragos,

    I was checking the data at chipscope. I saw that for example the data for adc_iqcore_data_0s is 00D8 which is the read value from the adc in 16 bits, the showed value for adc_data_i1 is -168 which are supposed to be the lower 12 bits. However 00D8 is (0000 0000 1101 1000) while -168 is  (1111 0101 1000) in 12 bits. I am not understanding how the data from memory are really read.

    Regards,

    Jet.

Reply
  • Hi Dragos,

    I was checking the data at chipscope. I saw that for example the data for adc_iqcore_data_0s is 00D8 which is the read value from the adc in 16 bits, the showed value for adc_data_i1 is -168 which are supposed to be the lower 12 bits. However 00D8 is (0000 0000 1101 1000) while -168 is  (1111 0101 1000) in 12 bits. I am not understanding how the data from memory are really read.

    Regards,

    Jet.

Children
No Data