Slope compensation method and device of converter and converter
By calculating and adjusting the slope compensation slope using the sampling values of inductor current and duty cycle in the converter, the subharmonic oscillation problem of peak current control mode at high duty cycle is solved, and low-cost adaptive slope compensation is achieved.
Patent Information
- Application Number
- CN202411815285.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2044-12-11
AI Technical Summary
The peak current control mode will experience subharmonic oscillation at high duty cycles, and the existing methods require additional monitoring circuits and increase circuit costs.
By obtaining the inductor current of the target inductor output at the converter in the n-1th period and the duty cycle of the target switching tube at the input end in the n-1th period, calculate the slope of the inductor current dropping in the n-1th period as the slope compensation slope of the n-1th period, and adjust the slope compensation slope according to the predicted duty cycle difference value to achieve slope compensation.
Without adding additional detection circuits, the slope compensation slope is accurately detected and adjusted, reducing circuit costs and reducing subharmonic oscillation.
Smart Images

Figure CN119298678B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of electronic technology, and in particular relates to a slope compensation method and device of a converter, and a converter. Background Art
[0002] With the development of new energy technologies, the demand for high-power, small-volume, and wide-range power products is increasing. Among them, in the development and control of DC-DC converter products, the peak current control mode is widely used due to its advantages such as fast response speed and simple control. However, the peak current control mode will cause subharmonic oscillation at high duty cycles.
[0003] At present, in order to solve the problem of subharmonic oscillation in the peak current control mode at high duty cycle, an adaptive slope compensation method is proposed. This method mainly adjusts the slope compensation slope according to the real-time working conditions through an additional inductor current slope or duty cycle sampling circuit.
[0004] However, the current method requires additional monitoring circuits, which results in high circuit costs. Summary of the invention
[0005] The embodiments of the present invention provide a slope compensation method, device and converter for a converter, which can detect an accurate slope compensation slope without adding an additional monitoring circuit, thereby reducing circuit costs.
[0006] In a first aspect, an embodiment of the present invention provides a slope compensation method for a converter, comprising:
[0007] Obtaining the inductor current of the target inductor connected to the output end of the converter in the n-1th cycle and the duty cycle of the target switch connected to the input end of the converter in the n-1th cycle, where n is a positive integer greater than 2;
[0008] Determine, according to the inductor current and the duty cycle, a falling slope of the inductor current in the (n-1)th cycle as a slope compensation slope in the (n)th cycle;
[0009] Predicting the duty cycle of the target switch tube in the nth cycle according to the slope compensation slope of the nth cycle;
[0010] Adjusting the slope compensation slope of the nth cycle according to the difference between the predicted duty cycle of the target switch tube in the nth cycle and the duty cycle of the n-1th cycle;
[0011] The inductor current is slope compensated according to the slope compensation slope.
[0012] In a second aspect, an embodiment of the present invention provides a slope compensation device for a converter, comprising:
[0013] A data acquisition module, used to acquire the inductor current of the target inductor connected to the converter output terminal in the n-1th cycle and the duty cycle of the target switch connected to the converter input terminal in the n-1th cycle, where n is a positive integer greater than 1;
[0014] A slope compensation slope initial value determination module, used to determine the falling slope of the inductor current in the n-1th cycle according to the inductor current and the duty cycle, as the slope compensation slope of the nth cycle;
[0015] A duty cycle prediction module, used to predict the duty cycle of the target switch tube in the nth cycle according to the slope compensation slope of the nth cycle;
[0016] A slope determination module, used for adjusting the slope compensation slope of the nth cycle according to the difference between the predicted duty cycle of the target switch tube in the nth cycle and the duty cycle of the n-1th cycle;
[0017] The slope compensation module is used to perform slope compensation on the inductor current according to the slope compensation slope.
[0018] In a third aspect, an embodiment of the present invention provides a converter, wherein the converter is used to implement the method as described above.
[0019] The slope compensation method, device and converter of the converter according to the embodiments of the present invention can directly use the sampled values of the inductor current of the target inductor and the duty cycle of the target switch tube in the converter to complete the calculation of the slope compensation slope. There is no need to add an additional auxiliary sampling circuit to calculate the slope compensation slope, thereby reducing the circuit cost of the converter slope compensation. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the following is a brief introduction to the drawings required for use in the embodiment of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0021] Figure 1 A schematic diagram of a topological structure of a converter is provided for an embodiment of the present application;
[0022] Figure 2 A schematic diagram of a flow chart of a slope compensation method provided in an embodiment of the present application;
[0023] Figure 3 A waveform diagram of a carrier wave, an inductor current and a duty cycle provided in an embodiment of the present application;
[0024] Figure 4 A schematic diagram of a method for determining an initial value of a slope compensation slope provided in an embodiment of the present application;
[0025] Figure 5 A schematic diagram of a method for determining a duty cycle according to an embodiment of the present application;
[0026] Figure 6 A flow chart of a method for determining a slope compensation slope under dynamic conditions provided in an embodiment of the present application;
[0027] Figure 7 A schematic diagram of a flow chart of an adaptive slope compensation control method provided in an embodiment of the present application;
[0028] Figure 8 Actual simulation waveforms of existing fixed slope compensation and adaptive slope compensation provided by embodiments of the present application;
[0029] Fig. 9 A schematic diagram of the structure of a slope compensation device provided in an embodiment of the present application;
[0030] Fig.10 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present invention, rather than to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.
[0032] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0033] With the development of new energy technologies, the demand for high-power, small-volume, and wide-range power products is increasing. According to the input and output characteristics of power products, power products can be divided into three types: AC-DC converters, DC-DC converters, and DC-AC converters. Among them, in the development and control of DC-DC converter products, the peak current control mode is widely used due to its advantages such as fast response speed and simple control. However, the peak current control mode will produce subharmonic oscillations at high duty cycles. Although the introduction of slope compensation can solve this problem, setting the slope compensation slope too large will affect the dynamic response capability of the control system, and setting the slope too small will cause the oscillation to converge too slowly, causing problems such as magnetic component bias.
[0034] At present, the slope compensation methods are mainly divided into three categories: ① Fixed slope compensation. Due to the fixed slope compensation slope, this method may have over-compensation or under-compensation problems under different load conditions and dynamic load switching conditions. Over-compensation will affect the dynamic response capability of the control system, while under-compensation requires more switching cycles to correct subharmonic oscillations, which may cause problems such as transformer magnetic saturation in practical applications. ② Segmented slope compensation. This method is divided into three sections according to the size of the duty cycle. Each section uses a different slope compensation slope to reduce the negative impact of the fixed slope compensation slope on different working conditions. However, segmented slope compensation still has the problem of over-compensation and under-compensation under certain working conditions. ③ Adaptive slope compensation. This method can adaptively adjust the slope compensation slope according to the real-time working conditions. It is divided into two specific methods: Method (1) According to the steady-state volt-second balance formula, the relationship between the input voltage, output voltage and the falling slope of the inductor current can be inferred. Based on this, the adaptive slope compensation slope is calculated according to the real-time collected input voltage and output voltage to make it as close to the actual working conditions as possible. However, there is an error between the inductor current slope calculated based on the volt-second balance in steady state and the steady-state slope of the actual circuit. Method (2) uses an additional inductor current slope or duty cycle sampling circuit to adjust the slope compensation slope according to the real-time working conditions. However, an additional detection circuit needs to be added, which increases the control cost. In addition, whether it is method (1) or method (2), the adaptive slope compensation does not perform targeted optimization for dynamic working conditions.
[0035] In order to solve the above problems, the embodiment of the present application is based on digital control technology, and proposes an accurate and low-cost adaptive slope compensation control scheme without adding additional detection circuits. At the same time, the scheme is optimized for dynamic working conditions based on the existing slope compensation, which can not only provide more accurate slope compensation in steady state, but also actively adjust the slope compensation slope in dynamic state to avoid sudden changes in duty cycle. In addition, in view of the problem that the primary side drive of the peak current controlled hard-switched full-bridge DC-DC converter will have abnormal large and small waves in dynamic state, leading to saturation of the transformer core, this scheme can actively adjust the slope compensation slope according to the sampled data to avoid the occurrence of large and small waves.
[0036] The technical solution of the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0037] In order to facilitate the understanding of the present solution, the circuit structure of the converter provided in the embodiment of the present application is first introduced. Figure 1 A topological structure diagram of a converter is provided for an embodiment of the present application, and the converter may be a hard-switched full-bridge DC-DC converter. Figure 1 As shown, in order to cooperate with the calculation of the adaptive slope compensation slope, it is necessary to collect the inductor current of the target inductor L1 and the driving duty cycle of the target switch tube Q1. Among them, the switch tubes Q1-Q4 are primary side switch tubes, the switch tubes Q5 and Q6 are secondary side rectifier tubes, and the switch tubes Q7 and Q8 are active absorption tubes of the secondary side rectifier switch tubes.
[0038] Figure 2 Schematic diagram of the flow of the slope compensation method provided in the embodiment of the present application, which method can be specifically applied to the above converter. Figure 2 As shown, the method may specifically include the following steps:
[0039] Step S210: obtaining the inductor current of the target inductor connected to the output end of the converter in the n-1th cycle and the duty cycle of the target switch connected to the input end of the converter in the n-1th cycle.
[0040] Where n is a positive integer greater than 1. The target inductance is the above Figure 1 The inductor L1 in the target switch is the above Figure 1 The primary switch tube Q1 in.
[0041] In this embodiment, when obtaining the inductor current of the target inductor in the n-1th cycle, it can be sampled through analog-to-digital conversion (ADC). Figure 3The waveform diagram of the carrier, inductor current and duty cycle provided in the embodiment of the present application is as follows: Figure 3 As shown, the inductor current can be sampled when the carrier count value is zero and the preset period value, thereby obtaining three sampling points, and the three inductor currents are sampled at these three sampling points respectively. , inductor current and the inductor current In addition, when the carrier count value is zero, the duty cycle of the previous cycle can be captured by an enhanced capture accumulator peripheral (ECAP). .
[0042] Among them, the ECAP function is a module used for digital signal processing (DSP), which can capture and record certain characteristics of the input signal, such as frequency, period or duty cycle.
[0043] Among them, is called the inductor current in the first half of the n-1th cycle, is called the inductor current in the second half of the n-1th cycle. It is called the inductor current in the first half of the nth cycle, that is:
[0044] = Formula (1)
[0045] In this embodiment, is the valley value of the inductor current, which corresponds to the sampling point where the carrier count value is equal to 0. The n-1th cycle can be understood as the previous cycle, and correspondingly, the nth cycle can be understood as the current cycle.
[0046] Exemplarily, the sampling point can be adjusted, for example, it can be reasonably adjusted according to the sampling speed and chip calculation speed in actual application.
[0047] For example, the preset period value in this embodiment may refer to the period value of the carrier. Figure 3 , starting when the carrier value is 0 and ending when the carrier value is 0 next time, as a preset period value.
[0048] Step S220: determining the falling slope of the inductor current in the first half of the cycle in the (n-1)th cycle according to the inductor current and the duty cycle as the slope compensation slope in the first half of the cycle in the nth cycle.
[0049] In this embodiment, the inductor current falling slope of the first half of the n-1th cycle can be calculated according to the sampling data of the n-1th cycle and the n-1th cycle as the slope compensation slope of the first half of the n-1th cycle. The sampling data at least includes the inductor current of the n-1th cycle and the duty cycle of the n-1th cycle mentioned above.
[0050] When calculating the decreasing slope of the inductor current in the n-1th cycle, the peak current can be calculated first:
[0051] Formula (2)
[0052] In the above formula (2), It represents the peak current of the first half cycle in the n-1th cycle; is the loop control value of the n-1th cycle. This value is the intermediate value of digital control and can be called directly. It represents the slope compensation slope of the first half of the n-1th cycle; is the duty cycle of the first half of the cycle in the n-1th cycle, which is obtained by sampling in the nth cycle; Indicates the switching cycle (i.e. the preset cycle value). Among them, the loop control quantity is the intermediate quantity of the closed-loop control and does not need to be sampled separately and can be used directly.
[0053] Furthermore, after the peak current is calculated, the calculation of the slope compensation slope of the first half cycle in the nth cycle can be specifically divided into the following two cases:
[0054] (1) Under non-dynamic conditions, and Using the same descending slope:
[0055] Formula (3-1)
[0056] (2) Under dynamic conditions, due to the When the inductor current is equal to 0, the calculation formula of the inductor current falling slope needs to be adjusted accordingly:
[0057] Formula (3-2)
[0058] in, Formula (4)
[0059] In the above formula, is the slope compensation slope of the first half of the nth cycle; is the slope compensation slope of the second half of the nth cycle; , , Represents the inductor current in the n-1th cycle.
[0060] In this embodiment, the slope compensation slope of the nth cycle calculated by the above formula (2) to formula (4) is based on the assumption that the decreasing slopes of the inductor currents in adjacent cycles in the non-dynamic stage are approximately equal, and cannot be directly used as the slope compensation slope in the dynamic stage for slope compensation.
[0061] Step S230: predicting the duty cycle of the target switch tube in the first half of the nth cycle according to the slope compensation slope in the first half of the nth cycle.
[0062] In this embodiment, since the rising slopes of the inductor currents in two adjacent cycles are approximately equal in the dynamic or non-dynamic stage, the rising slope of the inductor current in the n-1th cycle can be calculated through the above-mentioned sampling data and loop output, and then the duty cycle of the next cycle can be predicted based on the rising slope of the inductor current in the n-1th cycle.
[0063] Step S240: adjusting the slope compensation slope of the nth cycle according to the difference between the duty cycle of the target switch tube in the first half of the nth cycle and the duty cycle of the first half of the (n-1)th cycle.
[0064] In this embodiment, by comparing the difference between the duty cycle of the first half of the nth cycle and the duty cycle of the first half of the n-1th cycle, it can be determined whether the current working condition is non-dynamic or dynamic. In different working conditions, the slope compensation slope is obtained in different ways.
[0065] For example, continue to refer to the above Figure 3 , when in non-dynamic working condition, the falling slope of the inductor current in the first half of the cycle in the n-1th cycle can be directly used as the slope compensation slope of the nth cycle to perform slope compensation control. Exemplarily, when in dynamic working condition, the slope compensation slope of the nth cycle can be determined based on the peak current in the first half of the cycle in the nth cycle, the falling slope and the rising slope of the inductor current in the first half of the cycle in the n-1th cycle, the duty cycle in the first half of the cycle in the nth cycle, and the preset cycle value.
[0066] In this embodiment, when the difference between the predicted duty cycle of the current cycle and the duty cycle of the previous cycle exceeds a certain value, it is considered to enter the dynamic stage, otherwise it is considered to be in the non-dynamic stage. In actual engineering applications, the judgment condition of the dynamic working condition can be determined by the loop output and the predicted duty cycle.
[0067] Step S250: performing slope compensation on the inductor current according to the adjusted slope compensation slope of the nth cycle.
[0068] In this embodiment, after the slope compensation slope is determined, slope compensation can be adaptively performed according to the slope compensation slope to achieve duty cycle control and smooth dynamic switching of the system, thereby improving the dynamic response capability of the system while ensuring the stability of the system.
[0069] In the embodiment of the present application, the slope compensation slope of the inductor current is calculated by using the inductor current, duty cycle, falling slope, rising slope, and loop control quantity. This method only needs to directly collect the inductor current and duty cycle, and the other values are all control intermediate quantities. The inductor current needs to be sampled in normal peak current control, and the duty cycle can be obtained through the ECAP function of the DSP without the need for an additional sampling circuit, thereby reducing the control cost of the adaptive slope compensation to a certain extent.
[0070] How to obtain the slope compensation slope is described in detail below through some embodiments.
[0071] Figure 4 A schematic diagram of a method for determining an initial value of a slope compensation slope provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, it includes the following steps:
[0072] Step S410: determining the peak current of the target inductor in the first half of the cycle in the (n-1)th cycle.
[0073] Step S420: when the duty cycle of the first half of the cycle in the n-1th cycle is greater than zero, the falling slope of the inductor current in the first half of the cycle in the n-1th cycle is determined according to the peak current, the inductor current in the second half of the cycle in the n-1th cycle, the preset cycle value and the duty cycle of the first half of the cycle in the n-1th cycle as the slope compensation slope of the first half of the cycle in the n-1th cycle.
[0074] Step S430: when the duty cycle of the first half of the n-1th cycle is zero, the falling slope of the inductor current in the first half of the n-1th cycle is determined according to the inductor current in the second half of the n-1th cycle, the inductor current in the first half of the n-1th cycle and the preset cycle value, as the slope compensation slope of the first half of the n-1th cycle.
[0075] Step S440: using the falling slope of the inductor current in the first half of the cycle in the (n-1)th cycle as the slope compensation slope in the first half of the cycle in the nth cycle.
[0076] Step S450: using the slope compensation slope of the first half of the nth cycle as the slope compensation slope of the second half of the nth cycle.
[0077] In which, for step S410, illustratively, the peak current can be determined in the following two ways:
[0078] Method (1) During the slope compensation process, the peak current of the target inductor within the cycle can be determined by continuously collecting the change of the inductor current within a cycle.
[0079] Method (2) determines the decreasing slope of the inductor current in the first half of the n-2 cycle according to the inductor current in the second half of the n-2 cycle, the peak current in the first half of the n-2 cycle, the preset cycle value and the duty cycle of the n-2 cycle, and then uses the decreasing slope of the inductor current in the first half of the n-2 cycle as the slope compensation slope of the first half of the n-1 cycle; and then determines the peak current in the first half of the n-1 cycle based on the loop control amount of the n-1 cycle, the slope compensation slope of the first half of the n-1 cycle, the duty cycle of the first half of the n-1 cycle and the preset cycle value.
[0080] For method (2), for example, the above formula (2) can be used to calculate the following: , as the peak current of the first half of the cycle in the n-1th cycle. The peak current is calculated by the above formula (2), and no additional detection circuit is required, thereby reducing the control cost of the adaptive slope compensation to a certain extent.
[0081] For step S420, the falling slope of the inductor current in the first half of the (n-1)th cycle can be calculated by the above formula (3-1).
[0082] Among them, formula (3-1) Indicates the switching cycle, that is, the preset cycle value. Related to the carrier period, by adjusting the carrier period, you can set different , the decreasing slope of the inductor current in the first half of the n-1th cycle under different carrier cycles is calculated.
[0083] For example, assuming =T1, then the decreasing slope of the inductor current in the first half of the n-1th cycle can be calculated as follows:
[0084]
[0085] For example, assuming =T2, then the decreasing slope of the inductor current in the first half of the n-1th cycle can be calculated as follows:
[0086]
[0087] For step S430, the falling slope of the inductor current in the first half of the n-1th cycle can be calculated by the above formula (3-2). , the decreasing slope of the inductor current in the first half of the n-1th cycle under different carrier cycles is calculated.
[0088] For step S440 and step S450, the value calculated by the above formula (3-1) or formula (3-2) is Afterwards, due to non-dynamic conditions, and The same slope compensation slope is used, which can make , thus obtaining the slope compensation slope of the first half of the nth cycle and the slope compensation slope of the second half of the nth cycle .
[0089] In the embodiment of the present application, when the difference between the predicted duty cycle of the nth cycle and the duty cycle of the n-1th cycle is less than the first threshold, the slope compensation slope of the nth cycle can be directly used for slope compensation, which is equivalent to using only the inductor current, duty cycle, downslope, and loop control quantity to calculate the slope compensation slope. The entire calculation process only needs to collect the inductor current and duty cycle as inputs, and the other values are all controlled intermediate quantities, so no additional sampling circuit is required, thereby reducing the control cost of adaptive slope compensation to a certain extent.
[0090] Figure 5 A schematic diagram of a method for determining a duty cycle according to an embodiment of the present application is shown in FIG. Figure 5 As shown, it includes the following steps:
[0091] Step S510: when the duty cycle of the first half cycle in the n-1th cycle is not equal to zero, the rising slope of the inductor current in the first half cycle in the n-1th cycle is determined according to the peak current in the first half cycle in the n-1th cycle, the inductor current in the first half cycle in the n-1th cycle, the duty cycle in the first half cycle in the n-1th cycle and the preset cycle value.
[0092] Step S520: when the duty cycle of the first half of the n-1th cycle is zero, the rising slope of the inductor current recorded before the n-1th cycle when the duty cycle is non-zero is used as the rising slope of the inductor current in the n-1th cycle.
[0093] Step S530: predicting the duty cycle of the first half of the nth cycle according to the loop control amount of the nth cycle, the inductor current of the first half of the nth cycle, the rising slope of the inductor current of the first half of the n-1th cycle, the slope compensation slope of the first half of the nth cycle and the preset cycle value, and using the predicted value as the duty cycle of the first half of the nth cycle.
[0094] In this embodiment, the calculation of the predicted duty cycle predicts the driving duty cycle of the next switching cycle according to the rule that the rising slopes of the inductor current in adjacent control cycles are approximately equal, so as to distinguish between dynamic and non-dynamic working conditions. The prediction formula is as follows:
[0095] Formula (5)
[0096] In the above formula, represents the loop control quantity of the nth cycle, represents the predicted duty cycle of the first half of the nth cycle, It represents the rising slope of the inductor current in the first half of the (n-1)th cycle.
[0097] Among them, formula (5) can be deduced to obtain the following formula:
[0098] Formula (6)
[0099] In this embodiment, When the values are different, there are different calculation methods for the rising slope of the inductor current in the first half of the cycle in the (n-1)th cycle.
[0100] For step S510, when the duty cycle of the first half of the cycle in the n-1th cycle is not equal to zero, that is, When ≠0, the rising slope of the inductor current in the first half of the n-1th cycle can be calculated by the following formula: :
[0101] Formula (7-1)
[0102] For step S520, when the duty cycle of the first half of the cycle in the n-1th cycle is equal to zero, that is, =0, the rising slope of the inductor current in the first half of the n-1th cycle can be calculated by the following formula: :
[0103] (Formula 7-2)
[0104] In the above formula, It represents the rising slope of the inductor current recorded when the duty cycle was non-zero before the n-1th cycle.
[0105] For step S530, after calculating the rising slope of the inductor current in the first half of the n-1th cycle, After that, the duty cycle of the first half of the nth cycle can be calculated by the above formula (6): , as the duty cycle of the nth cycle.
[0106] In the embodiment of the present application, by predicting the duty cycle of the next cycle, it can assist in judging whether the current operating condition is a dynamic condition or a non-dynamic condition, thereby facilitating better subsequent dynamic and non-dynamic adaptive slope compensation control and improving the slope compensation control effect.
[0107] After the duty cycle of the nth cycle is calculated, the difference between the duty cycle of the current cycle and the duty cycle of the previous cycle can be compared to determine whether it is a dynamic condition or a non-dynamic condition. In some embodiments, when it is in a non-dynamic condition, the slope compensation slope of the nth cycle calculated in the original step S220 can be directly used to perform adaptive slope compensation control.
[0108] Exemplarily, the first threshold value may be configured first, and then the duty cycle of the first half of the cycle in the nth cycle is subtracted from the duty cycle of the first half of the cycle in the n-1th cycle to obtain a first difference, and the first difference is compared with the configured first threshold value. Wherein, when the first difference is less than the first threshold value, it is determined to be a non-dynamic operating condition. In other embodiments, the duty cycle of the first half of the cycle in the n-1th cycle may be subtracted from the duty cycle of the first half of the cycle in the nth cycle to obtain a second difference, and the second difference is compared with the configured first threshold value. Wherein, when the second difference is less than the first threshold value, it is determined to be a non-dynamic operating condition.
[0109] Furthermore, when the first difference is greater than the first threshold, it is determined that the system has entered the dynamic working state. Furthermore, a second threshold can be configured (the second threshold is greater than the first threshold). When the difference between the duty cycle of the first half of the cycle in the nth cycle and the duty cycle of the first half of the cycle in the n-1th cycle is greater than the first threshold and less than the second threshold, the duty cycle of the nth cycle can be adjusted. and The size of and Approximation (i.e., the duty cycle of the first half of the nth cycle is close to the duty cycle of the second half of the nth cycle) is used to avoid the problem of transformer core saturation caused by large and small waves. When the difference between the duty cycle of the first half of the nth cycle and the duty cycle of the first half of the n-1th cycle is greater than the second threshold or less than the negative second threshold, the duty cycle of the first half of the n-1th cycle is increased or decreased by a fixed step size as the size of the expected duty cycle of the first half of the nth cycle, and the adaptive slope compensation slope is calculated accordingly. and , in order to achieve smooth switching of duty cycles between adjacent cycles under dynamic conditions.
[0110] Among them, when the difference between the duty cycle of the first half cycle in the nth cycle and the duty cycle of the first half cycle in the n-1th cycle is greater than the first threshold value and less than the second threshold value, it is determined to be a dynamic working condition, and it is necessary to adjust the magnitude of the slope compensation slope of the first and second half cycles in the nth cycle so that the duty cycle of the first half cycle in the nth cycle is consistent with the duty cycle of the first half cycle in the n-1th cycle. When the difference is greater than the second threshold value, it is also determined to be a dynamic working condition, and its purpose is to limit the difference within a reasonable range by adjusting the slope compensation slope of the first half cycle and the second half cycle in the nth cycle, so as to achieve smooth switching of the duty cycle under dynamic working conditions.
[0111] In an embodiment of the present application, in a non-dynamic working condition (i.e., steady state and transition section), the falling slope of the inductor current in the first half of the n-1th cycle is calculated and used as the slope compensation slope of the nth cycle to perform adaptive slope compensation control. This can provide more accurate slope compensation in a steady state and further improve the slope compensation control effect.
[0112] For example, Figure 6 The flow chart of the method for determining the slope compensation slope under dynamic conditions provided by the embodiment of the present application is as follows: Figure 6 As shown, it specifically includes the following steps:
[0113] Step S610: When the difference is greater than the first threshold value and less than the second threshold value, the inductor current in the second half of the nth cycle is determined according to the peak current in the first half of the nth cycle, the slope compensation slope in the first half of the n-1th cycle, the duty cycle in the first half of the nth cycle and the preset cycle value.
[0114] Step S620: Determine the slope compensation slope of the second half of the nth cycle according to the inductor current of the second half of the nth cycle, the rising slope of the inductor current of the first half of the n-1th cycle, the duty cycle of the first half of the nth cycle, the loop control amount of the nth cycle and the preset cycle value.
[0115] In this embodiment, for step S610, the peak current of the first half cycle in the nth cycle can be calculated by the following formula:
[0116] Formula (8)
[0117] In the above formula, represents the peak current in the first half of the nth cycle, represents the loop control quantity of the nth cycle, It represents the slope compensation slope of the first half cycle in the nth cycle. represents the duty cycle of the first half of the nth cycle, is the switching cycle, that is, the preset cycle value.
[0118] Among them, represents the inductor current in the second half of the nth cycle, which can be calculated by the following formula: :
[0119] Formula (9)
[0120] In the above formula, Indicates the slope compensation slope of the first half of the (n-1)th cycle.
[0121] For step S620, the following formula (10) is set:
[0122] Formula (10)
[0123] Then make = The following formula (11) can be obtained:
[0124] Formula (11)
[0125] In the above formula, It represents the slope compensation slope of the second half of the nth cycle. is the rising slope of the inductor current in the first half of the (n-1)th cycle calculated above.
[0126] In the embodiment of the present application, under dynamic working conditions, in order to solve the problem that large and small waves will appear in the full-bridge DC-DC converter in transient state, causing transformer core saturation, the method can actively adjust the slope compensation slope according to real-time data to avoid the appearance of large and small waves, prevent the occurrence of sudden changes in duty cycle, further improve the slope compensation control effect, and enhance the stability and dynamic response capability of the system.
[0127] In other implementations, it is also possible that the difference is greater than the first threshold and greater than the second threshold. Specifically, represents the second threshold, there may be the following two situations:
[0128] Case 1:
[0129] Case 2:
[0130] Among them, for both cases 1 and 2, it is necessary to re-adjust the previously calculated and .
[0131] In some embodiments, for case 1, when the duty cycle of the first half cycle in the nth cycle is greater than the sum of the duty cycle of the first half cycle in the (n-1)th cycle and the second threshold, the slope compensation slope can be determined by the following steps:
[0132] (1) According to the inductor current in the first half of the nth cycle, the rising slope of the inductor current in the first half of the n-1th cycle, the duty cycle in the first half of the n-1th cycle, the preset growth step, the preset cycle value and the loop control amount of the nth cycle, the slope compensation slope in the first half of the nth cycle is updated as the slope compensation slope update value of the first half of the cycle, that is, the updated slope compensation slope .
[0133] (2) According to the loop control quantity of the nth cycle, the inductor current of the first half cycle of the nth cycle, the rising slope of the inductor current of the first half cycle of the (n-1)th cycle, the preset cycle value and the slope compensation slope update value, the duty cycle of the first half cycle of the nth cycle after the update is determined as the duty cycle update value;
[0134] (3) According to the inductor current in the second half of the nth cycle, the rising slope of the inductor current in the first half of the n-1th cycle, the duty cycle update value, the loop control amount of the nth cycle and the preset cycle value, the slope compensation slope of the second half of the nth cycle (i.e., the updated value) is determined. ).
[0135] In this embodiment, the previously calculated and The specific calculation formula is as follows:
[0136] Formula (12-1)
[0137] Formula (6)
[0138] Formula (11)
[0139] In the above formula, It can represent the inductor current in the first half of the nth cycle, It represents the rising slope of the inductor current in the first half of the n-1th cycle. It represents the duty cycle of the first half of the cycle in the n-1th cycle, STEP1 represents the appropriate slow increase step size (i.e. the preset growth step size), Indicates the preset cycle value, is the loop control quantity of the nth cycle. In which, due to the formula (11) The value of has changed, so it is necessary to recalculate and convert the changed (i.e., duty cycle update value) is re-submitted into the above formula (11) to obtain the latest By controlling the slope compensation slope of the second half of the nth cycle , come to and Approximation is used to avoid the problem of transformer core saturation caused by large and small waves. It should be noted that the embodiment of the present application is under dynamic working conditions. and Different. Under non-dynamic conditions, and The same ramp slope was used.
[0140] Further, in some other embodiments, for situation 2, when the duty cycle of the first half of the cycle in the n-1th cycle is greater than the sum of the duty cycle of the first half of the cycle in the nth cycle and the second threshold, it is necessary to determine the slope compensation slope update value through the following steps:
[0141] According to the inductor current of the first half of the nth cycle, the rising slope of the inductor current of the first half of the n-1th cycle, the duty cycle of the first half of the n-1th cycle, the preset decreasing step length, the preset cycle value and the loop control amount of the nth cycle, the slope compensation slope of the first half of the nth cycle is updated as the slope compensation slope update value.
[0142] Specifically, re-adjust the previously calculated and The specific calculation formula is as follows:
[0143] Formula (12-2)
[0144] Formula (6)
[0145] Formula (11)
[0146] In the above formula, STEP2 represents the appropriate deceleration step length (i.e. the preset descent step length), is the loop control quantity of the nth cycle. In which, due to the formula (11) The value of has changed, so it is necessary to Substitute it back into the above formula (11) to obtain the latest .
[0147] In addition, in other embodiments, under dynamic conditions, When it is equal to 0, then Assign a value of 0 as the recalculated (i.e., the decreasing slope of the inductor current in the first half of the nth cycle after the update), and then based on Equal to 0, Equal to 0, re-adjust the previously calculated .
[0148] In the embodiment of the present application, by optimizing the adaptive slope compensation slope under dynamic conditions, smooth switching of the duty cycle in dynamic conditions is achieved, and the large and small wave problems of the primary side driving the tube in dynamic conditions are suppressed, thereby further improving the stability and dynamic response capability of the system.
[0149] Figure 7 A schematic flow chart of an adaptive slope compensation control method provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, it includes the following steps:
[0150] Step S710: analog-to-digital conversion sampling.
[0151] Step S720: Calculate the adaptive slope compensation slope.
[0152] Step S730: predicting the duty cycle.
[0153] Step S740: Determine whether to enter the dynamic operating state.
[0154] Step S750: Optimizing the slope compensation slope.
[0155] In this embodiment, for step S710, the inductor current of the current cycle and the driving duty cycle of the primary switch Q1 of the previous cycle are collected for calculation of adaptive slope compensation. In practical applications, the sampling point needs to be reasonably adjusted according to the actual sampling speed and chip calculation speed.
[0156] For step S720, according to the corresponding relationship between the duty cycle of the previous cycle and the decreasing slope of the inductor current, the decreasing slope of the inductor current of the previous cycle is calculated as the slope compensation slope of the next cycle. For specific calculation, see the above formula (2) to formula (4).
[0157] The slope compensation slope of the next cycle calculated in this way can be directly used as the slope compensation slope of the half cycle before and after the cycle in the non-dynamic stage, but cannot be directly used as the adaptive slope compensation slope in the dynamic stage.
[0158] For step S730, in order to better perform dynamic and non-dynamic adaptive slope compensation control, the duty cycle of the next cycle is predicted to assist in judgment and control. In the dynamic or non-dynamic stage, the rising slope of the inductor current in two adjacent cycles is approximately equal. Therefore, based on the sampled inductor current and duty cycle, combined with the loop control quantity, the duty cycle of the next cycle can be predicted, see formula (5), formula (6), formula (7-1) and formula (7-2).
[0159] For step S740, according to the actual test results, when the difference between the predicted duty cycle and the duty cycle of the previous cycle exceeds a certain value, it is considered to enter the dynamic stage, otherwise it is considered to be in the non-dynamic stage, and the slope compensation slope of the next cycle calculated in step 720 is directly used for control. In actual engineering applications, the judgment condition of the dynamic working condition can be determined by the loop output and the predicted duty cycle.
[0160] For step S750, by optimizing the adaptive slope compensation slope under dynamic conditions, the smooth switching of the duty cycle in dynamic conditions is achieved, and the large and small waves problem of the primary side driving the tube in dynamic conditions is suppressed, see formula (8)-formula (11) and formula (12-1) and formula (12-2).
[0161] For example, Figure 8 The actual simulation waveforms of the existing fixed slope compensation and the adaptive slope compensation provided by the embodiment of the present application. Figure 8 As shown, it includes carrier, primary drive 1, primary drive 2, slope compensation value, transformer primary current, secondary inductor current, and output voltage. Among them, the transformer primary current waveform is the waveform after taking the absolute value, and the secondary inductor current is the waveform after appropriate scaling. The method of the present invention shows great advantages in both steady state and dynamic state.
[0162] In the embodiment of the present application, no additional auxiliary sampling circuit is required, and the adaptive ramp slope calculation can be completed by sampling the inductor current and duty cycle. And for the first time, the adaptive slope compensation is optimized for dynamic working conditions. Combining the proposed duty cycle prediction method and the dynamic adaptive ramp slope calculation method, in dynamic working conditions, the smooth transition of the system and the suppression of the large and small waves of the drive can be achieved, thereby improving the stability and dynamic response capability of the system.
[0163] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0164] Fig. 9 A schematic diagram of the structure of a slope compensation device provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, the slope compensation device 900 includes a data acquisition module 910 , a slope compensation slope initial value determination module 920 , a duty cycle prediction module 930 , a slope determination module 940 and a slope compensation module 950 .
[0165] The data acquisition module 910 is used to obtain the inductor current of the target inductor connected to the converter output terminal in the n-1th cycle and the duty cycle of the target switch connected to the converter input terminal in the n-1th cycle, where n is a positive integer greater than 1.
[0166] The slope compensation slope initial value determination module 920 is used to determine the falling slope of the inductor current in the (n-1)th cycle according to the inductor current and the duty cycle as the slope compensation slope in the nth cycle.
[0167] The duty cycle prediction module 930 is used to predict the duty cycle of the target switch tube in the nth cycle according to the slope compensation slope of the nth cycle.
[0168] The slope determination module 940 is used to adjust the slope compensation slope of the nth cycle according to the difference between the predicted duty cycle of the target switch tube in the nth cycle and the duty cycle of the (n-1)th cycle.
[0169] The slope compensation module 950 is used to perform slope compensation on the inductor current according to the slope compensation slope.
[0170] In one example, the slope compensation slope initial value determination module is specifically used for:
[0171] Determine the peak current of the target inductor in the first half of the cycle in the n-1th cycle;
[0172] When the duty cycle of the first half of the cycle in the n-1th cycle is greater than zero, determining a decreasing slope of the inductor current in the first half of the cycle in the n-1th cycle according to the peak current, the inductor current in the second half of the cycle in the n-1th cycle, the preset cycle value, and the duty cycle of the first half of the cycle in the n-1th cycle as a slope compensation slope of the first half of the cycle in the n-1th cycle;
[0173] When the duty cycle of the first half of the cycle in the n-1th cycle is equal to zero, according to the inductor current of the second half of the cycle in the n-1th cycle, the inductor current of the first half of the cycle in the n-1th cycle, and the preset cycle value, determine the falling slope of the inductor current of the first half of the cycle in the n-1th cycle as the slope compensation slope of the first half of the cycle in the n-1th cycle;
[0174] The slope compensation slope of the first half of the nth cycle is used as the slope compensation slope of the second half of the nth cycle.
[0175] In one example, the slope compensation slope initial value determination module is specifically used for:
[0176] Determine, according to the inductor current in the second half of the n-2th cycle, the peak current in the first half of the n-2th cycle, the preset cycle value and the duty cycle of the n-2th cycle, the falling slope of the inductor current in the first half of the n-2th cycle as the slope compensation slope of the first half of the n-1th cycle;
[0177] The peak current of the first half of the n-1th cycle is determined based on the loop control amount of the n-1th cycle, the slope compensation slope of the first half of the n-1th cycle, the duty cycle of the first half of the n-1th cycle and the preset cycle value.
[0178] In one example, the duty cycle prediction module is specifically used to:
[0179] When the duty cycle of the first half of the cycle in the n-1th cycle is not equal to zero, determining the rising slope of the inductor current in the first half of the cycle in the n-1th cycle according to the peak current in the first half of the cycle in the n-1th cycle, the inductor current in the first half of the cycle in the n-1th cycle, the duty cycle of the first half of the cycle in the n-1th cycle, and the preset cycle value;
[0180] When the duty cycle of the first half of the n-1th cycle is zero, the rising slope of the inductor current recorded when the duty cycle before the n-1th cycle is non-zero is used as the rising slope of the inductor current in the n-1th cycle;
[0181] The duty cycle of the first half of the nth cycle is determined according to the loop control amount of the nth cycle, the inductor current of the first half of the nth cycle, the rising slope of the inductor current of the first half of the n-1th cycle, the slope compensation slope of the first half of the nth cycle and the preset cycle value.
[0182] In one example, the slope determination module is specifically configured to:
[0183] Obtaining a difference between a predicted duty cycle of the target switch tube in an nth cycle and a duty cycle in an (n-1)th cycle;
[0184] When the difference is smaller than the first threshold, the falling slope of the inductor current in the first half cycle of the (n-1)th cycle is used as the slope compensation slope of the first half cycle and the second half cycle of the nth cycle.
[0185] In one example, the slope determination module is specifically configured to:
[0186] When the difference is greater than the first threshold value and less than the second threshold value, determining the inductor current in the second half of the nth cycle according to the peak current in the first half of the nth cycle, the slope compensation slope in the first half of the n-1th cycle, the duty cycle in the first half of the nth cycle, and the preset cycle value;
[0187] The slope compensation slope of the second half of the nth cycle is determined according to the inductor current of the second half of the nth cycle, the rising slope of the inductor current of the first half of the n-1th cycle, the duty cycle of the first half of the nth cycle, the loop control amount of the nth cycle and the preset cycle value.
[0188] In one example, the slope determination module is specifically configured to:
[0189] When the duty cycle of the first half cycle in the nth cycle is greater than the sum of the duty cycle of the first half cycle in the n-1th cycle and the second threshold, the slope compensation slope of the first half cycle in the nth cycle is updated according to the inductor current of the first half cycle in the nth cycle, the rising slope of the inductor current of the first half cycle in the n-1th cycle, the duty cycle of the first half cycle in the n-1th cycle, the preset growth step, the preset cycle value and the loop control amount of the nth cycle as the slope compensation slope update value of the first half cycle;
[0190] Determine the updated duty cycle of the first half of the nth cycle as the duty cycle update value according to the loop control amount of the nth cycle, the inductor current of the first half of the nth cycle, the rising slope of the inductor current of the first half of the n-1th cycle, the preset cycle value and the slope compensation slope update value;
[0191] According to the inductor current in the second half of the nth cycle, the rising slope of the inductor current in the first half of the n-1th cycle, the duty cycle update value, the loop control amount of the nth cycle and the preset cycle value, the slope compensation slope of the second half of the nth cycle is determined as the slope compensation slope of the second half of the cycle.
[0192] In one example, the slope determination module is specifically used to: when the duty cycle of the first half cycle in the nth cycle is less than the difference between the duty cycle of the first half cycle in the n-1th cycle and the second threshold, update the slope compensation slope of the first half cycle in the nth cycle according to the inductor current of the first half cycle in the nth cycle, the rising slope of the inductor current of the first half cycle in the n-1th cycle, the duty cycle of the first half cycle in the n-1th cycle, the preset decreasing step size, the preset cycle value and the loop control amount of the nth cycle, as the slope compensation slope update value of the first half cycle.
[0193] In one example, the slope determination module is specifically used to: when the predicted duty cycle of the first half cycle in the nth cycle is equal to zero, update the slope compensation slope of the first half cycle in the nth cycle to zero as the slope compensation slope update value of the first half cycle.
[0194] The device provided in the embodiment of the present application can be used to execute the method in the above-mentioned embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0195] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the data acquisition module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The function of the above data acquisition module. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0196] Fig.10 The hardware structure diagram of the electronic device provided in the embodiment of the present application is as follows: The electronic device 1000 may include a processor 1001 and a memory 1002 storing computer program instructions.
[0197] Specifically, the processor 1001 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present invention.
[0198] The memory 1002 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 1002 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In one example, the memory 1002 may include a removable or non-removable (or fixed) medium, or the memory 1002 is a non-volatile solid-state memory. The memory 1002 may be inside or outside the integrated gateway disaster recovery device.
[0199] In one example, the memory 1002 may be a read-only memory (ROM). In one example, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0200] The memory 1002 may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0201] The processor 1001 implements the method in the above embodiment by reading and executing the computer program instructions stored in the memory 1002 .
[0202] In one example, the electronic device may further include a communication interface 1003 and a bus 1004. Fig.10 As shown, the processor 1001, the memory 1002, and the communication interface 1003 are connected via a bus 1004 and communicate with each other.
[0203] The communication interface 1003 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiment of the present invention.
[0204] Bus 1004 includes hardware, software or both, and couples the components of online data traffic billing equipment to each other. For example, but not limitation, the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), Hyper Transport (HT) interconnection, Industry Standard Architecture (ISA) bus, InfiniBand interconnection, Low Pin Count (LPC) bus, Memory bus, Micro Channel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or two or more of these combinations. Where appropriate, bus 1004 may include one or more buses. Although the embodiments of the present invention describe and illustrate specific buses, the present invention contemplates any suitable bus or interconnection.
[0205] In addition, in combination with the method in the above embodiment, the embodiment of the present invention can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the methods in the above embodiment is implemented.
[0206] An embodiment of the present application also provides a computer program product, including a computer program, which implements any one of the methods in the above embodiments when the computer program is processed and executed.
[0207] The embodiment of the present application further provides a converter, which may be a hard-switching full-bridge DC-DC converter. The converter is used to implement the above method.
[0208] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0209] The functional blocks shown in the above structural block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memories (ROM), flash memory, erasable read-only memories (EROM), floppy disks, compact discs (CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0210] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0211] Aspects of the present disclosure are described above with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the functions / actions specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0212] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. A slope compensation method for a converter, characterized in that: include: Obtaining the inductor current of the target inductor connected to the output end of the converter in the n-1th cycle and the duty cycle of the target switch connected to the input end of the converter in the n-1th cycle, where n is a positive integer greater than 2; Determine, according to the inductor current and the duty cycle, a falling slope of the inductor current in the (n-1)th cycle as a slope compensation slope in the (n)th cycle; When the duty cycle of the first half of the cycle in the n-1th cycle is not equal to zero, determining the rising slope of the inductor current in the first half of the cycle in the n-1th cycle according to the peak current in the first half of the cycle in the n-1th cycle, the inductor current in the first half of the cycle in the n-1th cycle, the duty cycle of the first half of the cycle in the n-1th cycle, and the preset cycle value; When the duty cycle of the first half of the n-1th cycle is zero, the rising slope of the inductor current recorded when the duty cycle before the n-1th cycle is non-zero is used as the rising slope of the inductor current in the first half of the n-1th cycle; Determine the duty cycle of the first half of the nth cycle according to the loop control amount of the nth cycle, the inductor current of the first half of the nth cycle, the rising slope of the inductor current of the first half of the n-1th cycle, the slope compensation slope of the first half of the nth cycle and the preset cycle value; Adjusting the slope compensation slope of the nth cycle according to the difference between the predicted duty cycle of the target switch tube in the nth cycle and the duty cycle of the n-1th cycle; The inductor current is slope compensated according to the slope compensation slope.
2. The method according to claim 1, characterized in that: The step of determining the falling slope of the inductor current in the n-1th cycle according to the inductor current and the duty cycle as the slope compensation slope of the nth cycle includes: When the duty cycle of the first half of the cycle in the n-1th cycle is greater than zero, determining the peak current of the target inductor in the first half of the cycle in the n-1th cycle; Determine, according to the peak current, the inductor current in the second half of the n-1th cycle, the preset cycle value and the duty cycle of the first half of the n-1th cycle, the falling slope of the inductor current in the first half of the n-1th cycle as the slope compensation slope of the first half of the n-1th cycle; When the duty cycle of the first half of the cycle in the n-1th cycle is equal to zero, according to the inductor current of the second half of the cycle in the n-1th cycle, the inductor current of the first half of the cycle in the n-1th cycle, and the preset cycle value, determine the falling slope of the inductor current of the first half of the cycle in the n-1th cycle as the slope compensation slope of the first half of the cycle in the n-1th cycle; The slope compensation slope of the first half of the nth cycle is used as the slope compensation slope of the second half of the nth cycle.
3. The method according to claim 2, characterized in that The step of determining the peak current of the target inductor in the first half of the cycle in the (n-1)th cycle includes: Determine, according to the inductor current in the second half of the cycle in the n-2th cycle, the peak current in the first half of the cycle in the n-2th cycle, the preset cycle value, and the duty cycle in the first half of the cycle in the n-2th cycle, the falling slope of the inductor current in the first half of the cycle in the n-2th cycle as the slope compensation slope in the first half of the cycle in the n-1th cycle; The peak current of the first half of the n-1th cycle is determined based on the loop control amount of the n-1th cycle, the slope compensation slope of the first half of the n-1th cycle, the duty cycle of the first half of the n-1th cycle and the preset cycle value.
4. The method according to claim 1, characterized in that The step of adjusting the slope compensation slope of the nth cycle includes: Obtaining a difference between a predicted duty cycle of the target switch tube in an nth cycle and a duty cycle in an (n-1)th cycle; When the difference is smaller than the first threshold, the falling slope of the inductor current in the first half cycle of the (n-1)th cycle is used as the slope compensation slope of the first half cycle and the second half cycle of the nth cycle.
5. The method according to claim 1, characterized in that The step of adjusting the slope compensation slope of the nth cycle includes: When the difference is greater than the first threshold value and less than the second threshold value, determining the inductor current in the second half of the nth cycle according to the peak current in the first half of the nth cycle, the slope compensation slope in the first half of the n-1th cycle, the duty cycle in the first half of the nth cycle, and the preset cycle value; The slope compensation slope of the second half of the nth cycle is adjusted according to the inductor current of the second half of the nth cycle, the rising slope of the inductor current of the first half of the n-1th cycle, the duty cycle of the first half of the nth cycle, the loop control amount of the nth cycle and the preset cycle value.
6. The method according to claim 1, characterized in that The step of adjusting the slope compensation slope of the nth cycle includes: When the duty cycle of the first half cycle in the nth cycle is greater than the sum of the duty cycle of the first half cycle in the n-1th cycle and the second threshold, the slope compensation slope of the first half cycle in the nth cycle is updated according to the inductor current of the first half cycle in the nth cycle, the rising slope of the inductor current of the first half cycle in the n-1th cycle, the duty cycle of the first half cycle in the n-1th cycle, the preset growth step, the preset cycle value and the loop control amount of the nth cycle as the slope compensation slope update value of the first half cycle; Determine the updated duty cycle of the first half of the nth cycle as the duty cycle update value according to the loop control amount of the nth cycle, the inductor current of the first half of the nth cycle, the rising slope of the inductor current of the first half of the n-1th cycle, the preset cycle value and the slope compensation slope update value; According to the inductor current in the second half of the nth cycle, the rising slope of the inductor current in the first half of the n-1th cycle, the duty cycle update value, the loop control amount of the nth cycle and the preset cycle value, the slope compensation slope of the second half of the nth cycle is determined as the slope compensation slope of the second half of the cycle.
7. The method according to claim 6, characterized in that The updating of the slope compensation slope of the first half cycle in the nth cycle as the slope compensation slope update value of the first half cycle includes: In a case where the duty cycle of the first half cycle in the nth cycle is less than the difference between the duty cycle of the first half cycle in the n-1th cycle and the second threshold, the slope compensation slope of the first half cycle in the nth cycle is updated according to the inductor current of the first half cycle in the nth cycle, the rising slope of the inductor current of the first half cycle in the n-1th cycle, the duty cycle of the first half cycle in the n-1th cycle, the preset decreasing step size, the preset cycle value and the loop control amount of the nth cycle as the slope compensation slope update value of the first half cycle.
8. The method according to claim 6, characterized in that The updating of the slope compensation slope of the first half cycle in the nth cycle as the slope compensation slope update value of the first half cycle includes: When the predicted duty cycle of the first half cycle in the nth cycle is equal to zero, the slope compensation slope of the first half cycle in the nth cycle is updated to zero as the slope compensation slope update value of the first half cycle.
9. A slope compensation device for a converter, characterized in that: include: A data acquisition module, used to acquire the inductor current of the target inductor connected to the converter output terminal in the n-1th cycle and the duty cycle of the target switch connected to the converter input terminal in the n-1th cycle, where n is a positive integer greater than 1; A slope compensation slope initial value determination module, used to determine the falling slope of the inductor current in the n-1th cycle according to the inductor current and the duty cycle, as the slope compensation slope of the nth cycle; a duty cycle prediction module, for determining, when the duty cycle of the first half cycle in the n-1th cycle is not equal to zero, a rising slope of the inductor current in the first half cycle in the n-1th cycle according to the peak current in the first half cycle in the n-1th cycle, the inductor current in the first half cycle in the n-1th cycle, the duty cycle in the first half cycle in the n-1th cycle, and a preset cycle value; The duty cycle prediction module is further configured to, when the duty cycle of the first half cycle in the n-1th cycle is zero, use the rising slope of the inductor current recorded when the duty cycle is non-zero before the n-1th cycle as the rising slope of the inductor current in the first half cycle in the n-1th cycle; The duty cycle prediction module is further used to determine the duty cycle of the first half of the nth cycle according to the loop control amount of the nth cycle, the inductor current of the first half of the nth cycle, the rising slope of the inductor current of the first half of the n-1th cycle, the slope compensation slope of the first half of the nth cycle and the preset cycle value; A slope determination module, used for adjusting the slope compensation slope of the nth cycle according to the difference between the predicted duty cycle of the target switch tube in the nth cycle and the duty cycle of the n-1th cycle; The slope compensation module is used to perform slope compensation on the inductor current according to the slope compensation slope.
10. A converter, characterized in that: The converter is used to implement the method described in any one of claims 1-8.
Citation Information
Patent Citations
Piecewise linear slope compensation method and circuit
CN102005911A
Self-adaptive slope compensation circuit applicable to peak current mode BUCK converter
CN108599535A