Four-switch buck-boost circuit control method and four-switch buck-boost circuit

Through real-time voltage detection and duty cycle adjustment methods, the problems of low power conversion efficiency and inaccurate output voltage in Buck-Boost step-up circuit are solved, and more efficient and accurate voltage regulation and smooth switching are achieved.

CN118920869APending Publication Date: 2024-11-08SHENZHEN TONGYE TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411151803.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The existing Buck-Boost four-switch step-up and buck circuit has problems such as low power conversion efficiency, low output voltage regulation accuracy, and large critical switching fluctuations in boost and buck switching.

Method used

By detecting input and output voltages in real time, determining the operating mode and voltage gain information, adjusting the duty cycle of the main switch tube to determine the maximum duty cycle of one module in the Buck and Boost modules, and adjusting the other module's duty cycle based on this information Duty cycle ensures that the circuit outputs the target output voltage.

Benefits of technology

The power conversion efficiency and accuracy of the output voltage of the Buck-Boost step-up circuit are improved, and a more stable step-up and step-down switching is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118920869A_ABST
    Figure CN118920869A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of electronics, in particular to a four-switch buck-boost circuit control method and a four-switch buck-boost circuit. The method comprises the steps of determining working mode information and voltage gain information of the buck-boost circuit based on real-time detected actual input voltage and actual output voltage of the buck-boost circuit and target output voltage corresponding to next working of the buck-boost circuit; according to the working mode information and the voltage gain information, determining that the duty ratio of a main switch tube of one of the Buck module and the Boost module is a preset maximum duty ratio value, and determining the duty ratio of a main switch tube of the other module based on the maximum duty ratio value; and the corresponding modules are controlled according to the determined duty ratios of the two main switching tubes, so that the buck-boost circuit outputs the target output voltage, the electric energy conversion efficiency of the Buck-Boost buck-boost circuit can be effectively improved, and the accuracy of the output voltage is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a four-switch buck-boost circuit control method and a four-switch buck-boost circuit. Background Art

[0002] Buck-Boost four-switch step-up and step-down circuit Figure 1 The power supply shown can basically only be transmitted to the output end by the process of inductor charging and discharging. There is power loss in this process, so there is a problem of low power conversion efficiency.

[0003] In the prior art, the resolution of PWM control is low, and the accuracy of the duty cycle obtained by adjustment is low, which leads to a large change in the adjusted output voltage and a problem of low accuracy in adjusting the output voltage.

[0004] In summary, the existing Buck-Boost step-up and step-down circuit has the problems of low power conversion efficiency, insufficient accuracy in adjusting the output voltage, and large critical switching fluctuations when switching between step-up and step-down. Summary of the invention

[0005] In view of this, the embodiments of the present application provide a four-switch buck-boost circuit control method and a four-switch buck-boost circuit, which can effectively improve the power conversion efficiency of the Buck-Boost circuit and effectively improve the accuracy of the output voltage.

[0006] In a first aspect, an embodiment of the present application provides a method for controlling a four-switch buck-boost circuit, wherein the buck-boost circuit includes a Buck module and a Boost module; the method includes:

[0007] Determine the operation mode information and voltage gain information of the buck-boost circuit based on the actual input voltage and the actual output voltage of the buck-boost circuit detected in real time, and the target output voltage corresponding to the next operation of the buck-boost circuit;

[0008] According to the working mode information and the voltage gain information, determining that the duty cycle of the main switch tube of one of the Buck module and the Boost module is a preset maximum duty cycle value, and determining the duty cycle of the main switch tube of the other module based on the maximum duty cycle value;

[0009] The determined duty ratios of the two main switch tubes are taken as targets, and the current duty ratios corresponding to the two main switch tubes are adjusted respectively, and then the corresponding modules are controlled so that the buck-boost circuit outputs the target output voltage.

[0010] In some embodiments, the operating mode information includes a current operating mode and a target operating mode; the voltage gain information includes a current voltage gain and a target voltage gain;

[0011] Determining, according to the working mode and the voltage gain, that the duty cycle of the main switch tube of one of the Buck module and the Boost module is a preset maximum duty cycle value, and determining the duty cycle of the main switch tube of the other module based on the maximum duty cycle value, includes:

[0012] If the current working mode and the target working mode are different, determining, according to the target working mode, that the duty cycle of the main switch tube in the corresponding module matching the target working mode is a maximum duty cycle value, and determining the duty cycle of the main switch tube of another module based on the maximum duty cycle value and the target voltage gain;

[0013] If the current operating mode and the target operating mode are the same, and the current voltage gain and the target voltage gain are different, the duty cycle of the main switch tube in the corresponding module under the current operating mode is controlled to remain at the maximum duty cycle value, and the duty cycle of the main switch tube of another module is determined based on the maximum duty cycle value and the target voltage gain.

[0014] In some embodiments, the types of working modes include: buck mode and boost mode;

[0015] If the current working mode and the target working mode are different, determining, according to the target working mode, that the duty cycle of the main switch tube in the corresponding module matching the target working mode is a maximum duty cycle value, and determining the duty cycle of the main switch tube of another module based on the maximum duty cycle value and the target voltage gain, including:

[0016] If the current working mode is the boost mode and the target working mode is the buck mode, the second duty cycle is set to the maximum duty cycle value, and the first duty cycle of the main switch tube in the Buck module is calculated according to the target voltage gain and the second duty cycle; wherein the first duty cycle is the duty cycle of the main switch tube in the Buck module; and the second duty cycle is the duty cycle of the main switch tube in the Boost module;

[0017] If the current operating mode is the buck mode and the target operating mode is the boost mode, the first duty cycle is set to be the maximum duty cycle value, and the second duty cycle is calculated according to the target voltage gain and the first duty cycle.

[0018] In some embodiments, if the current working mode is the same as the target working mode, and the current voltage gain is different from the target voltage gain, controlling the duty cycle of the main switch tube in the corresponding module in the current working mode to remain at the maximum duty cycle value, and determining the duty cycle of the main switch tube of another module based on the maximum duty cycle value and the target voltage gain, includes:

[0019] If the current operating mode is the buck mode and the target operating mode is the buck mode, calculating the first duty cycle according to the target voltage gain and the second duty cycle, wherein the second duty cycle is the maximum duty cycle value;

[0020] If the current operating mode is the boost mode and the target operating mode is the boost mode, the second duty cycle is calculated according to the target voltage gain and the first duty cycle, wherein the first duty cycle is the maximum duty cycle value.

