Switching power supply, dynamic voltage regulation method, and related component

By calculating the voltage derivative and adjusting the switching state through a dynamic compensation module, the voltage fluctuation problem of the switching power supply under sudden load changes is solved, achieving efficient and stable voltage regulation to adapt to the high load switching rate of the processor.

WO2026001123A1PCT designated stage Publication Date: 2026-01-02INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/084064
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-06-25
Filing Date
2025-03-21
Publication Date
2026-01-02

AI Technical Summary

Technical Problem

Existing switching power supplies are prone to undershoot and overshoot in output voltage when the load changes abruptly, which can lead to IC failure, and traditional adjustment methods can result in reduced efficiency or increased cost.

Method used

A dynamic compensation module, including a dynamic compensation controller and a dynamic compensation unit, is adopted. By calculating the analog quantities of the first and second derivatives of the voltage at the power equipment end, the state of the switch is adjusted to achieve dynamic voltage compensation.

Benefits of technology

Without reducing conversion efficiency or increasing cost, the overshoot and undershoot of the output voltage are reduced, improving response speed and stability to meet the high-load conversion rate requirements of the processor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025084064_02012026_PF_FP_ABST
    Figure CN2025084064_02012026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of electricity, and relates to a switching power supply, a dynamic voltage regulation method, and a related component. The switching power supply comprises a dynamic compensation module; the dynamic compensation module comprises a dynamic compensation controller and a dynamic compensation unit; and the dynamic compensation controller is connected to the dynamic compensation unit and an electrical device end, respectively. The dynamic compensation unit comprises a first switch, a second switch, a third switch, a fourth switch, and a capacitance compensator. A first end of the first switch and a first end of the second switch are both connected to an output end of the switching power supply; a second end of the first switch and a second end of the third switch are connected to a first pin of the capacitance compensator; and a second end of the second switch and a second end of the fourth switch are connected to a second pin of the capacitance compensator. A first end of the third switch and a first end of the fourth switch are both grounded. The present application reduces the overshoot and undershoot of output voltage, lowers costs, and improves the response speed of a switching power supply and the stability of output voltage.
Need to check novelty before this filing date? Find Prior Art

Description

Switching power supply, voltage dynamic adjustment method and related components

[0001] Cross-reference to related applications

[0002] The present application claims priority to the Chinese patent application No. 202410822889.5, filed on June 25, 2024, and entitled "Switching power supply, voltage dynamic adjustment method and related components", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0003] The present application relates to the electrical technical field, in particular to a switching power supply, a voltage dynamic adjustment method and related components. BACKGROUND

[0004] When the load of the related switching power supply changes suddenly, the output voltage will change usually because the current of the output inductor cannot change suddenly. When the load current becomes larger, undershoot will usually occur. When the load current becomes smaller, overshoot will usually occur. When the response speed of the switching power supply is slow and the stability is poor, the output voltage overshoot and undershoot exceed the voltage standard of the load end IC (Integrated Circuit), which may cause the IC to fail.

[0005] Usually, power engineers will reduce the overshoot and undershoot by adjusting the inductance of the output inductor, increasing the switching frequency of the switching power supply, or adjusting the number, layout and combination of the output capacitors. For the related switching power supply topology, if the inductance of the output inductor is too large, the response speed of the switching power supply will be slow, and the V pk-pk peak-to-peak voltage value will become larger when the load change rate is the same. If the inductance of the output inductor is too small, the product of the ripple current and the path parasitic load resistance will become larger, the efficiency will decrease, and the output voltage ripple will be too large. Increasing the frequency of the switching power supply will cause the switching loss of the power MOS tube to become larger, the conversion efficiency to decrease, the MOS tube to generate a lot of heat, and the heat dissipation problem to be difficult to solve. Using a large number of capacitors will cause the inrush current to be large when the switching power supply is powered on, and the power-on process may not be completed within the fixed power-on time sequence. At the same time, the increase in the number and types of capacitors makes it difficult to normalize the materials of the products in mass production, and the production cost increases. SUMMARY

[0006] In a first aspect, a switching power supply is provided, comprising a dynamic compensation module; the dynamic compensation module comprises a dynamic compensation controller and a dynamic compensation unit, the dynamic compensation controller is connected with the dynamic compensation unit and a load terminal respectively, one end of the dynamic compensation unit is connected with an output terminal 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 connected with the output terminal of the switching power supply, the other end of the first switch is connected with a first pin of the capacitor compensator, and the other end of the second switch is connected with a second pin of the capacitor compensator; one end of the third switch and one end of the fourth switch are grounded, the other end of the third switch is connected with the first pin of the capacitor compensator, and the other end of the fourth switch is connected with the second pin of the capacitor compensator.

[0007] In some embodiments, the first switch, the second switch, the third switch and the fourth switch each comprise two transistors, and the first transistor and the second transistor are connected at the first poles thereof, and the control poles of the first transistor and the second transistor are connected with the dynamic compensation controller.

[0008] In some embodiments, the dynamic compensation controller comprises a differentiator and a control logic unit; the differentiator is configured to calculate and output a first-order derivative analog quantity and a second-order derivative analog quantity of the load terminal voltage; the control logic unit is connected with the differentiator, configured to determine a 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] In some embodiments, the switching power supply further comprises a logic control module; a first port of the logic control module is connected with an input terminal of the switching power supply, a second port of the logic control module is connected with an output terminal of the switching power supply, and a third port of the logic control module is grounded.

[0010] In some embodiments, the logic control module comprises a power stage logic controller, a third transistor and a fourth transistor; one end of the power stage logic controller and the control pole of the third transistor are connected, and the other end of the power stage logic controller and the control pole of the fourth transistor are connected; the first pole of the third transistor and the input terminal of the switching power supply are connected, and the second pole of the third transistor and the output terminal of the switching power supply are connected; the first pole of the fourth transistor and the output terminal of the switching power supply are connected, and the second pole of the fourth transistor is grounded.

[0011] In some embodiments, the switching power supply further comprises an inductor and a capacitor; one end of the inductor is connected with the output terminal of the switching power supply, and the other end of the inductor is connected with the second port of the logic control module; one end of the capacitor is grounded, and the other end of the capacitor is connected with the output terminal of the switching power supply.

[0012] In some embodiments, the switch further comprises an analog-to-digital converter disposed in the control logic unit, the analog-to-digital converter being configured to convert the first derivative analog quantity and the second derivative analog quantity into digital quantities; and

[0013] The control logic unit is configured to compare the digital quantities with threshold values to obtain a state of the dynamic compensation module.

[0014] In some embodiments, the transistor is a metal-oxide-semiconductor field-effect transistor.

