This paper takes the STC12C5A60S microcontroller as the core and uses its internal two-way programmable counter array (PCA) modules to simulate the pulse width modulation method. It designs and implements a small inverter with adjustable output voltage amplitude.
1 System Hardware Design
This paper uses AltiumDesigner6.9 to complete the design of hardware circuit schematic and PCB diagram. Figure 1 is the overall circuit structure diagram of the design.
The function implemented by this design is to convert 6 V DC power into industrial frequency AC power with a frequency of 50 Hz and an amplitude of 110 V through three-stage power conversion (DC-HFAC-DC-LFAC) for use by AC loads. The specific design and functions of each part of the hardware circuit are described as follows.
1.1 Power module
The DC to DC conversion chip MC34063 is combined with LM7805 and LM7812 to obtain 12 V and 5 V DC power to provide the required power for each module of the hardware circuit.
1.2 Pre-stage boost module
The SG3525 chip and its peripheral circuits generate two complementary high-frequency PWM (Pulse Width Modulation) pulse waves, which are used to control the single-side bridge high-frequency inverter composed of two MOS (IRF 3205) tubes, and realize the front-stage boost together with the high-frequency transformer. Through the front-stage boost, the 6 V DC is increased to a high-frequency AC of about 300 V, preparing for the subsequent industrial frequency inverter.
1.3 Rectifier and filter module
The rectifier bridge circuit composed of four diodes rectifies the high-frequency AC output by the front-stage boost module, and is filtered through an LC filter as the input of the industrial frequency inverter bridge circuit.
1.4 Power frequency inverter MOS bridge circuit drive module
In this design, the 4 MOS tubes driving the power frequency inverter bridge are completed by the IR2110 chip. The two SPWM control signals generated by the single chip microcomputer are used as the logic input of the two IR2110 chips after the dead time. The driving circuit composed of two IR2110 chips outputs 4 complementary signals, thereby controlling the on and off of the upper and lower bridge arms of the full-bridge inverter circuit to realize the inverter function.
1.5 SPWM generation module
The minimum system built with STC12C5A60S microcontroller as the core is used as the control part of the module. At the same time, an analog/digital conversion circuit is added to realize the adjustable output amplitude of the inverter by reading the voltage value on the potentiometer. The two SPWM signals are output from the STC12C5A60S microcontroller PCA module P1.3 and P1.4. The principle is to use the sine table data to set the value of the comparison register of the STC12C5A60S microcontroller PCA module to simulate the pulse width modulation method, and finally obtain a rectangular pulse sequence with a width proportional to the sine modulation wave to equal the sine modulation wave. The principle of generating two SPWM waves is shown in Figure 2.
2 System Software Design
The control chip of this design is STC12C5A60S microcontroller from Hongjing Company, which has two PCA modules inside. The standard industrial frequency AC sine table is calculated in advance by Matlab and stored in the extended data memory inside the microcontroller in the form of an array. Then this data table is used to dynamically set the value of the PCA module comparison register to achieve dynamic changes in the counting cycle, and the output high-level pulse width changes with the sine rule.
The main program flow chart is shown in Figure 3, and the PCA interrupt subroutine flow chart is shown in Figure 4.
3 System Testing
3.1 SPWM waveform generation module test
The SPWM waveform generation module based on the single-chip microcomputer can obtain two complementary SPWM waveforms after being run under program control, as shown in Figure 5. Several detailed fragments of the single-channel SPWM of the module were captured by an oscilloscope, as shown in Figure 6, and the pulse width is constantly changing.
3.2 Overall system testing
A 5 V DC power is input at the input end, and after the system is inverted, an AC power with an effective value of 110 V and a frequency of 50 Hz can be obtained at the output end of the system. The output voltage is attenuated 10 times by the oscilloscope probe and then connected to the oscilloscope to obtain the graph shown in Figure 7. Another input of the oscilloscope is to detect the SPWM waveform of the upper left bridge arm of the full-bridge circuit, and the other input corresponds to the upper right bridge arm.
4 Conclusion
The design is based on the realization of digital/analog hybrid circuit controlled by single chip microcomputer, which greatly reduces the volume of the whole hardware circuit. Due to the introduction of digital single chip microcomputer, the controllability is greatly enhanced.
Previous article:Design of a new LCD display control circuit based on single chip microcomputer
Next article:Interface and programming method between LCD and single chip microcomputer
- Popular Resources
- Popular amplifiers
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- 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
- Basic knowledge of MCU
- Writing Verilog Code for AD Sampling FPGA Program
- capacitance
- The basic principles and methods of SRIO error handling
- FPGA button problem
- How to effectively choose a lithium battery protection board
- About continue in for loop
- ARM programming mode and some conceptual understanding
- Detailed explanation and selection of pull-up resistors and pull-down resistors for microcontrollers
- Squelch Tuning Audio Switching/Mixing Circuit Diagram