Voltage droop regulation method
By calculating the voltage error in the DC-DC converter and performing voltage amplification under specific conditions, the problem of output voltage drop caused by load mutation is solved, and dynamic performance and stability are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHIJIAZHUANG TONHE ELECTRONICS TECH CO LTD
- Filing Date
- 2022-10-28
- Publication Date
- 2026-05-26
Smart Images

Figure CN116032095B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of DC-DC converter technology, and more particularly to a voltage drop regulation method. Background Technology
[0002] Whether it's the power module used in a charging pile, an on-board power module, or a general power supply module, a DC-DC converter is typically used. DC-DC converters usually employ an LLC topology to achieve high-frequency resonant soft-switching control, which typically uses frequency modulation control methods. When the load on the DC-DC converter suddenly increases, such as from no-load to full-load, an output voltage drop can occur. When this voltage drop happens, the voltage recovery speed is slow due to the influence of the DC-DC converter's own PI parameters, affecting the dynamic performance of the DC-DC converter. Summary of the Invention
[0003] This invention provides a voltage drop regulation method to solve the problem that the output voltage cannot be restored in time when the output voltage drops under sudden load conditions, which affects the dynamic performance of the DC-DC converter.
[0004] In a first aspect, embodiments of the present invention provide a voltage drop regulation method, comprising:
[0005] Obtain the current PI output value and the current output voltage after PI adjustment in the controlled circuit, and calculate the current voltage error based on the current output voltage and the voltage reference value;
[0006] Obtain the current interval variable value; the current interval variable value represents the number of any counted cycles between the end of the previous voltage amplification process and the end of the current voltage amplification process.
[0007] If the current voltage error is greater than the voltage error threshold and the current interval variable value is less than or equal to the first preset value, the current voltage error is amplified based on the PI output value to obtain the first voltage error. The first voltage error is then PI-adjusted to obtain a new PI output value and the adjusted output voltage of the controlled circuit.
[0008] The adjusted output voltage is used as the current output voltage. The current voltage error is recalculated and subsequent steps are executed until the current voltage error is less than or equal to the voltage error threshold, or the current interval variable value is greater than the first preset value. Then, the current corresponding voltage error is PI-adjusted to obtain a new PI output value and a new output voltage.
[0009] In one possible implementation, obtaining the current interval variable value includes:
[0010] After the previous round of voltage amplification processing is completed, a countdown counter is started, and the value of the countdown counter is set to a preset interval variable value;
[0011] Get the current countdown value;
[0012] After obtaining the current interval variable value, the process also includes:
[0013] Check if the current interval variable value is greater than the first preset value;
[0014] If the current interval variable value is greater than the first preset value, count down the current interval variable value.
[0015] In one possible implementation, after obtaining the current interval variable value, the method further includes:
[0016] If the current interval variable value is less than or equal to the first preset value, pause the countdown.
[0017] In one possible implementation, after counting down the current interval variable value when it is greater than the first preset value, and pausing the countdown when the current interval variable value is less than or equal to the first preset value, the method further includes:
[0018] Detect whether the current loop is in a voltage loop;
[0019] If the current loop is not in the voltage loop, the current voltage error is adjusted by PI to obtain a new PI output value and a new output voltage.
[0020] If the current loop is in the voltage loop, detect whether the current voltage error is greater than the voltage error threshold, obtain the current interval variable value, and detect whether the current interval variable value is less than or equal to the first preset value.
[0021] In one possible implementation, after calculating the current voltage error based on the current output voltage and the voltage reference value, the method further includes: saving the current voltage error;
[0022] After performing voltage amplification processing on the current voltage error based on the PI output value to obtain the first voltage error, the method further includes: saving the first voltage error;
[0023] After detecting whether the current voltage error is greater than the voltage error threshold, obtaining the current interval variable value, and detecting whether the current interval variable value is less than or equal to a first preset value, the method further includes:
[0024] If the current voltage error is greater than the voltage error threshold and the current interval variable value is greater than the first preset value, or if the current voltage error is less than or equal to the voltage error threshold and the current interval variable value is greater than the first preset value, or if the current voltage error is less than or equal to the voltage error threshold and the current interval variable value is less than or equal to the first preset value, then check whether the sum of the previously saved voltage error and the preset threshold is greater than or equal to the currently saved voltage error; the voltage error includes: the current voltage error or the first voltage error;
[0025] If the sum of the previously saved voltage error and the preset threshold is greater than or equal to the voltage error saved this time, the current interval variable value and voltage error will be reset.
[0026] The output voltage is adjusted by PI control of the current voltage error.
[0027] In one possible implementation, after checking whether the sum of the previously saved voltage error and a preset threshold is greater than the voltage error saved this time, the method further includes:
[0028] If the sum of the previously saved voltage error and the preset threshold is less than the voltage error saved this time, the current voltage error is adjusted using a PI controller before the output voltage is adjusted.
[0029] In one possible implementation, based on the PI output value, the current voltage error is amplified to obtain a first voltage error, including:
[0030] If the current voltage error is greater than the voltage error threshold and the current interval variable value is equal to the first preset value, save the current PI output value;
[0031] Continue counting down from the current interval variable value;
[0032] According to V1 = V err *(k-PI out *a) Expand the current voltage error to the first voltage error; where V1 represents the first voltage error, V err Indicates the current voltage error, PI out This represents the saved PI output value, where k and a represent the first and second amplification factors, respectively.
[0033] In one possible implementation, the step of PI regulating the first voltage error to obtain a new PI output value and the adjusted output voltage of the controlled circuit includes:
[0034] Check whether the current interval variable value is equal to 0, or check whether the sum of the previously saved voltage error and the preset threshold is greater than or equal to the voltage error saved this time;
[0035] If the current interval variable value is greater than 0, and the sum of the previously saved voltage error and the preset threshold is less than the voltage error saved this time, the first voltage error is PI-adjusted to obtain a new PI output value and the output voltage of the controlled circuit after adjustment.
[0036] In one possible implementation, based on the PI output value, the current voltage error is amplified to obtain a first voltage error, and the method further includes:
[0037] If the current voltage error is greater than the voltage error threshold and the current interval variable value is less than the first preset value, jump to the "continue counting down for the current interval variable value" step and continue to execute the subsequent steps.
[0038] In one possible implementation, after detecting whether the current interval variable value is equal to 0, or detecting whether the sum of the previously saved voltage error and a preset threshold is greater than or equal to the currently saved voltage error, the method further includes:
[0039] If the current interval variable value is equal to 0, or if the sum of the previously saved voltage error and the preset threshold is greater than or equal to the voltage error saved this time, then according to V... err =V1*V in *c transforms the first voltage error into a new current voltage error; where, V err V represents the current voltage error, V1 represents the first voltage error, V in The input voltage value is represented by 'c', and the transformation coefficient is represented by 'c'.
[0040] Reset the current interval variable value and voltage error;
[0041] The output voltage is adjusted by PI control of the new current voltage error.
[0042] In one possible implementation, according to V err =V1*V in After transforming the first voltage error into a new current voltage error, *c further includes: saving the current voltage error;
[0043] The process of resetting the current interval variable value and voltage error includes:
[0044] Reset the current interval variable value to the preset interval variable value;
[0045] Reset the previously saved first voltage error or the previously saved current voltage error to the current voltage error.
[0046] This invention provides a voltage drop regulation method. The method involves acquiring the current PI output value and current output voltage after PI adjustment in the controlled circuit, and calculating the current voltage error based on the current output voltage and a voltage reference value. The method then acquires the current interval variable value. If the current voltage error is greater than a voltage error threshold and the current interval variable value is less than or equal to a first preset value, a voltage amplification operation is performed on the current voltage error based on the PI output value to obtain a first voltage error. The first voltage error is then PI-adjusted to obtain a new PI output value and the adjusted output voltage of the controlled circuit. The adjusted output voltage is used as the current output voltage. The current voltage error is recalculated, and subsequent steps are executed until the current voltage error is less than or equal to the voltage error threshold, or the current interval variable value is greater than the first preset value. Finally, the corresponding voltage error is PI-adjusted to obtain a new PI output value and a new output voltage. Specifically, when the current voltage error is greater than the voltage error threshold and the current interval variable value is less than or equal to the first preset value, the current voltage error is amplified based on the PI output value. This can quickly increase the PI output value, thereby increasing the output voltage of the controlled circuit, adjusting the dynamic performance of the controlled circuit, increasing the response speed of the controlled circuit, and improving the stability of the controlled circuit.
[0047] Furthermore, when determining whether to perform voltage amplification processing, the current interval variable value is introduced as one of the reference conditions to ensure that after the end of one round of voltage amplification processing, the next round of voltage amplification processing will not be started immediately, thus preventing multiple over-adjustments caused by the slow response of the controlled circuit. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0049] Figure 1 This is a flowchart illustrating the implementation of the voltage drop regulation method provided in this embodiment of the invention;
[0050] Figure 2 This is a schematic diagram of the architecture of the voltage drop regulation method provided in an embodiment of the present invention;
[0051] Figure 3 This is a flowchart illustrating the implementation of a voltage drop regulation method according to another embodiment of the present invention;
[0052] Figure 4This is a schematic diagram of the change of the interval variable value provided by an embodiment of the present invention when the current loop is always in the voltage loop and the current voltage error is always greater than the voltage error threshold.
[0053] Figure 5(a) is a schematic diagram of a possible situation when the output voltage enters the rising edge, provided by an embodiment of the present invention;
[0054] Figure 5(b) is a schematic diagram of another possible situation when the output voltage enters the rising edge, provided by an embodiment of the present invention;
[0055] Figure 5(c) is a schematic diagram of another possible situation that may occur when the output voltage enters the rising edge, according to an embodiment of the present invention;
[0056] Figure 5(d) is a schematic diagram of another possible situation that may occur when the output voltage enters the rising edge, according to an embodiment of the present invention;
[0057] Figure 6 This is a schematic diagram of the voltage drop regulation device provided in an embodiment of the present invention;
[0058] Figure 7 This is a schematic diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0059] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of the invention. However, those skilled in the art will understand that the invention can be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of the invention with unnecessary detail.
[0060] To make the objectives, technical solutions, and advantages of the present invention clearer, specific embodiments will be described below in conjunction with the accompanying drawings.
[0061] First, it should be noted that this invention is applied to the LLC topology circuit in a DC-DC converter. The LLC topology circuit has a PI controller, which can perform proportional and integral calculations on the input voltage error, output a PI output value, and apply this PI output value to the controlled circuit (i.e., the LLC topology circuit). The controlled circuit adjusts its own output voltage according to the PI output value to achieve the purpose of stabilizing the output voltage.
[0062] However, during sudden loading, the PI parameters in the PI controller cannot quickly adapt to the load state, causing the controlled circuit to fail to adjust its output voltage in time, resulting in a voltage drop. Furthermore, the degree of output voltage drop is also affected by the input voltage and the load state before the sudden load application.
[0063] That is, under different input voltages, the degree of output voltage drop after a sudden load varies; the higher the input voltage, the more severe the output voltage drop after a sudden load. Even with the same input voltage, different load conditions before the sudden load will also lead to different degrees of output voltage drop. The output voltage drop when suddenly loading from a light load to full load is more severe than the output voltage drop when suddenly loading from a half load to full load. This invention provides a voltage drop regulation method to solve this voltage drop problem and ensure a stable output voltage.
[0064] Figure 1 The implementation flowchart of the voltage drop regulation method provided in the embodiment of the present invention is described in detail below:
[0065] Step 101: Obtain the current PI output value and the current output voltage after PI adjustment in the controlled circuit, and calculate the current voltage error based on the current output voltage and the voltage reference value.
[0066] Optional, see Figure 2 As shown, after the controlled circuit is PI-regulated by the PI controller, the current PI output value and the current output voltage are obtained, and the current voltage error is calculated based on the current output voltage and the voltage reference value.
[0067] Optional, it can be based on V err =V ref -V out Calculate the current voltage error.
[0068] Among them, V err Indicates the current voltage error, V ref Indicates the voltage reference value, V out This indicates the current output voltage. The voltage reference value here can be set by the user and is a fixed value; however, this embodiment of the invention does not impose specific limitations on it.
[0069] Step 102: Obtain the current interval variable value. The current interval variable value represents the number of cycles counted between the end of the previous voltage amplification process and the end of the current voltage amplification process.
[0070] Optionally, retrieve the current interval variable value, including:
[0071] After the previous voltage amplification process is completed, start the countdown counter and set the countdown counter value to the preset interval variable value;
[0072] Get the current countdown value.
[0073] Each complete PI adjustment can be considered as one cycle. For example, the preset interval variable value here can be set to 2000, that is, 2000 cycles.
[0074] Optional, see Figure 3 After obtaining the current interval variable value, it also includes:
[0075] Check if the current interval variable value is greater than the first preset value;
[0076] If the current interval variable value is greater than the first preset value, count down the current interval variable value.
[0077] When counting down the current interval variable value, one cycle is subtracted with each countdown. For example, if the current interval variable value is 2000 cycles, after one countdown, the current interval variable value will have 1999 cycles remaining.
[0078] Optionally, after obtaining the current interval variable value, the following may also be included:
[0079] If the current interval variable value is less than or equal to the first preset value, pause the countdown.
[0080] For example, the preset interval variable value can be 2000 cycles, and the first preset value can be 100 cycles. After the previous round of voltage amplification processing is completed, a countdown of 2000 cycles begins. The countdown pauses when the current interval variable value has 100 cycles remaining. One purpose of setting the preset interval variable value and the first preset value is to ensure that, if the current voltage error is always greater than the voltage error threshold, there is at least a 1900-cycle interval between two rounds of voltage amplification processing for normal voltage processing. Therefore, if the current interval variable value is less than or equal to 100, it means that 1900 cycles of normal voltage processing have already been completed, and the countdown can be paused without further counting. Normal voltage processing refers to directly applying PI adjustment to the actual calculated current voltage error; voltage amplification processing refers to applying PI adjustment to the first voltage error obtained after amplifying the current voltage error.
[0081] By setting a preset interval variable value and a first preset value, it can be ensured that there is at least a 1900-cycle interval between the end of the previous voltage amplification process and the start of the next voltage amplification process, and that two consecutive voltage error amplification processes will not occur, thus preventing over-adjustment.
[0082] Optionally, after counting down the current interval variable value if it is greater than the first preset value, and after pausing the countdown if it is less than or equal to the first preset value, the method further includes:
[0083] Detect whether the current loop is in a voltage loop;
[0084] If the current loop is not in the voltage loop, the current voltage error is adjusted by PI to obtain a new PI output value and a new output voltage.
[0085] If the current loop is in the voltage loop, detect whether the current voltage error is greater than the voltage error threshold, obtain the current interval variable value, and detect whether the current interval variable value is less than or equal to the first preset value.
[0086] In controlled circuits, voltage and current loops are typically connected in parallel to independently control the output voltage and current. Under normal operating conditions, when an output voltage drop occurs, the current loop in the controlled circuit should be in the voltage loop. However, under abnormal operating conditions, it may occasionally be in the current loop. Therefore, to avoid affecting subsequent voltage amplification processing, if the current loop is detected as not being in the voltage loop, the voltage amplification process is skipped, and the current voltage error is directly adjusted using a PI controller.
[0087] If the circuit is in the voltage loop, it indicates that the controlled circuit is operating normally and the subsequent detection steps can continue, namely, "detecting whether the current voltage error is greater than the voltage error threshold, obtaining the current interval variable value, and detecting whether the current interval variable value is less than or equal to the first preset value" to determine whether the controlled circuit meets the drop condition.
[0088] For example, see Figure 4 In a controlled circuit where the current loop is always in the voltage loop and the current voltage error is always greater than the voltage error threshold, once the current interval variable value decreases to 0, the current round of voltage amplification processing ends, the interval variable value is reset to 2000, and the countdown restarts. If the current interval variable value is greater than 100, the drop condition is not met, and normal voltage processing is performed. This continues until the current interval variable value equals 100, at which point the drop condition is met, and the next round of voltage amplification processing begins. In other words, the 1900 cycles from 2000 to 100 continuously execute the normal voltage processing step until the current interval equals 100, at which point voltage amplification processing begins. Voltage amplification processing refers to expanding the current voltage error by a preset factor before PI regulation, while normal voltage processing refers to performing only PI regulation.
[0089] Optionally, after detecting whether the current voltage error is greater than the voltage error threshold, obtaining the current interval variable value, and detecting whether the current interval variable value is less than or equal to a first preset value, the method further includes:
[0090] If the current voltage error is greater than the voltage error threshold and the current interval variable value is greater than the first preset value; or if the current voltage error is less than or equal to the voltage error threshold and the current interval variable value is greater than the first preset value; or if the current voltage error is less than or equal to the voltage error threshold and the current interval variable value is less than or equal to the first preset value, then check whether the sum of the previously saved voltage error and the preset threshold is greater than or equal to the currently saved voltage error. Here, voltage error includes either the current voltage error or the first voltage error.
[0091] If the sum of the previously saved voltage error and the preset threshold is greater than or equal to the voltage error saved this time, the current interval variable value and voltage error will be reset.
[0092] The output voltage is adjusted by PI control of the current voltage error.
[0093] The controlled circuit is determined to meet the voltage drop condition only when the current voltage error is greater than the voltage error threshold and the current interval variable value is less than or equal to the first preset value. If either of the above conditions is not met, the controlled circuit is determined not to meet the voltage drop condition. Figure 2 When the controlled circuit does not meet the drop condition, there is no need to perform voltage amplification. Instead, the current voltage error is directly adjusted by PI and a new PI output value and a new output voltage are output.
[0094] If the current voltage error is greater than the voltage error threshold and the current interval variable value is greater than the first preset value, or if the current voltage error is less than or equal to the voltage error threshold and the current interval variable value is greater than the first preset value, or if the current voltage error is less than or equal to the voltage error threshold and the current interval variable value is equal to the first preset value, it indicates that the voltage amplification process is not currently underway. In this case, the voltage amplification process is skipped, and the current voltage error is directly adjusted by PI and the output voltage is then adjusted.
[0095] There exists a special case where the current voltage error is less than or equal to the voltage error threshold, and the current interval variable value is less than the first preset value. This indicates that the current process is in the middle of a voltage amplification cycle and has already undergone at least one iteration based on V1 = V err *(k-PI out *a) A voltage amplification operation that expands the current voltage error to a first voltage error. It should be noted that a single voltage amplification process may include at least one voltage amplification operation. This occurs after at least one operation based on V1 = V... err *(k-PI out*a) After the voltage amplification process of "amplifying the current voltage error to the first voltage error", if the new current voltage error is less than or equal to the voltage error threshold, it is necessary to check whether the sum of the previously saved voltage error and the preset threshold is greater than or equal to the currently saved voltage error. If the sum of the previously saved voltage error and the preset threshold is greater than or equal to the currently saved voltage error, the current round of voltage amplification can be exited. When exiting the current round of voltage amplification, the current interval variable value and voltage error need to be reset to prepare for the next round of voltage amplification and prevent errors from occurring in the next round of voltage amplification.
[0096] Optionally, after calculating the current voltage error based on the current output voltage and the voltage reference value, the method also includes: saving the current voltage error.
[0097] After performing voltage amplification processing on the current voltage error based on the PI output value to obtain the first voltage error, the process also includes: saving the first voltage error.
[0098] Each time the current voltage error or the first voltage error is obtained, it must be saved so that when the exit conditions are checked later, the previously saved voltage error and the current voltage error can be retrieved.
[0099] Understandably, if no voltage amplification operation was performed in the previous cycle (i.e., the previous PI control cycle), the voltage error saved in the previous cycle refers to the current voltage error saved in the previous cycle; if a voltage amplification operation was performed in the previous cycle, the voltage error saved in the previous cycle refers to the first voltage error saved in the previous cycle. Similarly, if no voltage amplification operation was performed in the current cycle (i.e., the current PI control cycle), the voltage error saved in the current cycle refers to the current voltage error saved in the current cycle; if a voltage amplification operation was performed in the current cycle, the voltage error saved in the current cycle refers to the first voltage error saved in the current cycle.
[0100] Optionally, the current interval variable value and voltage error can be reset, including:
[0101] Reset the current interval variable value to the preset interval variable value;
[0102] Reset the previously saved first voltage error or the previously saved current voltage error to the current voltage error.
[0103] PI controller is based on PI i+1 =PI i +Ka*Verr i+1 -Kb*Verr i To calculate the PI output value. Where, PI... i+1This represents the output value of PI at the (i+1)th iteration. i Represents the PI output value of the i-th iteration, Verr i+1 Verr represents the input voltage error during the (i+1)th PI adjustment. i This represents the input voltage error during the i-th PI adjustment, where Ka and Kb represent the first and second PI parameters, respectively.
[0104] As can be seen from the formula above, the PI controller needs to use the voltage error from the previous step when calculating the current PI output value. Therefore, each voltage error (including the current voltage error calculated in the actual calculation and the first voltage error after amplification) needs to be saved for use in the next PI output value calculation.
[0105] Accordingly, if the above special circumstances apply, when exiting the voltage amplification process, if the previous step involved "according to V1 = V..." err *(k-PI out *a) The voltage amplification operation, which expands the current voltage error to the first voltage error, requires resetting the previously saved first voltage error to the current voltage error calculated in the current operation. This ensures that when the current voltage error is less than the voltage error threshold, the continued impact of the previously calculated first voltage error on the PI output value after the voltage amplification process is completed is minimized. If the above voltage amplification operation was not performed previously, the previously saved current voltage error needs to be reset to the current current voltage error. After resetting and exiting, the PI controller continues to adjust the current voltage error. In essence, when exiting the voltage amplification process, the previously saved voltage error (including the actually calculated voltage error or the amplified first voltage error) needs to be reset to the current voltage error calculated in the current operation.
[0106] It should be noted that during a single round of voltage amplification, if at least one step is performed based on "V1 = V..." err *(k-PI out *a) After the voltage amplification process of "expanding the current voltage error to a first voltage error," if the resulting new current voltage error is less than or equal to the voltage error threshold, there is no need to perform the voltage amplification process again. The current voltage error can be directly adjusted using PI control, and there is no need to continue counting down the current interval variable value. This is because setting the preset interval variable value and the first preset value also serves to limit the number of voltage amplification operations performed in a single voltage amplification process, preventing over-adjustment. Therefore, for normal voltage processing operations during the voltage amplification process, there is no need for counting down; simply pause the countdown.
[0107] In addition, the purpose of making "the sum of the previously saved voltage error and the preset threshold is greater than or equal to the voltage error saved this time" one of the conditions for exiting the current round of voltage amplification processing is to exit the voltage amplification processing in a timely manner to prevent over-adjustment.
[0108] To avoid over-adjustment, this embodiment of the invention selects to exit the current voltage amplification process as soon as the output voltage enters the rising edge. That is, the current voltage amplification process should exit as soon as the output voltage begins to rise. When the output voltage just enters the rising edge, there are the following four possible scenarios:
[0109] 1. Referring to Figure 5(a), both the voltage error saved this time and the voltage error saved last time are at the rising edge.
[0110] 2. The voltage error saved this time is on the rising edge, while the voltage error saved last time was on the falling edge.
[0111] In this case, there are 3 possible scenarios:
[0112] 2.1 Referring to Figure 5(b), the voltage error saved last time is greater than the voltage error saved this time.
[0113] 2.2 Referring to Figure 5(c), the voltage error saved last time is equal to the voltage error saved this time.
[0114] 2.3. Referring to Figure 5(d), the voltage error saved last time is smaller than the voltage error saved this time.
[0115] To ensure that the above four possible scenarios are covered when exiting the voltage amplification process, "the sum of the previously saved voltage error and the preset threshold is greater than or equal to the currently saved voltage error" is set as one of the conditions for exiting the current round of voltage amplification process. This is to prevent situations where the exit is not timely or exits prematurely. The preset threshold is a fixed value, and the specific value of the preset threshold is related to the hardware parameters of the controlled circuit and can be obtained through experiments on the controlled circuit. This embodiment of the invention does not specifically limit the specific value of the preset threshold.
[0116] Optionally, after checking whether the sum of the previously saved voltage error and a preset threshold is greater than the voltage error saved this time, the following steps are also included:
[0117] If the sum of the previously saved voltage error and the preset threshold is less than the voltage error saved this time, the current voltage error is adjusted by PI and the output voltage is then applied.
[0118] If the sum of the previously saved voltage error and the preset threshold is less than the voltage error saved this time, it means that the current output voltage has not yet reached its rising edge. In this case, there is no need to exit the current round of voltage amplification processing, nor is it necessary to reset the interval variable value or voltage error. Simply continue to calculate the PI output value based on the current voltage error and perform PI adjustment.
[0119] Step 103: If the current voltage error is greater than the voltage error threshold and the current interval variable value is less than or equal to the first preset value, the voltage error is amplified based on the PI output value to obtain the first voltage error. The first voltage error is then PI-adjusted to obtain a new PI output value and the output voltage of the controlled circuit after adjustment.
[0120] If the current voltage error is greater than the voltage error threshold, and the current interval variable value is less than or equal to the first preset value, the controlled circuit is determined to meet the voltage drop condition. The voltage amplification process can then commence.
[0121] Optionally, based on the PI output value, the current voltage error is amplified to obtain a first voltage error, including:
[0122] If the current voltage error is greater than the voltage error threshold and the current interval variable value is equal to the first preset value, save the current PI output value;
[0123] Continue counting down from the current interval variable value;
[0124] According to V1 = V err *(k-PI out *a) Expand the current voltage error to a first voltage error; where V1 represents the first voltage error, V err Indicates the current voltage error, PI out This represents the saved PI output value, where k and a represent the first and second amplification factors, respectively.
[0125] The current voltage error is greater than the voltage error threshold, and the current interval variable value is equal to the first preset value, indicating that at least 1900 cycles of normal voltage processing have occurred since the end of the previous voltage amplification process, and this is the first time entering the current voltage amplification process. Upon entering this voltage amplification process for the first time, the current PI output value needs to be saved, and the amplification factor is determined based on this PI output value.
[0126] As mentioned earlier, the degree of voltage drop is affected by both the input voltage and the load condition before the sudden load is applied. Both of these factors influence the PI output value when the voltage drops. In other words, both the input voltage and the load condition before the sudden load are applied affect the PI output value when the output voltage drops, thus affecting the degree of voltage drop. Furthermore, the smaller the PI output value, the greater the voltage drop. Therefore, in the voltage error amplification and correction process, this embodiment of the invention introduces the PI output value into the voltage amplification process, causing the amplification factor to follow the change in the PI output value. That is, the smaller the PI output value, the greater the amplification factor and the greater the correction magnitude.
[0127] Optionally, based on the PI output value, the current voltage error is amplified to obtain the first voltage error, and the method further includes:
[0128] If the current voltage error is greater than the voltage error threshold and the current interval variable value is less than the first preset value, jump to the "continue counting down for the current interval variable value" step and continue to execute the subsequent steps.
[0129] If the current voltage error is greater than the voltage error threshold, and the current interval variable value is less than the first preset value, it indicates that this is not the first time entering this round of voltage amplification processing. Prior to this, it has undergone at least one process based on "V1 = V..." err *(k-PI out *a) A voltage amplification operation that expands the current voltage error to the first voltage error. In this case, there is no need to save the current PI output value; the PI output value saved when entering the voltage amplification process for the first time can be used directly. That is, in one round of voltage amplification, the amplification factor of each voltage amplification operation is the same. Furthermore, this amplification factor is determined based on the current PI output value saved when entering this round of voltage amplification.
[0130] Another function of setting the preset interval variable value and the first preset value is to ensure that, under the condition that the current voltage error is always greater than the voltage error threshold, the first preset value (e.g., 100) is executed at most once during a round of voltage amplification processing. "According to V1 = V..." err *(k-PI out *a) A voltage amplification process that expands the current voltage error to a first voltage error. Therefore, after determining that the controlled circuit meets the voltage drop condition and enters the voltage amplification process, a countdown counter is started to continue counting down the current interval variable value. By setting a first preset value, it is possible to further ensure that over-adjustment does not occur.
[0131] Optionally, the first voltage error is PI-regulated to obtain a new PI output value and the adjusted output voltage of the controlled circuit, including:
[0132] Check if the current interval variable value is equal to 0, or check if the sum of the previously saved voltage error and the preset threshold is greater than or equal to the voltage error saved this time;
[0133] If the current interval variable value is greater than 0, and the sum of the previously saved voltage error and the preset threshold is less than the voltage error saved this time, the first voltage error is PI-regulated to obtain a new PI output value and the output voltage of the controlled circuit after adjustment.
[0134] If the current interval variable value is greater than 0, it means that the number of times the voltage error amplification operation is reserved in the current round of voltage amplification process has not ended, and the sum of the voltage error saved last time and the preset threshold is less than the voltage error saved this time, indicating that the output voltage has not yet started to rise. At this time, the PI controller uses the first voltage error to perform PI adjustment to obtain a new PI output value and a new output voltage.
[0135] It is understandable that a single voltage amplification process includes at least one step of applying the formula V1 = V... err *(k-PI out *a) Voltage amplification processing operation: "Amplify the current voltage error to a first voltage error". When the current voltage error is greater than the voltage error threshold, and the interval variable value is greater than 0 and less than or equal to a first preset value, the current round of voltage amplification processing will repeatedly execute the steps of amplifying the current voltage error to a first voltage error, calculating the PI output value based on the first voltage error, controlling the controlled circuit to obtain a new output voltage based on the PI output value, recalculating the new current voltage error, and amplifying the new current voltage error to a new first voltage error, until the interval variable value equals 0, or the sum of the previously saved voltage error and the preset threshold is greater than or equal to the currently saved voltage error. Here, the first preset value can be understood as: a value reserved for executing "according to V1 = V..." during one round of voltage amplification processing. err *(k-PI out *a) The number of times the "expand the current voltage error to the first voltage error" step is performed.
[0136] Optionally, after detecting whether the current interval variable value is equal to 0, or whether the sum of the previously saved voltage error and a preset threshold is greater than or equal to the currently saved voltage error, the method further includes:
[0137] If the current interval variable value is equal to 0, or if the sum of the previously saved voltage error and the preset threshold is greater than or equal to the voltage error saved this time, then according to V... err =V1*V in *c transforms the first voltage error into the new current voltage error.
[0138] Among them, Verr V represents the current voltage error, V1 represents the first voltage error, V in represents the input voltage value, and c represents the transformation coefficient.
[0139] Reset the current interval variable value and voltage error.
[0140] The output voltage is adjusted by PI control to compensate for the new current voltage error.
[0141] If the current interval variable value is 0, it indicates that the current voltage amplification process has ended. At this point, regardless of whether the output voltage has started to rise, it is necessary to exit the current voltage amplification process to prevent over-adjustment. If the sum of the previously saved voltage error and the preset threshold is greater than or equal to the currently saved voltage error, it indicates that the output voltage has started to rise. At this point, it is also necessary to exit the current voltage amplification process.
[0142] At this point, the current voltage error is still greater than the voltage error threshold, and the output voltage has just begun to rise, or may not have even started to rise yet, which may lead to insufficient callback. Therefore, when exiting the voltage amplification process, according to V... err =V1*V in *c transforms the previously calculated first voltage error into a new current voltage error. Then, it applies PI regulation to this current voltage error to obtain a new PI output value and a new output voltage. Where V in *c < 1. That is, when exiting the voltage amplification process, the first voltage error is reduced to its original value of V. in *c times, as the new current voltage error, and perform PI regulation on this new current voltage error.
[0143] Reducing the initial voltage error can lessen the voltage amplification effect. Understandably, this amplification effect is not completely eliminated and will continue to affect the PI output value of the PI regulation in the two cycles after the voltage amplification process is complete.
[0144] As mentioned earlier, the PI controller is based on PI i+1 =PI i +Ka*Verr i+1 -Kb*Verr i The PI output value is calculated based on the voltage error of the current cycle and the voltage error of the previous cycle. Therefore, the PI output value in the current cycle after exiting the voltage amplification process, as well as the PI output value in the next cycle after exiting the voltage amplification process, will still be affected by the amplification effect and continue to be amplified.
[0145] In the PI regulation of the current cycle after exiting voltage amplification processing, the voltage error in this cycle is V of the first voltage error. in*c times, the current PI output value will be affected by the current voltage error, which will also slow down its pullback step value; in the next cycle of PI adjustment after exiting the voltage amplification process, the new voltage error is calculated based on the new output voltage, and the new voltage error is used as the current voltage error, while the previously reduced voltage error is used as the previous voltage error, and the PI output value is calculated again. The PI adjustment in the next cycle will also be affected by the amplification effect.
[0146] By utilizing V err =V1*V in *c reduces the first voltage error to mitigate the voltage amplification effect. This ensures that the PI output value continues to be amplified for two cycles after the voltage amplification process ends, preventing insufficient backoff. Furthermore, due to this reduction factor V... in *c is determined based on the input voltage. In the PI regulation of the next cycle after the voltage amplification process, the larger the input voltage value, the smaller the PI output value, in order to compensate for the voltage overshoot problem caused by excessive input voltage.
[0147] It's important to note that the statement "the larger the input voltage, the smaller the PI output value" refers to the PI output value of the controlled circuit being smaller relative to other input voltage values. It does not mean that the PI output value decreases for the same input voltage. For a fixed input voltage, the PI output value is still amplified. It simply means that the amplification of a PI output value with a larger input voltage is weaker than that with a smaller input voltage.
[0148] Optional, according to V err =V1*V in After transforming the first voltage error into the new current voltage error, *c also includes: saving the current voltage error;
[0149] When the current processing node exits the voltage amplification process, the current interval variable value and voltage error are reset, which may include:
[0150] Reset the current interval variable value to the preset interval variable value;
[0151] Reset the previously saved first voltage error to the current voltage error.
[0152] Because in the previous PI adjustment, the principle of "based on V1 = V" was implemented. err *(k-PI out*a) The step of "amplifying the current voltage error to a first voltage error" is performed, and this first voltage error is also saved. Therefore, when the current processing node exits the voltage amplification process, it is necessary to reset the first voltage error saved in the previous (i.e., the previous PI adjustment cycle) to the current voltage error in the current (i.e., the current PI adjustment cycle) period. This is to ensure that the voltage amplification effect is reduced after the voltage amplification process is completed.
[0153] To make it easier to understand, here's a simple example: In the current round of voltage amplification processing, during the 9th execution of "according to V1 = V..." err *(k-PI out *a) After the voltage amplification process that expands the current voltage error to the first voltage error Verr9, if it is detected that the current interval time is equal to 0, or the sum of the previously saved voltage error Verr8 and the preset threshold is greater than or equal to Verr9, then the current round of voltage amplification processing needs to be exited. When exiting the current round of voltage amplification processing, the first voltage error Verr9 is first reduced to its own V. in *c times, which is used as the new current voltage error Verr9'. Then, the previously saved voltage error Verr8 is reset to the current current voltage error Verr9' to reduce the amplification effect.
[0154] Step 104: Take the adjusted output voltage as the current output voltage, recalculate the current voltage error and execute the subsequent steps until the current voltage error is less than or equal to the voltage error threshold, or the current interval variable value is greater than the first preset value. Then, adjust the current corresponding voltage error with PI to obtain a new PI output value and a new output voltage.
[0155] If the current voltage error exceeds the voltage error threshold, after voltage amplification, the PI controller adjusts the output voltage based on the first voltage error and uses this new output voltage as the current output voltage to recalculate the new current voltage error. If the current voltage error still exceeds the voltage error threshold, the current round of voltage amplification continues. This continues until the sum of the previously saved voltage error and the preset threshold is greater than or equal to the currently saved voltage error, or the current interval variable value is equal to 0, at which point the current round of voltage amplification exits. A drop condition is then used to determine whether to proceed to the next round of voltage amplification. Between two rounds of voltage amplification, the PI controller directly adjusts the current voltage error to control the controlled circuit to output a new PI adjustment value and a new output voltage.
[0156] This invention obtains the current PI output value and current output voltage after PI adjustment in the controlled circuit, and calculates the current voltage error based on the current output voltage and voltage reference value; obtains the current interval variable value; if the current voltage error is greater than the voltage error threshold and the current interval variable value is less than or equal to a first preset value, a voltage amplification operation is performed on the current voltage error based on the PI output value to obtain a first voltage error; the first voltage error is then PI adjusted to obtain a new PI output value and the adjusted output voltage of the controlled circuit; the adjusted output voltage is used as the current output voltage, the current voltage error is recalculated, and subsequent steps are executed until the current voltage error is less than or equal to the voltage error threshold, or the current interval variable value is greater than the first preset value; at this point, the corresponding current voltage error is PI adjusted to obtain a new PI output value and a new output voltage. Specifically, when the current voltage error is greater than the voltage error threshold and the current interval variable value is less than or equal to the first preset value, voltage amplification is performed on the current voltage error based on the PI output value, which can quickly increase the PI output value, thereby increasing the output voltage of the controlled circuit, adjusting the dynamic performance of the controlled circuit, increasing the response speed of the controlled circuit, and improving the stability of the controlled circuit. Furthermore, when determining whether to perform voltage amplification processing, the current interval variable value is introduced as one of the reference conditions to ensure that after the end of one round of voltage amplification processing, the next round of voltage amplification processing will not be entered immediately, thus preventing multiple over-adjustments due to the slow response of the controlled circuit. At the same time, the maximum number of times the voltage amplification processing operation is performed in each round of voltage amplification processing is a first preset value (e.g., 100), which can also prevent over-adjustment.
[0157] Furthermore, when amplifying the current voltage error, a PI output value is introduced to calculate the amplification factor. The smaller the PI output value, the greater the voltage drop; correspondingly, the smaller the PI output value, the greater the amplification factor, thus achieving the effect of a greater voltage drop, a greater amplification factor, and a larger adjustment range. This solves the problem of inconsistent voltage drops due to different input voltages and / or different load conditions before sudden loading, making it impossible to adjust uniformly.
[0158] In addition, when exiting the voltage amplification process, the first voltage error previously calculated during the current PI regulation process will be reduced and used as the current voltage error for PI regulation to slow down the amplification effect. This ensures that the amplification effect of the voltage amplification process is maintained for two PI regulation cycles after the voltage amplification process ends, avoiding the problem of insufficient callback.
[0159] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0160] The following are device embodiments of the present invention. For details not described in detail, please refer to the corresponding method embodiments described above.
[0161] Figure 6 A schematic diagram of the voltage drop regulation device provided in an embodiment of the present invention is shown. For ease of explanation, only the parts related to the embodiment of the present invention are shown, and are described in detail below:
[0162] like Figure 6 As shown, the voltage drop regulation device 6 includes: a calculation module 61, an acquisition module 62, an adjustment module 63, and an update module 64.
[0163] The calculation module 61 is used to obtain the current PI output value and the current output voltage after PI adjustment in the controlled circuit, and to calculate the current voltage error based on the current output voltage and the voltage reference value.
[0164] The acquisition module 62 is used to acquire the current interval variable value. The current interval variable value represents the number of counted cycles between the end of the previous voltage amplification process and the end of the current voltage amplification process.
[0165] The adjustment module 63 is used to perform voltage amplification processing on the current voltage error based on the PI output value when the current voltage error is greater than the voltage error threshold and the current interval variable value is less than or equal to the first preset value, to obtain the first voltage error, and to perform PI adjustment on the first voltage error to obtain a new PI output value and the output voltage of the controlled circuit after adjustment.
[0166] The update module 64 is used to take the adjusted output voltage as the current output voltage, recalculate the current voltage error and execute subsequent steps until the current voltage error is less than or equal to the voltage error threshold, or the current interval variable value is greater than the first preset value. Then, the current corresponding voltage error is PI-adjusted to obtain a new PI output value and a new output voltage.
[0167] In one possible implementation, the acquisition module 62 is used to start a countdown counter after the previous round of voltage amplification processing is completed, and the value of the countdown counter is set to a preset interval variable value.
[0168] The acquisition module 62 is also used to acquire the value of the current countdown counter.
[0169] In one possible implementation, module 62 is used to detect whether the current interval variable value is greater than a first preset value.
[0170] The acquisition module 62 is also used to count down the current interval variable value if the current interval variable value is greater than the first preset value.
[0171] The acquisition module 62 is also used to pause the countdown if the current interval variable value is less than or equal to the first preset value.
[0172] In one possible implementation, the adjustment module 63 is used to detect whether the current loop is in a voltage loop.
[0173] The adjustment module 63 is also used to obtain a new PI output value and a new output voltage after PI adjustment of the current voltage error if the current loop is not in the voltage loop.
[0174] The adjustment module 63 is also used to detect whether the current voltage error is greater than the voltage error threshold when the current loop is in the voltage loop, and to obtain the current interval variable value and detect whether the current interval variable value is less than or equal to the first preset value.
[0175] In one possible implementation, the adjustment module 63 is used to store the current voltage error; the adjustment module 63 is also used to store the first voltage error.
[0176] The adjustment module 63 is further configured to detect whether the sum of the previously saved voltage error and the preset threshold is greater than or equal to the currently saved voltage error if the current voltage error is greater than the voltage error threshold and the current interval variable value is greater than the first preset value, or if the current voltage error is less than or equal to the voltage error threshold and the current interval variable value is greater than the first preset value, or if the current voltage error is less than or equal to the voltage error threshold and the current interval variable value is less than or equal to the first preset value. The voltage error includes the current voltage error or the first voltage error.
[0177] The adjustment module 63 is also used to reset the current interval variable value and voltage error if the sum of the previously saved voltage error and the preset threshold is greater than or equal to the voltage error saved this time.
[0178] The adjustment module 63 is also used to adjust the current voltage error using a PI regulator before outputting the voltage.
[0179] In one possible implementation, the adjustment module 63 is used to adjust the current voltage error using a PI method and then output the voltage if the sum of the previously saved voltage error and a preset threshold is less than the voltage error saved this time.
[0180] In one possible implementation, the adjustment module 63 is used to save the current PI output value if the current voltage error is greater than the voltage error threshold and the current interval variable value is equal to the first preset value.
[0181] The adjustment module 63 is also used to continue counting down the current interval variable value.
[0182] Adjustment module 63 is also used to adjust according to V1 = Verr *(k-PI out *a) Expand the current voltage error to a first voltage error; where V1 represents the first voltage error, V err Indicates the current voltage error, PI out This represents the saved PI output value, where k and a represent the first and second amplification factors, respectively.
[0183] In one possible implementation, the adjustment module 63 is used to detect whether the current interval variable value is equal to 0, or to detect whether the sum of the previously saved voltage error and the preset threshold is greater than or equal to the voltage error saved this time.
[0184] The adjustment module 63 is also used to perform PI adjustment on the first voltage error to obtain a new PI output value and the output voltage of the controlled circuit after adjustment when the current interval variable value is greater than 0 and the sum of the previously saved voltage error and the preset threshold is less than the current voltage error.
[0185] In one possible implementation, the adjustment module 63 is used to jump to the "continue counting down the current interval variable value" step and continue to execute subsequent steps if the current voltage error is greater than the voltage error threshold and the current interval variable value is less than the first preset value.
[0186] In one possible implementation, the adjustment module 63 is configured to, if the current interval variable value is equal to 0, or the sum of the previously saved voltage error and a preset threshold is greater than or equal to the currently saved voltage error, adjust the voltage adjustment module according to V. err =V1*V in *c transforms the first voltage error into a new current voltage error; where, V err V represents the current voltage error, V1 represents the first voltage error, V in represents the input voltage value, and c represents the transformation coefficient.
[0187] The adjustment module 63 is also used to reset the current interval variable value and voltage error.
[0188] The adjustment module 63 is also used to output the voltage after PI adjustment of the new current voltage error.
[0189] In one possible implementation, adjustment module 63 is used to reset the current interval variable value to a preset interval variable value.
[0190] The adjustment module 63 is also used to reset the previously saved first voltage error or the previously saved current voltage error to the current voltage error.
[0191] In this embodiment of the invention, a calculation module 61 is used to obtain the current PI output value and the current output voltage after PI adjustment in the controlled circuit, and to calculate the current voltage error based on the current output voltage and the voltage reference value; an acquisition module 62 is used to obtain the current interval variable value; an adjustment module 63 is used to perform voltage amplification processing on the current voltage error based on the PI output value when the current voltage error is greater than the voltage error threshold and the current interval variable value is less than or equal to a first preset value, to obtain a first voltage error, and to perform PI adjustment on the first voltage error to obtain a new PI output value and the adjusted output voltage of the controlled circuit; an update module 64 is used to use the adjusted output voltage as the current output voltage to recalculate the current voltage error and execute subsequent steps until the current voltage error is less than or equal to the voltage error threshold, or the current interval variable value is greater than the first preset value, and then to perform PI adjustment on the corresponding current voltage error to obtain a new PI output value and a new output voltage. Specifically, when the current voltage error is greater than the voltage error threshold and the current interval variable value is less than or equal to the first preset value, the adjustment module 63 performs voltage amplification processing on the current voltage error, which can quickly increase the PI output value, thereby increasing the output voltage of the controlled circuit. Furthermore, when determining whether to perform voltage amplification processing, the adjustment module 63 introduces the current interval variable value as one of the reference conditions to ensure that after the end of one round of voltage amplification processing, it will not immediately enter the next round of voltage amplification processing. At the same time, the adjustment module 63 performs voltage amplification processing operations a maximum of a first preset value (e.g., 100) during each round of voltage amplification processing, which can prevent over-adjustment.
[0192] When amplifying the current voltage error, the adjustment module 63 introduces a PI output value to calculate the amplification factor. The smaller the PI output value, the larger the amplification factor, thus achieving a greater drop and a larger amplification factor, resulting in a larger adjustment range. Furthermore, when exiting the voltage amplification process, the adjustment module 63 also reduces the previously calculated first voltage error during this PI adjustment process as the current voltage error for further PI adjustment to mitigate the amplification effect. This ensures that the amplification effect of the voltage amplification process is maintained for two PI adjustment cycles after the voltage amplification process ends, avoiding insufficient correction.
[0193] Figure 7 This is a schematic diagram of an electronic device provided in an embodiment of the present invention. For example... Figure 7 As shown, the electronic device 7 of this embodiment includes: a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and executable on the processor 70. When the processor 70 executes the computer program 72, it implements the steps in the various voltage drop method embodiments described above, for example... Figure 1Steps 101 to 104 are shown. Alternatively, when the processor 70 executes the computer program 72, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 6 The functions of modules 61 to 64 are shown.
[0194] For example, the computer program 72 can be divided into one or more modules / units, which are stored in the memory 71 and executed by the processor 70 to complete the present invention. The one or more modules / units can be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program 72 in the electronic device 7. For example, the computer program 72 can be divided into... Figure 6 Modules 61 to 64 are shown.
[0195] The electronic device 7 can be a desktop computer, laptop, handheld computer, cloud server, or other computing device. The electronic device 7 may include, but is not limited to, a processor 70 and a memory 71. Those skilled in the art will understand that... Figure 7 This is merely an example of electronic device 7 and does not constitute a limitation on electronic device 7. It may include more or fewer components than shown, or combine certain components, or different components. For example, the electronic device may also include input / output devices, network access devices, buses, etc.
[0196] The processor 70 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0197] The memory 71 can be an internal storage unit of the electronic device 7, such as a hard disk or memory. The memory 71 can also be an external storage device of the electronic device 7, such as a plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, etc., equipped on the electronic device 7. Furthermore, the memory 71 can include both internal and external storage units of the electronic device 7. The memory 71 is used to store the computer program and other programs and data required by the electronic device. The memory 71 can also be used to temporarily store data that has been output or will be output.
[0198] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0199] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0200] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0201] In the embodiments provided by this invention, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0202] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0203] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0204] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various voltage drop regulation method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A voltage drop regulation method, characterized in that, include: Obtain the current PI output value and the current output voltage after PI adjustment in the controlled circuit, and calculate the current voltage error based on the current output voltage and the voltage reference value; Obtain the current interval variable value; the current interval variable value represents the number of any counted cycles between the end of the previous voltage amplification process and the end of the current voltage amplification process. If the current voltage error is greater than the voltage error threshold and the current interval variable value is less than or equal to the first preset value, the current voltage error is amplified based on the PI output value to obtain the first voltage error. The first voltage error is then PI-adjusted to obtain a new PI output value and the adjusted output voltage of the controlled circuit. The adjusted output voltage is used as the current output voltage. The current voltage error is recalculated and subsequent steps are executed until the current voltage error is less than or equal to the voltage error threshold, or the current interval variable value is greater than the first preset value. Then, the current corresponding voltage error is PI-adjusted to obtain a new PI output value and a new output voltage.
2. The voltage drop regulation method according to claim 1, characterized in that, The step of obtaining the current interval variable value includes: After the previous round of voltage amplification processing is completed, a countdown counter is started, and the value of the countdown counter is set to a preset interval variable value; Get the current countdown value; After obtaining the current interval variable value, the process also includes: Check if the current interval variable value is greater than the first preset value; If the current interval variable value is greater than the first preset value, count down the current interval variable value.
3. The voltage drop regulation method according to claim 1, characterized in that, After obtaining the current interval variable value, the process also includes: If the current interval variable value is less than or equal to the first preset value, pause the countdown.
4. The voltage drop regulation method according to claim 2, characterized in that, After counting down the current interval variable value when it is greater than the first preset value, and after pausing the countdown when the current interval variable value is less than or equal to the first preset value, the method further includes: Detect whether the current loop is in a voltage loop; If the current loop is not in the voltage loop, the current voltage error is adjusted by PI to obtain a new PI output value and a new output voltage. If the current loop is in the voltage loop, detect whether the current voltage error is greater than the voltage error threshold, obtain the current interval variable value, and detect whether the current interval variable value is less than or equal to the first preset value.
5. The voltage drop regulation method according to claim 4, characterized in that, After calculating the current voltage error based on the current output voltage and the voltage reference value, the method further includes: saving the current voltage error; After performing voltage amplification processing on the current voltage error based on the PI output value to obtain the first voltage error, the method further includes: saving the first voltage error; After detecting whether the current voltage error is greater than the voltage error threshold, obtaining the current interval variable value, and detecting whether the current interval variable value is less than or equal to a first preset value, the method further includes: If the current voltage error is greater than the voltage error threshold and the current interval variable value is greater than the first preset value, or if the current voltage error is less than or equal to the voltage error threshold and the current interval variable value is greater than the first preset value, or if the current voltage error is less than or equal to the voltage error threshold and the current interval variable value is less than or equal to the first preset value, then check whether the sum of the previously saved voltage error and the preset threshold is greater than or equal to the currently saved voltage error; the voltage error includes: the current voltage error or the first voltage error; If the sum of the previously saved voltage error and the preset threshold is greater than or equal to the voltage error saved this time, the current interval variable value and voltage error will be reset. The output voltage is adjusted by PI control of the current voltage error.
6. The voltage drop regulation method according to claim 5, characterized in that, After determining whether the sum of the previously saved voltage error and the preset threshold is greater than the voltage error saved this time, the method further includes: If the sum of the previously saved voltage error and the preset threshold is less than the voltage error saved this time, the current voltage error is adjusted using a PI controller before the output voltage is adjusted.
7. The voltage drop regulation method according to claim 5, characterized in that, Based on the PI output value, the current voltage error is amplified to obtain a first voltage error, including: If the current voltage error is greater than the voltage error threshold and the current interval variable value is equal to the first preset value, save the current PI output value; Continue counting down from the current interval variable value; according to The current voltage error is expanded to the first voltage error; wherein... Indicates the first voltage error. Indicates the current voltage error. This indicates the saved PI output value. and These represent the first magnification factor and the second magnification factor, respectively. The step of performing PI adjustment on the first voltage error to obtain a new PI output value and the adjusted output voltage of the controlled circuit includes: Check whether the current interval variable value is equal to 0, or check whether the sum of the previously saved voltage error and the preset threshold is greater than or equal to the voltage error saved this time; If the current interval variable value is greater than 0, and the sum of the previously saved voltage error and the preset threshold is less than the voltage error saved this time, the first voltage error is PI-adjusted to obtain a new PI output value and the output voltage of the controlled circuit after adjustment.
8. The voltage drop regulation method according to claim 7, characterized in that, Based on the PI output value, the current voltage error is amplified to obtain a first voltage error, and the process further includes: If the current voltage error is greater than the voltage error threshold and the current interval variable value is less than the first preset value, jump to the "continue counting down for the current interval variable value" step and continue to execute the subsequent steps.
9. The voltage drop regulation method according to claim 7 or 8, characterized in that, After detecting whether the current interval variable value is equal to 0, or detecting whether the sum of the previously saved voltage error and a preset threshold is greater than or equal to the currently saved voltage error, the method further includes: If the current interval variable value is equal to 0, or if the sum of the previously saved voltage error and the preset threshold is greater than or equal to the voltage error saved this time, then according to... The first voltage error is transformed into a new current voltage error; wherein... Indicates the current voltage error. Indicates the first voltage error. Indicates the input voltage value. Represents the transformation coefficients; Reset the current interval variable value and voltage error; The output voltage is adjusted by PI control of the new current voltage error.
10. The voltage drop regulation method according to claim 9, characterized in that, According to the After transforming the first voltage error into a new current voltage error, the method further includes: saving the current voltage error; The process of resetting the current interval variable value and voltage error includes: Reset the current interval variable value to the preset interval variable value; Reset the previously saved first voltage error or the previously saved current voltage error to the current voltage error.