Switching power supply, voltage dynamic adjustment method and related components
By introducing a dynamic compensation module into the switching power supply, using the voltage derivative analog quantity to determine the status and adjusting voltage compensation in real time, the problem of output voltage fluctuation is solved, the response speed and stability are improved, and the cost and power loss are reduced.
Patent Information
- Application Number
- CN202410822889.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-25
AI Technical Summary
The output voltage of existing switching power supplies is prone to overshoot and undershoot when the load changes suddenly, causing IC failure. Improving response speed and stability will lead to increased power loss and reduced efficiency, and increased capacitance will increase production costs.
Use a dynamic compensation module, including a dynamic compensation controller and a dynamic compensation unit, to determine the status of the dynamic compensation module by calculating the first-order and second-order derivative analog quantities of the voltage at the electrical equipment end, and adjust the voltage compensation method of the switching power supply according to the status, making real-time adjustments output voltage.
Without reducing the conversion efficiency, the overshoot and undershoot of the switching power supply's output voltage under large current and high load conversion rates are reduced, the response speed and stability are improved, the number of motherboard capacitors used is reduced, and the cost is reduced.
Smart Images

Figure CN118381294B
Abstract
Description
Technical Field
[0001] The present application relates to the field of electrical technology, and in particular to a switching power supply, a voltage dynamic adjustment method and related components. Background Art
[0002] When the load of an existing switching power supply changes suddenly, the output voltage usually changes because the current of the output inductor cannot change suddenly. When the load current increases, it usually causes undershoot, and when the load current decreases, it usually causes overshoot. When the switching power supply has a slow response speed and poor stability, the output voltage overshoot and undershoot exceed the IC (Integrated Circuit) voltage standard at the load end, which may cause IC failure.
[0003] Normally, power engineers will reduce overshoot and undershoot by adjusting the output inductor value, increasing the switching frequency of the switching power supply, or adjusting the number, layout, and combination of output capacitors. For the existing switching power supply topology, excessive inductance will lead to slow response of the switching power supply. When the load conversion rate is the same, V pk-pk (peak-to-peak voltage) value becomes larger, and the inductance value is too small, which will cause the product of ripple current and path parasitic load resistance to become larger, reduce efficiency, and the output voltage ripple is too large. Increasing the frequency of the switching power supply will cause the switching loss of the power MOS tube (Metal-Oxide-Semiconductor Field-Effect Transistor) to increase, the conversion efficiency to decrease, the MOS tube to generate serious heat, and the heat dissipation problem is difficult to solve. Using a large number of capacitors will cause a large surge current when the switching power supply is powered on, and the power-on process may not be completed within the fixed power-on timing requirements. At the same time, the increase in the number and types of capacitors makes it difficult to normalize the materials of mass-produced products and increase production costs.
[0004] Therefore, it is urgent to provide a switching power supply, a voltage dynamic adjustment method and related components that can improve output response speed and stability. Summary of the invention
[0005] Based on this, it is necessary to provide a switching power supply, a voltage dynamic adjustment method and related components that can improve the output response speed and stability in order to address the above technical problems.
[0006] In a first aspect, a switching power supply is provided, the switching power supply comprising a dynamic compensation module; the dynamic compensation module comprises a dynamic compensation controller and a dynamic compensation unit, the dynamic compensation controller is respectively connected to the dynamic compensation unit and an electrical equipment end, one end of the dynamic compensation unit is connected to the output end of the switching power supply, and the other end of the dynamic compensation unit is grounded; wherein the dynamic compensation unit comprises a first switch, a second switch, a third switch, a fourth switch and a capacitor compensator; one end of the first switch and one end of the second switch are both connected to the output end of the switching power supply, the other end of the first switch is connected to the first pin of the capacitor compensator, and the other end of the second switch is connected to the second pin of the capacitor compensator; one end of the third switch and one end of the fourth switch are both grounded, the other end of the third switch is connected to the first pin of the capacitor compensator, and the other end of the fourth switch is connected to the second pin of the capacitor compensator.
[0007] Optionally, it also includes: the first switch, the second switch, the third switch and the fourth switch are all composed of two transistors, including: the first electrode of the first transistor is connected to the first electrode of the second transistor, the second electrode of the first transistor is connected to one end of the switch, the second electrode of the second transistor is connected to the other end of the switch, and the control electrode of the first transistor and the control electrode of the second transistor are respectively connected to the dynamic compensation controller.
[0008] Optionally, the dynamic compensation controller includes a differentiator and a control logic unit; the differentiator is used to calculate and output the first-order derivative analog quantity and the second-order derivative analog quantity of the voltage at the electrical equipment end; the control logic unit is connected to the differentiator, and is used to judge the state of the dynamic compensation module based on the first-order derivative analog quantity and the second-order derivative analog quantity, and dynamically adjust the output voltage according to the state of the dynamic compensation module.
[0009] Optionally, the switching power supply further includes a logic control module; a first port of the logic control module is connected to an input end of the switching power supply, a second port of the logic control module is connected to an output end of the switching power supply, and a third port of the logic control module is grounded.
[0010] Optionally, the logic control module includes a power level logic controller, a third transistor and a fourth transistor; one end of the power level logic controller is connected to the control electrode of the third transistor, and the other end of the power level logic controller is connected to the control electrode of the fourth transistor; the first electrode of the third transistor is connected to the input end of the switching power supply, and the second electrode of the third transistor is connected to the output end of the switching power supply; the first electrode of the fourth transistor is connected to the output end of the switching power supply, and the second electrode of the fourth transistor is grounded.
[0011] Optionally, the switching power supply also includes an inductor and a capacitor; one end of the inductor is connected to the output end of the switching power supply, and the other end of the inductor is connected to the second port of the logic control module; one end of the capacitor is grounded, and the other end of the capacitor is connected to the output end of the switching power supply.
[0012] In a second aspect, a voltage dynamic adjustment method is provided, the method comprising: based on a dynamic compensation controller, obtaining the voltage at the end of the electrical equipment, and calculating and determining the first-order derivative analog quantity and the second-order derivative analog quantity corresponding to the voltage according to the voltage; determining the state of the dynamic compensation module based on the first-order derivative analog quantity and the second-order derivative analog quantity, and determining the voltage compensation method of the switching power supply based on the state of the dynamic compensation module; according to the voltage compensation method, adjusting the state of each switch in the dynamic compensation unit to dynamically adjust the output voltage.
[0013] Optionally, based on the voltage, calculating and determining the first-order derivative analog quantity and the second-order derivative analog quantity corresponding to the voltage includes: based on the differentiator in the dynamic compensation controller, monitoring and acquiring the voltage at the end of the electrical equipment; using the differentiator to perform two differential calculations on the voltage to obtain the first-order derivative analog quantity and the second-order derivative analog quantity respectively.
[0014] Optionally, based on the first-order derivative analog quantity and the second-order derivative analog quantity, determining the state of the dynamic compensation module includes: based on the control logic unit, converting the first-order derivative analog quantity and the second-order derivative analog quantity into a first digital quantity and a second digital quantity respectively; in response to detecting that the first digital quantity is greater than a first preset threshold value or less than a second preset threshold value, using a timer to start timing to obtain a time range in which the first digital quantity is greater than the first preset threshold value or less than the second preset threshold value; in response to detecting that the time range is less than or equal to a preset time standard value, defining the state of the dynamic compensation module as an initial state, and clearing the timer; in response to detecting that the time range is greater than the preset time standard value, and the first digital quantity is greater than the first preset threshold value and the second digital quantity is greater than the third preset threshold value, defining the state of the dynamic compensation module to change from the initial state to the first compensation state; in response to detecting that the time range is greater than the preset time standard value, and the first digital quantity is less than the second preset threshold value and the second digital quantity is less than the fourth preset threshold value, defining the state of the dynamic compensation module to change from the first compensation state to the second compensation state; wherein, the preset time standard value is defined as the product between a preset parameter and a unit time.
[0015] Optionally, the method further includes: in response to detecting that the first digital quantity is greater than or equal to the second preset threshold and less than or equal to the first preset threshold for a time greater than a fifth preset threshold, defining the state of the dynamic compensation module to be restored from the second compensation state to the initial state.
[0016] Optionally, determining the voltage compensation mode of the switching power supply based on the state of the dynamic compensation module includes: in response to detecting that the state of the dynamic compensation module is an initial state, defining the voltage compensation mode of the switching power supply as no compensation; in response to detecting that the state of the dynamic compensation module changes from the initial state to the first compensation state, determining that the voltage compensation mode of the switching power supply is to increase overshoot compensation for the charging current of the compensation capacitor based on a capacitor charging voltage calculation formula, wherein the capacitor charging voltage calculation formula includes:
[0017] ;
[0018] In response to detecting that the state of the dynamic compensation module changes from the first compensation state to the second compensation state, based on a capacitor discharge voltage calculation formula, determining that the voltage compensation mode of the switching power supply is to increase the undershoot compensation of the compensation capacitor discharge current, the capacitor discharge voltage calculation formula includes:
[0019] ;
[0020] in, It represents the voltage across the compensation capacitor at any time. represents the initial voltage across the compensation capacitor, Indicates the voltage across the compensation capacitor when it is fully charged. is the resistance of the charging resistor, and C is the capacitance of the compensation capacitor.
[0021] Optionally, according to the voltage compensation method, adjusting the state of each switch in the dynamic compensation unit to dynamically adjust the output voltage includes: in response to detecting that the voltage compensation method is no compensation, adjusting the first switch, the second switch, the third switch and the fourth switch to be in the off state; in response to detecting that the voltage compensation method is overshoot compensation, adjusting the first switch and the fourth switch to be in the on state, and the second switch and the third switch to be in the off state; in response to detecting that the voltage compensation method is undershoot compensation, adjusting the first switch and the second switch to be in the on state, and the third switch and the fourth switch to be in the off state.
[0022] According to a third aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: based on a dynamic compensation controller, obtaining the voltage at the end of the electrical equipment, and calculating and determining the first-order derivative analog quantity and the second-order derivative analog quantity corresponding to the voltage based on the voltage; determining the state of a dynamic compensation module based on the first-order derivative analog quantity and the second-order derivative analog quantity, and determining the voltage compensation method of the switching power supply based on the state of the dynamic compensation module; and adjusting the state of each switch in the dynamic compensation unit according to the voltage compensation method to dynamically adjust the output voltage.
[0023] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: based on a dynamic compensation controller, the voltage at the end of the electrical equipment is obtained, and based on the voltage, the first-order derivative analog quantity and the second-order derivative analog quantity corresponding to the voltage are calculated and determined; based on the first-order derivative analog quantity and the second-order derivative analog quantity, the state of the dynamic compensation module is determined, and based on the state of the dynamic compensation module, the voltage compensation method of the switching power supply is determined; according to the voltage compensation method, the state of each switch in the dynamic compensation unit is adjusted to dynamically adjust the output voltage.
[0024] In a fifth aspect, a computer program product is provided, which includes a computer program, and when the computer program is executed by a processor, the following steps are implemented: based on a dynamic compensation controller, the voltage at the end of the electrical equipment is obtained, and based on the voltage, the first-order derivative analog quantity and the second-order derivative analog quantity corresponding to the voltage are calculated and determined; based on the first-order derivative analog quantity and the second-order derivative analog quantity, the state of the dynamic compensation module is determined, and based on the state of the dynamic compensation module, the voltage compensation method of the switching power supply is determined; according to the voltage compensation method, the state of each switch in the dynamic compensation unit is adjusted to dynamically adjust the output voltage.
[0025] The above-mentioned switching power supply, voltage dynamic adjustment method and related components, the switching power supply includes a dynamic compensation module; the dynamic compensation module includes a dynamic compensation controller and a dynamic compensation unit, the dynamic compensation controller is respectively connected to the dynamic compensation unit and the electrical equipment end, one end of the dynamic compensation unit is connected to the output end of the switching power supply, and the other end of the dynamic compensation unit is grounded; wherein, the dynamic compensation unit includes a first switch, a second switch, a third switch, a fourth switch and a capacitor compensator; one end of the first switch and one end of the second switch are both connected to the output end of the switching power supply, the other end of the first switch is connected to the first pin of the capacitor compensator, and the second switch The other end of the switch is connected to the second pin of the capacitor compensator; one end of the third switch and one end of the fourth switch are both grounded, the other end of the third switch is connected to the first pin of the capacitor compensator, and the other end of the fourth switch is connected to the second pin of the capacitor compensator. The present application is based on a dynamic compensation module, which reduces the overshoot and undershoot of the output voltage of the switching power supply under large current and high load conversion rate. The number of mainboard capacitors used can be reduced under the same response speed, reducing costs. At the same time, at the same switching frequency, the ability of the switching power supply to cope with large current steps is guaranteed, thereby improving the response speed of the switching power supply and the stability of the output voltage. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A schematic diagram of output voltage change caused by a sudden load change in a specific implementation manner;
[0027] Figure 2 A schematic diagram of the overall structure of a switching power supply in one embodiment;
[0028] Figure 3 A functional schematic diagram of a dynamic compensation controller in one embodiment;
[0029] Figure 4 A schematic diagram of a method for implementing a dynamic compensation module SW in an embodiment;
[0030] Figure 5 A schematic diagram of turning on and off a dynamic compensation unit in one embodiment;
[0031] Figure 6 A schematic diagram of a flow chart of a voltage dynamic adjustment method in one embodiment;
[0032] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0034] It should be understood that in the description of the present application, unless the context clearly requires otherwise, words such as "include", "comprises", and the like throughout the specification should be interpreted as including rather than being exclusive or exhaustive; that is, as including but not limited to.
[0035] It should also be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, "plurality" means two or more.
[0036] It should be noted that the terms "S1", "S2", etc. are only used for the purpose of describing the steps, and do not specifically refer to the order or sequence, nor are they used to limit the present application. They are only for the convenience of describing the method of the present application, and cannot be understood as indicating the order of the steps. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present application.
[0037] In recent years, with the increasing popularity of applications such as artificial intelligence big models and generative AI, the requirements for computing power of various applications have been continuously improved, and the energy consumption of processors has also increased dramatically in the iteration step by step. The power supply of processors has become more and more stringent for server board-level power supplies. Today's processors often have the characteristics of low voltage, high current, and high load conversion rate, which poses a great challenge to the response speed and stability of existing switching power supplies. In the design process of switching power supplies, when stability is improved, the response speed will also slow down; therefore, when engineers design power supplies, they often have to weigh appropriate parameters to ensure that the stability of the power supply and the response speed are within the acceptable range of the processor power supply. However, with the development of processors in recent years, the response speed requirements of the power supply have continued to increase. When the load conversion rate of the processor is as high as several A·ns, the power supply will be greatly reduced. -1 , engineers often choose to sacrifice a certain degree of stability or efficiency to meet the power supply requirements of the processor.
[0038] According to the background technology, when the load of the existing switching power supply changes suddenly, the current of the output inductor cannot change suddenly, which usually causes the output voltage to change, such as Figure 1 When the load current increases, it usually causes Undershoot (negative pulse signal, undershoot); when the load current decreases, it usually causes Overshoot (overshoot, the first peak or valley value exceeds the set voltage, mainly manifested as a sharp pulse, and can cause failure of circuit components). When the switching power supply has a slow response speed and poor stability, the output voltage Overshoot and Undershoot exceeds the load-end IC voltage standard, which may cause IC failure. Usually, power supply engineers will reduce Overshoot and Undershoot by adjusting the inductance of the output inductor, increasing the switching frequency of the switching power supply, or the number, layout, and combination of the output capacitors. However, based on the above solutions, the problems raised in the background technology will arise.
[0039] In order to solve the above technical problems, the present application provides a switching power supply, a voltage dynamic adjustment method and related components. Compared with the traditional synchronous step-down switching power supply, the method of increasing the number of output capacitors, increasing the output capacitor capacitance, and reducing the output inductance value, the present application improves the ability of the switching power supply to maintain the peak-to-peak value of the output voltage within the processor power supply voltage requirement range when the processor dynamic load step becomes larger and the conversion rate becomes higher without reducing the switching power supply conversion efficiency and taking up too much volume.
[0040] In one embodiment, Figure 2 As shown, a switching power supply is provided, the switching power supply includes a dynamic compensation module; the dynamic compensation module includes a dynamic compensation controller and a dynamic compensation unit, the dynamic compensation controller is connected to the dynamic compensation unit and the electric device end respectively, one end of the dynamic compensation unit is connected to the output end of the switching power supply, and the other end of the dynamic compensation unit is grounded, wherein the output end of the switching power supply is V in the figure out , the power consumption equipment end is R in the figure L , one end of the electrical equipment end is grounded, and the other end is connected to the output end of the switching power supply; wherein the dynamic compensation unit includes a first switch, a second switch, a third switch, a fourth switch and a capacitor compensator; one end of the first switch and one end of the second switch are both connected to the output end of the switching power supply, the other end of the first switch is connected to the first pin of the capacitor compensator, and the other end of the second switch is connected to the second pin of the capacitor compensator; one end of the third switch and one end of the fourth switch are both grounded, the other end of the third switch is connected to the first pin of the capacitor compensator, and the other end of the fourth switch is connected to the second pin of the capacitor compensator.
[0041] In some specific embodiments, Figure 4As shown, the composition of the switch also includes: the first switch, the second switch, the third switch and the fourth switch are all composed of two transistors connected back to back, including: the first electrode of the first transistor is connected to the first electrode of the second transistor, the second electrode of the first transistor is connected to one end of the switch, the second electrode of the second transistor is connected to the other end of the switch, and the control electrode of the first transistor and the control electrode of the second transistor are respectively connected to the dynamic compensation controller, wherein the first transistor and the second transistor refer to two transistors in any switch, which can be MOS tubes (metal oxide semiconductor field effect transistors). In the circuit, it can be used as a switch. When an external voltage is applied When a certain value is reached, the current is passed through and turned on, or when the external voltage disappears, the current is cut off and turned off, that is, the switch is turned on or off by outputting a high-level or low-level signal to the control electrode (such as NMOS is a high-level switch turned on, that is, the first electrode and the second electrode are connected, and the low-level switch is turned off). The first electrode and the second electrode of the first transistor and the second transistor refer to the drain (Drain) and source (Source) of the MOS tube respectively, and the control electrode of the transistor refers to the gate (Gate). The back-to-back connection method is to connect the sources of the two MOS tubes together, so that the two MOS tubes are connected in a drain-source-source-drain connection method when they are turned on.
[0042] In some specific embodiments, the dynamic compensation controller includes a differentiator and a control logic unit; the differentiator is used to calculate and output the first-order derivative analog quantity and the second-order derivative analog quantity of the voltage at the electrical equipment end; the control logic unit is connected to the differentiator, and is used to judge the state of the dynamic compensation module based on the first-order derivative analog quantity and the second-order derivative analog quantity, and dynamically adjust the output voltage according to the state of the dynamic compensation module.
[0043] In some specific embodiments, the switching power supply further includes a logic control module; a first port of the logic control module is connected to the input end of the switching power supply, a second port of the logic control module is connected to the output end of the switching power supply, and a third port of the logic control module is grounded, wherein the input end of the switching power supply is V in the figure in .
[0044] In some specific embodiments, the logic control module includes a power level logic controller, a third transistor and a fourth transistor; one end of the power level logic controller is connected to the control electrode of the third transistor, and the other end of the power level logic controller is connected to the control electrode of the fourth transistor, wherein the third transistor is Q in the figure 11 , the third transistor is Q in the figure 12, wherein the third transistor and the fourth transistor may be MOS tubes (metal oxide semiconductor field effect transistors), the control electrode of the transistor refers to the gate (Gate) of the MOS tube; the first electrode of the third transistor is connected to the input end of the switching power supply, and the second electrode of the third transistor is connected to the output end of the switching power supply; the first electrode of the fourth transistor is connected to the output end of the switching power supply, and the second electrode of the fourth transistor is grounded.
[0045] Among them, the first stages of the third transistor and the fourth transistor are both drains of the MOS transistors. The first stages of the third transistor and the fourth transistor are both sources of the MOS transistors.
[0046] In some specific embodiments, the switching power supply further includes an inductor and a capacitor, wherein the inductor is L in the figure. 1 , the capacitor is C in the figure out , where the inductor can store energy, filter and suppress interference in the circuit, and the capacitor can store charge, filter, couple and decouple in the circuit;
[0047] One end of the inductor is connected to the output end of the switching power supply, and the other end of the inductor is connected to the second port of the logic control module.
[0048] One end of the capacitor is grounded, and the other end of the capacitor is connected to the output end of the switching power supply.
[0049] Specifically, Figure 2 As shown, the dynamic compensation module is mounted at the output end of the switching power supply, which includes a dynamic compensation unit and a dynamic compensation controller. The dynamic compensation controller is connected to a remote power-consuming device (shown by a dotted line in the figure) to obtain the voltage V at the power-consuming device end. Rsen , which includes V Rsen+ With V Rsen- (V Rsen+ 、V Rsen- The dynamic compensation controller is connected to the switch of the dynamic compensation unit through the transmission lines of SWx_Gate1 and SWx_Gate2 (not shown in the figure). x is the switch label. If it is connected to the first switch, SWx_Gate1 is SW1_Gate1, and so on. Figure 3 and Figure 4As shown, SWx.1 and SWx.2 are the two ends of a switch, respectively. The control logic unit is connected to the corresponding switch through the signal transmission lines corresponding to SWx_Gate1 and SWx_Gate2 (x=1, 2, 3, 4). Further, the dynamic compensation unit includes four SWs, namely, four switches, namely, the first switch SW1, the second switch SW2, the third switch SW3 and the fourth switch SW4, and includes a compensation capacitor Cc, whose first pin is Cc. 1 , the second pin is Cc .2 , among which, Figure 4 As shown, the four switches are each composed of two transistors (MOSFET) connected back-to-back to control the on and off of voltage and current in two directions, or to form a four-quadrant functional unit in other forms to achieve this function. Further, based on the state of the dynamic compensation module, the state of the four switches can be adjusted, such as on or off, to control the connection mode of the compensation capacitor, so as to achieve real-time dynamic compensation for Overshoot and Undershoot. The state of the dynamic compensation module can be determined by the analog quantity of the first-order derivative and the analog quantity of the second-order derivative calculated by the differentiator set in the dynamic compensation controller. Before the determination, it is necessary to convert the analog quantity into a digital quantity through the ADC (Analog to Digital Converter, an electronic component that converts analog signals into digital signals) set in the control logic unit (Control logic), and compare the digital quantity with the threshold value set in the control logic unit to obtain the corresponding dynamic compensation module state. Based on the state, the switch gate state is controlled by the change of SWx_Gatex, so as to further control each SW to be on or off, and then dynamically compensate for the Overshoot and Undershoot of the output voltage.
[0050] In the above implementation, by mounting a dynamic compensation module in the switching power supply, the overshoot and undershoot of the output voltage of the switching power supply under high current and high load conversion rate are reduced, and the number of mainboard capacitors used can be reduced under the same response speed, thereby reducing costs. At the same time, under the same switching frequency, the ability of the switching power supply to cope with large current steps is guaranteed, thereby improving the response speed of the switching power supply and the stability of the output voltage. Based on the dynamic compensation module, power supply engineers can be flexible in selecting output inductors without having to stick to the limitations of fast dynamic response at high currents.
[0051] In one embodiment, Figure 6 As shown, a voltage dynamic adjustment method is provided, comprising the following steps:
[0052] S1: Based on the dynamic compensation controller, the voltage at the end of the electrical equipment is obtained, and according to the voltage, the first-order derivative analog quantity and the second-order derivative analog quantity corresponding to the voltage are calculated and determined.
[0053] It should be noted that, as described in the above embodiment, the dynamic compensation controller includes an internal self-integrated differentiator and a control logic unit, and the voltage at the end of the electrical device is V Rsen , which is obtained through a differentiator.
[0054] In some specific embodiments, based on the voltage, calculating and determining the first-order derivative analog quantity and the second-order derivative analog quantity corresponding to the voltage includes: based on the differentiator in the dynamic compensation controller, monitoring and acquiring the voltage at the end of the electrical equipment; using the differentiator to perform two differential calculations on the voltage to obtain the first-order derivative analog quantity and the second-order derivative analog quantity respectively.
[0055] Specifically, the voltage is input to the differentiator, and the analog value of the first-order derivative of the voltage is output through a first differential, that is, the rate of change of the voltage The analog quantity of the second derivative of the output voltage through the second differential , wherein, using a differentiator to calculate the analog quantity of the first-order derivative and the analog quantity of the second-order derivative is a common method, which will not be repeated here; the first-order derivative analog quantity, the second-order derivative analog quantity and the voltage value are input into the control logic unit to determine the state of the dynamic compensation module.
[0056] In the above embodiment, the voltage at the end of the electrical equipment is monitored and processed by the differentiator and control logic unit integrated in the dynamic compensation controller to obtain the corresponding analog quantity, which is then used to subsequently judge the state of the dynamic compensation module and the voltage compensation method of the switching power supply to improve the response speed of the output voltage dynamic compensation.
[0057] S2: Determine the state of a dynamic compensation module based on the first-order derivative analog quantity and the second-order derivative analog quantity, and determine the voltage compensation method of the switching power supply based on the state of the dynamic compensation module.
[0058] It should be noted that the state of the dynamic compensation module may include an initial state, a first compensation state and a second compensation state, and the corresponding voltage compensation methods are no compensation, overshoot compensation by adding the charging current of the compensation capacitor, and undershoot compensation by adding the discharging current of the compensation capacitor. The switching rule of the state of the dynamic compensation module is from the initial state to the first compensation state, from the first compensation state to the second compensation state, and from the second compensation state to the initial state.
[0059] In some specific embodiments, based on the first-order derivative analog quantity and the second-order derivative analog quantity, determining the state of the dynamic compensation module includes: converting the first-order derivative analog quantity and the second-order derivative analog quantity into a first digital quantity and a second digital quantity respectively based on a control logic unit, wherein the analog quantity can be converted into a digital quantity by an ADC in the control logic unit; in response to detecting that the first digital quantity is greater than a first preset threshold value or less than a second preset threshold value, using a timer to start timing to obtain a time range in which the first digital quantity is greater than the first preset threshold value or less than the second preset threshold value, wherein the first preset threshold value can be defined as The second preset threshold is , which can be set according to actual needs, the timer is Timer, the time range refers to the time period corresponding to the detection that the first digital quantity is greater than the first preset threshold or less than the second preset threshold. For example, it is detected that the first digital quantity is greater than the first preset threshold or less than the second preset threshold from the 1st ns to the 4th ns, and the first data quantity is not greater than the first preset threshold or less than the second preset threshold at the 5th ns, then the time range is 4ns, where ns is nanoseconds; in response to detecting that the time range is less than or equal to the preset time standard value, the state of the dynamic compensation module is defined as the initial state, and the timer is cleared, that is, when the time range corresponding to the first digital quantity exceeding the threshold is less than the preset time standard value, the state of the dynamic compensation module remains unchanged, and the timer is cleared. For example, when the preset time standard value is 5ns and the time range is 4ns, the state of the dynamic compensation module remains unchanged, and the timer is cleared.
[0060] In response to detecting that the time range is greater than the preset time standard value, and the first digital value is greater than the first preset threshold value and the second digital value is greater than the third preset threshold value, the state of the dynamic compensation module is defined to change from the initial state to the first compensation state, wherein the third preset threshold value can be set according to actual needs, such as 0, that is, when the first digital value is greater than , the second digital value is greater than 0 and the time range is greater than K×T c , the state of the dynamic compensation module changes from the initial state to the first compensation state, wherein the first compensation state corresponds to the charging state of the compensation capacitor; in response to detecting that the time range is greater than the preset time standard value, and the first digital value is less than the second preset threshold value and the second digital value is less than the fourth preset threshold value, the state of the dynamic compensation module is defined to change from the first compensation state to the second compensation state, wherein the fourth preset threshold value can be set according to actual needs, such as 0, that is, when the first digital value is less than , the second digital value is less than 0 and the time range is greater than K×T cWhen the state of the dynamic compensation module changes from the first compensation state to the second compensation state, wherein the second compensation state corresponds to the discharge state of the compensation capacitor; wherein the preset time standard value is defined as the product of the preset parameter and the unit time, and the unit time is T c , the preset parameter is K, the unit time and preset parameters can be set according to actual needs, such as T c =1ns, K=5, etc., then the preset time standard value is K×T c , for example, when K is 5, T c =1ns, the preset time standard value is 5ns; in response to detecting that the first digital value is greater than or equal to the second preset threshold and the time less than or equal to the first preset threshold is greater than the fifth preset threshold, the state of the dynamic compensation module is defined to be restored from the second compensation state to the initial state, wherein the fifth preset threshold can be set according to actual needs, that is, the first digital value is greater than or equal to and less than or equal to When the time is greater than a fifth preset threshold, the state of the dynamic compensation module is restored from the second compensation state to the initial state.
[0061] In some specific embodiments, based on the state of the dynamic compensation module, determining the voltage compensation mode of the switching power supply includes: in response to detecting that the state of the dynamic compensation module is an initial state, defining the voltage compensation mode of the switching power supply as no compensation; in response to detecting that the state of the dynamic compensation module changes from the initial state to the first compensation state, determining that the voltage compensation mode of the switching power supply is increased to compensate for overshoot compensation of the capacitor charging current based on a capacitor charging voltage calculation formula, wherein the capacitor charging voltage calculation formula includes:
[0062] ;
[0063] In response to detecting that the state of the dynamic compensation module changes from the first compensation state to the second compensation state, based on a capacitor discharge voltage calculation formula, determining that the voltage compensation mode of the switching power supply is to increase the undershoot compensation of the compensation capacitor discharge current, the capacitor discharge voltage calculation formula includes:
[0064] ;
[0065] in, It represents the voltage across the compensation capacitor at any time. represents the initial voltage across the compensation capacitor, Indicates the voltage across the compensation capacitor when it is fully charged. is the resistance of the charging resistor, and C is the capacitance of the compensation capacitor.
[0066] Specifically, assuming that the output voltage of the switching power supply is 5V, when the dynamic compensation module is in the initial state, the two ends of the compensation capacitor are suspended, and the voltage difference is 0. When the dynamic compensation module changes from the initial state to the first compensation state, the first pin of the compensation capacitor is connected to the output end of the switching power supply, and the second pin is connected to the ground, and the voltage difference is 5V. Since the voltage across the capacitor cannot change suddenly, the output end of the switching power supply will charge the capacitor, and the charging current , where C is the compensation capacitor value, is the rate of change of the voltage at the capacitor terminal during charging. The capacitor charging voltage can be obtained according to the following formula:
[0067] ;
[0068] in, It represents the voltage across the compensation capacitor at any time. The initial voltage across the compensation capacitor, To compensate for the voltage across the capacitor when it is fully charged, R is the charging resistor value, and C is the capacitor value. In this example, , , R is the impedance of SW in the charging path and the parasitic resistance on the path, and C is the capacitance of the compensation capacitor. It can be seen that when the compensation capacitor is charged, the current is related to the capacitance, the charging voltage, and the impedance of the charging path. Among them, it is positively correlated with the capacitance and the charging voltage, and negatively correlated with the impedance of the charging path, and the current gradually decreases with time.
[0069] Therefore, when the dynamic compensation module changes from the initial state to the first compensation state, it compensates for the negative sudden change of the load current by increasing the current charging the compensation capacitor, i.e., overshoot compensation, and reducing the load change rate to achieve the purpose of reducing Overshoot; when the dynamic compensation module changes from the first compensation state to the second compensation state, the initial voltage difference across the capacitor is 5V. Since the voltage across the capacitor cannot change suddenly, that is, the capacitor is discharged to the output end of the switching power supply, the capacitor discharge can be known from the following formula:
[0070] ;
[0071] in, It represents the voltage across the compensation capacitor at any time. The initial voltage across the capacitor is, is the voltage across the capacitor when it is fully discharged, R is the charging resistor value, and C is the capacitance value. In this example, , , which is the same as the charging process of the compensation capacitor. When the dynamic compensation module changes from the first compensation state to the second compensation state, it compensates for the positive mutation of the load current by increasing the current of the capacitor discharge, that is, undershoot compensation, and reducing the load change rate to achieve the purpose of reducing Undershoot.
[0072] In the above-mentioned embodiment, the final voltage compensation method is determined by the internal control logic set in the dynamic compensation controller, so that the number of mainboard capacitors used can be reduced under the same response speed, reducing costs, and ensuring the ability of the switching power supply to cope with large current steps under the same switching frequency, thereby improving the response speed of the switching power supply and the stability of the output voltage.
[0073] S3: According to the voltage compensation method, adjusting the state of each switch in the dynamic compensation unit to dynamically adjust the output voltage.
[0074] It should be noted that the state of each switch may include an off state and an on state.
[0075] In some specific embodiments, according to the voltage compensation mode, adjusting the state of each switch in the dynamic compensation unit to dynamically adjust the output voltage includes: in response to detecting that the voltage compensation mode is no compensation, adjusting the first switch, the second switch, the third switch and the fourth switch to be in an off state, such as Figure 5 As shown in the figure, when the dynamic compensation module is in the initial state, all SWs are in the off state, and the compensation capacitor C C In response to detecting that the voltage compensation mode is overshoot compensation, adjusting the first switch and the fourth switch to be in the on state, and the second switch and the third switch to be in the off state, such as Figure 5 As shown, when the dynamic compensation module is in the first compensation state, SW1 and SW4 are in the on state, SW2 and SW3 are in the off state, and the first pin C of the compensation capacitor C.1 Connected to the output terminal of the switching power supply, the second pin of the compensation capacitor C C.2 grounded; in response to detecting that the voltage compensation mode is undershoot compensation, adjusting the first switch and the second switch to be in an on state, and the third switch and the fourth switch to be in an off state, such as Figure 5 As shown, when the dynamic compensation module is in the second compensation state, SW1 and SW2 are in the on state, SW3 and SW4 are in the off state, and the compensation capacitor C C.1 With C C.2 Both pins are connected to the output of the switching power supply.
[0076] Among them, the switch gate state is controlled by the change of SWx_Gatex, thereby controlling the on or off state of each SW. Controlling the switch state by controlling the switch gate state is a common method and will not be repeated here.
[0077] In the above implementation, the dynamic compensation controller controls the on and off states of SW through internal control logic to control the connection mode of the compensation capacitor, so that the dynamic compensation module switches between different states to achieve real-time compensation for Overshoot and Undershoot, thereby reducing costs and improving the response speed of the switching power supply and the stability of the output voltage.
[0078] In some specific embodiments, the charging current or the discharging current is adjusted based on the state of the output voltage, including: in response to detecting that the voltage compensation mode is overshoot compensation or undershoot compensation, obtaining a voltage change curve of the output voltage within a target time period, wherein the abscissa of the voltage change curve is time and the ordinate is voltage value, and the target time period can be set according to actual needs, such as within 30ns, etc.; based on the output voltage standard value and the voltage change curve, determining the change amplitude of the output voltage within the target time period, wherein the output voltage standard value can be set according to the actual application scenario, such as 4V, etc., and the calculation method of the change amplitude is to obtain the voltage values at multiple time points within the target time period, calculate the absolute value of the difference between the voltage value at the target time point and the output voltage standard value, and calculate the average value of the multiple difference absolute values and values according to the number of time points, and the specific calculation formula is:
[0079] ;
[0080] in, Indicates the magnitude of change, Indicates a time node. Indicates The voltage value corresponding to each time node is: Indicates the standard value of output voltage, Indicates the number of time nodes; in response to detecting that the change amplitude is greater than the preset change threshold, if the voltage compensation method is overshoot compensation, the current for charging the compensation capacitor is increased according to the preset ratio of the change amplitude, and the current for discharging the compensation capacitor is increased according to the preset multiple of the change amplitude, wherein the preset change threshold, the preset ratio and the preset multiple can all be set according to actual needs. For example, the preset ratio is 80% and the preset multiple is 1.2 times, then the value of the current for charging the compensation capacitor is increased to 0.8A, and the current for discharging the compensation capacitor is increased to 1.2A.
[0081] In the above implementation, the charging current or the discharging current is further adjusted by judging the output voltage state, so that the output voltage is more in line with the requirements, and the stability of the output voltage is further improved.
[0082] In the above-mentioned voltage dynamic adjustment method, the method includes: based on a dynamic compensation controller, obtaining the voltage at the end of the electrical equipment, and according to the voltage, calculating and determining the first-order derivative analog quantity and the second-order derivative analog quantity corresponding to the voltage; based on the first-order derivative analog quantity and the second-order derivative analog quantity, determining the state of the dynamic compensation module, and based on the state of the dynamic compensation module, determining the voltage compensation method of the switching power supply; according to the voltage compensation method, adjusting the state of each switch in the dynamic compensation unit to dynamically adjust the output voltage. The present application is based on the dynamic compensation module, real-time monitoring of the voltage at the end of the electrical equipment, and processing the voltage to determine the relevant state and the voltage compensation method, and further controlling each SW to be turned on or off, so as to adjust the output voltage in real time to dynamically compensate for the overshoot and undershoot of the output voltage, reduce the overshoot and undershoot of the output voltage of the switching power supply under large current and high load conversion rate, and improve the response speed of the switching power supply and the stability of the output voltage.
[0083] It should be understood that although Figure 6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 6 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0084] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a voltage dynamic adjustment method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0085] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0086] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: S1: Based on a dynamic compensation controller, the voltage at the end of the electrical equipment is acquired, and based on the voltage, a first-order derivative analog quantity and a second-order derivative analog quantity corresponding to the voltage are calculated and determined; S2: Based on the first-order derivative analog quantity and the second-order derivative analog quantity, a state of a dynamic compensation module is determined, and based on the state of the dynamic compensation module, a voltage compensation method of a switching power supply is determined; S3: According to the voltage compensation method, the state of each switch in the dynamic compensation unit is adjusted to dynamically adjust the output voltage.
[0087] In one embodiment, when the processor executes the computer program, the following steps are also implemented: based on the differentiator in the dynamic compensation controller, the voltage at the end of the electrical equipment is monitored and acquired; the voltage is differentially calculated twice using the differentiator to obtain the first-order derivative analog quantity and the second-order derivative analog quantity respectively.
[0088] In one embodiment, when the processor executes the computer program, the following steps are also implemented: based on the control logic unit, the first-order derivative analog quantity and the second-order derivative analog quantity are converted into a first digital quantity and a second digital quantity respectively; in response to detecting that the first digital quantity is greater than a first preset threshold value or less than a second preset threshold value, the timer is used to start timing to obtain a time range in which the first digital quantity is greater than the first preset threshold value or less than the second preset threshold value; in response to detecting that the time range is less than or equal to a preset time standard value, the state of the dynamic compensation module is defined as an initial state, and the timer is cleared; in response to detecting that the time range is greater than the preset time standard value, the first digital quantity is greater than the first preset threshold value, and the second digital quantity is greater than the third preset threshold value, the state of the dynamic compensation module is defined to change from the initial state to the first compensation state; in response to detecting that the time range is greater than the preset time standard value, the first digital quantity is less than the second preset threshold value, and the second digital quantity is less than the fourth preset threshold value, the state of the dynamic compensation module is defined to change from the first compensation state to the second compensation state; wherein, the preset time standard value is defined as the product between a preset parameter and a unit time.
[0089] In one embodiment, when the processor executes the computer program, the following steps are also implemented: in response to detecting that the first digital quantity is greater than or equal to the second preset threshold and the time less than or equal to the first preset threshold is greater than a fifth preset threshold, defining the state of the dynamic compensation module to be restored from the second compensation state to the initial state.
[0090] In one embodiment, when the processor executes the computer program, the following steps are further implemented: in response to detecting that the state of the dynamic compensation module is the initial state, defining the voltage compensation mode of the switching power supply as no compensation; in response to detecting that the state of the dynamic compensation module changes from the initial state to the first compensation state, determining that the voltage compensation mode of the switching power supply is to increase the overshoot compensation of the compensation capacitor charging current based on the capacitor charging voltage calculation formula, wherein the capacitor charging voltage calculation formula includes:
[0091] ;
[0092] In response to detecting that the state of the dynamic compensation module changes from the first compensation state to the second compensation state, based on a capacitor discharge voltage calculation formula, determining that the voltage compensation mode of the switching power supply is to increase the undershoot compensation of the compensation capacitor discharge current, the capacitor discharge voltage calculation formula includes:
[0093] ;
[0094] in, It represents the voltage across the compensation capacitor at any time. represents the initial voltage across the compensation capacitor, Indicates the voltage across the compensation capacitor when it is fully charged. is the resistance of the charging resistor, and C is the capacitance of the compensation capacitor.
[0095] In one embodiment, when the processor executes the computer program, the following steps are also implemented: in response to detecting that the voltage compensation method is no compensation, the first switch, the second switch, the third switch and the fourth switch are all adjusted to be in the off state; in response to detecting that the voltage compensation method is overshoot compensation, the first switch and the fourth switch are adjusted to be in the on state, and the second switch and the third switch are in the off state; in response to detecting that the voltage compensation method is undershoot compensation, the first switch and the second switch are adjusted to be in the on state, and the third switch and the fourth switch are in the off state.
[0096] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: S1: Based on a dynamic compensation controller, the voltage at the end of the electrical equipment is obtained, and based on the voltage, the first-order derivative analog quantity and the second-order derivative analog quantity corresponding to the voltage are calculated and determined; S2: Based on the first-order derivative analog quantity and the second-order derivative analog quantity, the state of the dynamic compensation module is determined, and based on the state of the dynamic compensation module, the voltage compensation method of the switching power supply is determined; S3: According to the voltage compensation method, the state of each switch in the dynamic compensation unit is adjusted to dynamically adjust the output voltage.
[0097] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: based on the differentiator in the dynamic compensation controller, the voltage at the end of the electrical equipment is monitored and acquired; the voltage is differentially calculated twice using the differentiator to obtain the first-order derivative analog quantity and the second-order derivative analog quantity respectively.
[0098] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: based on the control logic unit, the first-order derivative analog quantity and the second-order derivative analog quantity are converted into a first digital quantity and a second digital quantity respectively; in response to detecting that the first digital quantity is greater than a first preset threshold value or less than a second preset threshold value, the timer is used to start timing to obtain a time range in which the first digital quantity is greater than the first preset threshold value or less than the second preset threshold value; in response to detecting that the time range is less than or equal to a preset time standard value, the state of the dynamic compensation module is defined as an initial state, and the timer is cleared; in response to detecting that the time range is greater than the preset time standard value, the first digital quantity is greater than the first preset threshold value, and the second digital quantity is greater than the third preset threshold value, the state of the dynamic compensation module is defined to change from the initial state to the first compensation state; in response to detecting that the time range is greater than the preset time standard value, the first digital quantity is less than the second preset threshold value, and the second digital quantity is less than the fourth preset threshold value, the state of the dynamic compensation module is defined to change from the first compensation state to the second compensation state; wherein, the preset time standard value is defined as the product between a preset parameter and a unit time.
[0099] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to detecting that the first digital quantity is greater than or equal to the second preset threshold and the time less than or equal to the first preset threshold is greater than a fifth preset threshold, defining the state of the dynamic compensation module to be restored from the second compensation state to the initial state.
[0100] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: in response to detecting that the state of the dynamic compensation module is the initial state, defining the voltage compensation mode of the switching power supply as no compensation; in response to detecting that the state of the dynamic compensation module changes from the initial state to the first compensation state, determining that the voltage compensation mode of the switching power supply is to increase the overshoot compensation of the compensation capacitor charging current based on the capacitor charging voltage calculation formula, wherein the capacitor charging voltage calculation formula includes:
[0101] ;
[0102] In response to detecting that the state of the dynamic compensation module changes from the first compensation state to the second compensation state, based on a capacitor discharge voltage calculation formula, determining that the voltage compensation mode of the switching power supply is to increase the undershoot compensation of the compensation capacitor discharge current, the capacitor discharge voltage calculation formula includes:
[0103] ;
[0104] in, It represents the voltage across the compensation capacitor at any time. represents the initial voltage across the compensation capacitor, Indicates the voltage across the compensation capacitor when it is fully charged. is the resistance of the charging resistor, and C is the capacitance of the compensation capacitor.
[0105] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to detecting that the voltage compensation method is no compensation, the first switch, the second switch, the third switch and the fourth switch are all adjusted to be in the off state; in response to detecting that the voltage compensation method is overshoot compensation, the first switch and the fourth switch are adjusted to be in the on state, and the second switch and the third switch are in the off state; in response to detecting that the voltage compensation method is undershoot compensation, the first switch and the second switch are adjusted to be in the on state, and the third switch and the fourth switch are in the off state.
[0106] In one embodiment, a computer program product is provided, which includes a computer program, and when the computer program is executed by a processor, the following steps are implemented: S1: Based on a dynamic compensation controller, the voltage at the end of the electrical equipment is obtained, and based on the voltage, the first-order derivative analog quantity and the second-order derivative analog quantity corresponding to the voltage are calculated and determined; S2: Based on the first-order derivative analog quantity and the second-order derivative analog quantity, the state of the dynamic compensation module is determined, and based on the state of the dynamic compensation module, the voltage compensation method of the switching power supply is determined; S3: According to the voltage compensation method, the state of each switch in the dynamic compensation unit is adjusted to dynamically adjust the output voltage.
[0107] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: based on the differentiator in the dynamic compensation controller, the voltage at the end of the electrical equipment is monitored and acquired; the voltage is differentially calculated twice using the differentiator to obtain the first-order derivative analog quantity and the second-order derivative analog quantity respectively.
[0108] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: based on the control logic unit, the first-order derivative analog quantity and the second-order derivative analog quantity are converted into a first digital quantity and a second digital quantity respectively; in response to detecting that the first digital quantity is greater than a first preset threshold value or less than a second preset threshold value, the timer is used to start timing to obtain a time range in which the first digital quantity is greater than the first preset threshold value or less than the second preset threshold value; in response to detecting that the time range is less than or equal to a preset time standard value, the state of the dynamic compensation module is defined as an initial state, and the timer is cleared; in response to detecting that the time range is greater than the preset time standard value, the first digital quantity is greater than the first preset threshold value, and the second digital quantity is greater than the third preset threshold value, the state of the dynamic compensation module is defined to change from the initial state to the first compensation state; in response to detecting that the time range is greater than the preset time standard value, the first digital quantity is less than the second preset threshold value, and the second digital quantity is less than the fourth preset threshold value, the state of the dynamic compensation module is defined to change from the first compensation state to the second compensation state; wherein, the preset time standard value is defined as the product between a preset parameter and a unit time.
[0109] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to detecting that the first digital quantity is greater than or equal to the second preset threshold and the time less than or equal to the first preset threshold is greater than a fifth preset threshold, defining the state of the dynamic compensation module to be restored from the second compensation state to the initial state.
[0110] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: in response to detecting that the state of the dynamic compensation module is the initial state, defining the voltage compensation mode of the switching power supply as no compensation; in response to detecting that the state of the dynamic compensation module changes from the initial state to the first compensation state, determining that the voltage compensation mode of the switching power supply is to increase the overshoot compensation of the compensation capacitor charging current based on the capacitor charging voltage calculation formula, wherein the capacitor charging voltage calculation formula includes:
[0111] ;
[0112] In response to detecting that the state of the dynamic compensation module changes from the first compensation state to the second compensation state, based on a capacitor discharge voltage calculation formula, determining that the voltage compensation mode of the switching power supply is to increase the undershoot compensation of the compensation capacitor discharge current, the capacitor discharge voltage calculation formula includes:
[0113] ;
[0114] in, It represents the voltage across the compensation capacitor at any time. represents the initial voltage across the compensation capacitor, Indicates the voltage across the compensation capacitor when it is fully charged. is the resistance of the charging resistor, and C is the capacitance of the compensation capacitor.
[0115] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to detecting that the voltage compensation method is no compensation, the first switch, the second switch, the third switch and the fourth switch are all adjusted to be in the off state; in response to detecting that the voltage compensation method is overshoot compensation, the first switch and the fourth switch are adjusted to be in the on state, and the second switch and the third switch are in the off state; in response to detecting that the voltage compensation method is undershoot compensation, the first switch and the second switch are adjusted to be in the on state, and the third switch and the fourth switch are in the off state.
[0116] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0117] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0118] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application.
Claims
1. A switching power supply, It is characterized in that The switching power supply includes a dynamic compensation module; The dynamic compensation module includes a dynamic compensation controller and a dynamic compensation unit, wherein the dynamic compensation controller is connected to the dynamic compensation unit and the end of the electric device respectively, one end of the dynamic compensation unit is connected to the output end of the switching power supply, and the other end of the dynamic compensation unit is grounded; Wherein, the dynamic compensation unit includes a first switch, a second switch, a third switch, a fourth switch and a capacitance compensator; One end of the first switch and one end of the second switch are both connected to the output end of the switching power supply, the other end of the first switch is connected to the first pin of the capacitor compensator, and the other end of the second switch is connected to the second pin of the capacitor compensator; One end of the third switch and one end of the fourth switch are both grounded, the other end of the third switch is connected to the first pin of the capacitor compensator, and the other end of the fourth switch is connected to the second pin of the capacitor compensator; the dynamic compensation controller includes a differentiator and a control logic unit; The differentiator is used to calculate and output the first-order derivative analog quantity and the second-order derivative analog quantity of the voltage at the electrical equipment end; the control logic unit is connected to the differentiator, and is used to judge the state of the dynamic compensation module based on the first-order derivative analog quantity and the second-order derivative analog quantity, and dynamically adjust the output voltage according to the state of the dynamic compensation module.
2. The switching power supply according to claim 1, It is characterized in that Also includes: The first switch, the second switch, the third switch and the fourth switch are each composed of two transistors, including: The first electrode of the first transistor is connected to the first electrode of the second transistor, the second electrode of the first transistor is connected to one end of the switch, the second electrode of the second transistor is connected to the other end of the switch, and the control electrode of the first transistor and the control electrode of the second transistor are respectively connected to the control logic unit of the dynamic compensation controller through corresponding signal transmission lines, and are used to control the conduction or shutoff of voltage and current in two directions according to the output signal of the control logic unit.
3. The switching power supply according to claim 1, It is characterized in that The switching power supply further comprises a logic control module; a first port of the logic control module is connected to an input end of the switching power supply, a second port of the logic control module is connected to an output end of the switching power supply, and a third port of the logic control module is grounded.
4. The switching power supply according to claim 3, It is characterized in that The logic control module includes a power stage logic controller, a third transistor and a fourth transistor; One end of the power stage logic controller is connected to the control electrode of the third transistor, and the other end of the power stage logic controller is connected to the control electrode of the fourth transistor; A first electrode of the third transistor is connected to an input end of the switching power supply, and a second electrode of the third transistor is connected to an output end of the switching power supply; A first electrode of the fourth transistor is connected to the output end of the switching power supply, and a second electrode of the fourth transistor is grounded.
5. The switching power supply according to claim 1, It is characterized in that The switching power supply also includes an inductor and a capacitor; One end of the inductor is connected to the output end of the switching power supply, and the other end of the inductor is connected to the second port of the logic control module; One end of the capacitor is grounded, and the other end of the capacitor is connected to the output end of the switching power supply.
6. A voltage dynamic adjustment method, applied to the switching power supply according to any one of claims 1 to 5, It is characterized in that The method comprises: Based on the dynamic compensation controller, the voltage at the end of the electric device is obtained, and according to the voltage, the first-order derivative analog quantity and the second-order derivative analog quantity corresponding to the voltage are calculated and determined; Determine the state of a dynamic compensation module based on the first-order derivative analog quantity and the second-order derivative analog quantity, and determine the voltage compensation mode of the switching power supply based on the state of the dynamic compensation module; According to the voltage compensation method, the state of each switch in the dynamic compensation unit is adjusted to dynamically adjust the output voltage.
7. The voltage dynamic adjustment method according to claim 6, It is characterized in that According to the voltage, calculating and determining a first-order derivative analog quantity and a second-order derivative analog quantity corresponding to the voltage includes: Based on the differentiator in the dynamic compensation controller, monitor and obtain the voltage at the end of the electrical equipment; The differentiator is used to perform two differential calculations on the voltage to obtain the first-order derivative analog quantity and the second-order derivative analog quantity respectively.
8. The voltage dynamic adjustment method according to claim 6, It is characterized in that Determining the state of the dynamic compensation module based on the first-order derivative analog quantity and the second-order derivative analog quantity includes: Convert the first-order derivative analog quantity and the second-order derivative analog quantity into a first digital quantity and a second digital quantity respectively based on a control logic unit; In response to detecting that the first digital quantity is greater than a first preset threshold value or less than a second preset threshold value, starting timing with a timer to obtain a time range in which the first digital quantity is greater than the first preset threshold value or less than the second preset threshold value; in response to detecting that the time range is less than or equal to a preset time standard value, defining the state of the dynamic compensation module as an initial state, and clearing the timer; In response to detecting that the time range is greater than a preset time standard value, the first digital value is greater than a first preset threshold value, and the second digital value is greater than a third preset threshold value, defining the state of the dynamic compensation module to change from an initial state to a first compensation state; In response to detecting that the time range is greater than a preset time standard value, the first digital value is less than a second preset threshold value, and the second digital value is less than a fourth preset threshold value, defining the state of the dynamic compensation module to change from a first compensation state to a second compensation state; The preset time standard value is defined as the product of a preset parameter and a unit time.
9. The voltage dynamic adjustment method according to claim 8, It is characterized in that The method further comprises: In response to detecting that the first digital value is greater than or equal to the second preset threshold and the time that is less than or equal to the first preset threshold is greater than a fifth preset threshold, the state of the dynamic compensation module is defined to be restored from the second compensation state to the initial state.
10. The voltage dynamic adjustment method according to claim 8 or 9, It is characterized in that Based on the state of the dynamic compensation module, determining the voltage compensation mode of the switching power supply includes: In response to detecting that the state of the dynamic compensation module is an initial state, defining the voltage compensation mode of the switching power supply as no compensation; In response to detecting that the state of the dynamic compensation module changes from the initial state to the first compensation state, based on a capacitor charging voltage calculation formula, determining that the voltage compensation mode of the switching power supply is to increase the overshoot compensation of the compensation capacitor charging current, the capacitor charging voltage calculation formula includes: In response to detecting that the state of the dynamic compensation module changes from the first compensation state to the second compensation state, based on a capacitor discharge voltage calculation formula, determining that the voltage compensation mode of the switching power supply is to increase the undershoot compensation of the compensation capacitor discharge current, the capacitor discharge voltage calculation formula includes: Among them, V t Represents the voltage across the compensation capacitor at any time, V 0 Represents the initial voltage across the compensation capacitor, V u It represents the voltage across the compensation capacitor when it is fully charged, R represents the resistance of the charging resistor, and C represents the capacitance of the compensation capacitor.
11. The voltage dynamic adjustment method according to claim 10, It is characterized in that According to the voltage compensation method, adjusting the state of each switch in the dynamic compensation unit to dynamically adjust the output voltage includes: In response to detecting that the voltage compensation mode is no compensation, adjusting the first switch, the second switch, the third switch and the fourth switch to be in an off state; In response to detecting that the voltage compensation mode is overshoot compensation, adjusting the first switch and the fourth switch to be in an on state, and the second switch and the third switch to be in an off state; In response to detecting that the voltage compensation mode is undershoot compensation, the first switch and the second switch are adjusted to be in an on state, and the third switch and the fourth switch are adjusted to be in an off state.
12. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 6 to 11 is implemented.
13. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 6 to 11 is implemented.
14. A computer program product, It is characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 6 to 11 is implemented.
Citation Information
Patent Citations
Observer-based active power filter adaptive dynamic sliding mode method
CN111781838A
Active power filter fractional order sliding mode control method and system based on neural network and storage medium
CN112103960A
Constant compensation output ripple control technology
CN114244089A
