The blog of a dedicated radio amateur and electronics enthusiast

"Having fun on the air and in the workshop - communicating and creating"

31 December 2024

Programming AD9850 & AD9851 DDS

πŸ”˜I previously posted about using the AD9850 & AD9851 DDS chip evaluation modules in 2018 and again in 2023. To recap, before these devices can be used as a signal source they require programming with 5 bytes of data related to frequency and phase, which form a 'tuning word'.
A Β΅-controller and a smart phoneπŸ– App could be used to upload 🠝 the tuning word ( see 16 July 2023 ), or a USB dongle and pcπŸ’» interface software, ( see 4 January 2018 ).  As I have recently updated that software it would now be a good time to give a description.

My dedicated pc πŸ’» software, called "DdsModTerm", is the user interface which I started developing in about 2015. Since then I have updated it 15 times; the latest revision appearing this month.

DdsModTerm user window
The clock πŸ•° frequency and the required output frequency ∿ & phase are entered either manually or by recall from memory. By clicking 'Confirm' the software generates the 5 configuration bytes required from the user input data. In the example in the image above the output frequency is 137700Hz* & bytes hex 00C88AC604. The pc πŸ’» is connected to the serial data interface of the DDS module via a COM port and a USB-SPI protocol converter dongle.
(L) USB-SPI dongle (R) AD9851 DDS module on adaptor
Clicking 'Update DDS' then uploads the bytes to the registers of the DDS chip using SPI and a voltage having an amplitude 1V peak to peak at the programmed frequency ∿ is then present on the output.
DDS output signal, 1Vp-p, 137.7KHz
Other features of the software include up/down step πŸͺœtuning, slider tuning control, view of 255 byte eeprom addresses E0-FF, 3 memories for storing frequency, saving custom clockπŸ•“, alias frequencies calculated, and general purpose output ( GPO ) toggling on/off.
The dongle and software are available from me. Post a comment to receive more information. Note that both AD9850 & AD9851 DDS devices are supported.πŸ”˜
( Click on images to enlarge detail. )
* 137.7KHz is a calling frequency on the radio amateur 2190m long-wave band, 135.7-137.8KHz.
SPI = Serial Peripheral Interface, 3-wire bus.
AD9850, AD9851 : πŸ”—Analog Devices Inc. parts, 32-bit CMOS Direct Digital Synthesiser (DDS) chips.

No comments: