PC's printer port controls a frequency synthesizer

Aug. 4, 1997
The idea presented here offers a way to create a simple, yet versatile and stable, frequency synthesizer (sine and square wave). At the heart of the circuit lies an AD9850 DDS chip (see the figure). The...

The idea presented here offers a way to create a simple, yet versatile and stable, frequency synthesizer (sine and square wave). At the heart of the circuit lies an AD9850 DDS chip (see the figure). The synthesizer is controlled through a PC’s printer port (in most cases, the port’s address is 0x378).

The program is interactive. You will be asked to enter values for the lowest and highest frequency, number of points (up to 30,000), and the delay in 1-ms increments between the points. The synthesizer provides continuous scanning—“jumping” from point to point from lowest to highest frequency until any key is pressed. Pressing “n” will result in a return to DOS; any other key will prompt you to enter new parameters.

For a single frequency generator, just enter the same lowest and highest frequencies. Pressing “LEFT ARROW” or “RIGHT ARROW” will decrease or increase the frequency by a value equal to 1/step (fine tuning). Pressing “DOWN ARROW” or “UP ARROW” will decrease or increase the frequency by a value equal to 10/step (coarse tuning). These four keys can be used in any order during the scanning process as well. In that case, the synthesizer becomes a generator with a single frequency. Repeated key pressing will allow you to “walk back and forth” within the region of interest. The current value of the output frequency will be displayed after every change.

Resolution of the frequency setting is 1 Hz (it can be as low as 0.03 Hz). The frequency range is from 1 Hz to 50 MHz (with a 125-MHz clock). Stability is achieved by using a quartz clock. “Hopping” time from one point to another is on a microsecond level. The best performance will be obtained with frequencies less than 1/3 of the clock’s frequency. Theoretically, though, up to 1/2 is allowable (the user is responsible for obeying the Nyquist theory). A C++ program listing is provided.

Sponsored Recommendations

Highly Integrated 20A Digital Power Module for High Current Applications

March 20, 2024
Renesas latest power module delivers the highest efficiency (up to 94% peak) and fast time-to-market solution in an extremely small footprint. The RRM12120 is ideal for space...

Empowering Innovation: Your Power Partner for Tomorrow's Challenges

March 20, 2024
Discover how innovation, quality, and reliability are embedded into every aspect of Renesas' power products.

Article: Meeting the challenges of power conversion in e-bikes

March 18, 2024
Managing electrical noise in a compact and lightweight vehicle is a perpetual obstacle

Power modules provide high-efficiency conversion between 400V and 800V systems for electric vehicles

March 18, 2024
Porsche, Hyundai and GMC all are converting 400 – 800V today in very different ways. Learn more about how power modules stack up to these discrete designs.

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!