[0015] In a second aspect, a voltage dynamic adjustment method is provided. The method comprises: based on a dynamic compensation controller, obtaining a voltage at an end of a power-consuming device, and calculating a first derivative analog quantity and a second derivative analog quantity corresponding to the voltage; based on the first derivative analog quantity and the second derivative analog quantity, determining a state of a dynamic compensation module, and based on the state of the dynamic compensation module, determining a voltage compensation mode of a switching power supply; and based on the voltage compensation mode, adjusting states of switches in the dynamic compensation unit to dynamically adjust an output voltage.

[0016] In some embodiments, the calculating of the first derivative analog quantity and the second derivative analog quantity corresponding to the voltage comprises: based on a differentiator in the dynamic compensation controller, monitoring and obtaining the voltage at the end of the power-consuming device; and using the differentiator to perform twice differential calculation on the voltage to obtain the first derivative analog quantity and the second derivative analog quantity, respectively.

[0017] In some embodiments, the determining of the state of the dynamic compensation module based on the first derivative analog quantity and the second derivative analog quantity comprises: based on a control logic unit, converting the first derivative analog quantity and the second derivative analog quantity into first and second digital quantities, 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 resetting 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 a third preset threshold value, defining the state of the dynamic compensation module to change from the initial state to a 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 a fourth preset threshold value, defining the state of the dynamic compensation module to change from the first compensation state to a second compensation state; and wherein the preset time standard value is defined as a product of a preset parameter and a unit time.

[0018] In some embodiments, the method further comprises: 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 recover from the second compensation state to the initial state.

[0019] In some embodiments, determining the voltage compensation mode of the switching power supply based on the state of the dynamic compensation module comprises: 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 the voltage compensation mode of the switching power supply as adding overshoot compensation to the compensation capacitor charging current based on a capacitor charging voltage calculation formula, the capacitor charging voltage calculation formula comprising:

[0020] in response to detecting that the state of the dynamic compensation module changes from the first compensation state to the second compensation state, determining the voltage compensation mode of the switching power supply as adding undershoot compensation to the compensation capacitor discharging current based on a capacitor discharging voltage calculation formula, the capacitor discharging voltage calculation formula comprising:

[0021] wherein t represents time, V t represents the voltage across the compensation capacitor at time t, V0 represents the initial voltage across the compensation capacitor, V u represents the voltage across the compensation capacitor when it is fully charged, R is the resistance value of the charging resistor, and C is the capacitance value of the compensation capacitor.

[0022] In some embodiments, adjusting the states of the switches in the dynamic compensation unit according to the voltage compensation mode to dynamically adjust the output voltage comprises: 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, 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.

[0023] In some embodiments, the step of converting the first-order derivative analog quantity and the second-order derivative analog quantity into the first digital quantity and the second digital quantity based on the control logic unit comprises:

[0024] converting the first-order derivative analog quantity into the first digital quantity and the second-order derivative analog quantity into the second digital quantity based on an analog-to-digital converter arranged in the control logic unit.

[0025] In some embodiments, after the step of adjusting the state of each switch in the dynamic compensation unit according to the voltage compensation mode to dynamically adjust the output voltage, the method further comprises:

[0026] In response to detecting that the voltage compensation mode is overshoot compensation, obtaining a voltage change curve of the output voltage in a target time period;

[0027] Based on the output voltage standard value and the voltage change curve, determining a change amplitude of the output voltage in the target time period; and

[0028] In response to detecting that the change amplitude is greater than a preset change threshold, increasing the compensation capacitor charging current by a preset proportion of the change amplitude.

[0029] In some embodiments, after the step of adjusting the state of each switch in the dynamic compensation unit according to the voltage compensation mode to dynamically adjust the output voltage, the method further comprises:

[0030] In response to detecting that the voltage compensation mode is overshoot compensation, obtaining a voltage change curve of the output voltage in a target time period;

[0031] Based on the output voltage standard value and the voltage change curve, determining a change amplitude of the output voltage in the target time period; and

[0032] In response to detecting that the change amplitude is greater than a preset change threshold, increasing the compensation capacitor charging current by a preset proportion of the change amplitude.

[0033] In a third aspect, a computer device is provided, comprising one or more processors; and

[0034] A memory associated with the one or more processors, the memory being configured to store computer readable instructions that, when executed by the one or more processors, implement the following steps: based on the dynamic compensation controller, obtaining a voltage at the end of the electrical equipment, and calculating and determining a first derivative analog quantity and a second derivative analog quantity corresponding to the voltage according to the voltage; based on the first derivative analog quantity and the second derivative analog quantity, determining a state of the dynamic compensation module, and based on the state of the dynamic compensation module, determining a voltage compensation mode of the switching power supply; and adjusting the state of each switch in the dynamic compensation unit according to the voltage compensation mode to dynamically adjust the output voltage.

[0035] In a fourth aspect, a non-transitory computer-readable storage medium is provided, having computer-readable instructions stored thereon, which, when executed by one or more processors, implement the following steps: based on the dynamic compensation controller, obtaining a voltage at an end of a power consuming device, and calculating a first derivative analog quantity and a second derivative analog quantity corresponding to the voltage according to the voltage; based on the first derivative analog quantity and the second derivative analog quantity, determining a state of a dynamic compensation module, and based on the state of the dynamic compensation module, determining a voltage compensation mode of a switching power supply; and according to the voltage compensation mode, adjusting states of switches in the dynamic compensation unit to dynamically adjust the output voltage.

[0036] In a fifth aspect, a computer program product is provided, including computer-readable instructions, which, when executed by one or more processors, implement the following steps: based on the dynamic compensation controller, obtaining a voltage at an end of a power consuming device, and calculating a first derivative analog quantity and a second derivative analog quantity corresponding to the voltage according to the voltage; based on the first derivative analog quantity and the second derivative analog quantity, determining a state of a dynamic compensation module, and based on the state of the dynamic compensation module, determining a voltage compensation mode of a switching power supply; and according to the voltage compensation mode, adjusting states of switches in the dynamic compensation unit to dynamically adjust the output voltage. BRIEF DESCRIPTION OF DRAWINGS

[0037] FIG. 1 is a schematic diagram of output voltage changes caused by load mutations in some embodiments.

[0038] FIG. 2 is a schematic diagram of the overall structure of a switching power supply in some embodiments.

[0039] FIG. 3 is a schematic diagram of the functions of a dynamic compensation controller in some embodiments.

[0040] FIG. 4 is a schematic diagram of a dynamic compensation module SW implementation method in some embodiments.

[0041] FIG. 5 is a schematic diagram of the turn-on and turn-off of a dynamic compensation unit in some embodiments.

[0042] FIG. 6 is a schematic diagram of the flow of a voltage dynamic adjustment method in some embodiments.

[0043] FIG. 7 is a schematic diagram of the internal structure of a computer device in some embodiments.

