Post Go back to editing

Changing the ADALM2000 reference clock from the standard 100MHz

Thread Summary

The user is trying to set the ADALM2000's PLL chip (ADF4360-9) to output 80MHz for the ADC, but this causes the Scopy spectrum analyzer to freeze. The final solution involves setting the PLL to 96MHz, which is accepted and verified with a lab scope. The user also plans to replace the reference FIR filter with a downsampling filter to achieve a 4.8MSPS output sample rate and will consider modifying the device tree and using Python with libm2k for further customization.
AI Generated Content
Category: Software
Product Number: ADALM2000

The standard ADALM2000 uses a pll chip (ADF4360-9) to generate 100MHz clock for the ADC. I'd like to set the pll chip to output 80MHz ... which should be an easy!

However, the scopy client app seems to only set a specific decades of sampling rates i.e. 100, 10, 1 MSPS    

From a terminal window into ADALM2000, I can observe the pll's sysfs attribute:

# ./cat_iio_device_pll_attributes

Running script cat_iio_device_pll_attributes
name
pll

out_altvoltage0_frequency
100000000

out_altvoltage0_mute_till_lock_detect
1

out_altvoltage0_muxout_mode
lock-detect

out_altvoltage0_pfd_frequency
5000000

out_altvoltage0_power_down
normal

out_altvoltage0_power_level
5000-uA

out_altvoltage0_refin_frequency
20000000

out_altvoltage_muxout_mode_available
three-state lock-detect ndiv dvdd rdiv od-ld sdo gnd

out_altvoltage_power_down_available
normal soft-async ce soft-sync regulator

out_altvoltage_power_level_available
3500-uA 5000-uA 7500-uA 11000-uA
 

This shows the kernel driver for pll reporting a 100MHz output. However if if try to write into anything other than 10000000 into out_altvoltage0_frequency scopy spectrum analyzer freezes ... but unfreezes if 100000000 is written.

# echo 100000000 > /sys/bus/iio/devices/iio:device3/out_altvoltage0_frequency
# echo 80000000 > /sys/bus/iio/devices/iio:device3/out_altvoltage0_frequency
# echo 100000000 > /sys/bus/iio/devices/iio:device3/out_altvoltage0_frequency

What can I do to see a spectrum from the ADC for sample rates other than the standard ones ?

DrFlute1