[0021] In some embodiments, before taking the determined duty ratios of the two main switch tubes as a target and adjusting the current duty ratios respectively corresponding to the two main switch tubes, the method further includes:

[0022] Setting a count value of a timer corresponding to the first duty cycle according to a first count value, and setting a count value of a timer corresponding to the second duty cycle according to a second count value;

[0023] Calculating a count value of the timer corresponding to the first duty cycle according to the first duty cycle and an automatic reload register value preset for the timer corresponding to the first duty cycle to obtain the first count value;

[0024] According to the second duty cycle and an automatic reload register value preset for the timer corresponding to the second duty cycle, a count value of the timer corresponding to the second duty cycle is calculated to obtain the second count value.

[0025] In some embodiments, the operating mode information includes a current operating mode and a target operating mode; the voltage gain information includes a current voltage gain and a target voltage gain;

[0026] The determining of the operation mode information and voltage gain information of the buck-boost circuit based on the actual input voltage and the actual output voltage of the buck-boost circuit detected in real time and the target output voltage corresponding to the next operation of the buck-boost circuit includes:

[0027] If the current voltage gain is less than or equal to the preset gain threshold, the current working mode of the buck-boost circuit is the buck mode; otherwise, the current working mode of the buck-boost circuit is the boost mode;

[0028] If the target voltage gain is less than or equal to a preset gain threshold, the target operating mode of the buck-boost circuit is the buck mode; otherwise, the target operating mode of the buck-boost circuit is the boost mode.

[0029] In some embodiments, calculating the duty cycle of the main switch in the Buck module according to the target voltage gain and the second duty cycle includes:

[0030] D1=(Vtar / Vin)×D2, D2=Dmax;

[0031] Wherein, D1 is the first duty cycle, Vtar is the target output voltage, Vin is the actual input voltage, D2 is the second duty cycle, and Dmax is the maximum duty cycle value;

[0032] The calculating the second duty cycle according to the target voltage gain and the first duty cycle includes:

[0033] D2=(Vin / Vtar)×D1, D1=Dmax.

[0034] In some embodiments, calculating the count value of the timer corresponding to the first duty cycle according to the first duty cycle and the auto-reload register value preset for the timer corresponding to the first duty cycle to obtain the first count value includes:

[0035] ND1=NT×D1, 0<D1≤Dmax;

[0036] Wherein, ND1 is the first count value, NT is the auto-reload register value, and D1 is the first duty cycle;

[0037] The step of calculating the count value of the timer corresponding to the second duty cycle according to the second duty cycle and the automatic reload register value preset for the timer corresponding to the second duty cycle to obtain the second count value includes:

[0038] ND2=NT×D2, 0<D2≤Dmax;

[0039] Wherein, ND2 is the second count value, NT is the auto-reload register value, and D2 is the second duty cycle.

[0040] In some embodiments, the buck-boost circuit further includes two bootstrap drive circuits; the two bootstrap drive circuits are used to provide power to the main switch tube in the Buck module and the main switch tube in the Boost module respectively;

[0041] The maximum duty cycle value is a maximum duty cycle value determined according to the bootstrap drive circuit;

[0042] The Buck module and the Boost module both further include synchronous rectifiers; in each module, the main switch tube and the corresponding synchronous rectifier tube are controlled by a fully complementary pulse signal with a dead zone.

[0043] In a second aspect, an embodiment of the present application provides a four-switch buck-boost circuit, which uses a four-switch buck-boost circuit control method provided in the first aspect of the present application to perform buck-boost control.

[0044] The embodiments of the present application have the following beneficial effects:

[0045] According to the working mode information and the voltage gain information, the present application determines that the duty cycle of the main switch tube of one of the modules in the Buck module and the Boost module is a preset maximum duty cycle value, and determines the duty cycle of the main switch tube of another module based on the maximum duty cycle value; the duty cycles of the two determined main switch tubes are used as targets, and the current duty cycles corresponding to the two main switch tubes are adjusted, and then the corresponding modules are controlled so that the buck-boost circuit outputs the target output voltage. In the embodiment of the present application, the duty cycle of one main switch tube is fixed, and only the duty cycle value of the other main switch tube is adjusted, which is converted into an adjustment with only one dimension, thereby making the control method simpler and the dynamic output more stable. Since the time period when both upper tubes are turned on is the longest in each PWM wave cycle, the power conversion efficiency within the PWM wave cycle will also be the highest. Therefore, the power conversion efficiency of the Buck-Boost buck-boost circuit can be effectively improved and the accuracy of the output voltage can be effectively improved in the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 A simplified circuit diagram of a Buck-Boost four-switch step-up and step-down circuit according to an embodiment of the present application is shown;

[0048] Figure 2 A flow chart showing a method for controlling a four-switch buck-boost circuit according to an embodiment of the present application is shown;

[0049] Figure 3 Another flow chart of the four-switch buck-boost circuit control method of the embodiment of the present application is shown;

[0050] Figure 4A structural schematic diagram of a four-switch buck-boost circuit control device according to an embodiment of the present application is shown.

[0051] Description of main component symbols:

[0052] 410 - information determination module; 420 - duty cycle determination module; 430 - control module. DETAILED DESCRIPTION

[0053] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0054] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0055] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.

[0056] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.

[0057] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0058] The embodiment of the present application provides a four-switch buck-boost circuit. Exemplarily, the four-switch buck-boost circuit (Buck-Boost four-switch buck-boost circuit) includes a Buck buck circuit, a Boost boost circuit, and two bootstrap drive circuits. Furthermore, the Buck buck circuit and the Boost boost circuit both include a main switch tube and a synchronous rectifier tube. The two bootstrap drive circuits are used to provide power to the main switch tube in the Buck buck circuit and the main switch tube in the Boost boost circuit, respectively. Figure 1 The buck-boost circuit shown includes four power switch tubes. The power switch tube Q1 is the main switch tube in the Buck buck circuit, and the power switch tube Q2 is the synchronous rectifier tube in the Buck buck circuit; the power switch tube Q3 is the main switch tube in the Boost boost circuit, and the power switch tube Q4 is the synchronous rectifier tube in the Boost boost circuit. Among them, the power switch tube Q1 and the power switch tube Q3 are also called upper tubes; the power switch tube Q2 and the power switch tube Q4 are also called lower tubes. The two lower tubes Q2 and Q4 are regulated DC sources that directly use the auxiliary power supply, and the two upper tubes Q1 and Q3 use the bootstrap drive circuit to provide power. The bootstrap drive circuit can use a common circuit and is only used to provide power to the upper tubes Q1 and Q3.

[0059] The buck-boost circuit also includes a main chip. The main chip uses a programmable ST chip STM32G474 model single-chip microcomputer (MCU), and the main chip is used to store programs and complete the acquisition of voltage and current, calculation and output pulse signals to control the switch tube. In the embodiment of the present application, a voltage sensor is used to collect real-time voltage at the input and output ends, and the actual input voltage and actual output voltage are obtained accordingly. The main chip performs real-time AD sampling on the voltage sensor, and the values ​​of the input DC voltage (actual input voltage) and the output DC voltage (actual output voltage) are recorded as Vin and Vout respectively.

[0060] Exemplarily, the basic working process includes: a 12V~40V DC voltage is input on the left side of the circuit, the main chip detects the input terminal Vin and the output terminal Vout, and a four-switch buck-boost circuit control method of an embodiment of the present application is used to calculate and adjust the required output PWM wave (PWM pulse signal), control the conduction and shutdown of the four power switch tubes, and achieve the output of a target DC voltage (target output voltage) between 12V and 40V on the right side of the circuit.

[0061] The control theory of the four-switch buck-boost circuit control method in the embodiments of the present application includes: the bootstrap drive circuit needs to be designed to support as large a duty cycle as possible. At the same time, the time when the two upper switches Q1 and Q3 are conducting simultaneously within each period of each PWM pulse signal (PWM wave) should be as long as possible, thereby improving the power conversion efficiency. In addition, when the wave generation frequency of the PWM pulse signal is fixed, the value of the period automatic reload register (TIMx_ARR) of the PWM wave output by the main chip should be configured as large as possible, and the duty cycle of one of the two upper switches (Q1 and Q3), a power switch tube, always remains the maximum. Thus, during the entire buck-boost process, the resolution of PWM regulation can be improved, thereby improving the accuracy of the output voltage. Moreover, the mutual switching between boost and buck can be made smoother, which also helps with the seamless and smooth switching between boost and buck.

[0062] The following is an explanation of the derivation process of the control theory of the four-switch buck-boost circuit control method in the embodiments of the present application:

[0063] The main chip uses an MCU. The MCU outputs two groups of synchronous PWM waves and adopts the center-aligned mode with the same frequency, which is set to a relatively high and fixed frequency. One group is the complementary PWM wave control with dead time output to control the Q1 and Q2 tubes in the left-side Buck bucking circuit part. Figure 1 For the Q3 and Q4 tubes in the right-side Boost boosting circuit part, the other group also outputs complementary PWM control with dead time.

[0064] The Buck-Boost buck-boost circuit is composed of a Buck bucking circuit (also known as the Buck module) and a Boost boosting circuit (also known as the Boost module). Let the bucking gain of the Buck bucking circuit be denoted as A1, the boosting gain of the Boost boosting circuit be denoted as A2, and the total voltage gain of the Buck-Boost buck-boost circuit be denoted as A. Then the following relationship exists among the three:

[0065] A = A1 × A2 (1)

[0066] Let the duty cycle of the upper switch Q1 of the Buck bucking circuit be Dq1, where 0 < Dq1 < 1. In the embodiments of the present application, the range of all duty cycles is within the range of 0 to 1. According to the volt-second balance principle, the formula for the output voltage Vo1 and the input voltage Vi1 of the Buck bucking circuit can be deduced as:

[0067] Vo1 = Dq1 × Vi1

[0068] Then the bucking gain of the Buck bucking circuit can be obtained as:

[0069] A1 = Vo1 / Vi1 = Dq1 (2)

[0070] Assuming that the duty cycle of the lower tube Q4 of the Boost circuit is Dq4, the formula for the output voltage Vo2 and the input voltage Vi2 of the Boost circuit can be inferred from the volt-second balance law as follows:

[0071] Vo2=1 / (1-Dq4)×Vi2

[0072] Then the boost gain of the Boost circuit can be obtained as:

[0073] A2 = Vo2 / Vi2 = 1 / (1 - Dq4) (3)

[0074] From the above formulas (1), (2) and (3), we can get:

[0075] A= Dq1 / (1 - Dq4) (4)

[0076] From the above calculation process, it can be deduced that Figure 1 The formula for the output voltage and input voltage of the Buck-Boost step-up / down circuit in is:

[0077] Vout = Dq1 / (1 - Dq4) × Vi (5)

[0078] The duty cycle of the upper tube Q1 of the Buck step-down circuit is recorded as D1 (the first duty cycle), and the duty cycle of the upper tube Q3 of the Boost step-up circuit is recorded as D2 (the second duty cycle). Since the dead time is very short and can be ignored, Dq4 represents the duty cycle of the Q4 tube, so (1-Dq4) represents the duty cycle of the Q4 tube off time. Because Q3 and Q4 are complementary PWM wave control, (1-Dq4) also represents the duty cycle of Q3, so Figure 1 The formula of the output voltage and input voltage of the Buck-Boost buck-boost circuit in can be simplified to:

[0079] Vout = (D1 / D2) × Vin, (0 <D1<1,0<D2<1) (6)

[0080] It can be seen that the ratio of input voltage to output voltage is only related to the duty cycle of the two upper tubes Q1 and Q3. When the ratio of D1 / D2 is greater than 1, it is boosting; when it is less than 1, it is bucking; and when it is close to 1, it is the critical state between boosting and bucking.

[0081] During the step-up and step-down regulation process, one of D1 and D2 is always controlled to be kept at the maximum value, which is recorded as N.

[0082] Initial state: MCU outputs PWM after startup. In the initial state, the input voltage Vin is not 0. In the initial state, the output voltage Vout starts from no output and gradually rises to the target output voltage. In the initial state, Vin>Vout, so the four-switch buck-boost circuit must start from the buck output state.

[0083] Buck output state: When in the buck output state, if you want to output the target output voltage Vout, that is, change the gain A in the Buck buck mode to the target gain Atar in the Buck buck mode, you can calculate the target gain based on the input voltage Vin value:

[0084] Atar=Vout / Vin

[0085] Then D2 is fixed to the maximum value, D2 = N, and combined with formula (6), the final target value D1 corresponding to D1 can be calculated. tar Then the software controls D1 to gradually adjust from the current value to the target value D1 tar , during this process, D2=N remains unchanged.

