I use 2014.2 NoOS version.
Registers at show that
0x0054 : ADC CLK FREQ => 80531
0x0058 : ADC CLK RATIO => 1
What is the correct ADC sampling rate?
MB works 100MHz as you know.
The problem is with adding 32767. In the way the software is implemented, the value is rounded up or down, to be at MHZ accuracy, so 122.88 is rounded to 123.
If you don't want to do the rounding, you could simply do 80531*1*100*1000/65536 =122880 (KHz)
Here you can find an example: https://github.com/analogdevicesinc/no-OS/blob/dev/common_drivers/dac_core/dac_core.c?ts=4#L83
In your case it's 122.88 MHz.
adc_read(core, ADC_REG_CLK_FREQ, &adc_clock);
adc_read(core, ADC_REG_CLK_RATIO, ®_data);
adc_clock = (adc_clock * reg_data * 100) + 0x7fff;
adc_clock = adc_clock >> 16;
80531*1*100 + 32767 = 8085867
8085867>>16 = about 123
Where is my mistake?
We are currently on vacation until January 4th 2016.
We will get back to you as soon as we get back.
Thanks and Happy Holidays
Retrieving data ...