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).
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):
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.
[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.
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.
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.
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
- Popular Resources
- Popular amplifiers
- Analysis and Implementation of MAC Protocol for Wireless Sensor Networks (by Yang Zhijun, Xie Xianjie, and Ding Hongwei)
- MATLAB and FPGA implementation of wireless communication
- Intelligent computing systems (Chen Yunji, Li Ling, Li Wei, Guo Qi, Du Zidong)
- Summary of non-synthesizable statements in FPGA
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Infringement! Chinese company demands 10-year ban on iPhone sales and 10 billion RMB in damages
- Can stm32 separate the kernel from the application (using dynamic link libraries?)
- [CY8CKIT-149 PSoC 4100S Review] + Unboxing
- [NUCLEO-L452RE Review] + Serial Communication and Component Control (and Final Report)
- Why does LSM6DSOX INT2 remain high after triggering the interrupt?
- How to use ftp to update demo
- [NXP Rapid IoT Review] + Summary of Bluetooth protocol stack usage
- EEWORLD University New Course Express Issue 2: Covering multiple fields such as robots, algorithms, black technology, CNC, FPGA, etc.
- Low-power electronic load for fast load transient testing
- PS1 Modchip using micropython