DC regulated power supply is a common electronic device, which has been widely used in many fields such as electronic circuits, experimental teaching, scientific research, etc. In recent years, embedded technology has developed rapidly, and high-integration processors with single-chip microcomputers and embedded ARM as the core have emerged, and have been widely used in automation, communication and other fields. The power supply industry has also begun to use embedded controllers with rich internal integrated resources to realize the control system of digital regulated power supply. Digital regulated power supply uses pulse width modulation wave (PWM) to control the opening and closing of switching devices such as MOS tubes, so as to achieve stable output of voltage and current. Digital regulated power supply also has self-diagnosis function, which can realize overvoltage and overcurrent protection, fault warning, etc.
Compared with the previous analog power supply, digital regulated power supply greatly reduces many common problems in analog power supply, such as error, aging, temperature drift, nonlinear compensation, etc., and improves the flexibility and adaptability of power supply. The embedded ARM processor S3C2440 chip of SAMSUNG company is applied to the design of digital regulated power supply of laboratory test system. C language and assembly language are used to realize a digital regulated power supply control system of test system with embedded ARM processor as the core and PID controller and touch screen functions.
1 Composition and working principle of digital voltage-stabilized power supply of test system The
digital voltage-stabilized power supply consists of main controller, PWM voltage-stabilized circuit, voltage and current sampling circuit, PID controller and touch screen. The system principle block diagram is shown in Figure 1.
This power supply samples the output voltage and current signals, performs PID control, and finally outputs PWM drive waveform to adjust the output voltage. The output voltage is provided to the chip test platform for use when testing the chip.
The front-end AC power supply is input to the rectifier module, and a stable DC voltage is output after rectification and filtering. The DC voltage is directly output to the IGBT module. The high-precision A/D converter converts the voltage and current signals output by the back end from analog signals to digital quantities and supplies them to S3C2440 for digital PID operation. After the PID controller operation, S3C2440 outputs PWM to IGBT, thus forming a closed-loop control system to control the stable output of voltage and current, thereby realizing the design of digital voltage-stabilized power supply and providing it to the chip test system. The ARM controller realizes the human-computer interaction interface through the touch screen, and sets parameters and displays information on the touch screen.
2 Hardware Design
2.1 ARM Control System Composition
In view of the high requirements of PID operation and PWM wave output modules, after investigation, SAMSUNG's S3C2440 was selected. This is a 32-bit CPU based on the ARM920T core, with a frequency of up to 400MHz, which can fully meet the real-time requirements of PID controller operation; the 16-bit timer can achieve a PWM pulse wave with an accuracy of up to 0.03μs, and has an anti-dead zone function; 24 external interrupt sources can fully meet the real-time response to external fault information of the system; the internal embedded LCD controller and DMA channel enable the voltage and current values to be displayed on the LCD in real time, and some required parameters can also be designed through the touch screen; up to 140 general I/O ports can easily expand external interfaces and devices; it has an 8-channel multiplexed ADC, 10-bit digital encoding, and a conversion rate of up to 500 kSPS, which meets the A/D conversion accuracy required by the test system. [page]
The principle of pulse width modulation (PWM) is that the PWM modulation signal controls the on and off of the semiconductor power switch device, so that the output end obtains a series of pulses with equal amplitudes but unequal widths, and after processing, a stable DC voltage output is obtained. The PWM modulation signal is modulated by the ARM main controller according to the set voltage value and certain rules to modulate the width of each pulse and then give a pulse signal. The PWM voltage stabilization circuit is shown in Figure 2.
The switching speed of semiconductor power switch devices directly affects the conversion efficiency and load capacity of the power supply. In the PWM voltage stabilization circuit of this system, the driving circuit is composed of resistors, capacitors, transistors and field effect tubes. MOSFET is a voltage unipolar metal oxide silicon field effect transistor, which requires very small driving power and is easy to drive. The input impedance of MOSFET is very high, and its conduction and shutdown are equivalent to the charging and discharging process of the input capacitor. According to the parameters of the selected device, the conditions to be satisfied are calculated to ensure that the driving circuit provides a sufficiently large overcharge current to achieve fast and reliable switching of MOSFET.
3 Software Design
S3C240 is used as the core processor. Its rich on-chip resources and excellent computing speed ensure the real-time performance of the system. The software is mainly written in C language for driver and application development. Its large-capacity memory can fully meet the data storage of system programs.
The main functions and software implementation methods of the ARM processor in this test system are as follows.
3.1 PWM wave generation
PWM is used to drive the IGBT in the circuit. According to the output sampling, the values in the timer configuration register TCFGn and the timer n count buffer register TCNTBn are set and adjusted to change the period and pulse width of the output PWM wave. Modifying the value of TCNTBn can control the duty cycle of the PWM wave to increase or decrease by 1, and the PWM output duty cycle can increase or decrease by one thousandth, which can achieve a control accuracy of one ten-thousandth.
3.2 Monitoring and protection system
In order to enable the digital voltage-stabilized power supply to reliably and safely provide voltage for the test system, the system is equipped with a monitoring and protection system, which is mainly used for overcurrent protection and overvoltage protection. The ARM processor uses dual detection for voltage and current. When the voltage and current exceed the set dangerous value range, the sound and light alarm will be sounded and the protection circuit will be started.
3.3 PID control algorithm
The PID controller is composed of a combination of proportional, integral, and differential controllers. It compares the measured controlled object (the voltage and current values in this system) with the set value, and uses this error to adjust the system response to achieve a dynamic and real-time control process.
In the digital voltage-stabilized power supply PID control system, the proportional link is used to control the output of the voltage and current to change proportionally with the input error signal, but there will be a steady-state error here, that is, the deviation between the actual value and the given value. Therefore, it is necessary to introduce an integral link to eliminate the steady-state error to improve the system accuracy. However, due to the accumulation of integrals when the power supply system is turned on and off, it will cause voltage and current overshoot and even oscillation. In order to reduce the impact of this aspect, a given error value range is set. When the error between the voltage and current and the set working value is less than this given value, the integral link is used to eliminate the steady-state error generated by the system proportional link. The PID control algorithm sets the threshold ε. When |e(k)|>ε, the PD control link is used to reduce the overshoot and make the system respond faster; when |e(k)|<ε, PID control is used to ensure the accuracy and stability of voltage and current. After the voltage reaches the accuracy range of one thousandth, an integral link needs to be added to complete the rapid and stable output when the power supply is turned on. The PID algorithm flow chart is shown in Figure 3.
[page]
The PID control algorithm program adopts the structure definition:
In the PID control algorithm, the voltage and current output are dynamically controlled to ensure the stability of the voltage and current output by constantly comparing with the given value, while ensuring the accuracy of the voltage and current output.
The PID control algorithm program is as follows:
[page]
3.4 System Program
The overall program flow chart of the test system is shown in Figure 4.
The digital voltage-stabilized power supply of the test system designed in this paper can meet the power supply requirements for chip testing. Figure 5 shows the output voltage. It can be seen from the figure that the output voltage is stable.
4 Conclusion
The voltage provided by the voltage-stabilized power supply designed in this paper is stable and reliable, and the system operation is also very stable. Due to the large number of expandable I/Os, various required voltage values of the voltage-stabilized power supply can be provided for multiple chips at the same time. This system can not only be used in laboratory chip testing work, but also can modify some control programs through software programming methods to make the designed voltage-stabilized power supply as the power supply voltage for the performance test of intelligent electronic products, which improves the use efficiency of the equipment and has a good application prospect.
Previous article:MiniGUI transplantation based on S3C2440
Next article:Embedded U-BOOT Gigabit Network Design Using S3C2440A
Recommended ReadingLatest update time:2024-11-16 17:37
- Popular Resources
- Popular amplifiers
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
- Basic Theory of System Timing
- Mitsubishi Servo Drive MR-J2S-20B Disassembly
- Image processing filtering algorithm
- How to achieve automated testing of LCR?
- Which company can make PCB boards with a width of about 2MM?
- How to speed up the program running speed of Huada HC32F460 HC32F4A0?
- FPDLINK Spark Interference Optimization
- Why do electrolytic capacitors explode? Find out in one article!
- [Iprober 520 current probe] Calibration and use in PCB mode
- A brief history of hard disk interface evolution