[0044] FIG. 8 is a schematic diagram of the structure of a non-transitory computer-readable storage medium in some embodiments.

[0045] FIG. 9 is a schematic diagram of the structure of a computer program product in some embodiments. DETAILED DESCRIPTION

[0046] In order to make the purposes, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.

[0047] It should be understood that in the description of the present application, unless the context clearly requires otherwise, the terms "comprise", "comprise", and the like in the entire specification should be interpreted as inclusive rather than exclusive or exhaustive. That is, it is "comprising but not limited to".

[0048] It should also be understood that the terms "first", "second", and the like are only for descriptive purposes and should not be construed as indicating or implying relative importance. In addition, in the description of the present application, unless otherwise stated, the meaning of "multiple" is two or more.

[0049] It should be noted that the terms "S1", "S2", etc. are only 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 used to facilitate the description of the method of the present application and should not be understood as indicating the order of the steps. In addition, the technical solutions of various embodiments can be combined with each other, but it is based on the fact that a person of ordinary skill in the art can implement it. When the combination of technical solutions contradicts each other or cannot be implemented, it should be considered that the combination of technical solutions does not exist and is not within the scope of protection claimed by the present application.

[0050] In recent years, with the continuous popularization of artificial intelligence large models and generative AI (Artificial Intelligence), the demand for computing power of various applications is increasing, and the energy consumption of processors is also increasing dramatically in step-by-step iteration. The power supply of the processor has become increasingly stringent for the server board-level power supply. The current processor often has the characteristics of low voltage, large current, and high load conversion rate, which poses a great challenge to the corresponding speed and stability of the related switching power supply. During the design process of the switching power supply, when the stability is improved, the response speed will also slow down. Therefore, when engineers design the power supply, they often have to balance the appropriate parameters to ensure that the stability and response speed of the power supply are within the acceptable range of the processor power supply. However, with the development of processors in recent years, the demand for response speed of the power supply is increasing, and when the load conversion rate of the processor is as high as several A·ns -1 , engineers often have to sacrifice some stability or efficiency to meet the power supply requirements of the processor.

[0051] As known from the background art, when the load of existing switching power supplies changes abruptly, the current in the output inductor cannot change abruptly, usually causing a change in the output voltage, as shown in Figure 1. When the load current increases, it usually causes undershoot (a negative pulse signal). When the load current decreases, it usually causes overshoot (the first peak or trough exceeds the set voltage, mainly manifested as a sharp pulse, which can lead to the failure of circuit components). When the switching power supply has a slow response speed and poor stability, if the output voltage overshoot and undershoot exceed the IC voltage standard at the load end, it may cause IC failure. Usually, power supply engineers will reduce overshoot and undershoot by adjusting the inductance value of the output inductor, increasing the switching frequency of the switching power supply, or the number, layout, and combination of output capacitors. However, based on the above solutions, the problems mentioned in the background art will occur.

[0052] To address the aforementioned technical problems, this application provides a switching power supply, a dynamic voltage adjustment method, and related components. Compared to traditional synchronous buck switching power supplies that increase the number of output capacitors, increase the capacitance value, or decrease the inductance value, this application improves the ability of the switching power supply's output voltage peak-to-peak value to remain within the processor's power supply voltage requirements even as the processor's dynamic load steps increase and the conversion rate rises. This is achieved without reducing the switching power supply's conversion efficiency or occupying excessive space.

[0053] In some embodiments, as shown in FIG2, a switching power supply is provided, which 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 device being used. The first terminal of the dynamic compensation unit is connected to the output terminal of the switching power supply, and the second terminal of the dynamic compensation unit is grounded. The output terminal of the switching power supply is V as shown in the figure. out The terminal of the electrical equipment is R in the diagram. L The first terminal of the electrical equipment is grounded, and the second terminal is connected to the output terminal of the switching power supply. The dynamic compensation unit includes a first switch, a second switch, a third switch, a fourth switch, and a capacitor compensator. The first terminals of the first and second switches are both connected to the output terminal of the switching power supply. The second terminal of the first switch is connected to the first pin of the capacitor compensator, and the second terminal of the second switch is connected to the second pin of the capacitor compensator. The first terminals of the third and fourth switches are both grounded. The second terminal of the third switch is connected to the first pin of the capacitor compensator, and the second terminal of the fourth switch is connected to the second pin of the capacitor compensator.

[0054] In some embodiments, as shown in FIG. 4, the switch is composed of a first switch, a second switch, a third switch and a fourth switch, each of which is composed of two transistors in a back-to-back connection mode, including: the first electrode of the first transistor is connected with the first electrode of the second transistor, and the control electrode of the first transistor and the control electrode of the second transistor are respectively connected with the dynamic compensation controller, wherein the second electrode of the first transistor is the first end of the switch, and the second electrode of the second transistor is the second end of the switch. The first transistor and the second transistor refer to the two transistors in any switch, which can be a MOS transistor (Metal Oxide Semiconductor Field Effect Transistor). In the circuit, the first transistor and the second transistor can be used as a switch to turn on when the current passes through when the external voltage reaches a certain value, or turn off when the current is cut off when the external voltage disappears, that is, the switch is turned on or turned off by outputting a high-level or low-level signal to the control electrode (for example, NMOS is a high-level switch that turns on, that is, the first electrode and the second electrode are connected, and the low-level switch is turned off). The first electrode of the first transistor and the second transistor is the source of the MOS transistor, and the drain of the MOS transistor is the drain of the first transistor and the second transistor. The control electrode of the transistor refers to the gate. The back-to-back connection mode is to connect the sources of the two MOS transistors together, so that the two MOS transistors are connected in the connection mode of drain-source-source-drain under the condition of being turned on.

[0055] In some 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 load. The control logic unit is connected with the differentiator for judging the state of the dynamic compensation module based on the first-order derivative analog quantity and the second-order derivative analog quantity, and dynamically adjusting the output voltage according to the state of the dynamic compensation module.

[0056] In some embodiments, the switching power supply further includes a logic control module. The first port of the logic control module is connected with the input end of the switching power supply, the second port of the logic control module is connected with the output end of the switching power supply, and the third port of the logic control module is grounded, wherein the input end of the switching power supply is V in .

[0057] In some embodiments, the logic control module includes a power stage logic controller, a third transistor and a fourth transistor. The first end of the power stage logic controller is connected with the control electrode of the third transistor, and the second end of the power stage logic controller is connected with the control electrode of the fourth transistor, wherein the third transistor is Q 11 , and the third transistor is Q 12, the third transistor and the fourth transistor can be MOS tubes (metal oxide semiconductor field effect transistor), and the control electrode of the transistor refers to the gate of the MOS tube. The first electrode of the third transistor is connected with the input end of the switching power supply, and the second electrode of the third transistor is connected with the output end of the switching power supply. The first electrode of the fourth transistor is connected with the output end of the switching power supply, and the second electrode of the fourth transistor is grounded.

