Design and Implementation of Digital Frequency Synthesizer Based on FPGA

Publisher:Aq123456258Latest update time:2012-07-13 Source: 电子设计工程 Keywords:FPGA Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
A digital frequency synthesizer (DDS) is a digitally controlled phase-locked frequency multiplier. Its output frequency is an integer multiple of the reference frequency. The frequency selection switch changes the frequency division ratio to control the output signal frequency of the voltage-controlled oscillator. Compared with traditional frequency synthesizers, DDS has the advantages of low cost, low power consumption, high resolution and fast conversion time. It is a key technology for realizing full digitalization of equipment and is widely used in the fields of communications and electronic instruments.

1 Basic Principles of DDS
The working principle of DDS is to generate a sine wave with controllable frequency and phase in the form of a digitally controlled oscillator. The circuit generally includes a reference clock, a frequency accumulator, a phase accumulator, an amplitude/phase conversion circuit, a D/A converter and an LPF (Low Phase Filter).

e.JPG


The specific working process of DDS is shown in Figure 1. The N-bit phase accumulator consists of an N-bit adder and an N-bit accumulator register. For each clock pulse, the N-bit adder adds the frequency control word K and the accumulated phase data output by the N-bit accumulator register, and sends the result of the addition to the input end of the accumulator register. On the one hand, the accumulator register feeds back the new phase data generated after the previous clock cycle to the input end of the adder, so that the adder continues to add the frequency control word K under the action of the next clock; on the other hand, this value is used as a sampling address and sent to the amplitude/phase conversion circuit to output the corresponding waveform data. Finally, the waveform data is converted into the required analog waveform by the D/A converter and LPF.
Under the action of the reference clock, the phase accumulator performs linear phase accumulation. When the N-bit phase accumulator accumulates IV times, an overflow will occur, thus completing a cycle, which is also the frequency cycle of the DDS signal.
The output frequency fout of the DDS module is a function of the system operating frequency fclk, the number of bits of the phase accumulator N and the frequency control word K. The mathematical relationship is given by equation (1):
f.JPG
Its frequency division ratio is K/2N.

2 System Design
2.1 Design of Phase Accumulator
The phase accumulator is a typical feedback circuit, which is composed of an N-bit full adder and an N-bit accumulation register cascaded together to perform accumulation operations on binary codes representing frequencies. The number of bits of the phase accumulator N=32. A higher frequency resolution can be achieved. The module is written in Verilog language. The simulation circuit is shown in Figure 2.

a.JPG [page]

2.2 Design of ROM for storing waveform signals
The design of the ROM of this module is based on the open IP core of ALTERA, which is automatically generated. The stored sine wave waveform file, that is, the initialization file, is written in C language to generate waveform data and store it in ROM. Since the DAC device used is 8-bit input, the ROM data width designed in this paper is 8, but in order to improve the accuracy, the memory depth is selected as 1024. The simulation circuit is shown in Figure 3.

b.JPG


2.3 System overall module and simulation diagram
The overall circuit diagram of this system is shown in Figure 4, which consists of three parts: accumulator, 32-bit register, and ROM for storing waveforms. The accumulator performs DDS phase adjustment, and the output result is sent to the 32-bit D flip-flop to generate the address signal for reading ROM. Due to the limitation of ROM, we intercept the upper 10 bits as the address signal for reading ROM to generate a stable signal. The subsequent ADC and filter circuit are input for processing and output a stable waveform. The simulation circuit is shown in Figure 5. The system has well realized the reading of waveform data.

c.JPG

d.JPG



3 Conclusion
Based on the working principle of DDS, this paper designs and implements DDS direct frequency synthesis in VerilogHDL language on the FPGA development platform. After D/A conversion and external filtering and shaping circuit processing of waveform data, the output frequency-adjustable sine wave can be used as a signal source. It has good practical value.

Keywords:FPGA Reference address:Design and Implementation of Digital Frequency Synthesizer Based on FPGA

Previous article:Design and implementation of low-pass FIR filter based on FPGA distributed algorithm
Next article:Design of Adaptive Digital Sensor Based on FPGA

Recommended ReadingLatest update time:2024-11-16 19:34

Acquisition circuit module based on DSP+FPGA multi-video monitoring
  With the rapid development of computer and digital image processing technology, video surveillance technology is widely used. Traditional video surveillance systems use a single camera to monitor a fixed scene. Not only is the video field of view limited, but it is also unable to monitor the same object in different
[Embedded]
Acquisition circuit module based on DSP+FPGA multi-video monitoring
Design optimization of a three-axis servo controller
At present, the design of servo controllers is mostly based on DSP or MCU as the control core. Servo controllers are a device used to control servo motors. Generally, servo motors are controlled by position, speed and torque to achieve high-precision positioning of the transmission system. From a structural point
[Embedded]
Design optimization of a three-axis servo controller
Application of FPGA chips in high-speed data acquisition cache system
In terms of high-speed data acquisition, FPGA has unparalleled advantages over single-chip microcomputers and DSPs. FPGA has a high clock frequency, small internal delay, all control logic can be completed by hardware, and it is fast, flexible in composition, and can integrate peripheral control, decoding and interf
[Embedded]
Application of FPGA chips in high-speed data acquisition cache system
FPGA-based home remote control
  introduction   As the types of household appliances in people's lives increase day by day, the types of remote controls also increase accordingly. Different types of remote controls generally cannot replace each other, which brings many inconveniences to people's lives.   The functions of various remote controls
[Microcontroller]
FPGA-based home remote control
Accelerate Video Development on FPGAs with Video Kits
With the advent of next-generation video compression standards, the industry has shifted from basic video processing to more complex integrated processing solutions, which has led to system requirements that exceed the video performance of independent DSPs. FPGAs provide more than 20GMACs of DSP performance at a pri
[Embedded]
Accelerate Video Development on FPGAs with Video Kits
Meeting the needs of DC/DC converters for FPGA power design
Electronic systems that require extensive digital processing are often implemented using field-programmable devices such as FPGAs or CPLDs rather than custom application-specific integrated circuits (ASICs). Although custom ASICs may have cost advantages over field-programmable devices, field-programmable devices of
[Power Management]
Meeting the needs of DC/DC converters for FPGA power design
Discrete domain modeling and simulation of harmonic voltage source based on FPGA
0 Introduction In recent years, due to the massive increase in nonlinear loads such as power electronic devices, the harmonic pollution of the power system has become increasingly serious, seriously affecting the accuracy and rationality of electric energy measurement, and disputes caused by this are also c
[Power Management]
Discrete domain modeling and simulation of harmonic voltage source based on FPGA
FPGA Implementation of Spread Spectrum Communication Chip STEL-2000A
Spread spectrum communication has been rapidly developed and widely used due to its advantages of good confidentiality, concealment, anti-interference and anti-multipath effects. Therefore, many companies have launched various types of spread spectrum integrated circuits, a typical example is STEL-2000A, which has b
[Embedded]
FPGA Implementation of Spread Spectrum Communication Chip STEL-2000A
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号