Commonly used signal sources in laboratories generally use analog circuits to generate the signals used. Analog circuits have some inevitable shortcomings, such as inconvenience to use, incomplete functions, low resolution, and high price. The digital signal source implemented with a single-chip microcomputer is easy to use, powerful, and cost-effective. This project is implemented using a single-chip microcomputer, which inherits the advantages of general digital signal sources, and especially provides dual output signals with the same frequency and phase difference to meet the actual needs of laboratories and factories.
1 Hardware circuit description This system adopts a bus structure. The CPU is 8031, with an external 2718 RAM. The keyboard is a 4×4 matrix keyboard. It is connected to the 8031 through a 244 buffer. The 138 decoder is responsible for providing addresses to each terminal. Its output terminal Connected to the chip select terminal of each chip. The four light-emitting diodes represent power supply, sine wave, cosine wave, and ramp wave respectively, and are hung on the bus through a 373 latch. ICM7212AM is an LED display decoding driver chip with decoding driver and hold functions. It can drive 4 common anode 7-segment digital tubes, and the brightness can be adjusted. DAC0832 is an 8-bit D/A converter with a two-level latch function and can implement various buffering methods to facilitate dual simultaneous output. The filter circuit adopts bipolar two-stage amplification filtering, which can adjust the output waveform amplitude and average value steplessly. The hardware schematic is shown in Figure 1. 2 Software flow chart and function demonstration 2.1 Software flow chart Software programming strives for modular design, divided into main programs and several subprograms. Considering that assembly language has higher execution efficiency, all programs are written in assembly language. The main program is mainly responsible for accepting keyboard input control and storing and displaying it. Sine wave, square wave, and ramp wave subroutines are mainly used to solve the given frequency of various waveforms from small phases to obtain the initial value of the timer. Timing interrupt is used to control the output frequency and phase difference. The interrupt subroutine is mainly used to look up the table and output each voltage point. Output the voltage at each point of various waveforms. The flow chart of each part is shown in Figure 2 (the flow chart of square wave and ramp wave is similar to that of sine wave).
2.2 Function Demonstration
The function demonstration is shown in Figure 3.
3 Performance Introduction
This intelligent dual-channel digital signal source can generate three types of signals: square wave, ramp wave and sine wave. The frequency range of each signal is 0.1~2 kHz, and the minimum scale is 0.1 Hz. The frequency is displayed by a digital tube, which is clear and beautiful. It can output two signals of the same frequency but with phase difference at the same time, or it can also output one signal.
The phase difference between the two outputs can be set manually, and the phase shift range is 0°~360°. All settings are completed through the keyboard, making the operation simple and convenient.
The output signal can be adjusted arbitrarily, with the average value between -12 and +12 V and the peak-to-peak value between 0 and 10 V. All adjustments are stepless. It has complete functions and is cheap. The mass production cost is about 80 yuan. It is suitable for use in laboratories and factories and has good market prospects.
references
[1] Li Hua. Practical interface technology of MCS-51 series microcontroller[M]. Beijing: Beihang University Press, 1993.
[2] Gan Dengdai, Li Guangdong, Xu Jianping. Practical Development Guide for Microcontroller[M]. Beijing: Science Press, 1994.
Previous article:Characteristics and applications of Cygnal system-on-chip microcontrollers
Next article:Intelligent dual-channel digital signal source
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
- MicropyCli - Micropython project management automation
- 【AIoT Smart Smoke Detection System】System Design Overview
- Doping of semiconductors from the perspective of energy levels
- EEWORLD University - HDMI 2.1 Design and Testing Update
- Design of breathing light based on FPGA
- Classification, functions and effects of interface circuits
- ST Live Broadcast on March 19: Introduction to SensorTile.box, Bone Vibration Sensor, and Machine Learning Sensor Development
- Application of Operational Amplifier in Voltage Comparator
- Error message when importing bsp project into CCS6
- Many people like to use S9013 as a driver for buzzers, small fans, and LEDs. What is the advantage of S9013 over S8050? High frequency...