I am evaluating your ADF4158 with the EVAL-ADF4158EB1Z. I am planning to useit in a testsystem for radar, that are controlled with Labview.
Is the any possibility to program the evaluation board via the USB interface, with Labview?
The attached solution is built for the EVAL-ADF4158EB1Z. It is coded in LabView 8.6.
You will need to have the Analog Devices USB drivers already installed. If you were using the normal application software, then the drivers are already installed.
First, it downloads the firmware (adf4xxx_usb_fw_1_0.hex) onto the USB controller.
Then, when you click the relevant buttons, the data is written to the registers on the PLL device. You can modify the data in the block diagram.
Let me know if this works.
I am working on a LabView solution for you now and should have it ready in 1-2 days.
Until now, we have used Labview solution to communicate with the ADF4158 EVAL board.
Today, to use some other C software, we would like to translate our software from Labview to C. We succeeded in opening the communication with the EVAL board, and downloading the .hex file seems working too. However, we do not succeed after this to send any viusbControlOut to send commands to the ADF4158. Is there a particular step to do after having downloaded the firmware?
Once the firmware is loaded to the device, you need to set up some variables. I haven't done it in C, but here is the code for C#:
connectedDevice.ControlEndPt.Target = CyConst.TGT_DEVICE;
connectedDevice.ControlEndPt.ReqType = CyConst.REQ_VENDOR;
connectedDevice.ControlEndPt.Direction = CyConst.DIR_TO_DEVICE;
connectedDevice.ControlEndPt.ReqCode = 0xDD; // DD references the function in the firmware to write to the chip
connectedDevice.ControlEndPt.Value = 0;
connectedDevice.ControlEndPt.Index = 0;
You can find a full C# source code here:http://ez.analog.com/message/52311#52311
The project is for the ADF4350 but the USB functionality is the same for the ADF4158.
Retrieving data ...