Disclosure of Invention
In view of the above, the present invention is directed to a switching power supply, and an adaptive compensation method and apparatus thereof, so as to alleviate the above-mentioned technical problems.
In a first aspect, an embodiment of the present invention provides an adaptive compensation method for a switching power supply, which is applied to the switching power supply, and the method includes: responding to the duty ratio signal being larger than a preset threshold value, and obtaining output parameters of the switching power supply, wherein the output parameters comprise an output voltage signal of the switching power supply and an inductance value of an output end inductor of the switching power supply; calculating a harmonic compensation slope according to a pre-configured harmonic compensation relation based on the output parameter; and compensating the output of the switching power supply according to the harmonic compensation slope.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where an output port of the switching power supply includes an upper tube and a lower tube that are connected in sequence; the connection point of the upper pipe and the lower pipe is connected with the output end of the switching power supply; the step of compensating the output of the switching power supply according to the harmonic compensation slope comprises the following steps: and inputting a compensation signal corresponding to the harmonic compensation slope to a connection point of the upper pipe and the lower pipe so as to transmit the compensation signal to the output end, and compensating the signal output by the output end.
With reference to the first possible implementation manner of the first aspect, the embodiment of the present invention provides a second possible implementation manner of the first aspect, where the lower tube is configured with a sampling resistor; the switching power supply further comprises a bias circuit connected with the lower pipe in parallel, wherein the bias circuit comprises a first capacitor and a bias voltage source which are connected in series; the switching power supply further comprises a second capacitor, one end of the second capacitor is connected with the connection point of the upper pipe and the lower pipe, and the other end of the second capacitor is grounded; a step of calculating a harmonic compensation slope in accordance with a pre-configured harmonic compensation relationship based on the output parameter, comprising: and calculating the harmonic compensation slope according to the preset harmonic compensation relation according to the output parameter and the resistance value of the sampling resistor.
With reference to the second possible implementation manner of the first aspect, the embodiment of the present invention provides a third possible implementation manner of the first aspect, where the above calculation formula for calculating the harmonic compensation slope according to the preset harmonic compensation relationship is expressed as: slope=rcs (Vout/L) (C1/C2); wherein Slope represents the harmonic compensation Slope; rcs represents equivalent impedance of the sampling resistor, vout represents an output voltage signal of the switching power supply, L represents an inductance value of the output end inductor, C1 and C2 are a first capacitor and a second capacitor respectively, and the first capacitor and the second capacitor are capacitors configured by the switching power supply.
With reference to the second possible implementation manner of the first aspect, the embodiment of the present invention provides a fourth possible implementation manner of the first aspect, wherein the harmonic compensation relationship is established based on the following manner: when the lower pipe is conducted, extracting a voltage signal of the sampling resistor; performing differential processing on the voltage signal to obtain a differential signal of the voltage signal; inputting the differential signal of the voltage signal to the first capacitor to obtain a current change signal of the bias voltage source; when the upper tube is conducted, controlling a current change signal of the bias voltage source to charge the second capacitor so as to obtain harmonic compensation voltage; the harmonic compensation relationship is established based on the harmonic compensation voltage and a current variation signal of the bias voltage source.
In a second aspect, an embodiment of the present invention further provides an adaptive compensation device for a switching power supply, where the adaptive compensation device is applied to the switching power supply, and the device includes: the response module is used for responding that the duty ratio signal is larger than a preset threshold value and obtaining output parameters of the switching power supply, wherein the output parameters comprise an output voltage signal of the switching power supply and an inductance value of an output end inductor of the switching power supply; the calculation module is used for calculating a harmonic compensation slope according to a preset harmonic compensation relation based on the output parameters; and the compensation module is used for compensating the output of the switching power supply according to the harmonic compensation slope.
In a third aspect, an embodiment of the present invention further provides a switching power supply, where an output port of the switching power supply includes an upper pipe and a lower pipe that are sequentially connected; the connection point of the upper pipe and the lower pipe is connected with the output end of the switching power supply; the connection point of the upper pipe and the lower pipe is also connected with a compensation port; the controller of the switching power supply is provided with the device of the second aspect, and is configured to perform the method of the first aspect, so as to output a compensation signal corresponding to the harmonic compensation slope to the compensation port, and compensate the signal output by the output end of the switching power supply.
With reference to the third aspect, an embodiment of the present invention provides a first possible implementation manner of the third aspect, where the lower tube is configured with a sampling resistor, and the sampling resistor is configured to sample a current of the lower tube; one end of the sampling resistor is connected with the drain electrode of the lower tube, and the other end of the sampling resistor is connected with the source electrode of the lower tube.
With reference to the first possible implementation manner of the third aspect, an embodiment of the present invention provides a second possible implementation manner of the third aspect, where the switching power supply further includes a bias circuit connected in parallel with the down tube; the bias circuit includes a first capacitor and a bias voltage source connected in series.
With reference to the first possible implementation manner of the third aspect, an embodiment of the present invention provides a third possible implementation manner of the third aspect, where the switching power supply further includes a second capacitor, and one end of the second capacitor is connected to a connection point of the upper tube and the lower tube, and the other end of the second capacitor is grounded.
The embodiment of the invention has the following beneficial effects:
According to the switching power supply and the self-adaptive compensation method and device thereof, the output parameters of the switching power supply can be obtained in response to the fact that the duty ratio signal is larger than the preset threshold, then the harmonic compensation slope is calculated according to the preset harmonic compensation relation based on the output parameters, and then the output of the switching power supply is compensated according to the harmonic compensation slope; and dynamic adjustment is not required for different output voltage signals or inductance values, so that the compensation efficiency is improved, and the stability of the switching power supply is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a schematic diagram of an output port of a conventional switching power supply, which includes an upper tube Mp, a lower tube Mn, an inductor L, a capacitor C, and feedback resistors RFB1 and RFB2 connected in series at the output port.
The upper tube Mp and the lower tube Mn are in MOS tube form, which is also referred to as a power tube, i.e., P-type MOS tube in fig. 1, wherein the source electrode of the upper tube Mp is connected to the drain electrode of the lower tube Mn, the connection point is denoted as SW, the drain electrode of the upper tube Mp is connected to the power supply VIN, the source electrode of the lower tube Mn is grounded, the gate electrodes of the upper tube Mp and the lower tube Mn are connected to the controller of the switching power supply, and the controller of the switching power supply is generally configured with driving circuits (not shown in fig. 1) of the upper tube Mp and the lower tube Mn, and the output end of the driving circuits is connected to the gate electrodes of the upper tube Mp and the lower tube Mn to control the conductive state of the upper tube Mp and the lower tube Mn through pulse signals with a certain duty ratio, thereby controlling the output of the switching power supply.
In particular, since the above-described switching power supply shown in fig. 1 is prone to generate subharmonic oscillation at a large duty ratio, an additional slope compensation circuit needs to be introduced, but the switching power supply shown in fig. 1 is not easy to acquire the required slope compensation information. For example, the information of the output voltage VOUT is not clear, no specific pin of VOUT exists, only the information of FB exists, which negative pressure can not be determined, and the inductance L at the output end is adjusted to different application amplitudes more greatly, for example, from 1uh to 22uh; in addition, the amplitude of the application scene of the output voltage is relatively large, and the dynamic adjustment of 2V-20V on line can be generally realized.
For the above problems, some methods are conceivable for single points, for example, when there is no vout pin, the information of the vout can be indirectly obtained through filtering of the SW node; but in case the inductance value cannot be determined; the compensation signal can only sacrifice some dynamic response characteristics to compensate according to the worst condition, or make different gears, and make the compensation signal adjustable for different output voltages and inductance values; however, as a general buck/boost switching power supply, too many resources are not available for dynamic configuration, or the configuration process is not intelligent, which seriously reduces the compensation efficiency and the stability of the switching power supply.
Based on the above, the embodiment of the invention provides a switching power supply, and a self-adaptive compensation method and a self-adaptive compensation device thereof, which can effectively alleviate the problems.
For the convenience of understanding the present embodiment, first, a detailed description will be given of an adaptive compensation method for a switching power supply disclosed in the embodiment of the present invention.
In a possible implementation manner, the adaptive compensation method of the switching power supply in the embodiment of the present invention is applied to the switching power supply, and for convenience of understanding, the switching power supply in the embodiment of the present invention is described first.
Specifically, the switching power supply in the embodiment of the invention generally includes a converter, such as a DCDC converter, an ACDC converter, or the like, to convert electric energy input by the grid system into a power supply matched with a load. Thus, the input port of the switching power supply is usually connected to the grid system, and the output port is usually connected to the load.
In addition, the output port of the switching power supply in the embodiment of the invention comprises an upper pipe and a lower pipe which are connected in sequence; the connection point of the upper pipe and the lower pipe is connected with the output end of the switching power supply; and the connection point of the upper pipe and the lower pipe is also connected with the compensation port.
For easy understanding, fig. 2 also shows a schematic circuit diagram of an output port of a switching power supply according to an embodiment of the present invention, as shown in fig. 2, including an upper tube Mp, a lower tube Mn, an inductance L, and a capacitance C.
Specifically, in fig. 2, in the embodiment of the present invention, the down tube Mn is configured with a sampling resistor Rcs for sampling the current of the down tube Mn; one end of the sampling resistor Rcs is connected with the drain electrode of the down tube Mn, the other end is connected with the source electrode of the down tube Mn, and the source electrode of the down tube Mn is grounded.
In fig. 2, the upper tube Mp and the lower tube Mn are illustrated in the form of MOS tubes, the source electrode of the upper tube Mp is connected to the drain electrode of the lower tube Mn, the connection point is denoted as SW, the drain electrode of the upper tube Mp is connected to the power supply VIN, the source electrode of the lower tube Mn is grounded, the gate electrodes of the upper tube Mp and the lower tube Mn are connected to the controller of the switching power supply, the controller of the switching power supply is typically configured with driving circuits (not shown in fig. 2) of the upper tube Mp and the lower tube Mn, and the output ends of the driving circuits are connected to the gate electrodes of the upper tube Mp and the lower tube Mn to control the conductive states of the upper tube Mp and the lower tube Mn through pulse signals with a certain duty ratio, thereby controlling the output of the switching power supply.
Further, the switching power supply in the embodiment of the invention further comprises a bias circuit connected with the lower tube in parallel; as shown in fig. 2, the bias circuit includes a first capacitor C1 and a bias voltage source Vbias connected in series.
Further, the switching power supply in the embodiment of the invention further includes a second capacitor C2, where one end of the second capacitor C2 is connected to the connection point SW of the upper tube Mp and the lower tube Mn, and the other end is grounded.
Also, based on the schematic diagram of the switching circuit shown in fig. 2, fig. 3 also shows a flowchart of an adaptive compensation method of the switching power supply, as shown in fig. 3, including the following steps:
step S302, responding to the duty ratio signal being larger than a preset threshold value, and obtaining the output parameter of the switching power supply;
the output parameters in the embodiment of the invention comprise an output voltage signal of the switching power supply and an inductance value of an output end inductor of the switching power supply;
step S304, calculating a harmonic compensation slope according to a preset harmonic compensation relation based on the output parameters;
Step S306, compensating the output of the switching power supply according to the harmonic compensation slope.
In general, the duty ratio signal refers to a duty ratio of a pulse signal for controlling the on state of the upper tube Mp and the lower tube Mn, and when in actual use, the controller of the switching power supply may acquire the duty ratio of the pulse signal in real time, and when the duty ratio signal is greater than a preset threshold, acquire an output parameter of the switching power supply, so as to execute the adaptive compensation method according to the embodiment of the present invention.
Further, in the step S302, the output voltage signal included in the output parameter refers to the output voltage Vout in fig. 2, and the inductance value of the output inductor refers to the inductance value of the inductor L in fig. 2. Further, the above harmonic compensation slope in the embodiment of the present invention is also referred to as slope information, so in the embodiment of the present invention, it is actually realized that the change of the inductance value of the output voltage or the output end inductance is adaptively tracked to obtain the optimal slope information for harmonic compensation.
Therefore, the adaptive compensation method of the switching power supply provided by the embodiment of the invention can respond that the duty ratio signal is larger than the preset threshold value, acquire the output parameter of the switching power supply, calculate the harmonic compensation slope according to the preset harmonic compensation relation based on the output parameter, and further compensate the output of the switching power supply according to the harmonic compensation slope, and because the output parameter comprises the output voltage signal of the switching power supply and the inductance value of the output end inductor of the switching power supply, the adaptive tracking of the change of the output voltage signal or the inductance value can be realized to acquire the optimal harmonic compensation slope without sacrificing the dynamic characteristic due to the change of the output voltage signal or the change of the output inductance value; and dynamic adjustment is not required for different output voltage signals or inductance values, so that the compensation efficiency is improved, and the stability of the switching power supply is improved.
Further, based on the upper tube and the lower tube included in the output port of the switching power supply in the embodiment of the present invention, when the output of the switching power supply is compensated according to the harmonic compensation slope, a compensation signal corresponding to the harmonic compensation slope is input to a connection point between the upper tube and the lower tube, that is, a connection point SW in fig. 2, so as to be transmitted to the output terminal, and compensate the signal Vout output by the output terminal.
Further, based on the sampling resistor Rcs configured in the lower tube in fig. 2, the first capacitor C1 and the bias voltage source Vbias of the bias circuit, and the second capacitor C2, in the embodiment of the present invention, when calculating the harmonic compensation slope according to the preset harmonic compensation relationship based on the output parameter, the harmonic compensation slope is actually calculated according to the preset harmonic compensation relationship according to the output parameter and the resistance value of the sampling resistor.
Specifically, the calculation formula for calculating the harmonic compensation slope is expressed as:
Slope=Rcs*(Vout/L)*(C1/C2);
Wherein Slope represents harmonic compensation Slope, also called Slope information, rcs represents equivalent impedance of the sampling resistor, vout represents output voltage signal of the switching power supply, L represents inductance value of the output end inductor, C1 and C2 are respectively a first capacitor and a second capacitor, and the first capacitor and the second capacitor are capacitors configured by the switching power supply.
Further, the harmonic compensation relation in the embodiment of the invention is established based on the following way:
(1) When the lower tube is conducted, extracting a voltage signal of the sampling resistor;
In practical use, for the ramp information of the peak current mode control of the switching power supply, m a≥m2/2 is generally required, where m a represents the ramp slope to be compensated, or becomes the compensation slope, and m 2 =vout/L represents the falling slope of the inductor current freewheeling stage; therefore, the compensation slope cannot be obtained based on the inductance value of Vout or inductance L alone, but if Vout/L is taken as a whole and the value of this whole can be obtained, the necessary slope information can be obtained.
Therefore, in the embodiment of the present invention, in the peak current mode, the current of the down tube Mn may be sampled, specifically, taking fig. 2 as an example for illustration, the current of the down tube Mn may be sampled to the sampling resistor Rcs in fig. 2, so as to generate the voltage signal Vcs proportional to the current, where the voltage signal Vcs is the voltage signal of the sampling resistor when the down tube is turned on, and because it varies with time, it may be expressed as:
Vcs (t) =il (t) ×rcs; where IL (t) represents the time-varying current obtained by sampling the down tube Mn.
(2) Performing differential processing on the voltage signal to obtain a differential signal of the voltage signal;
The differential signal of the voltage signal is actually a time-varying signal;
In this process, the above Vcs (t) is differentiated, and the division of dt by two sides is performed at the same time to obtain:
Vcs(t)/dt=Rcs*IL(t)/dt;
While the down tube is on, IL (t)/dt=vout/L, therefore, it is possible to obtain:
Vcs(t)/dt=Rcs*Vout/L。
From this equation, it can be seen that the information of Vout/L appears on the right, and therefore, this information can be held down by the sample and taken as ramp information to be introduced into the loop control.
(3) Inputting the differential signal of the voltage signal to a first capacitor to obtain a current change signal of a bias voltage source;
in particular, this process (3) is also performed when the down tube is conducting, and the time-varying signal is actually Vcs (t), which is sent to one end of the first capacitor C1, and the current of the bias voltage source Vbias connected to the other end of the first capacitor C1 may be denoted as Ics (t).
Thus, from conservation of charge, it is possible to obtain:
Ics(t)=C1*d(Vcs(t))/dt;
=C1*d(IL(t)*Rcs)/dt;
=C1*Rcs*d(IL(t))/dt;
=C1*Rcs*(Vout/L);
That is, ics (t) is a current change signal of the bias voltage source, which indicates that the signal changes with time, and Ics (t) =c1×rcs×vout/L, from which a constant current information proportional to a current falling slope of the output inductor can be obtained;
(4) When the upper tube is conducted, a current change signal of the bias voltage source is controlled to charge the second capacitor, so that harmonic compensation voltage is obtained;
(5) A harmonic compensation relationship is established based on the harmonic compensation voltage and the current variation signal of the bias voltage source.
For the result obtained in (3), when the upper tube is turned on, the second capacitor C2 is charged, and a harmonic compensation voltage, denoted as Vslope, can be generated, which is differentiated to obtain:
dVslope/dt=Ics(t)/C2;
Wherein dVslope denotes differentiating Vslope, d denotes differentiating sign, and combining the formula with Ics (t) =c1×rcs (Vout/L) can obtain the expression of the final harmonic compensation relationship, namely:
Slope= dVslope/dt=Rcs*(out/L)*(C1/C2)。
The adopted resistor of Rcs is actually the equivalent impedance of current sampling and is a constant value; C1/C2 is the proportional value of the capacitor, and the absolute value changes of the capacitor under different process angles or temperatures can be mutually counteracted; vout/L is the ramp information to be obtained.
In summary, the adaptive compensation method of the switching power supply provided by the embodiment of the invention can adaptively track the change of the output voltage or the inductance value to obtain the optimal slope information; the compensation is carried out without sacrificing dynamic characteristics due to the change of output voltage or the change of output inductance value; and dynamic adjustment is not required for different output voltage values or inductance values, so that the compensation efficiency is improved, and the stability of the switching power supply is improved.
Further, the embodiment of the invention also provides a self-adaptive compensation device of the switching power supply, which is applied to the switching power supply, and is shown in fig. 4, and the self-adaptive compensation device of the switching power supply comprises the following structures:
The response module 40 is configured to obtain an output parameter of the switching power supply in response to the duty cycle signal being greater than a preset threshold, where the output parameter includes an output voltage signal of the switching power supply and an inductance value of an output end inductor of the switching power supply;
a calculation module 42 for calculating a harmonic compensation slope according to a pre-configured harmonic compensation relationship based on the output parameters;
and the compensation module 44 is used for compensating the output of the switching power supply according to the harmonic compensation slope.
Further, the embodiment of the invention also provides a switching power supply, and the controller of the switching power supply is provided with the self-adaptive compensation device of the switching power supply, and the self-adaptive compensation device is used for executing the self-adaptive compensation method of the switching power supply, so as to output a compensation signal corresponding to the harmonic compensation slope to the compensation port and compensate the signal output by the output end of the switching power supply.
The self-adaptive compensation device and the switching power supply of the switching power supply provided by the embodiment of the invention have the same technical characteristics as the self-adaptive compensation method of the switching power supply provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
The embodiment of the invention provides a switching power supply, and a computer program product of an adaptive compensation method and an adaptive compensation device thereof, which comprises a computer readable storage medium storing program codes, wherein the program codes comprise instructions for executing the method described in the previous method embodiment, and specific implementation can be referred to the method embodiment and will not be repeated herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again.
Finally, it should be noted that: the above examples are only specific embodiments of the present invention for illustrating the technical solution of the present invention, but not for limiting the scope of the present invention, and although the present invention has been described in detail with reference to the foregoing examples, it will be understood by those skilled in the art that the present invention is not limited thereto: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.