[0058] , the first electrode of the third transistor and the fourth transistor is the drain of the MOS tube, and the second electrode of the third transistor and the fourth transistor is the source of the MOS tube.

[0059] In some embodiments, the switching power supply further comprises an inductor and a capacitor. The inductor is L1 in the figure, and the capacitor is C out , wherein the inductor can play a role of storing energy, filtering and suppressing interference in the circuit, and the role of the capacitor in the circuit can include storing charge, filtering, coupling and decoupling, etc. The first end of the inductor is connected with the output end of the switching power supply, and the second end of the inductor is connected with the second port of the logic control module. The first end of the capacitor is grounded, and the second end of the capacitor is connected with the output end of the switching power supply.

[0060] As shown in FIG. 2, the dynamic compensation module is mounted at the output end of the switching power supply, and the dynamic compensation module comprises a dynamic compensation unit and a dynamic compensation controller. The dynamic compensation controller is connected with the remote power-consuming device (shown by a dashed line in the figure), for obtaining the voltage V Rsen , V Rsen , V Rsen+ and V Rsen- (V Rsen+ , V Rsen- are differential signals, respectively representing the voltage at the power-consuming device end and the ground). The dynamic compensation controller is connected with the dynamic compensation unit through the transmission lines of SWx_Gate1 and SWx_Gate2 (not shown in the figure), and x is a switching label, for example, the first switch is connected with SW1_Gate1, and SWx_Gate1 is SW1_Gate1, and so on. As shown in FIG. 3 and FIG. 4, SWx.1 and SWx.2 are respectively two ends of a switch, and the control logic unit is connected with the corresponding switch through the corresponding signal transmission lines of SWx_Gate1 and SWx_Gate2 (x=1, 2, 3, 4).

[0061] Further, the dynamic compensation unit comprises four SWs, i.e. four switches, respectively a first switch SW1, a second switch SW2, a third switch SW3 and a fourth switch SW4. The dynamic compensation unit further comprises a compensation capacitor Cc. The first pin of the compensation capacitor Cc is Cc.1, and the second pin of the compensation capacitor Cc is Cc .2. Among them, as shown in Figure 4, the four switches are composed of two transistors (MOSFET) through back-to-back connection mode to control the on and off of voltage and current in two directions, or in other forms to realize the function of four-quadrant functional unit. 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 of Overshoot and Undershoot.

[0062] The state of the dynamic compensation module can be determined by the first derivative and the second derivative of the analog quantity calculated by the differentiator in the dynamic compensation controller. Before determining, the analog quantity needs to be converted into digital quantity by the ADC (Analog to Digital Converter, an electronic element that converts analog signals into digital signals) in the control logic unit, and the digital quantity is compared with the threshold value 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_Gate, so as to further control the on or off of each SW, and then dynamically compensate the Overshoot and Undershoot of the output voltage.

[0063] In the above embodiment, by mounting the dynamic compensation module in the switching power supply, the Overshoot and Undershoot of the output voltage of the switching power supply under large current and high load conversion rate are reduced, and the number of mainboard capacitors can be reduced under the same response speed, thereby reducing the cost. At the same time, under the same switching frequency, the ability of the switching power supply to respond to large current step is ensured, and the response speed of the switching power supply and the stability of the output voltage are improved. Based on the dynamic compensation module, the output inductor selected by the power engineer can be flexible and variable, and it is not necessary to be limited by the fast dynamic response under large current.

[0064] In some embodiments, as shown in Figure 6, a voltage dynamic adjustment method is provided, including the following steps:

[0065] S1: based on the dynamic compensation controller, the voltage at the end of the power consumption device is obtained, and the first derivative and the second derivative of the voltage are calculated and determined.

[0066] It should be noted that, as described in the above embodiment, the dynamic compensation controller includes an internally integrated differentiator and a control logic unit, and the voltage at the end of the power consumption device is V Rsen , which is obtained by the differentiator.

[0067] In some embodiments, the calculating the first derivative analog quantity and the second derivative analog quantity corresponding to the voltage according to the voltage comprises: monitoring and obtaining the voltage at the load end based on a differentiator in the dynamic compensation controller. The first derivative analog quantity and the second derivative analog quantity are obtained by twice differentiating the voltage using the differentiator.

[0068] In some embodiments, the voltage is input to the differentiator, and the first derivative analog quantity of the voltage, i.e., the rate of change of the voltage, is output by once differentiation and the second derivative analog quantity of the voltage is output by twice differentiation Wherein, the method of calculating the first derivative analog quantity and the second derivative analog quantity using the differentiator is a common method, which will not be described here. The first derivative analog quantity, the second derivative analog quantity and the voltage value are input to the control logic unit to determine the state of the dynamic compensation module.

[0069] In the above embodiments, the voltage at the load end is monitored and processed by the differentiator and the control logic unit integrated in the dynamic compensation controller to obtain the corresponding analog quantity. Thus, the state of the dynamic compensation module and the voltage compensation mode of the switching power supply are determined to improve the response speed of the output voltage dynamic compensation.

[0070] S2: determining the state of the dynamic compensation module based on the first derivative analog quantity and the second derivative analog quantity, and determining the voltage compensation mode of the switching power supply based on the state of the dynamic compensation module.

[0071] It should be noted that the state of the dynamic compensation module can include an initial state, a first compensation state and a second compensation state, and the corresponding voltage compensation modes are no compensation, overshoot compensation for increasing the charging current of the compensation capacitor and undershoot compensation for increasing 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.

[0072] In some embodiments, determining the state of the dynamic compensation module based on the first derivative analog quantity and the second derivative analog quantity comprises: converting the first derivative analog quantity and the second derivative analog quantity into a first digital quantity and a second digital quantity based on the 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 or less than a second preset threshold, a timer is started to obtain a time range in which the first digital quantity is greater than the first preset threshold or less than the second preset threshold, wherein the first preset threshold can be defined as X C1 , and the second preset threshold can be defined as X C2, 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 value or less than the second preset threshold value, for example, the first digital quantity is greater than the first preset threshold value or less than the second preset threshold value is detected at 1ns to 4ns, the first digital quantity is not greater than the first preset threshold value or less than the second preset threshold value at 5ns, and the time range is 4ns, wherein ns is nanosecond. 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 value is less than the preset time standard value, the state of the dynamic compensation module is 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 is unchanged, and the timer is cleared.