[0086] The buck output state switches to the boost output state: When switching from the buck output to the boost output, the target output voltage Vout is changed from the gain A (A<1) in the Buck buck mode to the target gain Atar (Atar>1) in the Boost boost mode. Similarly, the target gain Atar can be calculated according to the input voltage Vin value. D1 takes a fixed maximum value, that is, D1=N. Combined with formula (6), the final target value D2 corresponding to D2 can be calculated. tar Then the software controls the adjustment of D1 and D2. In Buck mode, D2=N is kept at the maximum value unchanged, and D1 is gradually adjusted from the starting value to very close to the maximum value N. At this time, it is in the critical state of switching from buck to boost. In the next step, when D1>N is adjusted, that is, when the gain A>1, it is marked as switching from Buck mode to Boost mode. In Boost mode, D1=N is kept at the maximum value unchanged, and the value of D2 is adjusted to gradually reach the target value D2. tar , the corresponding gain is Atar.

[0087] Boost output state: When in the boost output state, the target output voltage Vout is to be output, that is, the gain A in the Boost mode is changed to the target gain Atar in the Boost mode. Similarly, the target gain Atar can be calculated according to the input voltage Vin value, so that D1 is fixed to the maximum value, D1 = N, and the final target value D2 can be calculated in the same way. tar , then the software controls D2 to gradually adjust from the current value to the target value, during which D1 = N is kept unchanged;

[0088] Switching from boost output state to buck output state: When switching from boost output to buck output, the target output voltage Vout is changed from the gain A (A>1) in the Boost mode to the target gain Atar (Atar<1) in the Buck mode. Similarly, the target gain Atar can be calculated according to the input voltage Vin value. D2 takes a fixed maximum value, D2=N. Combined with formula (6), the final target value D1 can be calculated. tar Then the software controls the adjustment of D1 and D2. In the Boost mode, D1=N is kept at the maximum value unchanged, and D2 is gradually adjusted from the starting value to very close to the maximum value N. At this time, it is in the critical state of switching from boost to buck. In the next step, when D2≥N is adjusted, that is, when the gain A≤1, it is marked as switching from Buck mode to Boost mode. In the Boost mode, D2=N is kept at the maximum value unchanged, and the value of D1 is adjusted to gradually reach the target value D1. tar , the corresponding gain is Atar.

[0089] Therefore, in the embodiment of the present application, the duty cycle of one main switch tube is fixed, and only the duty cycle value of another main switch tube is adjusted, which is transformed into an adjustment in only one dimension, thereby making the control method simpler and the dynamic output more stable.

[0090] Because in each PWM wave cycle, the time period when the two upper tubes are turned on is the longest, the time when the input and output ends of the circuit form a direct connection loop is also the longest. In the direct connection state, part of the electric energy is directly transmitted to the output end through the wire, instead of being released to the output end through the process of charging and discharging the inductor. Because the same inductor will have electric energy loss every time it goes through the process of charging and discharging, the lost electric energy is eventually converted into heat energy to form heating. Therefore, the electric energy conversion efficiency is the highest in the direct connection state, so the electric energy conversion efficiency in the PWM wave cycle will also be the highest, and the heating and temperature rise of the inductor can also be improved.

[0091] When D1 or D2 maintains the maximum value and the PWM frequency is fixed, the automatic reload register value (TIMx_ARR, terminology in the microcontroller manual) of the timer configured by the MCU to generate the PWM wave should be appropriately set larger, and set to a resolution of 1 / 1000. For example, the HRTIM high-precision timer is set to 4096. The time for the timer to count 4096 times is a PWM cycle, so the minimum change in PWM adjustment is 1 / 4096, which can improve the resolution of the PWM duty cycle count value adjustment and improve the control accuracy. The MCU outputs PWM by converting the values ​​of D1 and D2 into the MCU timer count value of the output high-level time length. Let the count value corresponding to the D1 duty cycle be ND1, the count value corresponding to the D2 duty cycle be ND2, the count value corresponding to the maximum duty cycle N be NN, and the PWM cycle automatic reload register value TIMx_ARR be recorded as NT. The conversion formula is as follows:

[0092] D1=ND1 / NT

[0093] D2=ND2 / NT

[0094] Then the formula of Vout and Vin in equation (6) can be transformed into:

[0095] Vout = (ND1 / ND2) × Vin (7)

[0096] Assume that the count values ​​of D1 and D2 are adjusted based on a certain count value N0, and the adjustment change is recorded as Δd (a positive integer), and the corresponding adjustment output voltage change is recorded as ΔVout. In the Buck step-down output state, ND2 = NN, then when adjusting in the step-up direction:

[0097] ΔVout=((N0+Δd) / NN)×Vin-(N0 / NN)×Vin

[0098] Simplified to:

[0099] ΔVout=(Δd / NN)×Vin,

[0100] When adjusting in the direction of decreasing voltage:

[0101] ΔVout=(N0 / NN)×Vin-((N0-Δd) / NN)×Vin

[0102] Simplified to:

[0103] ΔVout=(Δd / NN)×Vin

[0104] It can be seen from the calculation formula that when Vin remains in a steady state, Δd as the numerator is a fixed value, and the larger the value of NN as the denominator, the smaller the value of ΔVout will be regardless of the direction of adjustment, that is, the smaller the adjustment amount, the higher the adjustable resolution. It can be explained that the larger the NN value, the smaller the adjustable change amount, the higher the adjustment accuracy, and the minimum adjustment change amount is when Δd = 1:

[0105] ΔVout=(1 / NN)×Vin.

[0106] Understandably, in the Boost output state, ND1 = NN, which is divided into the following when adjusting in the boost direction:

[0107] ΔVout=(NN / (N0-Δd))×Vin-(NN / N0)×Vin

[0108] When adjusting in the direction of decreasing voltage:

[0109] ΔVout=(NN / N0)×Vin-(NN / (N0+Δd))×Vin

[0110] Vin is kept in a steady state and closed-loop regulation is performed based on a certain ratio value NN / N0. (NN / N0) is a ratio value of a certain value. If (NN / N0) = k, then only the values ​​of (NN / (N0-Δd)) and (-(NN / (N0+Δd))) need to be considered, which can be simplified as follows:

[0111] (NN / (N0-Δd))=(NN / ((NN / k)-Δd))=1 / ((1 / k)-(Δd / NN));

[0112] (-(NN / (N0+Δd)))=-(NN / ((NN / k)+Δd))=-1 / ((1 / k)+(Δd / NN)),

[0113] From the above formula, we can see that k is a constant. When NN is larger:

[0114] If the voltage is adjusted in the boost direction, the smaller (Δd / NN) is, the larger the denominator of the above formula is, and the smaller ΔVout is.

[0115] If the voltage is adjusted in the direction of voltage reduction, the smaller (Δd / NN) is, the smaller the denominator of the above formula is, and the smaller ΔVout is.

