This is a command line tool to allow control of the Analog Devices ADF435x devices. It is essentially a quick and dirty port of the Python application pyadf435x to C, and instead of using a microcontroller to form the interface between the PC and the ADF435x, it instead uses a CH341A since that is what I had available.
Note that there are many optional settings for the ADF435x that are not exposed. If there are any that you would really like to be able to change at the command line, please don't hesitate to contact me and i'll see what I can do, or alternatively change the source yourself and send me a pull request and i'll merge the changes.
Hopefully this will be of use to someone else!
CH341 Pin | ADF4350/1 Pin |
---|---|
CS0 | LE |
SCK | CLK |
MOSI | DAT |
A binary compiled for win64 is included. I've not built or tested this on Linux, but since it uses libusb, it should be possible to build this on any platform that it supports.
.\adf435xcfg.exe --help
Usage: adf435xcfg.exe <options>
-f --frequency <freq> Set the output frequency to <freq> Hz
-s --sweep Enable sweep mode
-l --low <freq> Set the sweep lower frequency to <freq> Hz
-h --high <freq> Set the sweep upper frequency to <freq> Hz
-r --resolution <freq> Set the sweep step frequency to <freq> Hz
-d --delay <delay> Set the sweep mode step delay to <delay> milliseconds
-? --help Display help
.\adf435xcfg.exe --freq 900000000
.\adf435xcfg.exe --sweep --low 800000000 --high 1000000000 --resolution 100000 --delay 1