Peak current control circuit, method and system
The peak current control circuit that mixes digital and analog solves the problems in the existing technology of insufficient flexibility of analog control and inability of digital control to achieve pulse-by-pulse control, and improves the stability and response speed of the DC-DC converter.
Patent Information
- Application Number
- CN202310229632.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-10
Smart Images

Figure CN118631023A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electrical technology and relates to a peak current control circuit, method and system. Background Art
[0002] Peak current control is a control method that turns on a fixed clock and turns off the peak current. It indirectly controls the pulse width of the pulse width modulation (PWM) signal by directly controlling the inductor current on the peak output side. Peak current control has obvious advantages: fast response speed, good overcurrent protection effect, improved regulation system stability, etc. It is precisely because of these advantages that peak current control has been widely used.
[0003] When using PWM current mode to control a DC-DC converter, a slope compensation current is usually added to the inductor current to prevent the DC-DC converter control loop from generating subharmonic oscillations, bifurcations, chaos, etc. when the duty cycle of the power switch tube switched at a fixed period is greater than 50%, thereby affecting the stable output of the DC-DC converter.
[0004] The traditional solution is to use analog circuits to achieve slope compensation, but this method requires additional circuits, which increases hardware design work and circuit complexity. In addition, the slope compensation belongs to open-loop control, which is easily affected by disturbances and has poor robustness. The second method is to use digital control to achieve slope compensation. This method does not require additional circuits, but the pure digital control conditions require the DSP chip to have strong computing power. Especially in situations where the switching frequency is very high, it is basically impossible to complete real-time pulse-by-pulse calculations.
[0005] In the prior art, the slope compensation with a fixed slope selects the slope according to the maximum duty cycle. When the duty cycle is greater than 50%, the slope of the increased slope compensation current must be greater than 50% of the absolute value of the slope of the inductor current when it decreases. Therefore, if a fixed slope ramp compensation current is used, when the duty cycle is small, the value of the ramp compensation current will be much greater than the expected value, causing the inductor current to be too small relative to the slope compensation current, thereby causing a resonant double pole in the control loop of the DC-DC converter, resulting in over-compensation, and making the control loop unstable. Summary of the invention
[0006] The purpose of the present application is to provide a peak current control circuit, method and system for solving the technical problems in the prior art that the circuit design flexibility of analog peak current control is insufficient and the digital peak current control cannot achieve pulse-by-pulse current control.
[0007] In a first aspect, the present application provides a peak current control circuit, including a signal acquisition unit, a main control processor, a digital-to-analog converter, a control signal generating unit, and a driving voltage generating unit;
[0008] The signal acquisition unit is used to collect instantaneous analog signals;
[0009] The main control processor is used to obtain a peak current digital reference value based on the instantaneous analog signal and provide a clock pulse signal with a fixed frequency;
[0010] The digital-to-analog converter is used to convert the peak current digital reference value into a peak current analog reference value;
[0011] The control signal generating unit is used for comparing the peak current analog reference value with the instantaneous analog signal to obtain a high level or low level control signal;
[0012] The driving voltage generating unit is used to output a driving voltage signal based on the clock pulse signal and the control signal to control the on and off of the switch tube in the main circuit.
[0013] In an implementation of the first aspect, the instantaneous analog quantity signal includes an instantaneous voltage signal and an instantaneous current signal.
[0014] In an implementation of the first aspect, the instantaneous voltage signal includes a main circuit input total voltage and a main circuit output total voltage.
[0015] In an implementation manner of the first aspect, the instantaneous current signal is an inductor current signal in the main circuit.
[0016] In an implementation of the first aspect, the signal acquisition unit includes a first amplification circuit, a second amplification circuit, a third amplification circuit, and a fourth amplification circuit;
[0017] The first amplifier circuit is used to amplify the total input voltage of the main circuit;
[0018] The second amplifier circuit is used to amplify the total output voltage of the main circuit;
[0019] The third amplifier circuit is used to amplify the inductor current signal after low-pass filtering to obtain the current average value;
[0020] The fourth amplifier circuit is used to amplify the instantaneous value of the inductor current signal.
[0021] In an implementation of the first aspect, the main control processor includes a first input terminal, a second input terminal, a third input terminal, and a fourth input terminal;
[0022] The first input terminal is connected to the first amplifier circuit and is used to input the amplified total input voltage of the main circuit;
[0023] The second input terminal is connected to the second amplifier circuit and is used to input the amplified total output voltage of the main circuit;
[0024] The third input terminal is connected to the third amplifier circuit and is used to input the current average value;
[0025] The fourth input terminal is connected to the control signal generating unit and is used for inputting a high level or low level control signal.
[0026] In an implementation manner of the first aspect, the digital-to-analog converter is connected to a first output terminal of the main control processor.
[0027] In an implementation of the first aspect, a slope compensation unit is further included, wherein the slope compensation unit includes a slope slope selection circuit, an operational amplifier, a capacitor, a first controllable switch, and an adding circuit;
[0028] The input end of the ramp slope selection circuit is connected to the second output end of the main control processor, and the output end is connected to the negative input end of the operational amplifier;
[0029] One end of the capacitor is connected to the negative input terminal of the operational amplifier, and the other end is connected to the output terminal of the operational amplifier;
[0030] The positive terminal of the operational amplifier is grounded, and the output terminal is connected to the first input terminal of the adding circuit;
[0031] The first controllable switch is connected in parallel at both ends of the capacitor, and is used to control the charging and discharging of the capacitor under the action of the switch signal output by the third output terminal of the main control processor;
[0032] The second input end of the adding circuit is connected to the output end of the digital-to-analog converter, and the output end of the adding circuit is connected to the control signal generating unit for outputting a peak current analog reference value after slope compensation.
[0033] In an implementation of the first aspect, the control signal generating unit includes a comparator;
[0034] The inverting input terminal of the comparator is connected to the output terminal of the digital-to-analog converter for inputting the peak current analog reference value; or the inverting input terminal of the comparator is connected to the output terminal of the adding circuit for inputting the peak current analog reference value after slope compensation;
[0035] The positive input terminal of the comparator is connected to the output terminal of the fourth amplifier circuit, and is used to input the amplified inductor current instantaneous value signal;
[0036] The output terminal of the comparator is used to output the high level or low level control signal.
[0037] In an implementation of the first aspect, the main control processor further includes a fourth output terminal and a fifth output terminal;
[0038] The fourth output terminal is used to output a clock pulse signal to the driving voltage generating unit;
[0039] The fifth output terminal is used to output an interrupt signal when the control signal is invalid.
[0040] In an implementation of the first aspect, the driving voltage generating unit includes an OR gate, an RS trigger and a driving circuit;
[0041] The first input end of the OR gate is connected to the fifth output end of the main control processor for inputting the interrupt signal, and the second input end is connected to the output end of the control signal generating unit for inputting the control signal;
[0042] The reset terminal of the RS trigger is connected to the output terminal of the OR gate, and is used to input the interrupt signal or the control signal;
[0043] The set end of the RS trigger is connected to the fourth output end of the main control processor for inputting the clock pulse signal;
[0044] The output end of the RS trigger is connected to the input end of the driving circuit, and is used to output a trigger signal based on the control signal or the interrupt signal and the clock pulse signal;
[0045] The driving circuit is used to output a driving voltage signal based on the trigger signal.
[0046] In a second aspect, the present application provides a peak current control method, comprising the following steps:
[0047] Collect instantaneous analog signals;
[0048] Acquire a peak current digital reference value based on the instantaneous analog signal, and provide a clock pulse signal with a fixed frequency;
[0049] Converting the peak current digital reference value into a peak current analog reference value;
[0050] Compare the peak current analog reference value with the instantaneous analog signal to obtain a high level or low level control signal;
[0051] A driving voltage signal is output based on the clock pulse signal and the control signal to control the on and off of the switch tube in the main circuit.
[0052] In an implementation manner of the second aspect, the instantaneous analog quantity signal includes an instantaneous voltage signal and an instantaneous current signal.
[0053] In an implementation of the second aspect, the instantaneous voltage signal includes a main circuit input total voltage and a main circuit output total voltage.
[0054] In an implementation manner of the second aspect, the instantaneous current signal is an inductor current signal in the main circuit.
[0055] In an implementation of the second aspect, collecting the instantaneous analog signal further includes the following steps:
[0056] amplifying the total input voltage of the main circuit;
[0057] amplifying the total output voltage of the main circuit;
[0058] Amplifying the inductor current signal after low-pass filtering;
[0059] The inductor current signal is amplified.
[0060] In an implementation of the second aspect, comparing the peak current analog reference value with the instantaneous current signal to obtain a high level or low level control signal comprises the following steps:
[0061] When the peak current analog reference value is greater than the inductor current signal, a low-level control signal is output;
[0062] When the peak current analog reference value is less than the inductor current signal, the output is a high-level control signal.
[0063] In an implementation of the second aspect, outputting a driving voltage signal based on the clock pulse signal and the control signal to control the on and off of a switch tube in a main circuit includes the following steps:
[0064] inputting the control signal or the interrupt signal;
[0065] Inputting the clock pulse signal;
[0066] Outputting a trigger signal based on the control signal or the interrupt signal and the clock pulse signal;
[0067] A driving voltage signal is output based on the trigger signal.
[0068] In a third aspect, the present application provides a peak current control system, comprising any of the peak current control circuits described above and a three-level switching converter.
[0069] As described above, the peak current control circuit, method and system described in the present application have the following beneficial effects:
[0070] (1) This application adopts a hybrid of digital and analog, which effectively solves the technical problems in the prior art that the circuit design flexibility of analog peak current control is insufficient and the digital peak current control cannot achieve pulse-by-pulse current control;
[0071] (2) Without increasing the CPU burden, the processing capability of the control circuit is greatly improved, thereby improving the overall performance of the switching power supply;
[0072] (3) By configuring the number of resistors and switches, slope compensation with various slopes is achieved, which effectively reduces subharmonic oscillations, optimizes the loop response speed, and improves the stability of the output current. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 Shown is a structural schematic diagram of the peak current control circuit described in an embodiment of the present application.
[0074] Figure 2 Shown is a schematic diagram of a peak current control circuit described in an embodiment of the present application.
[0075] Figure 3 Shown is a circuit schematic diagram of a Buck converter in a peak current control circuit described in an embodiment of the present application.
[0076] Figure 4 Another structural schematic diagram of the peak current control circuit described in an embodiment of the present application is shown.
[0077] Figure 5 Another circuit schematic diagram of the peak current control circuit described in an embodiment of the present application is shown.
[0078] Figure 6 Shown is another circuit schematic diagram of the peak current control circuit described in the embodiment of the present application.
[0079] Figure 7 Shown is a flowchart of the maximum pulse width timer interrupt program in the peak current control circuit described in an embodiment of the present application.
[0080] Figure 8 Shown is a flow chart of the external interrupt program in the peak current control circuit described in an embodiment of the present application.
[0081] Fig. 9 Shown is a flow chart of the peak current control method described in an embodiment of the present application.
[0082] Fig.10 Shown is a flowchart of the initialization procedure in the peak current control method described in an embodiment of the present application.
[0083] Fig.11Shown is a flow chart of obtaining a peak current digital reference value based on an instantaneous voltage signal and an instantaneous current signal in a peak current control method described in an embodiment of the present application.
[0084] Fig.12 Shown is a schematic diagram of the structure of the peak current control system described in an embodiment of the present application.
[0085] Component number description
[0086] 1 Peak current control circuit
[0087] 11 Signal acquisition unit
[0088] 12 Main control processor
[0089] 13 Digital to Analog Converter
[0090] 14 Control signal generating unit
[0091] 15. Driving voltage generating unit
[0092] 16 Slope compensation unit
[0093] 2 Three-level switching converter
[0094] S1~S5 Method Steps
[0095] S21~S23 Method Steps DETAILED DESCRIPTION
[0096] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0097] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.
[0098] In addition, in this application, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0099] The following embodiments of the present application provide a peak current control circuit, method and system, which can be applied to digitally controlled switching power supply products and even high-power power electronic converters, including: photovoltaic inverters, energy storage converters, DC / DC converters in DC systems and digitally controlled PC power supplies. The present application effectively solves the technical problems in the prior art that the circuit design of analog control is not flexible enough and digital control cannot achieve pulse-by-pulse current control. The technical solutions in the embodiments of the present application will be described in detail below in conjunction with the drawings in the embodiments of the present application.
[0100] like Figure 1 As shown, this embodiment provides a peak current control circuit 1, including a signal acquisition unit 11, a main control processor 12, a digital-to-analog converter 13, a control signal generating unit 14 and a driving voltage generating unit 15.
[0101] The signal acquisition unit 11 is used to acquire instantaneous analog signals, including instantaneous voltage signals and instantaneous current signals, wherein the instantaneous voltage signals include the total input voltage of the main circuit and the total output voltage of the main circuit, and the instantaneous current signals are inductor current signals in the main circuit.
[0102] like Figure 2 As shown, the signal acquisition unit 11 includes a first amplifier circuit, a second amplifier circuit, a third amplifier circuit and a fourth amplifier circuit; the first amplifier circuit is used to amplify the total input voltage of the main circuit; the second amplifier circuit is used to amplify the total output voltage of the main circuit; the third amplifier circuit is used to amplify the inductor current signal after low-pass filtering to obtain the current average value; the fourth amplifier circuit is used to amplify the instantaneous value of the inductor current signal.
[0103] Specifically, the first amplifier circuit includes a first operational amplifier; the second amplifier circuit includes a second operational amplifier; the third amplifier circuit includes a third operational amplifier, a resistor R1, a resistor R2 and a capacitor C1, wherein the resistor R1, the resistor R2 and the capacitor C1 form a low-pass filter circuit, and after the inductor current signal passes through the third operational amplifier circuit, the high-frequency component is filtered out and the DC component is retained to obtain the average current Iav; the fourth amplifier circuit includes a fourth operational amplifier, and the inductor current signal amplified by the fourth operational amplifier includes a peak current signal Ipk.
[0104] The main circuit used in this embodiment is a DC-DC converter. Generally, according to whether there is electrical isolation between the input side and the output side, DC-DC converters are divided into two categories: isolated and non-isolated. Isolated DC-DC converters include forward, flyback, push-pull, half-bridge and full-bridge converters; non-isolated DC-DC converters include Buck, Boost, Buck-Boost, Cuk, Zeta, SEPIC. It should be noted that the main circuit in this embodiment can be an isolated DC-DC converter or a non-isolated DC-DC converter. The type of converter is not specifically limited here, but the main circuit needs to be provided with an inductor component to support the peak current control circuit to obtain the inductor current signal from the main circuit.
[0105] Take Buck converter as an example. Figure 3 As shown in FIG. 1 , the circuit schematic diagram of the Buck converter includes a DC power supply, a MOS tube Q1, a capacitor Cin, a freewheeling diode D1, an inductor L1, a resistor Rs, and a capacitor Cout. When the MOS tube Q1 is turned on, the freewheeling diode D1 is turned off, the current of the inductor L1 increases linearly and stores energy, and the capacitor Cout charges and stores energy; when the MOS tube Q1 is turned off, the inductor L1 releases energy and the capacitor Cout discharges.
[0106] Specifically, the DC power supply is used to provide the total input voltage Vin of the main circuit; the gate drive voltage Vgs of the MOS tube Q1 is the drive voltage signal PWM, and the drive voltage signal PWM is provided by the peak current control circuit; in one embodiment of the present application, the resistor Rs is the current sampling resistor of the inductor L1. Since the inductor L1 and the resistor Rs are connected in series, the current flowing through the two is the same. Under the premise that the resistance value of the resistor Rs is known, the voltage V across the resistor Rs is obtained. Rs The inductor current signal can be obtained indirectly; in another embodiment of the present application, the current of the inductor L1 can also be obtained by using other current measurement components, such as a current sensor; the voltage across the capacitor Cout is the total output voltage Vout of the main circuit; the inductor L1 and the capacitor Cout are combined into an LC filter circuit to suppress higher frequency interference signals in the main circuit.
[0107] The main control processor 12 is used to obtain a peak current digital reference value based on an instantaneous voltage signal and an instantaneous current signal, and provide a clock pulse signal with a fixed frequency.
[0108] Specifically, the main control processor 12 is a CPU processing unit, including a first input terminal, a second input terminal, a third input terminal and a fourth input terminal, and the first input terminal, the second input terminal, the third input terminal and the fourth input terminal are all analog input ports, wherein the first input terminal is connected to the first amplifier circuit, and is used to input the amplified main circuit input total voltage Vin; the second input terminal is connected to the second amplifier circuit, and is used to input the amplified main circuit output total voltage Vout; the third input terminal is connected to the third amplifier circuit, and is used to input the current average value Iav; the fourth input terminal is an external interrupt input port INT, which is connected to the control signal generating unit, and is used to input a high-level or low-level control signal generated by the control signal generating unit, and the control signal is used to notify the CPU control signal generating unit that the control signal has been sent to the drive voltage generating unit.
[0109] The main control processor 12 also includes a first output terminal, a second output terminal and a third output terminal, and the first output terminal, the second output terminal and the third output terminal are all digital output ports, wherein the first output terminal is an SPI port for outputting a peak current digital reference value Ipk,ref, the second output terminal is for outputting a ramp slope selection signal SL, and the third output terminal is for outputting a switch signal SW1_C.
[0110] The main control processor 12 also includes a fourth output terminal and a fifth output terminal, and the fourth output terminal and the fifth output terminal are also digital output ports. The fourth output terminal is used to output a fixed frequency clock pulse signal to the drive voltage generating unit 15. For example, at the beginning of each switching cycle, an on pulse ON is given, and the pulse ON signal is edge effective. The fifth output terminal is an external interrupt output port, which is used to output an interrupt signal OFF when the control signal is invalid.
[0111] It should be noted that the control signal is invalid means that the CPU has never received the notification that the control signal generating unit has sent the control signal to the driving voltage generating unit. Specifically, a maximum pulse width timer is provided inside the CPU. When the CPU sends an ON pulse ON through the fourth output terminal, the maximum pulse width timer will be started; if the control signal generating unit does not send a high-level or low-level control signal to the fourth input terminal of the CPU after the timer expires, the CPU will automatically send an interrupt signal OFF through the fifth output terminal, and the interrupt signal OFF can be used to drive and shut down the MOS tube in the main circuit.
[0112] The digital-to-analog converter 13 is connected to the first output terminal of the main control processor 12 and is used for converting the peak current digital reference value into a peak current analog reference value.
[0113] In this implementation, the processing capability of the control circuit is greatly improved without increasing the burden on the CPU, thereby improving the overall performance of the switching power supply.
[0114] The control signal generating unit 14 is used for comparing the peak current analog reference value with the instantaneous current signal to obtain a high level or low level control signal.
[0115] The control signal generating unit 14 includes a comparator. The inverting input terminal of the comparator is connected to the output terminal of the digital-to-analog converter for inputting the peak current analog reference value; the positive input terminal of the comparator is connected to the output terminal of the fourth amplifier circuit for inputting the amplified inductor current signal; and the output terminal of the comparator is used to output a high level or low level control signal.
[0116] Specifically, when the peak current analog reference value is greater than the inductor current signal, the comparator outputs a low-level control signal; when the peak current analog reference value is less than the inductor current signal, the comparator outputs a high-level control signal.
[0117] The driving voltage generating unit 15 is used to drive the trigger to output a driving voltage signal based on the clock pulse signal and the control signal, so as to control the on and off of the switch tube in the main circuit.
[0118] The driving voltage generating unit 15 includes an OR gate, an RS trigger and a driving circuit; the first input end of the OR gate is connected to the fifth output end of the main control processor for inputting the interrupt signal, and the second input end is connected to the output end of the control signal generating unit for inputting the control signal; the reset end of the RS trigger is connected to the output end of the OR gate for inputting an interrupt signal or a control signal; the set end of the RS trigger is connected to the fourth output end on the main control processor for inputting a clock pulse signal; the output end of the RS trigger is connected to the input end of the driving circuit for outputting a trigger signal based on the control signal or the interrupt signal and the clock pulse signal; the driving circuit is used to output a driving voltage signal based on the trigger signal.
[0119] Specifically, when the control signal generating unit 14 outputs a high-level control signal or the fifth output terminal of the CPU outputs an interrupt signal OFF, the high-level control signal or the interrupt signal OFF will be transmitted to the reset terminal R of the RS trigger. At this time, the R terminal is at a high level, and the output terminal Q of the RS trigger is at a low level, thereby making the driving voltage of the driving circuit become 0, turning off the MOS tube.
[0120] In this implementation, a combination of digital and analog is adopted, which effectively solves the technical problems in the prior art that the circuit design of analog peak current control is not flexible enough and the digital peak current control cannot realize pulse-by-pulse current control.
[0121] like Figure 4 As shown, this embodiment provides another peak current control circuit 1, including a signal acquisition unit 11, a main control processor 12, a digital-to-analog converter 13, a control signal generating unit 14 and a driving voltage generating unit 15, and also includes a slope compensation unit 16.
[0122] It should be noted that the signal acquisition unit 11, the main control processor 12, the digital-to-analog converter 13 and the driving voltage generating unit 14 in this embodiment are the same as those in the above Figure 1 The circuit structures, functional principles and effects of the acquisition unit 11, the main control processor 12, the digital-to-analog converter 13 and the driving voltage generating unit 14 are the same and will not be described in detail here.
[0123] like Figure 5 As shown, the slope compensation unit 16 includes a slope selection circuit, an operational amplifier, a capacitor, a first controllable switch and an adding circuit.
[0124] Specifically, the input end of the ramp slope selection circuit is connected to the second output end of the main control processor 12, and the output end is connected to the negative input end of the operational amplifier; one end of the capacitor is connected to the negative input end of the operational amplifier, and the other end is connected to the output end of the operational amplifier; the positive end of the operational amplifier is grounded, and the output end is connected to the first input end of the adding circuit; the first controllable switch is connected in parallel to the two ends of the capacitor, and is used to control the charging and discharging of the capacitor under the action of the switching signal output from the third output end of the main control processor 12; the second input end of the adding circuit is connected to the output end of the digital-to-analog converter 13, and the output end of the adding circuit is connected to the control signal generating unit, and is used to output the peak current analog reference value after slope compensation.
[0125] In the control signal generating unit 14, the inverting input terminal of the comparator is connected to the output terminal of the adding circuit, and is used to input the peak current analog reference value after slope compensation; the positive input terminal of the comparator is connected to the output terminal of the fourth amplifier circuit, and is used to input the amplified instantaneous value signal of the inductor current; the output terminal of the comparator is used to output a high level or a low level control signal.
[0126] Specifically, when the peak current analog reference value after slope compensation is greater than the instantaneous value signal of the inductor current, the comparator outputs a low-level control signal; when the peak current analog reference value after slope compensation is less than the instantaneous value signal of the inductor current, the comparator outputs a high-level control signal.
[0127] The control signal generating unit 14 is further configured to output the high level or low level control signal to the fourth input terminal of the main control processor 12 to notify the CPU that the control signal generating unit 14 has sent the control signal to the driving voltage generating unit 15 .
[0128] The ramp slope selection circuit includes at least one resistor; each resistor is connected in series with a second controllable switch; when the number of resistors is greater than 1, multiple resistors are connected in parallel.
[0129] In one embodiment, the slope of the slope compensation may be fixed. For example, when the number of resistors is equal to 1, the slope cannot be changed during the slope compensation. It should be noted that when the number of resistors is equal to 1, the second controllable switch connected in series with the resistor R is not necessary.
[0130] In another embodiment, the slope of the slope compensation can be adjusted as needed, such as Figure 6 What is shown is a programmable slope compensation realized by setting multiple switching gears. Compared with the circuit with fixed slope slope, the number of resistors is increased to four, namely resistors Rs1~Rs4, and the four resistors Rs1~Rs4 are respectively connected in series with four second controllable switches S1~S4, and each second controllable switch is controlled by the digital output port SL1~SL4 of the CPU. In this way, 16 different slope slopes can be selected through the switch combination of S1 to S4, which can fully meet various different needs.
[0131] In this implementation, by configuring the number of resistors and switches, slope compensation with various slopes is achieved, which effectively reduces subharmonic oscillations, optimizes loop response speed, and improves output current stability.
[0132] It should be noted that the second controllable switches S1~S4 can be realized by using a logic level to drive an N-channel MOS tube. The gate of the MOS tube is connected to the SL1~SL4 port of the CPU, the drain is connected to R1~R4 respectively, the source is connected together, and then connected to the reverse input terminal of the operation generator.
[0133] The resistor R, capacitor C and operational amplifier in this embodiment together form an inverse integration circuit. Figure 7 As shown in the figure, at the beginning of each switching cycle, before the maximum pulse width timer in the main control processor 12 sends an on pulse ON from the fourth output terminal of the CPU, the second output port SL of the main control processor 12 outputs a high level, and the third output port SW1_C outputs a low level, the reverse integration circuit starts to work, and the output voltage of the operational amplifier increases linearly in the negative voltage direction to form a slope, and the slope of the slope is determined by the resistance value of the resistor R and the capacitance value of the capacitor C. Figure 8 As shown, when the fourth input terminal INT of the main control processor 12 is at a high level or its internal maximum pulse width timer has expired, the output voltage of the second output port SL of the main control processor 12 is set to 0, and the third output port SW1_C outputs a high level, and the reverse integration circuit stops integrating. When SL is high again, the integration circuit continues to work.
[0134] like Fig. 9 As shown, this embodiment provides a peak current control method, comprising the following steps:
[0135] S1. Collect instantaneous analog signals.
[0136] In one embodiment, the instantaneous analog signal includes an instantaneous voltage signal and an instantaneous current signal, wherein the instantaneous voltage signal includes a main circuit input total voltage and a main circuit output total voltage, and the instantaneous current signal is an inductor current signal in the main circuit.
[0137] In one embodiment, collecting the instantaneous analog signal further includes the following steps:
[0138] amplifying the total input voltage of the main circuit;
[0139] amplifying the total output voltage of the main circuit;
[0140] Amplifying the inductor current signal after low-pass filtering;
[0141] The inductor current signal is amplified.
[0142] S2. Obtain a peak current digital reference value based on the instantaneous analog signal, and provide a clock pulse signal with a fixed frequency.
[0143] S3. Convert the peak current digital reference value into a peak current analog reference value.
[0144] S4. Compare the peak current analog reference value with the instantaneous analog signal to obtain a high level or low level control signal.
[0145] In one embodiment, comparing the peak current analog reference value with the instantaneous current signal to obtain a high level or low level control signal comprises the following steps:
[0146] When the peak current analog reference value is greater than the inductor current signal, a low-level control signal is output;
[0147] When the peak current analog reference value is less than the inductor current signal, the output is a high-level control signal.
[0148] S5. Output a driving voltage signal based on the clock pulse signal and the control signal to control the on and off of the switch tube in the main circuit.
[0149] In one embodiment, outputting a driving voltage signal based on the clock pulse signal and the control signal to control the on and off of a switch tube in a main circuit includes the following steps:
[0150] inputting the control signal or the interrupt signal;
[0151] Inputting the clock pulse signal;
[0152] Outputting a trigger signal based on the control signal or the interrupt signal and the clock pulse signal;
[0153] A driving voltage signal is output based on the trigger signal.
[0154] like Fig.10 As shown, in one embodiment, before executing the peak current control method described in this application, the following initialization procedure is also performed:
[0155] (1) Set up analog input ports on the main control processor: the first input terminal, the second input terminal, the third input terminal and the fourth input terminal. The first input terminal is used to input the total input voltage Vin of the main circuit; the second input terminal is used to input the total output voltage Vout of the main circuit; the third input terminal is used to input the average current Iav; the fourth input terminal is the external interrupt input port INT, which is used to input the control signal.
[0156] (2) Setting the digital output ports on the main control processor: the first output port, the second output port, the third output port, the fourth output port and the fifth output port. The first output port is an SPI port, which is used to output the peak current digital reference value Ipk,ref; the second output port is used to output the ramp slope selection signals SL, SL1, SL2, SL3, SL4; the third output port is used to output the switch signal SW1_C; the fourth output port is used to output the fixed frequency clock pulse signal ON; the fifth output port is an external interrupt output port, which is used to output the interrupt signal OFF when the control signal is invalid.
[0157] (3) Set the switching cycle timer interrupt: the interrupt frequency is once every 16.67us.
[0158] (4) Set the maximum pulse width timer interrupt: the interrupt frequency is 16us, which is equivalent to a duty cycle of 0.96.
[0159] (5) The initial value of the peak current digital reference value Ipk,ref is set to 0, and the peak current digital reference value Ipk,ref is sent to a digital-to-analog converter (DA converter).
[0160] (6) Set the clock pulse signal ON = 0; the interrupt signal OFF = 1, OFF = 0; the ramp slope selection signal SL = 0; SL = 0; and determine the values of SL1~SL4; the switch signal SW1_C = 1; wherein the OFF signal is 0 when the power is first turned on, and by setting OFF = 1 to form a rising edge, the RS trigger is reset, so that the drive circuit output is low, and then OFF = 0 to prepare for the next rising edge of the OFF signal.
[0161] (7) Start switch cycle timer interrupt;
[0162] (8) Allow the external interrupt input port INT to interrupt.
[0163] like Fig.11 As shown, in one embodiment, obtaining a peak current digital reference value based on the instantaneous voltage signal and the instantaneous current signal includes the following steps:
[0164] S21, performing analog-to-digital conversion on the main circuit input total voltage Vin, the main circuit output total voltage Vout and the average current Iav;
[0165] S22, calculating the peak current digital reference value Ipk,ref based on the main circuit input total voltage Vin, the main circuit output total voltage Vout and the average current Iav after analog-to-digital conversion;
[0166] S23, outputting the peak current digital reference value Ipk,ref to a digital-to-analog converter (DA converter).
[0167] The protection scope of the peak current control method described in the present application is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present invention are included in the protection scope of the present invention.
[0168] The peak current control circuit described in the present application can implement the peak current control method described in the present application, but the implementation device of the peak current control method described in the present application includes but is not limited to the structure of the peak current control circuit listed in this embodiment, and all structural deformations and replacements of the prior art made according to the principle of the peak current control circuit of the present application are included in the protection scope of the present application.
[0169] like Fig.12 As shown, the present application provides a peak current control system, comprising the peak current control circuit 1 described in any one of the above items and a three-level switching converter 2.
[0170] It should be noted that the three-level switching converter 2 in this embodiment can be replaced by any one of a three-level inverter and a three-level AC converter, and other three-level circuits that can achieve similar effects are also applicable to this application.
[0171] In the several embodiments provided in the present application, it should be understood that the disclosed methods, circuits and systems can be implemented in other ways. For example, the embodiments described above are only schematic, for example, the division of modules / units is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules or units, which can be electrical, mechanical or other forms.
[0172] The modules / units described as separate components may or may not be physically separated, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present application. For example, the functional modules / units in the various embodiments of the present application may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.
[0173] Those of ordinary skill in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0174] The descriptions of the processes or structures corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.
[0175] In summary, the peak current control circuit, method and system provided by the present application adopt a hybrid of digital and analog, which effectively solves the technical problems in the prior art that the circuit design flexibility of analog peak current control is insufficient and the digital peak current control cannot achieve pulse-by-pulse current control; without increasing the CPU burden, the processing capability of the control circuit is greatly improved, and the overall performance of the switching power supply is improved; by configuring the resistance and the number of switches, slope compensation with multiple slopes is achieved, which effectively reduces subharmonic oscillations, optimizes the loop response speed, and improves the stability of the output current.
[0176] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A peak current control circuit, characterized in that: It includes a signal acquisition unit, a main control processor, a digital-to-analog converter, a control signal generating unit and a driving voltage generating unit; The signal acquisition unit is used to collect instantaneous analog signals; The main control processor is used to obtain a peak current digital reference value based on the instantaneous analog signal and provide a clock pulse signal with a fixed frequency; The digital-to-analog converter is used to convert the peak current digital reference value into a peak current analog reference value; The control signal generating unit is used for comparing the peak current analog reference value with the instantaneous analog signal to obtain a high level or low level control signal; The driving voltage generating unit is used to output a driving voltage signal based on the clock pulse signal and the control signal to control the on and off of the switch tube in the main circuit.
2. The peak current control circuit according to claim 1, characterized in that: The instantaneous analog signal includes an instantaneous voltage signal and an instantaneous current signal.
3. The peak current control circuit according to claim 2, characterized in that: The instantaneous voltage signal includes the main circuit input total voltage and the main circuit output total voltage.
4. The peak current control circuit according to claim 2, characterized in that: The instantaneous current signal is an inductor current signal in the main circuit.
5. The peak current control circuit according to claim 1, characterized in that: The signal acquisition unit includes a first amplifying circuit, a second amplifying circuit, a third amplifying circuit and a fourth amplifying circuit; The first amplifier circuit is used to amplify the total input voltage of the main circuit; The second amplifier circuit is used to amplify the total output voltage of the main circuit; The third amplifier circuit is used to amplify the inductor current signal after low-pass filtering to obtain the current average value; The fourth amplifier circuit is used to amplify the instantaneous value of the inductor current signal.
6. The peak current control circuit according to claim 1, characterized in that: The main control processor includes a first input terminal, a second input terminal, a third input terminal and a fourth input terminal; The first input terminal is connected to the first amplifier circuit and is used to input the amplified main circuit input total voltage; The second input terminal is connected to the second amplifier circuit and is used to input the amplified total output voltage of the main circuit; The third input terminal is connected to the third amplifier circuit and is used to input the current average value; The fourth input terminal is connected to the control signal generating unit and is used for inputting the high level or low level control signal.
7. The peak current control circuit according to claim 1, characterized in that: The digital-to-analog converter is connected to the first output terminal of the main control processor.
8. The peak current control circuit according to claim 1, characterized in that: Also includes a slope compensation unit, the slope compensation unit includes a slope slope selection circuit, an operational amplifier, a capacitor, a first controllable switch and an adding circuit; The input end of the ramp slope selection circuit is connected to the second output end of the main control processor, and the output end is connected to the negative input end of the operational amplifier; One end of the capacitor is connected to the negative input terminal of the operational amplifier, and the other end is connected to the output terminal of the operational amplifier; The positive terminal of the operational amplifier is grounded, and the output terminal is connected to the first input terminal of the adding circuit; The first controllable switch is connected in parallel at both ends of the capacitor, and is used to control the charging and discharging of the capacitor under the action of the switch signal output by the third output terminal of the main control processor; The second input end of the adding circuit is connected to the output end of the digital-to-analog converter, and the output end of the adding circuit is connected to the control signal generating unit for outputting a peak current analog reference value after slope compensation.
9. The peak current control circuit according to claim 1, characterized in that: The control signal generating unit includes a comparator; The inverting input terminal of the comparator is connected to the output terminal of the digital-to-analog converter for inputting the peak current analog reference value; or the inverting input terminal of the comparator is connected to the output terminal of the adding circuit for inputting the peak current analog reference value after slope compensation; The positive input terminal of the comparator is connected to the output terminal of the fourth amplifier circuit, and is used to input the amplified instantaneous value signal of the inductor current; The output terminal of the comparator is used to output the high level or low level control signal.
10. The peak current control circuit according to claim 1, characterized in that: The main control processor also includes a fourth output terminal and a fifth output terminal; The fourth output terminal is used to output a clock pulse signal to the driving voltage generating unit; The fifth output terminal is used to output an interrupt signal when the control signal is invalid.
11. The peak current control circuit according to claim 1, characterized in that: The driving voltage generating unit comprises an OR gate, an RS trigger and a driving circuit; The first input end of the OR gate is connected to the fifth output end of the main control processor for inputting an interrupt signal, and the second input end is connected to the output end of the control signal generating unit for inputting the control signal; The reset terminal of the RS trigger is connected to the output terminal of the OR gate, and is used to input the interrupt signal or the control signal; The set end of the RS trigger is connected to the fourth output end of the main control processor for inputting a clock pulse signal; The output end of the RS trigger is connected to the input end of the driving circuit, and is used to output a trigger signal based on the control signal or the interrupt signal and the clock pulse signal; The driving circuit is used to output a driving voltage signal based on the trigger signal.
12. A peak current control method, characterized in that: The following steps are involved: Collect instantaneous analog signals; Acquire a peak current digital reference value based on the instantaneous analog signal, and provide a clock pulse signal with a fixed frequency; Converting the peak current digital reference value into a peak current analog reference value; Compare the peak current analog reference value with the instantaneous analog signal to obtain a high level or low level control signal; A driving voltage signal is output based on the clock pulse signal and the control signal to control the on and off of the switch tube in the main circuit.
13. The peak current control method according to claim 12, characterized in that: The instantaneous analog signal includes an instantaneous voltage signal and an instantaneous current signal.
14. The peak current control method according to claim 13, characterized in that: The instantaneous voltage signal includes the main circuit input total voltage and the main circuit output total voltage.
15. The peak current control method according to claim 13, characterized in that: The instantaneous current signal is an inductor current signal in the main circuit.
16. The peak current control method according to claim 12, characterized in that: Acquiring instantaneous analog signals also includes the following steps: Amplify the total input voltage of the main circuit; Amplify the total output voltage of the main circuit; The inductor current signal is low-pass filtered and then amplified to obtain the current average value; The instantaneous value of the inductor current signal is amplified.
17. The peak current control method according to claim 12, characterized in that: Comparing the peak current analog reference value with the instantaneous current signal to obtain a high level or low level control signal comprises the following steps: When the peak current analog reference value is greater than the inductor current signal, a low-level control signal is output; When the peak current analog reference value is less than the inductor current signal, the output is a high-level control signal.
18. The peak current control method according to claim 12, characterized in that: Outputting a driving voltage signal based on the clock pulse signal and the control signal to control the on and off of a switch tube in the main circuit includes the following steps: Input control signal or interrupt signal; Input clock pulse signal; Outputting a trigger signal based on the control signal or the interrupt signal and the clock pulse signal; A driving voltage signal is output based on the trigger signal.
19. A peak current control system, characterized in that: The invention comprises the peak current control circuit and the three-level switching converter according to any one of claims 1 to 11.