[0116] This shows that the larger the NN value, the smaller the adjustable change, the higher the adjustment accuracy, and the minimum adjustment change is when Δd=1.

[0117] To summarize, the MCU output PWM cycle auto-reload register value NT is appropriately configured to be larger, which can be determined according to the MCU chip model used. For example, the value can be determined by referring to the MCU chip user manual. The duty cycle of one of the two upper tubes is always kept at the maximum. In this way, the resolution of PWM regulation can be improved throughout the whole process of step-up and step-down, the output voltage can be controlled more accurately, and the critical switching between step-up and step-down can also be made smoother.

[0118] The four-switch buck-boost circuit control method is described below in conjunction with some specific embodiments.

[0119] Figure 2 A flow chart of a four-switch buck-boost circuit control method of an embodiment of the present application is shown. Exemplarily, the four-switch buck-boost circuit control method includes the following steps:

[0120] S100, determining the operation mode information and voltage gain information of the buck-boost circuit based on the actual input voltage and actual output voltage of the buck-boost circuit detected in real time, and the target output voltage corresponding to the next operation of the buck-boost circuit.

[0121] The working mode information includes a current working mode and a target working mode; the voltage gain information includes a current voltage gain and a target voltage gain.

[0122] The current voltage gain is calculated based on the actual input voltage and actual output voltage of the buck-boost circuit detected in real time; the target voltage gain is calculated based on the actual input voltage and the target output voltage corresponding to the next step of the buck-boost circuit.

[0123] A=Vout / Vin

[0124] Among them, A is the current voltage gain, Vout is the actual output voltage, and Vin is the actual input voltage.

[0125] Atar=Vtar / Vin

[0126] Among them, Atar is the target voltage gain, Vtar is the target output voltage corresponding to the next step of the buck-boost circuit, and Vin is the actual input voltage.

[0127] The current operating mode of the buck-boost circuit is determined according to the current voltage gain; and the target operating mode corresponding to the next operation of the buck-boost circuit is determined according to the target voltage gain.

[0128] The working mode being executed by the Buck-Boost four-switch buck-boost circuit (hereinafter referred to as the buck-boost circuit) is the current working mode, and the working mode to be switched to by the buck-boost circuit according to the next adjustment requirement is the target working mode.

[0129] Furthermore, the current working mode includes a buck mode and a boost mode;

[0130] The determining the current working mode of the buck-boost circuit according to the current voltage gain includes:

[0131] If the current voltage gain is less than or equal to the preset gain threshold, the current working mode of the buck-boost circuit is the Buck mode, otherwise the current working mode of the buck-boost circuit is the Boost mode. Exemplarily, the preset gain threshold is 1, if A≤1, the current working mode is the Buck mode; if A>1, the current working mode is the Boost mode.

[0132] The step of determining a target operating mode corresponding to the next operation of the buck-boost circuit according to the target voltage gain includes:

[0133] If the target voltage gain is less than or equal to the preset gain threshold, the target operating mode of the buck-boost circuit is the Buck mode, otherwise the target operating mode of the buck-boost circuit is the Boost mode. Exemplarily, the preset gain threshold is 1, if Atar≤1, the current operating mode is the Buck mode; if Atar>1, the current operating mode is the Boost mode.

[0134] S200, according to the working mode information and the voltage gain information, determining that the duty cycle of the main switch tube of one of the Buck module and the Boost module is a preset maximum duty cycle value, and determining the duty cycle of the main switch tube of another module based on the maximum duty cycle value.

[0135] Further, in step S200, determining, according to the working mode and the voltage gain, that the duty cycle of the main switch tube of one of the Buck module and the Boost module is a preset maximum duty cycle value, and determining the duty cycle of the main switch tube of the other module based on the maximum duty cycle value, includes:

[0136] S210, if the current working mode and the target working mode are different, determining, according to the target working mode, that the duty cycle of the main switch tube in the corresponding module matching the target working mode is a maximum duty cycle value, and determining the duty cycle of the main switch tube of another module based on the maximum duty cycle value and the target voltage gain;

[0137] S220, if the current operating mode and the target operating mode are the same, and the current voltage gain and the target voltage gain are different, control the duty cycle of the main switch tube in the corresponding module under the current operating mode to remain at the maximum duty cycle value, and determine the duty cycle of the main switch tube of another module based on the maximum duty cycle value and the target voltage gain.

[0138] Furthermore, the types of the working modes include: buck mode and boost mode;

[0139] In S210, if the current working mode and the target working mode are different, determining that the duty cycle of the main switch tube in the corresponding module matching the target working mode is the maximum duty cycle value according to the target working mode, and determining the duty cycle of the main switch tube of another module based on the maximum duty cycle value and the target voltage gain, including:

[0140] If the current working mode is the boost mode and the target working mode is the buck mode, the second duty cycle is set to the maximum duty cycle value, and the first duty cycle of the main switch tube in the Buck module is calculated according to the target voltage gain and the second duty cycle; wherein the first duty cycle is the duty cycle of the main switch tube in the Buck module; and the second duty cycle is the duty cycle of the main switch tube in the Boost module;

[0141] If the current working mode is the buck mode and the target working mode is the boost mode, setting and controlling the first duty cycle to be the maximum duty cycle value, and calculating the second duty cycle according to the target voltage gain and the first duty cycle;

[0142] In step S220, if the current working mode is the same as the target working mode, and the current voltage gain is different from the target voltage gain, controlling the duty cycle of the main switch tube in the corresponding module in the current working mode to be maintained at the maximum duty cycle value, and determining the duty cycle of the main switch tube of another module based on the maximum duty cycle value and the target voltage gain, including:

[0143] If the current operating mode is the buck mode and the target operating mode is the buck mode, calculating the first duty cycle according to the target voltage gain and the second duty cycle, wherein the second duty cycle is the maximum duty cycle value;

[0144] If the current operating mode is the boost mode and the target operating mode is the boost mode, the second duty cycle is calculated according to the target voltage gain and the first duty cycle, wherein the first duty cycle is the maximum duty cycle value.

[0145] Furthermore, the maximum duty cycle value is a maximum duty cycle value determined according to the bootstrap driving circuit, that is, the maximum duty cycle value is a maximum duty cycle supported by the bootstrap driving circuit, and the maximum duty cycle value is recorded as N, for example, N=0.97 is designed in hardware.

