Lat 47°46'41"N, Lon 12°06'42", JN67BS
|
|
Hardware /
DDSGeneratorIt is described how to interface a DDS generator in the UNIX environment. HardwareThe DDS generator is a high precision sinus signal generator which can drive frequencies from 0 to 24 MHz. It is controlled by means of RS232 serial line from computing equipment. The DDS generator is based on the AD9835 integrated circuit by Analog Devices. ![]() Further information ( in German language) is available at AK MODUL-BUS Computer. Sample Windows software to drive the DDS generator ( which is based on Visual Basic) can be found at the DDS project page of the Elektronik-Experimentier-Server Elexs. Technical Specifications
ddsctrl
Compilation and RunningIt is necessary to have a C compiler available. If gcc is used, run gcc -lm -Wall -O2 -o ddsctrl ddsctrl.c to compile. To run ddsctrl <frequency in Hz> ScreenshotIf the DEBUG switch is turned on, you will see the following output of jahns@eos ddsctrl > ./ddsctrl 3000 ELEXS DDS generator control f_out : 3000.000000 (Hz) fword : 3eea2 f_test : 257698.037760 freg0_re_l_lsb: a2 freg0_re_h_lsb: ee freg0_re_l_msb: 3 freg0_re_h_msb: 0 using /dev/ttyS0 write ctrlwrd ( set sleep, reset=1, clr=1): f800 write ctrlwrd ( freg0_reg_l_lsb): 30a2 write ctrlwrd ( freg0_reg_h_lsb): 21ee write ctrlwrd ( freg0_reg_l_msb): 3203 write ctrlwrd ( freg0_reg_h_msb): 2300 write ctrlwrd ( sync=0, selsrc=0): 8000 write ctrlwrd ( sleep=0, reset=0, clr=0): c000 The output frequency of the DDS generator should change immediately. To check the output the baudline spectrum analyser software is very handy. The ![]() DownloadFor download of source code see attachments. ad9835
Compilation and RunningThis follows the usual % ./configure % make # make install Screenshot![]() DownloadFor download of Attach:Hardware.DDSGenerator/ad9835-1.1.tar.bz2 Copyright Volker Jahns, 12 Jul 2006 |