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
Hi Jet,
The data sent to DAC core should be left aligned and the data received from the ADC core is right aligned. So you should read 16 bits, but use just the lower 12 bits.
Thanks,
Dragos
Jet,
It's not relevant, because Chipscope does not read the displayed samples from the memory. It is connected directly to ADC core.
So you should know just that the data received from the ADC core…
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…
So you should know just that the data received from the ADC core and written to memory by the DMA is right aligned.
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.
Jet.