[0146] S300, taking the determined duty cycle of the two main switch tubes as the target, adjusting the current duty cycles respectively corresponding to the two main switch tubes, and then controlling the corresponding modules so that the buck-boost circuit outputs the target output voltage. The current duty cycle is gradually adjusted to the target duty cycle, and the specific adjustment method adopted is flexibly selected according to the application scenario, and the present application does not impose any restrictions on this. Specifically, as described above, starting from the starting state, the states are switched one by one through the buck output state, the buck output state switching to the boost output state, the boost output state, the boost output state switching to the buck output state, etc. In one embodiment, a PWM pulse signal corresponding to a first duty cycle is used to control the switch of the main switch tube in the Buck buck circuit. A PWM pulse signal corresponding to a second duty cycle is used to control the switch of the main switch tube in the Boost boost circuit.

[0147] Before taking the determined duty ratios of the two main switch tubes as targets and adjusting the current duty ratios respectively corresponding to the two main switch tubes, the method further includes:

[0148] S410, setting a count value of a timer corresponding to the first duty cycle according to a first count value, and setting a count value of a timer corresponding to the second duty cycle according to a second count value;

[0149] Calculating a count value of the timer corresponding to the first duty cycle according to the first duty cycle and an automatic reload register value preset for the timer corresponding to the first duty cycle to obtain the first count value;

[0150] According to the second duty cycle and an automatic reload register value preset for the timer corresponding to the second duty cycle, a count value of the timer corresponding to the second duty cycle is calculated to obtain the second count value.

[0151] Exemplarily, the calculating, according to the first duty cycle and an automatic reload register value preset for the timer corresponding to the first duty cycle, a count value of the timer corresponding to the first duty cycle to obtain the first count value includes:

[0152] ND1=NT×D1, 0<D1≤Dmax;

[0153] Wherein, ND1 is the first count value, NT is the auto-reload register value, and D1 is the first duty cycle;

[0154] The step of calculating the count value of the timer corresponding to the second duty cycle according to the second duty cycle and the automatic reload register value preset for the timer corresponding to the second duty cycle to obtain the second count value includes:

[0155] ND2=NT×D2, 0<D2≤Dmax;

[0156] Wherein, ND2 is the second count value, NT is the auto-reload register value, and D2 is the second duty cycle.

[0157] Further, the working mode information includes a current working mode and a target working mode; the voltage gain information includes a current voltage gain and a target voltage gain;

[0158] The determining of the operation mode information and voltage gain information of the buck-boost circuit based on the actual input voltage and the actual output voltage of the buck-boost circuit detected in real time and the target output voltage corresponding to the next operation of the buck-boost circuit includes:

[0159] If the current voltage gain is less than or equal to the preset gain threshold, the current working mode of the buck-boost circuit is the buck mode; otherwise, the current working mode of the buck-boost circuit is the boost mode;

[0160] If the target voltage gain is less than or equal to a preset gain threshold, the target operating mode of the buck-boost circuit is the buck mode; otherwise, the target operating mode of the buck-boost circuit is the boost mode.

[0161] Exemplarily, the input voltage of the buck-boost circuit is denoted as Vin, and the output voltage is denoted as Vout, both of which are detected by a voltage sensor. The MCU detects Vin and Vout and uses them to calculate the required PWM duty cycle. The target output voltage required to be output is denoted as Vtar. The duty cycle of the upper tube Q1 of the Buck step-down circuit is denoted as D1, and the MCU timer count value corresponding to the D1 duty cycle is ND1. The duty cycle of the upper tube Q3 of the Boost step-up circuit is denoted as D2, and the MCU timer count value corresponding to the D2 duty cycle is ND2. In the embodiment of the present application, the MCU uses a HRTIM high-precision timer, and the periodic automatic reload register value of the PWM is configured to be 4096, denoted as NT=4096.

[0162] The maximum duty cycle that the bootstrap drive circuit can support is denoted as N. The hardware is designed to be N=0.97. The timer count comparison value corresponding to N is NN, so NN=NT×N.

[0163] The relationship between D1, ND1 and NT is:

[0164] ND1=NT×D1 (8)

[0165] The relationship between D2, ND2 and NT is:

[0166] ND2 = NT × D2 (9)

[0167] The current voltage gain Vout / Vin is recorded as A. According to formulas (6) and (7), the current voltage gain is:

[0168] A=Vout / Vin=D1 / D2=ND1 / ND2 (10)

[0169] The target voltage gain is recorded as Atar. If the target output voltage Vtar is to be output, the target gain is:

[0170] Atar=Vtar / Vin (11)

[0171] If the target output voltage Vtar is to be output, the target output voltage Atar in formula (11) is equivalent to the voltage gain A in formula (10), Vtar is equivalent to Vout in formula (10), and Vin is equivalent to Vin in formula (10). A and Atar in formulas (10) and (11) both represent voltage gain, but the signs are different, and the physical meanings are the same, so it is equivalent to A = Atar, that is:

[0172] Voltage gain = Vout / Vin = Vtar / Vin

[0173] According to formula (10) Vout / Vin=D1 / D2, then:

[0174] Vtar / Vin=D1 / D2

[0175] Then the equation is transformed to obtain:

[0176] D1 = (Vtar / Vin) × D2.

[0177] Exemplarily, according to formulas (10) and (11), it can be calculated that in step S210, the duty cycle of the main switch in the Buck module is calculated according to the target voltage gain and the second duty cycle, including:

[0178] D1 = (Vtar / Vin) × D2, D2 = Dmax; (12)

[0179] Wherein, D1 is the first duty cycle, Vtar is the target output voltage, Vin is the actual input voltage, D2 is the second duty cycle, and Dmax is the maximum duty cycle value; Vtar / Vin is the target voltage gain, and the maximum duty cycle value is substituted into the formula D1=(Vtar / Vin)×D2 to obtain the first duty cycle value.

[0180] The calculating the second duty cycle according to the target voltage gain and the first duty cycle includes:

[0181] D2 = (Vin / Vtar) × D1, D1 = Dmax, (13)

[0182] Vin / Vtar is the inverse of the target voltage gain. The second duty cycle is calculated based on the inverse of the target voltage gain and the first duty cycle. The maximum duty cycle value is substituted into the formula D2=(Vin / Vtar)×D1 to obtain the second duty cycle value.

[0183] Furthermore, the buck-boost circuit further includes two bootstrap drive circuits; the two bootstrap drive circuits are used to provide power to the main switch tube in the Buck module and the main switch tube in the Boost module respectively;

[0184] The maximum duty cycle value is a maximum duty cycle value determined according to the bootstrap drive circuit;

[0185] The Buck module and the Boost module both include synchronous rectifiers; in each module, the main switch tube and the corresponding synchronous rectifier are controlled by a fully complementary pulse signal with a dead zone. In the fully complementary pulse signal, only a little dead zone is needed to ensure that no short circuit occurs. The dead zone time can be very small, and the impact on the total duty cycle output can be ignored, and the duty cycle calculation of D1 and D2 is not affected.

