A Four-Switch Buck-Boost Circuit Control Method
By using the adjustment module and the PWM control module in the four-switch Buck-Boost circuit to adjust the switching duty cycle according to the voltage error signal, the problem of system instability is solved and higher stability and fine circuit adjustment are achieved.
Patent Information
- Application Number
- CN202410873985.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-02
Smart Images

Figure CN118449377B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of circuits, and in particular to a four-switch Buck-Boost circuit control method. Background Art
[0002] The four-switch Buck-Boost circuit is a special DC-DC converter with four switching elements that can achieve input voltage step-up and step-down conversion. It has high voltage conversion efficiency and a wide input voltage range, and is suitable for many power management and energy conversion applications.
[0003] For example, the prior art CN104467427B discloses a switch control circuit and a control method for a four-tube Buck-Boost converter. By controlling the on-time or off-time of the first switch and the third switch, the switching period of the system is made a constant value, that is, fixed-frequency control is achieved, and the system can be ensured to operate at a constant off-time or a constant on-time.
[0004] Another typical prior art disclosed in CN106208698B is a four-switch Buck-Boost converter circuit with a soft switch and a control method thereof, wherein a soft switch branch is connected in parallel to the main inductor L of the circuit; and a support capacitor Ca1 is connected in parallel to the side of the power MOSFET tube Q3, and a support capacitor Ca2 is connected in parallel to the side of the power MOSFET tube Q2; the soft switch branch includes an auxiliary unit and a soft switch unit connected in series; the method determines the current working state of the four-switch Buck-Boost converter circuit; connects the soft switch branch in the circuit and closes the power MOSFET tube corresponding to the current working state until the total current value of the circuit is 0; disconnects the soft switch branch so that the power MOSFET tube corresponding to the current working state is turned on with zero current until the current value of the main inductor L begins to decrease, and connects the soft switch branch again until the total current of the four-switch Buck-Boost converter circuit is zero, and the control ends.
[0005] Let's look at a control circuit disclosed in the prior art such as CN106849659B. The control circuit is used to control a four-switch buck / boost Buck-Boost converter. The control circuit includes a controller and a zero-crossing detection module. The output end of the zero-crossing detection module is connected to the fourth input end of the control circuit. A switching cycle of the four-switch Buck-Boost converter includes a first interval, a second interval and a third interval; the dividing point between the first interval and the second interval is the first time point t1, the dividing point between the second interval and the third interval is the second time point t2, and the end time point of the third interval is the third time point t3. The controller determines the first time point t1, the second time point t2 and the third time point t3 from the switching cycle according to the working mode of the four-switch Buck-Boost converter, and then controls the action sequence of the first switch, the second switch and the third switch according to the first time point t1, the second time point t2 and the third time point t3.
[0006] The four-switch Buck-Boost circuit in the prior art is generally controlled by setting a constant on-time and a constant off-time. This control method easily causes system instability and fails to adjust the circuit in time according to system changes. In order to solve the common problems in the field, the present invention is made. Summary of the invention
[0007] The purpose of the present invention is to propose a four-switch Buck-Boost circuit control method to address the current deficiencies.
[0008] In order to overcome the shortcomings of the prior art, the present invention adopts the following technical solutions:
[0009] A four-switch Buck-Boost circuit control method, the control method comprising the following steps:
[0010] S1, keep the third switch turned on and the fourth and second switches turned off, and make the first switch work according to the initial duty cycle of the first switch. At this time, the circuit is in buck mode;
[0011] S2, obtaining a first error signal according to the first theoretical output voltage and the actual output voltage, and generating an adjustment signal based on the first error signal, the detection period and relevant component parameters of the adjustment module, and the first PWM control module adjusts the duty cycle of the first switch according to the adjustment signal;
[0012] S3, determine whether the actual output voltage is not less than the input voltage, if not, return to the previous step and continue testing, otherwise, execute the next step;
[0013] S4, the fourth switch is turned on, and the first switch and the third switch are turned off, and the second switch operates according to the initial duty cycle of the second switch, and the circuit enters the boost mode;
[0014] S5, obtaining a second error signal according to the second theoretical output voltage and the actual output voltage, and generating an adjustment signal based on the second error signal, the detection period and relevant component parameters of the adjustment module, and the first PWM control module adjusts the duty cycle of the second switch according to the adjustment signal;
[0015] S6, determine whether the actual output voltage is less than the input voltage, if not, return to the previous step and continue testing, otherwise, execute the next step;
[0016] S7, the third switch is turned on, and the fourth and second switches are turned off, the first switch operates according to the initial duty cycle of the first switch, and the circuit enters the buck mode and returns to S2.
[0017] Furthermore, adjusting the duty cycle of the first switch in S2 includes the following steps:
[0018] S21, the error signal acquisition unit acquires the actual output voltage;
[0019] S22, the error signal acquisition unit obtains a first error signal according to the actual output voltage;
[0020] S23, the regulating unit obtains a regulating signal according to the first error signal;
[0021] S24: The first PWM control module adjusts the duty cycle of the first switch according to the adjustment signal.
[0022] Furthermore, it also includes a control system of a four-switch Buck-Boost circuit, the control system includes a four-switch Buck-Boost circuit, a regulation module and a PWM control module, the four-switch Buck-Boost circuit includes a voltage input terminal, a voltage output terminal, an inductor, a first switch, a second switch, a third switch, a fourth switch, an input capacitor and an output capacitor, the first switch and the second switch constitute a front bridge arm, the voltage input terminal is connected to the front bridge arm, the input capacitor is arranged between the voltage input terminal and the front bridge arm, the input capacitor is connected in parallel with the front bridge arm, the third switch and the fourth switch constitute a rear bridge arm, the inductor is arranged between the front bridge arm and the rear bridge arm, the rear bridge arm is connected to the voltage output terminal, the output capacitor is arranged between the voltage output terminal and the rear bridge arm, and the output capacitor is connected in parallel with the rear bridge arm.
[0023] Furthermore, the PWM control module includes a first PWM control module and a second PWM control module, and the regulation module includes an error signal acquisition unit, a fifth switch and a regulation unit, the input end of the error signal acquisition unit is connected to the voltage output end, and the fifth switch is a multi-way switch; when the fifth switch is in a first conduction mode, the output end of the error signal acquisition unit is connected to the second PWM control module, and the output end of the error signal acquisition unit is disconnected from the input end of the regulation unit; when the fifth switch is in a second conduction mode, the output end of the error signal acquisition unit is connected to the input end of the regulation unit, and the output end of the error signal acquisition unit is disconnected from the second PWM control module; the output end of the regulation unit is connected to the first PWM control module.
[0024] Furthermore, the output end of the first PWM control module is connected to the first and second switches, and the first PWM control module is used to control the duty cycle of the first and second switches in the buck or boost mode. The output end of the second PWM control module is connected to the first, second, third and fourth switches, and the second PWM control module is used to control the duty cycle of the first, second, third and fourth switches during the switching process between the buck and boost modes.
[0025] Furthermore, the error signal acquisition unit is used to acquire the error signal, and the error signal acquisition unit includes an acquisition unit, a voltage detection unit and a theoretical voltage generation unit. The acquisition unit is used to acquire the actual output voltage, the voltage detection unit is used to acquire the actual output voltage and determine whether the voltage value of the actual output voltage is the same as that of the input voltage, and the theoretical voltage generation unit is used to generate an ideal voltage signal; the voltage detection unit is interconnected with the fifth switch signal, when the voltage value of the actual output voltage is the same as that of the input voltage, the voltage detection unit sends a corresponding signal to the fifth switch, and the fifth switch adopts a first conduction mode, when the voltage value of the actual output voltage is different from that of the input voltage, the voltage detection unit sends a corresponding signal to the fifth switch, and the fifth switch adopts a second conduction mode.
[0026] Furthermore, the theoretical voltage generating unit includes a power supply and a variable resistor, the voltage value provided by the power supply is the same as the input voltage, the variable resistor includes a signal receiving part and a resistance adjusting part, the signal receiving part and the duty cycle detection part communicate with each other, the signal receiving part determines whether the first switch or the second switch is currently working and its corresponding duty cycle through the signal received from the duty cycle detection part, and the resistance adjusting part is used to adjust the resistance value of the variable resistor according to the signal received by the signal receiving part, so that the voltage value of the output signal of the theoretical voltage generating unit is the same as the ideal voltage signal.
[0027] Furthermore, the regulating unit includes a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor and an operational amplifier, one end of the first resistor is connected to the output end of the acquisition unit, and the other end is connected to the negative input end of the operational amplifier; one end of the second resistor is connected to the output end of the theoretical voltage generating unit, and the other end is connected to the negative input end of the operational amplifier; one end of the third resistor is connected to the positive input end of the operational amplifier, and the other end is grounded; the fourth resistor and the first capacitor are connected in series, and the series circuit is connected in parallel with the operational amplifier, the fourth resistor is connected to the negative input end of the operational amplifier, the first capacitor is connected to the output end of the operational amplifier, and the output end of the operational amplifier is connected to the first PWM control module.
[0028] The beneficial effects achieved by the present invention are: 1. By setting the regulation module and the first and second PWM control modules and adjusting the duty cycle of the switch according to the voltage error, compared with the conventional method of directly using the PWM circuit for control according to the output voltage, the amplitude of each adjustment is finer, which is beneficial to improving the stability of the system.
[0029] 2. In the process of using the error signal to obtain the adjustment signal, compared with directly using the current error signal to obtain the adjustment signal, this scheme obtains the adjustment signal based on the current error of the error signal and the sum of the errors within a detection cycle, avoiding the impact caused by sudden error changes and improving the stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The present invention can be further understood from the following description in conjunction with the accompanying drawings. The components in the figures are not necessarily drawn to scale, but the emphasis is placed on illustrating the principles of the embodiments. In different views, the same reference numerals designate the same parts.
[0031] Figure 1 It is the work flow chart of the present invention.
[0032] Figure 2 It is a schematic diagram of the structure of the present invention.
[0033] Figure 3 It is a structural schematic diagram of the regulating module of the present invention.
[0034] Figure 4 It is a schematic structural diagram of the adjustment unit of the present invention. DETAILED DESCRIPTION
[0035] The following is an explanation of the embodiments of the present invention through specific embodiments. Those skilled in the art can understand the advantages and effects of the present invention from the contents disclosed in this specification. The present invention can be implemented or applied through other different specific embodiments, and the details in this specification can also be modified and changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. In addition, the drawings of the present invention are only simple schematic illustrations and are not depicted according to actual sizes. It is stated in advance. The following embodiments will further explain the relevant technical contents of the present invention in detail, but the disclosed contents are not intended to limit the scope of protection of the present invention.
[0036] Embodiment 1: According to Figure 1 , Figure 2 , Figure 3 and Figure 4 , this embodiment provides a four-switch Buck-Boost circuit control method, the control method comprising the following steps:
[0037] S1, keep the third switch turned on and the fourth and second switches turned off, and make the first switch work according to the initial duty cycle of the first switch. At this time, the circuit is in buck mode;
[0038] S2, obtaining a first error signal according to the first theoretical output voltage and the actual output voltage, and generating an adjustment signal based on the first error signal, the detection period and relevant component parameters of the adjustment module, and the first PWM control module adjusts the duty cycle of the first switch according to the adjustment signal;
[0039] S3, determine whether the actual output voltage is not less than the input voltage, if not, return to the previous step and continue testing, otherwise, execute the next step;
[0040] Specifically, due to the influence of the load, the actual output voltage will continue to change. When the value of the actual output voltage is greater than or equal to the value of the input voltage, the working mode of the circuit needs to be changed;
[0041] S4, the fourth switch is turned on, and the first switch and the third switch are turned off, and the second switch operates according to the initial duty cycle of the second switch, and the circuit enters the boost mode;
[0042] S5, obtaining a second error signal according to the second theoretical output voltage and the actual output voltage, and generating an adjustment signal based on the second error signal, the detection period and relevant component parameters of the adjustment module, and the first PWM control module adjusts the duty cycle of the second switch according to the adjustment signal;
[0043] S6, determine whether the actual output voltage is less than the input voltage, if not, return to the previous step and continue testing, otherwise, execute the next step;
[0044] S7, the third switch is turned on, and the fourth and second switches are turned off, the first switch operates according to the initial duty cycle of the first switch, and the circuit enters the buck mode and returns to S2.
[0045] Specifically, the initial duty cycle is set by those skilled in the art.
[0046] Furthermore, adjusting the duty cycle of the first switch in S2 includes the following steps:
[0047] S21, the error signal acquisition unit acquires the actual output voltage;
[0048] S22, the error signal acquisition unit obtains a first error signal according to the actual output voltage;
[0049] Specifically, the first error signal satisfies the following formula:
[0050]
[0051]
[0052] in, is the voltage value of the first error signal, is the first theoretical output voltage, is the actual output voltage, is the initial duty cycle of the first switch, is the actual detected value of the input voltage, and the adjustment signal can be obtained by obtaining the first error signal, so that various parts of the circuit are adjusted according to the adjustment signal;
[0053] Specifically, the initial duty ratio of the first switch and the second switch can be set by a person skilled in the art between 0.5 and 1 according to the historical output voltage, and the larger the ratio, the closer the initial duty ratio is to 1;
[0054] S23, the regulating unit obtains a regulating signal according to the first error signal;
[0055] Specifically, Figure 4 As shown, the adjustment unit includes a first resistor ( )、Second resistor( )、The third resistor( )、The fourth resistor( )、First Capacitor( ) and an operational amplifier, one end of the first resistor is connected to the output end of the acquisition unit, and the other end is connected to the negative input end of the operational amplifier; one end of the second resistor is connected to the output end of the theoretical voltage generating unit, and the other end is connected to the negative input end of the operational amplifier; the fourth resistor and the first capacitor are connected in series, and the series circuit is connected in parallel with the operational amplifier, the fourth resistor is connected to the negative input end of the operational amplifier, and the first capacitor is connected to the output end of the operational amplifier;
[0056] The voltage of the adjustment signal and the voltage of the first error signal satisfy the following formula:
[0057]
[0058] in, is the voltage of the adjustment signal corresponding to the first error signal, is the resistance value of the second resistor, is the resistance value of the first resistor, is the resistance value of the fourth resistor, is the capacitance value of the first capacitor, is the current detection moment, mis() is the voltage value of the error signal corresponding to the current detection moment, and T is the detection cycle, that is, the interval time of each adjustment; the adjustment signal is obtained by the sum of the current error of the first error signal and the error within a detection cycle, avoiding the influence caused by the sudden change of the error. At the same time, by adjusting , , , which can change the weight of the current error and the sum of the errors, so that technicians in this field can adjust the adjustment signal;
[0059] S24: The first PWM control module adjusts the duty cycle of the first switch according to the adjustment signal.
[0060] Specifically, the voltage value of the adjustment signal and the duty cycle of the first switch satisfy the following formula:
[0061]
[0062] in, is the value after the duty cycle of the first switch is adjusted;
[0063] Specifically, the duty cycle of the first switch may be adjusted in S5 in the following manner:
[0064] The error signal acquisition unit obtains a second error signal according to the actual output voltage;
[0065] The second error signal satisfies the following equation:
[0066]
[0067]
[0068] in, is the voltage value of the second error signal, is the second theoretical output voltage, is the actual output voltage, is the initial duty cycle of the second switch. In the buck mode of the present application, the output voltage is lower than the input voltage, and in the boost mode, the output voltage is higher than the input voltage.
[0069] The second error signal passes through the adjustment unit to obtain an adjustment signal. The voltage of the adjustment signal and the voltage of the second error signal satisfy the following formula:
[0070]
[0071] is the voltage of the adjustment signal corresponding to the second error signal, and the adjustment signal is input to the first PWM control module; the first PWM control module adjusts the duty cycle of the second switch according to the adjustment signal, and the voltage value of the adjustment signal and the duty cycle of the second switch satisfy the following formula:
[0072]
[0073] is the value after the duty cycle of the second switch is adjusted;
[0074] The first PWM control module adjusts the duty cycle of the first switch through a PWM circuit. The first, second, third and fourth switches are MOSFET tubes. Adjusting the duty cycle of the MOSFET tube through a PWM circuit belongs to the prior art. The structure of the PWM circuit is not described in detail here. Those skilled in the art can directly adopt the PWM circuit of the prior art or design the PWM circuit by themselves.
[0075] Furthermore, it also includes a control system of a four-switch Buck-Boost circuit, the control system includes a four-switch Buck-Boost circuit, a regulation module and a PWM control module, the four-switch Buck-Boost circuit includes a voltage input terminal, a voltage output terminal, an inductor, a first switch, a second switch, a third switch, a fourth switch, an input capacitor and an output capacitor, the first switch and the second switch constitute a front bridge arm, the voltage input terminal is connected to the front bridge arm, the input capacitor is arranged between the voltage input terminal and the front bridge arm, the input capacitor is connected in parallel with the front bridge arm, the third switch and the fourth switch constitute a rear bridge arm, the inductor is arranged between the front bridge arm and the rear bridge arm, the rear bridge arm is connected to the voltage output terminal, the output capacitor is arranged between the voltage output terminal and the rear bridge arm, and the output capacitor is connected in parallel with the rear bridge arm.
[0076] Furthermore, the PWM control module includes a first PWM control module and a second PWM control module, and the regulation module includes an error signal acquisition unit, a fifth switch and a regulation unit, the input end of the error signal acquisition unit is connected to the voltage output end, and the fifth switch is a multi-way switch; when the fifth switch is in a first conduction mode, the output end of the error signal acquisition unit is connected to the second PWM control module, and the output end of the error signal acquisition unit is disconnected from the input end of the regulation unit; when the fifth switch is in a second conduction mode, the output end of the error signal acquisition unit is connected to the input end of the regulation unit, and the output end of the error signal acquisition unit is disconnected from the second PWM control module; the output end of the regulation unit is connected to the first PWM control module.
[0077] Furthermore, the output end of the first PWM control module is connected to the first and second switches, and the first PWM control module is used to control the duty cycle of the first and second switches in the buck or boost mode. The output end of the second PWM control module is connected to the first, second, third and fourth switches, and the second PWM control module is used to control the duty cycle of the first, second, third and fourth switches during the switching process between the buck and boost modes.
[0078] Specifically, the adjustment module is as follows: Figure 3As shown, when the fifth switch is in the first conduction mode, the error signal acquisition unit outputs the error signal to the second PWM control module, thereby controlling the duty ratios of the first, second, third and fourth switches in the switching process between the buck and boost modes through the second PWM control module; when the fifth switch is in the second conduction mode, the error signal output by the error signal acquisition unit is converted into a regulation signal after passing through the regulation unit and is output to the first PWM control module, thereby controlling the duty ratios of the first and second switches in the buck or boost mode through the first PWM control module.
[0079] Specifically, the first PWM control module controls the duty cycle of the first and second switches through the adjustment signal sent by the adjustment module; after the second PWM control module receives the error signal of the adjustment module, it performs reverse control on the duty cycle of the first, second, third and fourth switches. For the third and fourth switches, the reverse control is to switch the switch from on to off or from off to on. For the first and second switches, the reverse control is to switch the switch from the current duty cycle to off or from off to the initial duty cycle.
[0080] Furthermore, the error signal acquisition unit is used to acquire an error signal, and the error signal acquisition unit is used to acquire an error signal. The error signal acquisition unit includes an acquisition unit, a voltage detection unit and a theoretical voltage generation unit. The acquisition unit is used to acquire the actual output voltage, and the voltage detection unit is used to acquire the actual output voltage and determine whether the voltage value of the actual output voltage is the same as that of the input voltage, and the theoretical voltage generation unit is used to generate an ideal voltage signal; the voltage detection unit is interconnected with the fifth switch signal, and when the voltage value of the actual output voltage is the same as that of the input voltage, the voltage detection unit sends a corresponding signal to the fifth switch, and the fifth switch adopts a first conduction mode, and when the voltage value of the actual output voltage is different from that of the input voltage, the voltage detection unit sends a corresponding signal to the fifth switch, and the fifth switch adopts a second conduction mode.
[0081] Specifically, by outputting the ideal voltage signal and the output voltage signal to the subtraction circuit at the same time, an error signal can be obtained; the theoretical voltage generating unit includes a theoretical voltage generating unit.
[0082] Furthermore, the theoretical voltage generating unit includes a power supply and a variable resistor, the voltage value provided by the power supply is the same as the input voltage, the variable resistor includes a signal receiving part and a resistance adjusting part, the signal receiving part and the duty cycle detection part are mutually communicated, and the duty cycle detection part is arranged on the first switch and the second switch; the signal receiving part determines whether the first switch or the second switch is currently working and its corresponding duty cycle through the signal received from the duty cycle detection part, and the resistance adjusting part is used to adjust the resistance value of the variable resistor according to the signal received by the signal receiving part, so that the voltage value of the output signal of the theoretical voltage generating unit is the same as the ideal voltage signal.
[0083] The structure of the theoretical voltage generating unit can be set by those skilled in the art with reference to conventional circuits, and will not be elaborated herein.
[0084] Furthermore, one end of the third resistor is connected to the positive input terminal of the operational amplifier, and the other end is grounded; the output terminal of the operational amplifier is connected to the first PWM control module.
[0085] Specifically, the adjustment unit is as follows: Figure 4 shown.
[0086] The beneficial effects of this solution are as follows: 1. By setting up the regulation module and the first and second PWM control modules and adjusting the duty cycle of the switch according to the voltage error, compared with the conventional method of directly using the PWM circuit for control according to the output voltage, the amplitude of each adjustment is finer, which is beneficial to improving the stability of the system.
[0087] 2. In the process of using the error signal to obtain the adjustment signal, compared with directly using the current error signal to obtain the adjustment signal, this scheme obtains the adjustment signal based on the current error of the error signal and the sum of the errors within a detection cycle, avoiding the impact caused by sudden error changes and improving the stability of the system.
[0088] Embodiment 2: This embodiment should be understood to include all the features of any of the above embodiments, and further improves on the basis thereof, and also includes a method for obtaining an initial duty cycle, and the method for obtaining includes the following contents:
[0089]
[0090]
[0091] Where X is the current working cycle, is the maximum value of the error signal voltage in the xth working cycle, is the maximum value of the input voltage in the xth working cycle, is the average initial duty cycle of the first switch in the first 10 working cycles; is the average initial duty cycle of the second switch for the first 10 working cycles, is the maximum value of the theoretical output voltage of the xth working cycle;
[0092] Specifically, each working cycle is a process in which the four-switch Buck-Boost circuit changes from a buck mode to a boost mode and then changes back to a buck mode; when X=1, the initial duty cycle is set to 1.
[0093] The beneficial effect of this embodiment is that by setting the initial duty cycle and adjusting the initial duty cycle at the beginning of each working cycle, the four-switch Buck-Boost circuit does not need to adjust the switch duty cycle from 1 each time, thereby speeding up the speed at which the circuit enters a steady state.
[0094] The above disclosed contents are only preferred feasible embodiments of the present invention, and do not limit the protection scope of the present invention. Therefore, all equivalent technical changes made by using the contents of the present invention specification and drawings are included in the protection scope of the present invention. In addition, the elements therein can be updated with the development of technology. The above units are only examples. Those skilled in the art can use corresponding units according to different designs according to actual needs when implementing this solution.
Claims
1. A four-switch Buck-Boost circuit control method, characterized in that: The control method comprises the following steps: S1, keep the third switch turned on and the fourth and second switches turned off, and make the first switch work according to the initial duty cycle of the first switch. At this time, the circuit is in buck mode; S2, obtaining a first error signal according to the first theoretical output voltage and the actual output voltage, and generating an adjustment signal based on the first error signal, the detection period and relevant component parameters of the adjustment module, and the first PWM control module adjusts the duty cycle of the first switch according to the adjustment signal; S3, determine whether the actual output voltage is not less than the input voltage, if not, return to the previous step and continue testing, otherwise, execute the next step; S4, the fourth switch is turned on, and the first switch and the third switch are turned off, and the second switch operates according to the initial duty cycle of the second switch, and the circuit enters the boost mode; S5, obtaining a second error signal according to the second theoretical output voltage and the actual output voltage, and generating an adjustment signal based on the second error signal, the detection period and relevant component parameters of the adjustment module, and the first PWM control module adjusts the duty cycle of the second switch according to the adjustment signal; S6, determine whether the actual output voltage is less than the input voltage, if not, return to the previous step and continue testing, otherwise, execute the next step; S7, the third switch is turned on, and the fourth and second switches are turned off, the first switch operates according to the initial duty cycle of the first switch, and the circuit enters the buck mode and returns to S2; Adjusting the duty cycle of the first switch in S2 includes the following steps: S21, the error signal acquisition unit acquires the actual output voltage; S22, the error signal acquisition unit obtains a first error signal according to the actual output voltage; S23, the regulating unit obtains a regulating signal according to the first error signal; S24, the first PWM control module adjusts the duty cycle of the first switch according to the adjustment signal; Also included is a control system of a four-switch Buck-Boost circuit, the control system comprising a four-switch Buck-Boost circuit, a regulating module and a PWM control module, the four-switch Buck-Boost circuit comprising a voltage input terminal, a voltage output terminal, an inductor, a first switch, a second switch, a third switch, a fourth switch, an input capacitor and an output capacitor, the first switch and the second switch constitute a front bridge arm, the voltage input terminal is connected to the front bridge arm, the input capacitor is arranged between the voltage input terminal and the front bridge arm, the input capacitor is connected in parallel with the front bridge arm, the third switch and the fourth switch constitute a rear bridge arm, the inductor is arranged between the front bridge arm and the rear bridge arm, the rear bridge arm is connected to the voltage output terminal, the output capacitor is arranged between the voltage output terminal and the rear bridge arm, and the output capacitor is connected in parallel with the rear bridge arm; The PWM control module includes a first PWM control module and a second PWM control module, and the regulating module includes an error signal acquisition unit, a fifth switch and a regulating unit, wherein the input end of the error signal acquisition unit is connected to the voltage output end, and the fifth switch is a multi-way switch; when the fifth switch is in a first conduction mode, the output end of the error signal acquisition unit is connected to the second PWM control module, and the output end of the error signal acquisition unit is disconnected from the input end of the regulating unit; when the fifth switch is in a second conduction mode, the output end of the error signal acquisition unit is connected to the input end of the regulating unit, and the output end of the error signal acquisition unit is disconnected from the second PWM control module; the output end of the regulating unit is connected to the first PWM control module; The output end of the first PWM control module is connected to the first switch and the second switch, and the first PWM control module is used to control the duty ratio of the first and second switches in the buck or boost mode. The output end of the second PWM control module is connected to the first switch, the second switch, the third switch and the fourth switch, and the second PWM control module is used to control the duty ratio of the first switch, the second switch, the third switch and the fourth switch during the switching process between the buck and boost modes.
2. A four-switch Buck-Boost circuit control method according to claim 1, characterized in that: The error signal acquisition unit is used to acquire an error signal, and the error signal acquisition unit includes an acquisition unit, a voltage detection unit and a theoretical voltage generation unit. The acquisition unit is used to acquire an actual output voltage, the voltage detection unit is used to acquire the actual output voltage and determine whether the voltage value of the actual output voltage is the same as that of the input voltage, and the theoretical voltage generation unit is used to generate an ideal voltage signal; the voltage detection unit is interconnected with the fifth switch signal, when the voltage value of the actual output voltage is the same as that of the input voltage, the voltage detection unit sends a corresponding signal to the fifth switch, and the fifth switch adopts a first conduction mode, when the voltage value of the actual output voltage is different from that of the input voltage, the voltage detection unit sends a corresponding signal to the fifth switch, and the fifth switch adopts a second conduction mode.
3. A four-switch Buck-Boost circuit control method according to claim 2, characterized in that: The theoretical voltage generating unit includes a power supply and a variable resistor. The voltage value provided by the power supply is the same as the input voltage. The variable resistor includes a signal receiving part and a resistance adjusting part. The signal receiving part and the duty cycle detection part communicate with each other. The signal receiving part determines whether the first switch or the second switch is currently working and its corresponding duty cycle through the signal received from the duty cycle detection part. The resistance adjusting part is used to adjust the resistance value of the variable resistor according to the signal received by the signal receiving part, so that the voltage value of the output signal of the theoretical voltage generating unit is the same as the ideal voltage signal.
4. A four-switch Buck-Boost circuit control method according to claim 3, characterized in that: The regulating unit includes a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor and an operational amplifier, wherein one end of the first resistor is connected to the output end of the acquisition unit, and the other end is connected to the negative input end of the operational amplifier; one end of the second resistor is connected to the output end of the theoretical voltage generating unit, and the other end is connected to the negative input end of the operational amplifier; one end of the third resistor is connected to the positive input end of the operational amplifier, and the other end is grounded; the fourth resistor and the first capacitor are connected in series, and the series circuit is connected in parallel with the operational amplifier, the fourth resistor is connected to the negative input end of the operational amplifier, the first capacitor is connected to the output end of the operational amplifier, and the output end of the operational amplifier is connected to the first PWM control module.