[0073] 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, 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 quantity is greater than X C1 , the second digital quantity 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 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 fourth preset threshold value can be set according to actual needs, such as 0, that is, when the first digital quantity is less than X C2 , the second digital quantity is less than 0, and the time range is greater than K×T c , 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 discharging state of the compensation capacitor. Wherein, the preset time standard value is defined as the product of the preset parameter and the unit time, the unit time is T c , the preset parameter is K, and the unit time and the preset parameter can be set according to actual needs, such as T c =1ns, K=5, etc., the preset time standard value is K×T c , for example, when K is 5, T c= 1 ns, the preset time standard value is 5 ns. In response to detecting that the time when the first digital quantity is greater than or equal to the second preset threshold value and less than or equal to the first preset threshold value is greater than a fifth preset threshold value, the state of the dynamic compensation module is defined to recover from the second compensation state to the initial state, wherein the fifth preset threshold value can be set according to actual needs, that is, the time when the first digital quantity is greater than or equal to X C2 and less than or equal to X C1 , the state of the dynamic compensation module recovers from the second compensation state to the initial state.

[0074] In some 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 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, based on the 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:

[0075] 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 the capacitor discharging voltage calculation formula, determining that the voltage compensation mode of the switching power supply is to increase the undershoot compensation of the compensation capacitor discharging current, the capacitor discharging voltage calculation formula includes:

[0076] wherein t represents time, V t represents the voltage across the compensation capacitor at t time, V0 represents the initial voltage across the compensation capacitor, and V u represents the voltage across the compensation capacitor when it is fully charged, R represents the resistance value of the charging resistor, and C represents the capacitance value of the compensation capacitor.

[0077] In some embodiments, assuming that the output voltage of the switching power supply is 5V, when the dynamic compensation module is in the initial state, the compensation capacitor is suspended across the two terminals, 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. The voltage difference is 5V. Since the voltage across the capacitor cannot change abruptly, the switching power supply output end will charge the capacitor, and the charging current wherein C is the compensation capacitor capacitance, is the rate of change of the voltage across the capacitor when charging, and the capacitor charging voltage can be calculated according to the following formula:

[0078] wherein t represents time, V t represents the voltage across the compensation capacitor at t time, V0 represents the initial voltage across the compensation capacitor, and Vu To compensate the voltage across the capacitor when it is fully charged, R is the resistance value of the charging resistor, C is the capacitance value, in this example, V0=0V, V u =5V, R is the impedance of SW in the charging path and the parasitic resistance in the path, C is the capacitance value of the compensation capacitor, thus, the current when the compensation capacitor is charging is related to the capacitance value, the charging voltage and the impedance of the charging path, among which, it is positively related to the capacitance value and the charging voltage, and negatively related to the impedance of the charging path, and gradually decreases with time.

[0079] Therefore, when the dynamic compensation module changes from the initial state to the first compensation state, the overshoot compensation is performed by increasing the current for charging the compensation capacitor to compensate the negative sudden change of the load current, so as to reduce the 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, and since the voltage across the capacitor cannot suddenly change, the capacitor is discharged to the output terminal of the switching power supply. The capacitor discharge can be known from the following formula:

[0080] Wherein, t represents time, V t represents the voltage across the compensation capacitor at t time, V0represents the initial voltage across the capacitor, V u is the voltage across the capacitor when it is fully discharged, R is the resistance value of the charging resistor, C is the capacitance value, in this example, V0=5V, V u =0V, 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, the undershoot compensation is performed by increasing the current for discharging the capacitor to compensate the positive sudden change of the load current, so as to reduce the undershoot.

[0081] In the above embodiment, the final voltage compensation mode is determined by the internal control logic in the dynamic compensation controller, so that the number of mainboard capacitors can be reduced under the same response speed, the cost is reduced, and under the same switching frequency, the ability of the switching power supply to cope with large current steps is ensured, and the response speed of the switching power supply and the stability of the output voltage are improved.

[0082] S3: According to the voltage compensation mode, the state of each switch in the dynamic compensation unit is adjusted to dynamically adjust the output voltage.

[0083] It should be noted that the state of each switch can include an off state and an on state.

[0084] In some embodiments, according to the voltage compensation mode, adjusting the state of each switch in the dynamic compensation unit to dynamically adjust the output voltage comprises: 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 the off state, as shown in FIG. 5, when the dynamic compensation module is in the initial state, all SWs are in the off state, and the compensation capacitor C C is in the suspended state. 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, as shown in FIG. 5, when the dynamic compensation module is in the first compensation state, SW1 and SW4 are in the on state, and SW2 and SW3 are in the off state, and the compensation capacitor C C.1 is connected to the output end of the switching power supply, and the second pin C C.2 of the compensation capacitor is grounded. In response to detecting that the voltage compensation mode 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, as shown in FIG. 5, when the dynamic compensation module is in the second compensation state, SW1 and SW2 are in the on state, and SW3 and SW4 are in the off state, and the compensation capacitor C C.1 is connected to the output end of the switching power supply, and the second pin C C.2 of the compensation capacitor is grounded.

[0085] Wherein, the change of SWx_Gate controls the gate state of the switch, and further controls the on or off state of each SW. Controlling the gate state of the switch to control the state of the switch is a common means, which will not be described here.

[0086] In the above embodiments, based on the dynamic compensation controller, the on and off states of the SWs are controlled by the internal control logic to control the connection mode of the compensation capacitor, so that the dynamic compensation module can be transformed between different states to achieve real-time compensation of Overshoot and Undershoot. At the same time, the response speed of the switching power supply and the stability of the output voltage are improved.

[0087] In some embodiments, the charging current or 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 in a target time period, the horizontal coordinate of the voltage change curve being time and the vertical coordinate being voltage value, the target time period can be set according to actual needs, such as 30 ns or the like. Based on the output voltage standard value and the voltage change curve, the change amplitude of the output voltage in the target time period is determined, wherein the output voltage standard value can be set according to actual application scenarios, such as 4V or the like, and the calculation method of the change amplitude is to obtain the voltage values at multiple time points in 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 according to the number of time points, and the calculation formula is:

[0088] Wherein, A represents the change amplitude, i represents the time node, s i represents the voltage value corresponding to the i th time node, u represents the output voltage standard value, and a represents the number of time nodes. In response to detecting that the change amplitude is greater than a preset change threshold, if the voltage compensation mode is overshoot compensation, the current charging the compensation capacitor is increased by a preset proportion of the change amplitude, and the current discharging the compensation capacitor is increased by a preset multiple of the change amplitude, wherein the preset change threshold, the preset proportion and the preset multiple can be set according to actual needs, for example, the preset proportion is 80% and the preset multiple is 1.2 times, then the value of the current charging the compensation capacitor is 0.8A, and the current discharging the compensation capacitor is 1.2A.

[0089] In the above embodiments, the charging current or discharging current is further adjusted by judging the state of the output voltage, so that the output voltage is more in line with the requirements, and the stability of the output voltage is further improved.

