A Design Scheme for Digital Voltage-stabilized Power Supply in Test System

Publisher:QianfengLatest update time:2013-02-19 Source: dzsc Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  0 Introduction

  DC regulated power supply is a relatively 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 extremely rapidly, and highly integrated 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, the digital voltage-stabilized power supply has greatly reduced many common problems in analog power supply, such as error, aging, temperature drift, and nonlinear compensation, and improved the flexibility and adaptability of the power supply. The embedded ARM processor S3C2440 chip of SAMSUNG is applied to the design of the digital voltage-stabilized power supply of the laboratory test system. Using C language and assembly language, a digital voltage-stabilized power supply control system for the test system is realized with the embedded ARM processor as the core and equipped with 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 a main controller, a PWM voltage-stabilized circuit, a voltage and current sampling circuit, a PID controller, and a touch screen. The system principle block diagram is shown in Figure 1.

Figure 1 System block diagram

Figure 1 System block diagram

  The power supply samples the output voltage and current signals, performs PID control, and finally outputs a PWM drive waveform to adjust the output voltage. The output voltage is provided to the chip test platform for use in testing the chip.

  The front-end AC power is input to the rectifier module, which outputs a stable DC voltage after rectification and filtering. This DC voltage is directly output to the IGBT module.

  The high-precision A/D converter converts the voltage and current signals output from 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, setting parameters and displaying 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 module, 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 PWM pulse waves 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-purpose 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 500kSPS, which meets the A/D conversion accuracy required by the test system.

  2.2 PWM voltage regulation circuit design

  The principle of pulse width modulation (PWM) is that the PWM modulation signal controls the on and off of semiconductor power switching devices, 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 give a pulse signal.

  The PWM voltage stabilization circuit is shown in Figure 2.

Figure 2 PWM voltage regulation circuit

Figure 2 PWM voltage regulation circuit [page]

  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 drive 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 little driving power and is easy to drive. The input impedance of MOSFET is very high, and its turn-on and turn-off is equivalent to the charging and discharging process of the input capacitor. According to the parameters of the selected device, the conditions that are met are calculated to ensure that the drive circuit provides a sufficiently large overcharge current to achieve fast and reliable switching of MOSFET.

    Software Design

  S3C2440 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 needs 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 thousandth.

  3.2 Monitoring and protection system

  In order to enable the digital voltage-stabilized power supply to provide voltage for the test system reliably and safely, 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, an audible and visual alarm is sounded and the protection circuit is activated.

  3.3 PID Control Algorithm

  The PID controller is a combination of proportional, integral and differential controllers. It compares the measured controlled object (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. However, 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 overshoot of voltage and current, 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 proportional link of the system. 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.

Figure 3 PID control algorithm flow chart

Fig. 3 PID control algorithm flow chart.

  The PID control algorithm program uses a structure definition:

  struct PID{

  unsigned int SetPoint; //Set the desired value

  unsigned int Proportion; //Proportional constant Proportional Const

  unsigned int Integral; //Integral constant Integral Const

  unsigned int Derivative; //Derivative constant Derivative Const

  unsigned int LastError; //Error[-1]

  unsigned int PrevError; //Error[-2]

  unsigned int SumError; //Sums of Errors

  }spid;

  In the PID control algorithm, the voltage and current output are dynamically controlled to ensure stability through continuous comparison with given values, while also ensuring the accuracy of the voltage and current output. [page]

  The PID control algorithm program is as follows:

  unsigned int PIDCalc (struct PID *pp, unsigned int Next-Point)

  {

  unsigned int dError,Error;

  Error=pp->SetPoint-NextPoint; //Deviation

  pp->SumError+= Error; //Integral

  dError=pp->LastError-pp->PrevError; //Current differential

  pp->PrevError=pp->LastError;

  pp->LastError= Error;

  return (pp->Proportion* Error //proportion

  +pp->Integral*pp->SumError //Integral term

  +pp->Derivative*dError); // differential term

  }

    3.4 System Programs

  The overall program flow chart of the test system is shown in Figure 4.

Figure 4 Main program flow chart

Figure 4 Main program flow chart

  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.

Figure 5 Output voltage waveform

Figure 5 Output voltage waveform

  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, thus improving the use efficiency of the equipment and having good application prospects.

Reference address:A Design Scheme for Digital Voltage-stabilized Power Supply in Test System

Previous article:SD storage technology and its application based on S3C2410
Next article:Design of Touch Screen Interface Based on Embedded Microprocessor S3C44BOX

Recommended ReadingLatest update time:2024-11-16 16:19

S3C2440, S3C6410, S5PV210 interrupt analysis
After writing the key interrupt program for S5PV210, I realized that "6410 is just a transitional product" is indeed correct. Why do I say that? Let me explain it in detail below: I will not talk about the interrupt handling process, etc., because it has been explained in great detail in the first video. I suggest tha
[Microcontroller]
s3c2440 bare metal-resistive touch screen programming (4.isr design_4.2 supports long press and sliding)
1.Improve timer 5. In this section about irq timer interrupts, handle_irq_c() is used to distinguish interrupt sources and execute different isr. Now register the corresponding timer interrupt service program through register_timer, and timer_irq executes different timer interrupt service programs. #define TIMER_NUM
[Microcontroller]
Study notes on s3c2440 LCD and touch screen (1)
The LCD used is TopPoly-TD035STED4 (TFT) model, 240*320 Its VCLK is 6.39MHz. According to the s3c2440 manual, the clock source of the LCD in the s3c2440 is HCLK. The VCLK frequency can be adjusted through the CLKVAL in the LCDCON1 register. Its formula is: VCLK=HCLK÷ . The internal frequency division of the program i
[Microcontroller]
Study notes on s3c2440 LCD and touch screen (1)
Add interrupt configuration to the Keil startup file S3C2440.s for S3C2440
Preface This article mainly describes how to add interrupt configuration and interrupt address mapping in the S3C2440.s file that comes with Keil, so that when an interrupt occurs, it can jump to the interrupt service function in the user code. It is currently available in the TQ2440 development board. Project sourc
[Microcontroller]
Porting minicom to S3C2440
I thought there should be a lot of documents on the Internet about the successful porting of minicom, but after searching for a while, I found that there seems to be no document on the Internet about the successful porting of minicom Minicom requires the support of the ncurses library, which is not availabl
[Microcontroller]
S3C2440 bare metal --- NandFlash operation principle
1. Nandflash operation principle The following figure is the connection diagram of NandFlash and S3C2440 in the schematic diagram. Q1. There is only a data line between NAND FLASH and S3C2440 on the schematic diagram.      How to transfer address? Answer 1. Both data and address are transmitted on DATA0~DATA7.      
[Microcontroller]
S3C2440 bare metal --- NandFlash operation principle
S3C2440 USB Device
S3C2440 has 2 USB host interfaces and 1 USB device interface. This article describes the USB device interface. 1 USB classification and the difference between host interface and device interface 1.1USB2.0 is divided into the following three categories according to speed High-speed USB2.0: Theoretical speed is 480Mbps
[Microcontroller]
S3C2440 USB Device
GNU ARM Assembly--(VI) Clock Control of s3c2440
        In the previous few articles, I used GNU ARM assembly to control LED and the design of ARM interrupt processing, which gave me a certain understanding of ARM assembly and architecture. The following assembly learning will be combined with specific chips, one is to use assembly more flexibly and skillfully, and
[Microcontroller]
GNU ARM Assembly--(VI) Clock Control of s3c2440
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号