Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

DDS generator. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Measuring technology

Comments on the article Comments on the article

Often, in amateur radio practice, a simple functional DDS (Direct Digital Frequency Synthesis) generator is needed. To get a specific frequency...

I have developed a simple on-chip sine generator from Analog Devices AD9832. The circuit generated a sinusoid from 0.005 to 12 MHz with a step of 0.005 Hz. But while I was waiting for the AD9832 chip to arrive, a simple DDS generator was developed using an AT90S2313 microcontroller and a resistive matrix.

The generator is controlled via RS232 by a small Windows program and can generate the following waveforms: sine, triangle, sawtooth, rectangle in the frequency range from 0.07 Hz to 200-300 kHz in 0.07 Hz steps (depending on the quartz used).

DDS generator. DDS generator program

I don't want to go into the details of how a DDS generator works. The source code is attached, it is very simple and easy to understand.

DDS generator

The circuitry of the device is also simple, it has 4 main parts: a voltage regulator, an RS232 transceiver, an AT90S2313P microcontroller and a resistive matrix (R2R). Matrix R2R is connected to the pins of MK portB, thus. forming a simple DAC and allowing you to get 256 voltage levels.

The MAX603 is also used to implement generator on/off functions via the RS232 serial interface (DTR signal). When you close the generator program on the computer, then the DDS generator is turned off by the received signal, i.e. saving batteries.

DDS generator. Schematic diagram of the DDS generator
(click to enlarge)

The program code is written in assembler. The code is small and the main loop is very fast. This is the heart of the generator code. The main loop contains 7 lines of code. The rest of the code is waveform tables and communication code.

The phase accumulator is 24 bits and is used to set the resolution.

The maximum generated frequency and resolution also depends on the crystal used:
Resolution = Crystal frequency / 150994944
fOut = Accumulator * Resolution
In my case, the quartz was at 11.059200 MHz, so the resolution was 0.073242188 Hz.
In order to get an output frequency of 1 kHz, it is necessary to write the value 0x003556 (13654 dec) into the phase accumulator. This will give 1000.048835 Hz. Quite sufficient accuracy for a radio amateur.

The communication code of the program is also simple and allows you to write values ​​to the phase accumulator and select the type of waveform.

DDS generator. Oscillator Waveforms: Sine, Rectangle, Saw

Download assembler source and Windows program

Publication: cxem.net

See other articles Section Measuring technology.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Machine for thinning flowers in gardens 02.05.2024

In modern agriculture, technological progress is developing aimed at increasing the efficiency of plant care processes. The innovative Florix flower thinning machine was presented in Italy, designed to optimize the harvesting stage. This tool is equipped with mobile arms, allowing it to be easily adapted to the needs of the garden. The operator can adjust the speed of the thin wires by controlling them from the tractor cab using a joystick. This approach significantly increases the efficiency of the flower thinning process, providing the possibility of individual adjustment to the specific conditions of the garden, as well as the variety and type of fruit grown in it. After testing the Florix machine for two years on various types of fruit, the results were very encouraging. Farmers such as Filiberto Montanari, who has used a Florix machine for several years, have reported a significant reduction in the time and labor required to thin flowers. ... >>

Advanced Infrared Microscope 02.05.2024

Microscopes play an important role in scientific research, allowing scientists to delve into structures and processes invisible to the eye. However, various microscopy methods have their limitations, and among them was the limitation of resolution when using the infrared range. But the latest achievements of Japanese researchers from the University of Tokyo open up new prospects for studying the microworld. Scientists from the University of Tokyo have unveiled a new microscope that will revolutionize the capabilities of infrared microscopy. This advanced instrument allows you to see the internal structures of living bacteria with amazing clarity on the nanometer scale. Typically, mid-infrared microscopes are limited by low resolution, but the latest development from Japanese researchers overcomes these limitations. According to scientists, the developed microscope allows creating images with a resolution of up to 120 nanometers, which is 30 times higher than the resolution of traditional microscopes. ... >>

Air trap for insects 01.05.2024

Agriculture is one of the key sectors of the economy, and pest control is an integral part of this process. A team of scientists from the Indian Council of Agricultural Research-Central Potato Research Institute (ICAR-CPRI), Shimla, has come up with an innovative solution to this problem - a wind-powered insect air trap. This device addresses the shortcomings of traditional pest control methods by providing real-time insect population data. The trap is powered entirely by wind energy, making it an environmentally friendly solution that requires no power. Its unique design allows monitoring of both harmful and beneficial insects, providing a complete overview of the population in any agricultural area. “By assessing target pests at the right time, we can take necessary measures to control both pests and diseases,” says Kapil ... >>

Random news from the Archive

Remote control teacher 06.01.2006

Schools in the US and UK have a new classroom survey technique. Each student is armed with a remote control like a conventional TV, and on the teacher's desk is a computer that can receive infrared signals from the remotes.

The teacher asks a question or writes it on the board, offering options for answers, and each student, clicking the remote control, chooses the correct option, in his opinion. As a result, during the lesson, you can repeatedly poll the entire class. The computer fixes the results. With signals, the student can also attract the attention of the teacher to ask a question or ask him to come and help.

There are about half a million such remotes in use in US schools alone.

Other interesting news:

▪ Internet for washing machine

▪ Chopsticks that enhance the salty taste

▪ protein potatoes

▪ Sea in the pipeline

▪ Automotive technology of the future from Hyundai

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ site section Computer devices. Article selection

▪ article Thirty pieces of silver. Popular expression

▪ article Where did the potato originate? Detailed answer

▪ article Dismantling of buildings and structures. Standard instruction on labor protection

▪ article Interior lighting with ultra-bright LEDs. Encyclopedia of radio electronics and electrical engineering

▪ article How to extend the life of Ni-MH cell phone batteries. Encyclopedia of radio electronics and electrical engineering

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024