[0090] The voltage dynamic adjustment method comprises: obtaining the voltage at the power consumption equipment end based on a dynamic compensation controller, and calculating a first derivative analog quantity and a second derivative analog quantity corresponding to the voltage based on the voltage; determining the state of a dynamic compensation module based on the first derivative analog quantity and the second derivative analog quantity, and determining the voltage compensation mode 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 based on the voltage compensation mode to dynamically adjust the output voltage. The application monitors the voltage at the power consumption equipment end in real time based on the dynamic compensation module, processes the voltage to determine the relevant state and the voltage compensation mode, and further controls each SW to be turned on or turned off, thereby adjusting the output voltage in real time to dynamically compensate for the overshoot and undershoot of the output voltage of the switching power supply under a large current and high load conversion rate, reducing the overshoot and undershoot of the output voltage of the switching power supply, and improving the response speed of the switching power supply and the stability of the output voltage.

[0091] It should be understood that although the steps in the flowchart of FIG. 6 are shown in a sequence indicated by arrows, the steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, the execution of the steps is not necessarily limited in sequence, and the steps can be executed in other sequences. Moreover, at least some of the steps in FIG. 6 can include multiple sub-steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of the sub-steps or stages is not necessarily sequential, but can be alternately or alternately executed with at least part of other steps or sub-steps or stages of other steps.

[0092] In some embodiments, a computer device, which can be a terminal, is provided, and an internal structure diagram of the computer device can be as shown in FIG. 7. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. The processor of the computer device is configured 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 running the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is configured to communicate with external terminals through a network connection. The computer readable instructions are executed by the processor to implement a voltage dynamic adjustment method. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer overlaid on the display screen, or can be a key, trackball or touchpad arranged on the shell of the computer device, or can be an external keyboard, touchpad or mouse, etc.

[0093] Those skilled in the art can understand that the structure shown in FIG. 7 is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0094] In some embodiments, a computer device is provided, comprising one or more processors; and a memory associated with the one or more processors, the memory being configured to store computer readable instructions that, when executed by the one or more processors, implement the following steps: S1: based on a dynamic compensation controller, obtaining a voltage at an end of a power consuming device, and calculating a first derivative analog quantity and a second derivative analog quantity corresponding to the voltage. S2: based on the first derivative analog quantity and the second derivative analog quantity, determining a state of a dynamic compensation module, and based on the state of the dynamic compensation module, determining a voltage compensation mode of a switching power supply. S3: based on the voltage compensation mode, adjusting the state of each switch in the dynamic compensation unit to dynamically adjust the output voltage.

[0095] In some embodiments, when the processor executes the computer readable instructions, the following steps are further implemented: based on a differentiator in the dynamic compensation controller, monitoring and obtaining the voltage at the end of the power consuming device. The voltage is subjected to twice differentiation calculation by the differentiator to obtain the first derivative analog quantity and the second derivative analog quantity.

[0096] In some embodiments, when the processor executes the computer readable instructions, the following steps are further implemented: based on the control logic unit, converting the first derivative analog quantity and the second 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 or less than a second preset threshold, starting timing by using a timer to obtain a time range in which the first digital quantity is greater than the first preset threshold or less than the second preset threshold. 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 resetting 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 and the second digital quantity is greater than a third preset threshold, defining the state of the dynamic compensation module to change from the initial state to a 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 and the second digital quantity is less than a fourth preset threshold, defining the state of the dynamic compensation module to change from the first compensation state to a second compensation state. Wherein the preset time standard value is defined as a product of a preset parameter and a unit time.

[0097] In some embodiments, the processor, when executing the computer readable instructions, further implements the following steps: 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 that the state of the dynamic compensation module recovers from the second compensation state to the initial state.

[0098] In some embodiments, the processor, when executing the computer readable instructions, further implements the following steps: in response to detecting that the state of the dynamic compensation module is the initial state, defining that the voltage compensation mode of the switching power supply is 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, based on a capacitor charging voltage calculation formula, that the voltage compensation mode of the switching power supply is to increase overshoot compensation of the compensation capacitor charging current, the capacitor charging voltage calculation formula comprising:

[0099] In response to detecting that the state of the dynamic compensation module changes from the first compensation state to the second compensation state, determining, based on a capacitor discharging voltage calculation formula, that the voltage compensation mode of the switching power supply is to increase undershoot compensation of the compensation capacitor discharging current, the capacitor discharging voltage calculation formula comprising:

[0100] wherein t represents time, V t represents the voltage across the compensation capacitor at time t, V0 represents the initial voltage across the compensation capacitor, V u represents the voltage across the compensation capacitor when fully charged, R represents the resistance value of the charging resistor, and C represents the capacitance value of the compensation capacitor.

[0101] In some embodiments, the processor, when executing the computer readable instructions, further implements the following steps: 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, 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.

[0102] In some embodiments, as shown in FIG. 8, a computer readable storage medium is provided, and computer readable instructions are stored on the computer readable storage medium, and the computer readable instructions are executed by one or more processors to implement the following steps: S1: based on a dynamic compensation controller, obtaining a voltage at a load end, and calculating a first derivative analog quantity and a second derivative analog quantity corresponding to the voltage according to the voltage. S2: based on the first derivative analog quantity and the second derivative analog quantity, determining a state of a dynamic compensation module, and based on the state of the dynamic compensation module, determining a voltage compensation mode of a switching power supply. S3: according to the voltage compensation mode, adjusting the state of each switch in the dynamic compensation unit to dynamically adjust the output voltage.

[0103] In some embodiments, the computer readable instructions are executed by the processor to further implement the following steps: based on a differentiator in the dynamic compensation controller, monitoring and obtaining the voltage at the load end. The voltage is twice differentiated by the differentiator to obtain the first derivative analog quantity and the second derivative analog quantity.

[0104] In some embodiments, the computer readable instructions are executed by the processor to further implement the following steps: based on the control logic unit, converting the first derivative analog quantity and the second 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 or less than a second preset threshold, starting timing by using a timer to obtain a time range in which the first digital quantity is greater than the first preset threshold or less than the second preset threshold. 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 resetting 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 and the second digital quantity is greater than a third preset threshold, defining the state of the dynamic compensation module to change from the initial state to a 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 and the second digital quantity is less than a fourth preset threshold, defining the state of the dynamic compensation module to change from the first compensation state to a second compensation state. Wherein the preset time standard value is defined as a product of a preset parameter and a unit time.

[0105] In some embodiments, the computer readable instructions are executed by the processor to further implement the following steps: in response to detecting that the time in which the first digital quantity is greater than or equal to the second preset threshold and 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 recover from the second compensation state to the initial state.