[0186] Further, in step S300, the determined duty ratios of the two main switch tubes are taken as targets, the current duty ratios corresponding to the two main switch tubes are adjusted, and then the corresponding modules are controlled so that the buck-boost circuit outputs the target output voltage, including:

[0187] S310, if the current working mode is the Buck step-down mode and the target working mode is the Buck step-down mode, or the current working mode is the Boost step-up mode and the target working mode is the Buck step-down mode, then the main switch tube in the Boost step-up circuit is controlled according to the first PWM pulse signal of the maximum duty cycle value, and the synchronous rectifier tube in the Boost step-up circuit is controlled according to the complementary pulse signal of the first PWM pulse signal, and the main switch tube in the Buck step-down circuit is controlled according to the second PWM pulse signal of the first duty cycle value, and the synchronous rectifier tube in the Buck step-down circuit is controlled according to the complementary pulse signal of the second PWM pulse signal;

[0188] S320, if the current working mode is the Buck step-down mode and the target working mode is the Boost step-up mode, or the current working mode is the Boost step-up mode and the target working mode is the Boost step-up mode, then according to the first PWM pulse signal of the maximum duty cycle value, the main switch tube in the Buck step-down circuit is controlled, and according to the complementary pulse signal of the first PWM pulse signal, the synchronous rectifier tube in the Buck step-down circuit is controlled, and according to the third PWM pulse signal corresponding to the second duty cycle value, the main switch tube in the Boost step-up circuit is controlled, and according to the complementary pulse signal of the third PWM pulse signal, the synchronous rectifier tube in the Boost step-up circuit is controlled.

[0189] The following is an introduction to the four-switch buck-boost circuit control method of the present application embodiment with reference to a specific example. Figure 3 As shown, the following steps are included:

[0190] S510, the MCU detects the actual input voltage and the actual output voltage of the Buck-Boost four-switch step-up and step-down circuit.

[0191] S520, determining the magnitude relationship between the current voltage gain A and the gain threshold 1.

[0192] S531, A≤1, then execute step S532.

[0193] S532, determine that the current working mode is the Buck mode, set D2 to the maximum duty cycle value, and calculate the value of D1 according to formula (12).

[0194] S533, determine whether Atar>1 is established. If yes, execute step S534, otherwise execute step S532.

[0195] S534, the target operation mode of the Buck-Boost four-switch buck-boost circuit is switched to the Boost mode, D1 is set to the maximum duty cycle value, and the value of D2 is calculated according to formula (13), and then the process returns to step S520 to continue monitoring the voltage gain.

[0196] S541, A>1, then execute step S542.

[0197] S542, determine that the current working mode is the Boost mode, set D1 to the maximum duty cycle value, and calculate the value of D2 according to formula (13).

[0198] S543, determine whether Atar<1 holds. If so, execute step S544, otherwise execute step S542.

[0199] S544, the target operating mode of the Buck-Boost four-switch buck-boost circuit is switched to the Buck buck mode, D2 is set to the maximum duty cycle value, and the value of D1 is calculated according to formula (12), and then the process returns to step S520 to continue monitoring the voltage gain.

[0200] S550, generates a PWM wave according to the value of D1 to control the switching of the power switch tube S1 (main switch tube) in the Buck buck circuit, and adopts a complementary PWM wave to control the switching of the power switch tube S2 (synchronous rectifier tube) in the Buck buck circuit; generates a PWM wave according to the value of D2 to control the switching of the power switch tube S3 (main switch tube) in the Boost boost circuit, and adopts a complementary PWM wave to control the switching of the power switch tube S4 (synchronous rectifier tube) in the Boost boost circuit, so that the Buck-Boost four-switch boost-boost circuit outputs the target voltage.

[0201] Compared with the control method of the prior art, under the same input and output conditions, the power conversion efficiency of the present application is higher, the resolution of PWM output is higher, the output voltage control is more precise, and the switching between the boost output and buck output modes can switch the transition critical point more smoothly.

[0202] Figure 4 A schematic diagram of the structure of a four-switch buck-boost circuit control device according to an embodiment of the present application is shown. Exemplarily, the four-switch buck-boost circuit control device includes: an information determination module 410 , a duty cycle determination module 420 and a control module 430 .

[0203] An information determination module 410, configured to determine the operation mode information and voltage gain information of the buck-boost circuit based on the actual input voltage and the actual output voltage of the buck-boost circuit detected in real time, and the target output voltage corresponding to the next operation of the buck-boost circuit;

[0204] A duty cycle determination module 420, configured to determine, according to the operating mode information and the voltage gain information, that the duty cycle of the main switch tube of one of the Buck module and the Boost module is a preset maximum duty cycle value, and determine the duty cycle of the main switch tube of the other module based on the maximum duty cycle value;

[0205] The control module 430 is used to take the determined duty cycle of the two main switch tubes as a target, adjust the current duty cycles corresponding to the two main switch tubes respectively, and then control the corresponding modules so that the buck-boost circuit outputs the target output voltage.

[0206] It can be understood that the device of this embodiment corresponds to the four-switch buck-boost circuit control method of the above embodiment, and the options in the above embodiment are also applicable to this embodiment, so they will not be repeated here.

[0207] The present application also provides a terminal device, which exemplarily includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program to enable the terminal device to execute the functions of each module in the above-mentioned four-switch buck-boost circuit control method or the above-mentioned four-switch buck-boost circuit control device. The terminal device is the MCU in the embodiment of the present application.

[0208] Among them, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU) and a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or at least one of other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application.

[0209] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory is used to store a computer program, and the processor may execute the computer program accordingly after receiving an execution instruction.

[0210] The present application also provides a computer-readable storage medium for storing the computer program used in the above-mentioned terminal device. For example, the computer-readable storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0211] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0212] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0213] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.

[0214] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.

Claims

1. A four-switch buck-boost circuit control method, characterized in that: The step-up / step-down circuit includes a Buck module and a Boost module; the method includes: Determine the operation mode information and voltage gain information of the buck-boost circuit based on the actual input voltage and the actual output voltage of the buck-boost circuit detected in real time, and the target output voltage corresponding to the next operation of the buck-boost circuit; According to the working mode information and the voltage gain information, determining that the duty cycle of the main switch tube of one of the Buck module and the Boost module is a preset maximum duty cycle value, and determining the duty cycle of the main switch tube of the other module based on the maximum duty cycle value; The determined duty ratios of the two main switch tubes are taken as targets, and the current duty ratios corresponding to the two main switch tubes are adjusted respectively, and then the corresponding modules are controlled so that the buck-boost circuit outputs the target output voltage.

