A kind of control method of Switching Power Supply and device
Technical field
The present invention relates to power supply, more particularly, relate to a kind of control method and device of Switching Power Supply.
Background technology
Switching Power Supply is a kind of voltage conversion circuit, is mainly used in boosting and step-down, and is widely used in modern electronic product.Switching Power Supply generally comprises main circuit and control circuit.Wherein control circuit sampling main circuit signal, adopts certain control method and device, converts control signal to, controls the operation of main circuit.
The switching power source control circuit of prior art generally as depicted in figs. 1 and 2.Fig. 1 is the switching power source control circuit schematic diagram of prior art; Its control method adopting is that the difference of output voltage benchmark and output voltage sampled signal is generated to the first sampled signal benchmark through voltage compensator; The difference of the first sampled signal benchmark and the first sampled signal generates duty ratio through the first sampled signal compensator; Duty ratio generates the control signal of controlling main circuit switch through signal generator.
Fig. 2 is the AC/DC switching power source control circuit schematic diagram of prior art.Switching power source control circuit principle shown in itself and Fig. 1 is basic identical.Its difference is, by the difference of output voltage benchmark and output voltage sampled signal through voltage compensator formation voltage compensating signal; Through multiplier, voltage compensation signal and input voltage sampled signal multiply each other, then with input voltage effective value sampled signal square divided by generate the first sampled signal benchmark.
The defect of above-mentioned control method is, when the saltus step of source, voltage compensator governing speed is slower, causes the first sampled signal benchmark bigger than normal or less than normal when the saltus step of source, needs the long period just can reach new stationary value.Before reaching new stationary value, because it is bigger than normal or less than normal, cause input power excessive or too small, thereby cause output voltage upper punch or drop.
The defect of the control method of above-mentioned AC/DC Switching Power Supply is, because input voltage effective value sampled signal is generally to generate time in one or several cycle (minimum 1/4 cycle) based on input voltage sampled signal.When the saltus step of source, input voltage effective value sampled signal almost remain unchanged or pace of change slower, voltage compensator governing speed is slower simultaneously, causes the first sampled signal benchmark bigger than normal or less than normal when the saltus step of source, needs the long period just can reach new stationary value.Before reaching new stationary value, because it is bigger than normal or less than normal, cause input power excessive or too small, thereby cause output voltage upper punch or drop.
For output voltage upper punch or drop, the general method generally adopting is to detect output voltage in the prior art, when upper punch or while falling to certain value, adopt certain control method, (adopt the voltage compensator of another set of parameter, directly the first sampled signal benchmark is processed, or directly duty ratio is processed), thereby control output voltage upper punch or drop in certain scope, but now upper punch or fallen to certain value of output voltage, its output voltage and input voltage change as shown in Figure 3.
Therefore, need a kind of can assurance in the sudden change of source, can make rapidly reflection, and control the Switching Power Supply control method that output voltage remains unchanged.
Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, provides a kind of can assurance in the sudden change of source, can make rapidly reflection, and control the Switching Power Supply control method that output voltage remains unchanged.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of control method of Switching Power Supply, comprising: construct a kind of control method of Switching Power Supply, comprising:
A. obtain output voltage sampled signal, and the difference formation voltage compensating signal based on output voltage benchmark and described output voltage sampled signal;
B. obtain input voltage sampled signal, and by described voltage compensation signal and described input voltage sampled signal divided by generating the first sampled signal benchmark;
C. obtain the first sampled signal, and the difference based on described the first sampled signal benchmark and described the first sampled signal generates duty ratio;
D. based on described duty ratio, generate the control signal of main circuit switch.
In the control method of Switching Power Supply of the present invention, when main circuit is AC/DC circuit, described step b comprises:
B1, obtain input voltage sampled signal, and generate the real-time effective value sampled signal of input voltage based on described input voltage sampled signal;
B2, based on described input voltage sampled signal, the real-time effective value sampled signal of input voltage and described voltage compensation signal, generate the first sampled signal benchmark.
In the control method of Switching Power Supply of the present invention, described step b1 comprises:
B11, obtain input voltage sampled signal, and generate input voltage phase sampled signal based on described input voltage sampled signal;
B12, described input voltage phase sampled signal is got to sine, then and
multiply each other and generate unit sine wave signal; Described input voltage sampled signal and unit sine wave signal are divided by and generate the real-time effective value sampled signal of input voltage again;
In the control method of Switching Power Supply of the present invention, described step b2 comprises:
B21, described voltage compensation signal and described input voltage sampled signal are multiplied each other, then with the real-time effective value sampled signal of described input voltage square divided by generating the first sampled signal benchmark.
In the control method of Switching Power Supply of the present invention, in described step b12, in described input voltage sampled signal or unit sine wave signal are zero moment and one section or several sections of time ranges, the real-time effective value sampled signal of input voltage remains unchanged.
In the control method of Switching Power Supply of the present invention, described the first sampled signal comprises current sampling signal or power samples signal; Described current sampling signal comprises input current sampled signal, output current sampled signal or load current sampled signal; Described power samples signal comprises input power sampled signal, power output sampled signal or bearing power sampled signal.
In the control method of Switching Power Supply of the present invention, described control method adopts in one section or several sections of source ranges.
In the control method of Switching Power Supply of the present invention, described control method adopts in one section or several sections of time ranges when the saltus step of source and after saltus step.
The control device of constructing a kind of Switching Power Supply, comprising:
Sample circuit, for obtaining output voltage sampled signal, the first sampled signal, input voltage sampled signal;
Voltage compensator, for the difference formation voltage compensating signal based on output voltage benchmark and output voltage sampled signal;
Divider, for by described voltage compensation signal and described input voltage sampled signal divided by generating the first sampled signal benchmark;
The first sampled signal compensator, generates duty ratio for the difference based on described the first sampled signal benchmark and described the first sampled signal;
Signal generator, for generating the control signal of main circuit switch based on described duty ratio.
In the control device of a kind of Switching Power Supply of the present invention, when main circuit is AC/DC circuit, described control device also comprises:
Effective value generator in real time, for generating the real-time effective value sampled signal of input voltage based on input voltage sampled signal
Multiplier, for generating the first sampled signal benchmark based on described input voltage sampled signal, the real-time effective value sampled signal of input voltage and described voltage compensation signal.
Control method and the device of implementing a kind of Switching Power Supply of the present invention, have following beneficial effect:
When the saltus step of source, voltage compensator, without adjusting, just can make the first sampled signal benchmark when load saltus step, reaches in real time new stationary value, and input power equals power output, and therefore output voltage remains unchanged.
When main circuit is AC/DC circuit, when the saltus step of source, the real-time effective value sampled signal of input voltage reaches the effective value of the input voltage sampled signal after the saltus step of source in real time, voltage compensator is without adjusting, just can make the first sampled signal benchmark when load saltus step, reach in real time new stationary value, input power equals power output, and therefore output voltage remains unchanged.
In addition, the invention provides a kind of while solving source saltus step from source, the problem that output voltage changes.In the art, technical staff is often just detecting output voltage, when upper punch or while falling to certain value, adopts certain control method to process, and does not consider from source and deal with problems.Therefore, the invention provides a kind of new thinking that solves this technical problem.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the switching power source control circuit schematic diagram of prior art;
Fig. 2 is the AC/DC switching power source control circuit schematic diagram of prior art;
Fig. 3 is the source saltus step simulation waveform figure that adopts the AC/DC switching power source control circuit of prior art;
Fig. 4 is the flow chart of the control method of Switching Power Supply of the present invention;
Fig. 5 is switching power source control circuit schematic diagram of the present invention;
Fig. 6 is AC/DC switching power source control circuit schematic diagram of the present invention;
Fig. 7 is the source saltus step simulation waveform figure that adopts AC/DC switching power source control circuit of the present invention.
Embodiment
As shown in Figure 4, the control method of Switching Power Supply of the present invention comprises: S1 obtains output voltage sampled signal, and the difference formation voltage compensating signal based on output voltage benchmark and described output voltage sampled signal; S2 obtains input voltage sampled signal, and by described voltage compensation signal and described input voltage sampled signal divided by generating the first sampled signal benchmark; S3 obtains the first sampled signal, and the difference based on described the first sampled signal benchmark and described the first sampled signal generates duty ratio; S4 generates the control signal of main circuit switch based on described duty ratio.
In step S1, can adopt sample circuit to obtain output voltage sampled signal, and use the difference formation voltage compensating signal of voltage compensator based on output voltage benchmark and output voltage sampled signal.
In step S2, can adopt sample circuit to obtain input voltage sampled signal, and use divider by described voltage compensation signal and described input voltage sampled signal divided by generating the first sampled signal benchmark.
In step S3, can adopt sample circuit to obtain the first sampled signal, and use the difference of the first sampled signal compensator based on described the first sampled signal benchmark and described the first sampled signal to generate duty ratio.
In one embodiment of the invention, this first sampled signal is input power sampled signal, power output sampled signal, bearing power sampled signal, input current sampled signal, output current sampled signal or load current sampled signal.
In step S4, can use signal generator based on described duty ratio, to generate the control signal of main circuit switch.
When main circuit is AC/DC circuit, step S2 also can change into: obtain input voltage sampled signal, and generate the real-time effective value sampled signal of input voltage based on described input voltage sampled signal; Based on described input voltage sampled signal, the real-time effective value sampled signal of input voltage and described voltage compensation signal, generate the first sampled signal benchmark.
Wherein power samples signal can be by current sampling signal and voltage sampling signal are multiplied each other to obtain, or obtain by certain control method or device.
In one embodiment of the invention, based on input voltage sampled signal, generate input voltage phase sampled signal; Input voltage phase sampled signal is got to sine, then and
multiply each other and generate unit sine wave signal; Input voltage sampled signal and unit sine wave signal are divided by and generate the real-time effective value sampled signal of input voltage again.
In another embodiment of the present invention, voltage compensation signal and input voltage sampled signal are multiplied each other, then with the real-time effective value sampled signal of input voltage square divided by generate the first sampled signal benchmark.
In another embodiment of the present invention, in input voltage sampled signal or unit sine wave signal are zero moment and one section or several sections of time ranges, the real-time effective value sampled signal of input voltage remains unchanged.
In another embodiment of the present invention, based on input voltage sampled signal, detect zero-crossing timing point, current point in time, frequency (or cycle), and the difference of current point in time and zero-crossing timing point and frequency are multiplied each other (or being divided by with the cycle), then multiply each other and generate input voltage phase sampled signal with the circumference ratio of 2 times.
In another embodiment of the present invention, in one section or several sections of source ranges, adopt the control method of described Switching Power Supply.This source range can be from lowest starting voltage to maximum permissible voltage setting or from free voltage to free voltage setting.Those skilled in the art understand and are familiar with this set.
In another embodiment of the present invention, when the saltus step of source and after saltus step, in one section or several sections of time ranges, adopt the control method of described Switching Power Supply.This time range can arrange arbitrarily.Those skilled in the art understand and are familiar with this set.
When the saltus step of source, owing to adopting method of the present invention, voltage compensator, without adjusting, just can make the first sampled signal benchmark when load saltus step, reaches in real time new stationary value, and input power equals power output, and therefore output voltage remains unchanged.
The control device that the invention also discloses a kind of Switching Power Supply, comprising: sample circuit, for obtaining output voltage sampled signal, the first sampled signal, input voltage sampled signal; Voltage compensator, for the difference formation voltage compensating signal based on output voltage benchmark and output voltage sampled signal; Divider, for by described voltage compensation signal and described input voltage sampled signal divided by generating the first sampled signal benchmark; The first sampled signal compensator, generates duty ratio for the difference based on described the first sampled signal benchmark and described the first sampled signal; Signal generator, for generating the control signal of main circuit switch based on described duty ratio.
Fig. 5 is switching power source control circuit schematic diagram of the present invention.Its control method adopting is through voltage compensator formation voltage compensating signal by the difference of output voltage benchmark and output voltage sampled signal; By voltage compensation signal and input voltage sampled signal divided by generating the first sampled signal benchmark; The difference of the first sampled signal benchmark and the first sampled signal generates duty ratio through the first sampled signal compensator; Duty ratio generates the control signal of controlling main circuit switch through signal generator.
Fig. 6 is AC/DC switching power source control circuit schematic diagram of the present invention.Switching power source control circuit principle shown in itself and Fig. 5 is basic identical.Its difference is, input voltage sampled signal is generated to the real-time effective value sampled signal of input voltage through real-time effective value generator; Input voltage sampled signal, the real-time effective value sampled signal of input voltage and voltage compensation signal are generated to the first sampled signal benchmark through multiplier.This processing method fully discloses in the prior art.
When the saltus step of source, owing to adopting device of the present invention, voltage compensator is without adjusting, just can make the first sampled signal benchmark reach in real time new stationary value, input power equals power output, therefore output voltage remains unchanged, the source saltus step simulation waveform figure of AC/DC circuit as shown in Figure 7.
One embodiment of the present of invention provide a kind of machine readable memory, store computer program on it.This program at least comprises one section of code, and described at least one section of code carried out and made this machine can carry out the method step described in the application by machine.
Therefore, the present invention can pass through hardware, software, or soft and hardware is in conjunction with realizing.The present invention can be at least one computer system realizes with centralized system, or is realized with dispersing mode by the different piece being distributed in the computer system of several interconnection.Any computer system or miscellaneous equipment that can implementation method be all applicatory.The combination of conventional software and hardware can be the general-purpose computing system that computer program is installed, and by installing and executive program control computer system, it is moved by method.
Although the present invention describes by specific embodiment, it will be appreciated by those skilled in the art that, without departing from the present invention, can also carry out various conversion and be equal to alternative the present invention.Therefore, the present invention is not limited to disclosed specific embodiment, and should comprise the whole execution modes that fall within the scope of the claims in the present invention.