[0106] In some embodiments, the computer readable instructions, when executed by the processor, further implement the following steps: 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 the voltage compensation mode of the switching power supply as adding overshoot compensation for the compensation capacitor charging current based on the capacitor charging voltage calculation formula, which includes:

[0107] In response to detecting that the state of the dynamic compensation module changes from the first compensation state to the second compensation state, determining the voltage compensation mode of the switching power supply as adding undershoot compensation for the compensation capacitor discharging current based on the capacitor discharging voltage calculation formula, which includes:

[0108] wherein t represents time, V t represents the voltage across the compensation capacitor at time t, V0 represents the initial voltage across the compensation capacitor, V u represents the voltage across the compensation capacitor when fully charged, R represents the resistance value of the charging resistor, and C represents the capacitance value of the compensation capacitor.

[0109] In some embodiments, the computer readable instructions, when executed by the processor, further implement the following steps: 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, 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.

[0110] In some embodiments, as shown in FIG. 9, a computer program product is provided, which includes computer readable instructions that, when executed by one or more processors, implement the following steps: S1: based on the dynamic compensation controller, obtaining the voltage at the end of the electrical equipment, and calculating and determining the first derivative analog quantity and the second derivative analog quantity corresponding to the voltage based on the voltage. S2: based on the first derivative analog quantity and the second 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 mode of the switching power supply. S3: adjusting the state of each switch in the dynamic compensation unit according to the voltage compensation mode to dynamically adjust the output voltage.

[0111] In some embodiments, the computer readable instructions, when executed by the processor, further implement the following steps: monitoring and obtaining the voltage at the end of the electrical equipment based on the differentiator in the dynamic compensation controller. The voltage is subjected to twice differential calculation by the differentiator to obtain a first order derivative analog quantity and a second order derivative analog quantity.

[0112] In some embodiments, the computer readable instructions, when executed by the processor, further implement the following steps: converting the first order derivative analog quantity and the second order derivative analog quantity into a first digital quantity and a second digital quantity based on 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, starting timing by using 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 resetting 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 a third preset threshold value, defining the state of the dynamic compensation module to change from the initial state to a 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 a fourth preset threshold value, defining the state of the dynamic compensation module to change from the first compensation state to a second compensation state. The preset time standard value is defined as a product of a preset parameter and a unit time.

[0113] In some embodiments, the computer readable instructions, when executed by the processor, further implement the following steps: in response to detecting that the time in which the first digital quantity is greater than or equal to the second preset threshold value and less than or equal to the first preset threshold value is greater than a fifth preset threshold value, defining the state of the dynamic compensation module to recover from the second compensation state to the initial state.

[0114] In some embodiments, the computer readable instructions, when executed by the processor, further implement the following steps: 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 the voltage compensation mode of the switching power supply to be an overshoot compensation that increases the compensation capacitor charging current based on a capacitor charging voltage calculation formula, which includes:

[0115] In response to detecting that the state of the dynamic compensation module changes from the first compensation state to the second compensation state, determining the voltage compensation mode of the switching power supply to be an undershoot compensation that increases the compensation capacitor discharging current based on a capacitor discharging voltage calculation formula, which includes:

[0116] wherein t represents time, Vt Vt(t) represents the voltage across the time compensation capacitor, V0 represents the initial voltage across the compensation capacitor, V u Vt(t) represents the voltage across the time compensation capacitor, V0 represents the initial voltage across the compensation capacitor, V

[0117] In some embodiments, the computer readable instructions, when executed by the processor, further implement the following steps: 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 the 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 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 mode 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.

[0118] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by computer readable instructions instructing related hardware, and the computer readable instructions can be stored in a non-volatile computer readable storage medium. When the computer readable instructions are executed, the processes of the above-mentioned embodiments can be included. Any reference to memory, storage, database or other medium used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), 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) and the like.

[0119] Each technical feature of the above embodiments can be combined arbitrarily. In order to make the description simple, not all possible combinations of each technical feature in the above embodiments are described, however, as long as the combination of technical features does not exist, it should be considered as the scope of the present disclosure.

[0120] The above embodiments only express several implementation ways of the present application, and the description is specific and detailed, but it should not be understood as a limitation to the patent scope. It should be pointed out that, for ordinary skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which are all within the protection scope of the present application.

Claims

1. A switching power supply, characterized in that, The switching power supply includes: A dynamic compensation module, comprising: Dynamic compensation controller and dynamic compensation unit, wherein, The dynamic compensation controller is connected to the dynamic compensation unit and the power supply terminal, respectively. The first terminal of the dynamic compensation unit is connected to the output terminal of the switching power supply, and the second terminal of the dynamic compensation unit is grounded. The dynamic compensation unit includes a first switch, a second switch, a third switch, a fourth switch, and a capacitor compensator; wherein, The first terminal of the first switch and the first terminal of the second switch are both connected to the output terminal of the switching power supply. The second terminal of the first switch is connected to the first pin of the capacitor compensator, and the second terminal of the second switch is connected to the second pin of the capacitor compensator. The first terminal of the third switch and the first terminal of the fourth switch are both grounded. The second terminal of the third switch is connected to the first pin of the capacitor compensator, and the second terminal of the fourth switch is connected to the second pin of the capacitor compensator.

2. The switching power supply according to claim 1, characterized in that, The first switch, the second switch, the third switch, and the fourth switch are all composed of two transistors, wherein, The first terminal of the first transistor is connected to the first terminal of the second transistor, and the control terminals of the first transistor and the second transistor are respectively connected to the dynamic compensation controller.

3. The switching power supply according to claim 1, characterized in that, The dynamic compensation controller includes a differentiator and a control logic unit; The differentiator is used to calculate and output the analog quantities of the first and second derivatives of the terminal voltage of the electrical equipment. as well as The control logic unit is connected to the differentiator and is used to determine the state of the dynamic compensation module based on the first-order derivative analog quantity and the second-order derivative analog quantity, and to dynamically adjust the output voltage according to the state of the dynamic compensation module.

4. The switching power supply according to claim 1, characterized in that, The switching power supply also includes a logic control module; The first port of the logic control module is connected to the input terminal of the switching power supply, the second port of the logic control module is connected to the output terminal of the switching power supply, and the third port of the logic control module is grounded.

5. The switching power supply according to claim 4, characterized in that, The logic control module includes a power stage logic controller, a third transistor, and a fourth transistor; The first terminal of the power stage logic controller is connected to the control electrode of the third transistor, and the second terminal of the power stage logic controller is connected to the control electrode of the fourth transistor; The first terminal of the third transistor is connected to the input terminal of the switching power supply, and the second terminal of the third transistor is connected to the output terminal of the switching power supply; and The first terminal of the fourth transistor is connected to the output terminal of the switching power supply, and the second terminal of the fourth transistor is grounded.