2. The four-switch buck-boost circuit control method according to claim 1, characterized in that: The working mode information includes the current working mode and the target working mode; the voltage gain information includes the current voltage gain and the target voltage gain; Determining, according to the working mode and the voltage gain, that the duty cycle of the main switch tube of one of the Buck module and the Boost module is a preset maximum duty cycle value, and determining the duty cycle of the main switch tube of the other module based on the maximum duty cycle value, includes: If the current working mode and the target working mode are different, determining, according to the target working mode, that the duty cycle of the main switch tube in the corresponding module matching the target working mode is a maximum duty cycle value, and determining the duty cycle of the main switch tube of another module based on the maximum duty cycle value and the target voltage gain; If the current operating mode and the target operating mode are the same, and the current voltage gain and the target voltage gain are different, the duty cycle of the main switch tube in the corresponding module under the current operating mode is controlled to remain at the maximum duty cycle value, and the duty cycle of the main switch tube of another module is determined based on the maximum duty cycle value and the target voltage gain.

3. The four-switch buck-boost circuit control method according to claim 2, characterized in that: The types of working modes include: buck mode and boost mode; If the current working mode and the target working mode are different, determining, according to the target working mode, that the duty cycle of the main switch tube in the corresponding module matching the target working mode is a maximum duty cycle value, and determining the duty cycle of the main switch tube of another module based on the maximum duty cycle value and the target voltage gain, including: If the current working mode is the boost mode and the target working mode is the buck mode, the second duty cycle is set to the maximum duty cycle value, and the first duty cycle of the main switch tube in the Buck module is calculated according to the target voltage gain and the second duty cycle; wherein the first duty cycle is the duty cycle of the main switch tube in the Buck module; and the second duty cycle is the duty cycle of the main switch tube in the Boost module; If the current operating mode is the buck mode and the target operating mode is the boost mode, the first duty cycle is set to be the maximum duty cycle value, and the second duty cycle is calculated according to the target voltage gain and the first duty cycle.

4. The four-switch buck-boost circuit control method according to claim 3, characterized in that: If the current working mode is the same as the target working mode, and the current voltage gain is different from the target voltage gain, controlling the duty cycle of the main switch tube in the corresponding module in the current working mode to be maintained at the maximum duty cycle value, and determining the duty cycle of the main switch tube of another module based on the maximum duty cycle value and the target voltage gain, including: If the current operating mode is the buck mode and the target operating mode is the buck mode, calculating the first duty cycle according to the target voltage gain and the second duty cycle, wherein the second duty cycle is the maximum duty cycle value; If the current operating mode is the boost mode and the target operating mode is the boost mode, the second duty cycle is calculated according to the target voltage gain and the first duty cycle, wherein the first duty cycle is the maximum duty cycle value.

5. The four-switch buck-boost circuit control method according to claim 3, characterized in that: Before taking the determined duty ratios of the two main switch tubes as targets and adjusting the current duty ratios respectively corresponding to the two main switch tubes, the method further includes: Setting a count value of a timer corresponding to the first duty cycle according to a first count value, and setting a count value of a timer corresponding to the second duty cycle according to a second count value; Calculating a count value of the timer corresponding to the first duty cycle according to the first duty cycle and an automatic reload register value preset for the timer corresponding to the first duty cycle to obtain the first count value; According to the second duty cycle and an automatic reload register value preset for the timer corresponding to the second duty cycle, a count value of the timer corresponding to the second duty cycle is calculated to obtain the second count value.

6. The four-switch buck-boost circuit control method according to claim 1, characterized in that: The working mode information includes the current working mode and the target working mode; the voltage gain information includes the current voltage gain and the target voltage gain; The determining of the operation mode information and voltage gain information of the buck-boost circuit based on the actual input voltage and the actual output voltage of the buck-boost circuit detected in real time and the target output voltage corresponding to the next operation of the buck-boost circuit includes: If the current voltage gain is less than or equal to the preset gain threshold, the current working mode of the buck-boost circuit is the buck mode; otherwise, the current working mode of the buck-boost circuit is the boost mode; If the target voltage gain is less than or equal to a preset gain threshold, the target operating mode of the buck-boost circuit is the buck mode; otherwise, the target operating mode of the buck-boost circuit is the boost mode.

7. The four-switch buck-boost circuit control method according to claim 3, characterized in that: The step of calculating the duty cycle of the main switch in the Buck module according to the target voltage gain and the second duty cycle includes: D1=(Vtar / Vin)×D2, D2=Dmax; Wherein, D1 is the first duty cycle, Vtar is the target output voltage, Vin is the actual input voltage, D2 is the second duty cycle, and Dmax is the maximum duty cycle value; The calculating the second duty cycle according to the target voltage gain and the first duty cycle includes: D2=(Vin / Vtar)×D1, D1=Dmax.

8. The four-switch buck-boost circuit control method according to claim 5, characterized in that: The calculating, according to the first duty cycle and the automatic reload register value preset for the timer corresponding to the first duty cycle, a count value of the timer corresponding to the first duty cycle to obtain the first count value includes: ND1=NT×D1, 0<D1≤Dmax; Wherein, ND1 is the first count value, NT is the auto-reload register value, and D1 is the first duty cycle; The step of calculating the count value of the timer corresponding to the second duty cycle according to the second duty cycle and the automatic reload register value preset for the timer corresponding to the second duty cycle to obtain the second count value includes: ND2=NT×D2, 0<D2≤Dmax; Wherein, ND2 is the second count value, NT is the auto-reload register value, and D2 is the second duty cycle.

9. The four-switch buck-boost circuit control method according to any one of claims 1 to 8, characterized in that: The buck-boost circuit also includes two bootstrap drive circuits; the two bootstrap drive circuits are used to provide power to the main switch tube in the Buck module and the main switch tube in the Boost module respectively; The maximum duty cycle value is a maximum duty cycle value determined according to the bootstrap drive circuit; The Buck module and the Boost module both further include synchronous rectifiers; in each module, the main switch tube and the corresponding synchronous rectifier tube are controlled by a fully complementary pulse signal with a dead zone.

10. A four-switch buck-boost circuit, characterized in that: The four-switch buck-boost circuit adopts the method described in any one of claims 1-9 to perform buck-boost control.

Citation Information

Cited By

  • Boost voltage gain control method and system

    CN120320590A