This article realizes the generation of DDS sinusoidal signal . Due to the fact that the 128 macro units of CPLD are not enough and we don't know how to optimize them, we simply let the buttons, frequency display, and frequency control word be controlled by the single-chip microcomputer, and then the single-chip microcomputer transmits the frequency control word to the CPLD, so that the frequency control is realized. The frequency range of the final sinusoidal signal is 1HZ~30KHZ. The frequency can be stepped by 1HZ or preset by the single-chip microcomputer, or the frequency signal can be automatically swept. At first, the maximum error of the frequency reached more than 2HZ, and I felt that something was wrong. The frequency should be very accurate and there would not be such a large error. Later, it was found that the crystal oscillator was inaccurate and there was a little error. Later, the program was modified to make the maximum output frequency error within 0.1HZ. After these days of hard work, I finally felt a little relieved.
This is the VHDL top level module:
This is the simulation waveform when k=0011111111111111:
The single chip microcomputer controls 6 digital tubes to display the current frequency, and the P1 port is connected to 4 function buttons, namely +, -, select and sweep, and then two 574 chips are used to output the frequency control word to the CPLD. This is all I can do for now due to time constraints.
Since it is converted by DAC0832 (conversion time 1us), the crystal oscillator is limited to 1M. The maximum frequency is also limited to 0.5MHZ according to the Nyquist sampling theorem (but the distortion is very large, so it is better to take a smaller one). Finally, the waveform can be filtered.
Previous article:ZigBee realizes multi-user smart meter
Next article:Design of a visual intelligent charger
Recommended ReadingLatest update time:2024-11-16 21:50
- Popular Resources
- Popular amplifiers
- MATLAB and FPGA implementation of wireless communication
- Learn CPLD and Verilog HDL programming technology from scratch_Let beginners easily learn CPLD system design technology through practical methods
- Practical Electronic Components and Circuit Basics (4th Edition)_Explanation of basic circuit principles, introduction to electronic components, design of various circuits and practical circuit analysis
- New Concept Analog Circuits - Negative Feedback and Operational Amplifier Basics
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
- PSF Trademark Usage Policy
- If oil prices rise further...
- Finding hope in despair
- Please recommend a 48 to 12V DCDC step-down chip
- Happy Valley facility malfunctioned, many children were hanging upside down in the air~~
- Is it a tax on IQ?
- CCS compilation error: unresolved symbols remain solution
- Fiber Optic Project Overview
- Bluetooth module problem
- Switching Power Supply Interest Group 13th Task