6. The switching power supply according to claim 1, characterized in that, The switching power supply also includes inductors and capacitors; The first end of the inductor is connected to the output terminal of the switching power supply, and the second end of the inductor is connected to the second port of the logic control module; and The first terminal of the capacitor is grounded, and the second terminal of the capacitor is connected to the output terminal of the switching power supply.

7. The switching power supply according to claim 3, characterized in that, The switch further includes an analog-to-digital converter (ADC), which is disposed in the control logic unit. The ADC is used to convert the first-order derivative analog quantity and the second-order derivative analog quantity into digital quantities. The control logic unit is used to compare the digital quantity with the threshold to obtain the state of the dynamic compensation module.

8. The switching power supply according to claim 2, characterized in that, The transistor is a metal-oxide-semiconductor field-effect transistor.

9. A method for dynamic voltage adjustment, applied to a switching power supply as described in any one of claims 1-8, characterized in that, The method includes: Based on the dynamic compensation controller, the voltage at the end of the electrical equipment is obtained, and the first-order derivative analog quantity and the second-order derivative analog quantity corresponding to the voltage are calculated and determined according to the voltage. Based on the first-order and second-order derivative analog quantities, 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; and According to the voltage compensation method, the state of each switch in the dynamic compensation unit is adjusted to dynamically adjust the output voltage.

10. The voltage dynamic adjustment method according to claim 9, characterized in that, Based on the voltage, the calculation and determination of the analog quantities of the first and second derivatives corresponding to the voltage include: Based on the differentiator in the dynamic compensation controller, the voltage at the terminal of the electrical equipment is monitored and acquired; and The voltage is differentiated twice using the differentiator to obtain the analog quantities of the first and second derivatives, respectively.

11. The voltage dynamic adjustment method according to claim 9, characterized in that, Based on the first-order derivative analog quantity and the second-order derivative analog quantity, the state of the dynamic compensation module is determined as follows: The control logic unit converts 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 or less than a second preset threshold, a timer is started to obtain the time range in which the first digital quantity is greater than the first preset threshold or less than the second preset threshold. When the time range is detected to be less than or equal to a preset time standard value, the state of the dynamic compensation module is defined as the initial state, and the timer is cleared. In response to detecting that the time range is greater than a preset time standard value, and that the first digital quantity is greater than a first preset threshold and the second digital quantity is greater than a third preset threshold, the state of the dynamic compensation module is defined to change from the initial state to the first compensation state; and In response to detecting that the time range is greater than a preset time standard value, and that the first digital quantity is less than a second preset threshold and the second digital quantity is less than a fourth preset threshold, the state of the dynamic compensation module is defined to change from the first compensation state to the second compensation state. The preset time standard value is defined as the product of the preset parameter and the unit time.

12. The voltage dynamic adjustment method according to claim 11, characterized in that, The method further includes: When the time when the first digital quantity is detected to be greater than or equal to the second preset threshold and 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.

13. The voltage dynamic adjustment method according to claim 11 or 12, characterized in that, Based on the state of the dynamic compensation module, the voltage compensation method of the switching power supply is determined as follows: When the state of the dynamic compensation module is detected to be in the initial state, the voltage compensation mode of the switching power supply is defined as no compensation. In response to detecting a change in the state of the dynamic compensation module from the initial state to the first compensation state, based on the capacitor charging voltage calculation formula, the voltage compensation method of the switching power supply is determined to be overshoot compensation for the capacitor charging current. The capacitor charging voltage calculation formula includes: as well as In response to the detection that the state of the dynamic compensation module changes from a first compensation state to a second compensation state, based on the capacitor discharge voltage calculation formula, the voltage compensation method of the switching power supply is determined to be undershoot compensation by increasing the discharge current of the compensation capacitor. The capacitor discharge voltage calculation formula includes: Where t represents time, V t Vt represents the voltage across the compensation capacitor at time t, and V0 represents the initial voltage across the compensation capacitor. u The value of E represents the voltage across the capacitor when it is fully charged, and the value of C represents the capacitance of the capacitor.

14. The voltage dynamic adjustment method according to claim 12, 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 the detection 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 and fourth switches are adjusted to be in the ON state, and the second and third switches are adjusted to be in the OFF state; and In response to detecting that the voltage compensation method is undershoot compensation, the first and second switches are adjusted to be in the on state, and the third and fourth switches are adjusted to be in the off state.

15. The voltage dynamic adjustment method according to claim 11, characterized in that, The step of 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 the control logic unit includes: The analog-to-digital converter located in the control logic unit converts the first-order derivative analog quantity into the first digital quantity and the second-order derivative analog quantity into the second digital quantity.

16. The voltage dynamic adjustment method according to claim 9, characterized in that, After the step of adjusting the state of each switch in the dynamic compensation unit according to the voltage compensation method to dynamically adjust the output voltage, the method further includes: In response to the detection that the voltage compensation method is overshoot compensation, the voltage change curve of the output voltage within the target time period is obtained; Based on the standard value of the output voltage and the voltage variation curve, determine the magnitude of the output voltage variation within the target time period; and In response to detecting that the change amplitude is greater than a preset change threshold, the charging current of the compensation capacitor is increased according to a preset ratio of the change amplitude.

17. The voltage dynamic adjustment method according to claim 9, characterized in that, After the step of adjusting the state of each switch in the dynamic compensation unit according to the voltage compensation method to dynamically adjust the output voltage, the method further includes: In response to the detection that the voltage compensation method is overshoot compensation, the voltage change curve of the output voltage within the target time period is obtained; Based on the standard value of the output voltage and the voltage variation curve, determine the magnitude of the output voltage variation within the target time period; and In response to detecting that the change amplitude is greater than a preset change threshold, the discharge current of the compensation capacitor is increased by a preset multiple of the change amplitude.

18. A computer device, characterized in that, The computer device includes: One or more processors; and A memory associated with the one or more processors, the memory being used to store computer-readable instructions that, when read and executed by the one or more processors, implement the method as described in any one of claims 9 to 17.

19. A non-volatile computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by one or more processors, implement the method as described in any one of claims 9 to 17.

20. A computer program product, characterized in that, The computer program product includes computer-readable instructions that, when executed by one or more processors, implement the method of any one of claims 9 to 17.

Citation Information

Patent Citations

  • System and method for outputting voltage overshoot suppression

    CN107872052A

  • Voltage stabilizing device and method for stabilizing voltage jump of DC bus based on super capacitors

    CN110854983A

  • Observer-based active power filter adaptive dynamic sliding mode method

    CN111781838A

  • Active current compensation system and method and medium

    CN112636575A

  • Transient load response circuit and method for improving constant-voltage power supply

    CN117526710A