Disclosure of Invention
The invention aims to provide a current detection circuit of a current mode buck-boost converter, which aims to solve the problems in the background technology.
In order to solve the above technical problem, the present invention provides a current detection circuit for a current-mode buck-boost converter, which includes a diode D1 and a power tube MHPower tube MLAnd driveL module, drive H module, electric capacity COCapacitor C1, inductor L, error amplifier EA, and resistor RSETLoad RLResistance RslopeMOS transistor MN1MOS transistor MNH1The power tube grid source differential pressure detection module, the PWM comparator, the RS trigger 1, the RS trigger 2, the levelDown module and the levelUP module;
diode D1 positive terminal chip low voltage power supply VDD_LowThe negative end of the floating power supply rail is connected with the positive end Boost of the floating power supply rail; the upper end of the capacitor C1 is connected with the positive terminal Boost, and the lower end is connected with the SW node; power tube MHDrain terminal connected with VINThe grid end is connected with the output end of the driving H module, and the source end is connected with the positive end Boost; power tube MLThe drain terminal is connected with the SW node, the gate terminal is connected with the output end of the driving L module, and the source terminal is connected with the VOUT-; capacitor COUpper end connected with VOUTThe lower end is connected with GND; load RLUpper end connected with VOUTThe lower end is connected with GND; the upper end of the inductor L is connected with the SW node, and the lower end of the inductor L is connected with GND; reference current source IREFUpper end connected with VDD_LowThe lower end of the error amplifier is connected with the positive end of an error amplifier EA; resistance RSETThe upper end is connected with the positive end of the error amplifier EA, and the lower end is connected with the VOUT-; the negative end of the error amplifier EA is connected with a reference voltage source VREFThe output end is connected with the peak current limit setting voltage VC;
MOS transistor MN1Drain terminal connected with slope current source IslopeLower end, gate end is connected with VCAnd source terminal connection resistor RslopeAn upper end; resistance RslopeLower end is connected with VOUT-; ramp current source IslopeUpper end connected with VDD_Low(ii) a MOS transistor MNH1Drain terminal connected with VINThe grid end is connected with a first output end EN _ SENSE of a grid-source voltage difference detection module of the power tube, and the source end is connected with an MOS tube MN1A drain terminal;
first input end V of power tube grid-source differential pressure detection moduleG(MH)Connect MHThe gate end and the second output end EN _ COMP are connected with the enable end of the PWM comparator; the positive end of the PWM comparator is connected with MNH1The output end of the level Down module is connected with the input end of the level Down module; the output end of the levelDown module is connected with the R end of the RS trigger 2; the S end of the RS trigger 2 is connected with a clock signal CLK, and the Q end is connected with the input end of the driving L module; l output end of driving moduleConnect MLA gate terminal; the input end of the levelUP module is connected with a clock signal CLK, and the output end of the levelUP module is connected with the S end of the RS trigger 1; the R end of the RS trigger 1 is connected with the output end of the PWM comparator, and the Q end of the RS trigger is connected with the input end of the driving H module; the output end of the drive H module is connected with a power tube MHAnd a gate terminal.
Optionally, the power tube gate-source voltage difference detection module includes NMOS tubes MN 1-MN 5, PMOS tubes MP 1-MP 4, inverters INV 1-INV 3, resistors R1-R4, and a power tube MHCapacitors C1 and C2, NAND gate NAND1, NOR gate NOR1, schmitt trigger SMIT1 and schmitt trigger SMIT 2;
the drain end of the NMOS tube MN1 is connected with the lower end of a resistor R1, the gate end is connected with the upper end of a resistor R2, and the source end is connected with an SW node; the drain terminal of the NMOS tube MN2 is connected with VbiasThe grid end is connected with the drain end of an NMOS (N-channel metal oxide semiconductor) tube MN1, and the source end is connected with the upper end of a resistor R2; the drain end of an NMOS (N-channel metal oxide semiconductor) tube MN3 is connected with the drain end of a PMOS (P-channel metal oxide semiconductor) tube MP2, the gate end is connected with the output end of an inverter INV3, and the source end is connected with an SW node; the drain end of an NMOS (N-channel metal oxide semiconductor) tube MN4 is connected with the lower end of a resistor R4, the gate end is connected with the output end of a Schmitt trigger SMIT1, and the source end is connected with an SW node; the drain end of an NMOS (N-channel metal oxide semiconductor) tube MN5 is connected with the drain end of a PMOS (P-channel metal oxide semiconductor) tube MP4, the gate end is connected with the output end of a NOR gate NOR1, and the source end is connected with an SW node;
the drain terminal of the PMOS tube MP1 is connected with the gate terminal thereof, the gate terminal is connected with the gate terminal of the PMOS tube MP2, and the source terminal is connected with the VBOOST(ii) a The drain end of the PMOS tube MP2 is connected with the drain end of the NMOS tube MN3, the gate end of the PMOS tube MP1 is connected with the gate end of the PMOS tube MP 5, and the source end of the PMOS tube MP2 is connected with the drain end of the NMOS tube MN 5; the drain terminal of the PMOS transistor MP3 is connected with the upper end of a resistor R3, the gate terminal is connected with the gate terminal of an NMOS transistor MN4, and the source terminal is connected with a voltageBOOST(ii) a The drain terminal of the PMOS tube MP4 is connected with the drain terminal of the NMOS tube MN5, the gate terminal is connected with the output terminal of the NAND gate NAND1, and the source terminal is connected with VBOOST;
The upper end of the resistor R1 is connected with GCThe lower end of the signal is connected with the drain end of an NMOS (N-channel metal oxide semiconductor) tube MN 1; the upper end of the resistor R2 is connected with the source end of an NMOS tube MN2, and the lower end is connected with a SW node; the upper end of the resistor R3 is connected with the drain end of the PMOS tube MP3, and the lower end is connected with the upper end of the resistor R4; the upper end of the resistor R4 is connected with the upper end of the capacitor C2, and the lower end is connected with the upper end of an NMOS tube MN 4;
the upper end of the capacitor C1 is connected with the upper end of the resistor R1, and the lower end of the capacitor C1 is connected with the lower end of the resistor R1; the upper end of the capacitor C2 is connected with the upper end of the resistor R4, and the lower end of the capacitor C2 is connected with the SW node;
the input end of the inverter INV1 is connected with the output end of the NOR gate NOR1, and the output end of the inverter INV1 is connected with the second input end of the NAND gate NAND 1; inverter INVThe 2 input end is connected with the output end of the NAND gate 1, and the output end of the inverter INV2 is connected with the first input end of the NOR gate NOR 1; the input end of the inverter INV3 is connected with GCThe output end of the signal is connected with the grid end of an NMOS tube MN 3;
the first input terminal G of the NAND gate 1CThe second input end of the signal is connected with the output end of the inverter INV1, and the output end of the signal is connected with the grid end of the PMOS tube MP 4; the first input end of the NOR gate NOR1 is connected with the output end of the inverter INV2, and the second input end is connected with the output end GCThe output end of the signal is connected with the input end of the inverter INV 1;
the input end of the Schmitt trigger SMIT1 is connected with the drain end of an NMOS tube MN3, and the output end is connected with the gate end of a PMOS tube MP 3; the output end of the Schmitt trigger SMIT2 is connected with the upper end of the capacitor C2, and the output end is connected with EN _ CMOP;
power tube MHDrain terminal connected with VINThe grid end is connected with the drain end of the NMOS pipe MN5, and the source end is connected with the SW node.
The current detection circuit of the current mode buck-boost converter provided by the invention has the following beneficial effects:
(1) in each period, when the peak value of the inductive current reaches the set upper limit, the PWM output of the PWM comparator arranged on the floating power rail can directly close the high-side power tube M without being delayed by a level shift moduleHThe response speed of the circuit is improved;
(2) on-resistance R using high side power tubedson(H)Current sampling is carried out, the sampling speed is improved, and a comparison reference point of the information obtained by sampling is set through a mirror image tube matched with the power tube, so that the condition that R is caused by parameter drift of the power tube is avoideddson(H)Changing to finally solve the problem that the sampling gain is not fixed;
(3) the grid source differential pressure detection module of the power tube can be based on MHThe grid-source differential pressure state dynamically sets current detection delay to ensure that the circuit has a shielding function on noise generated in the switching process of the power level interference source;
(4) compared with the conventional peak current mode-controlled Buck-Boost converter, the peak current mode-controlled Buck-Boost converter can realize the rapid and high-precision detection of the inductive current, has higher stability for controlling the high-side power tube, and is very suitable for the peak current mode Buck-Boost converter under the high-frequency working condition.
Detailed Description
The current detection circuit of the current-mode buck-boost converter according to the present invention is further described in detail with reference to the accompanying drawings and the specific embodiments. Advantages and features of the present invention will become apparent from the following description and from the claims. It is to be noted that the drawings are in a very simplified form and are not to precise scale, which is merely for the purpose of facilitating and distinctly claiming the embodiments of the present invention.
Example one
The invention provides a current detection circuit of a current-mode buck-boost converter, and the specific system architecture of the current detection circuit is shown in figure 2, and the current detection circuit comprises a diode D1 and a power tube MHPower tube MLDrive L module, drive H module and capacitor COCapacitor C1, inductor L, error amplifier EA, and resistor RSETLoad RLResistance RslopeMOS transistor MN1The power tube grid source differential pressure detection module, the PWM comparator, the RS trigger 1, the RS trigger 2, the levelDown module and the levelUP module;
diode D1 positive terminal chip low voltage power supply VDD_LowThe negative end of the floating power supply rail is connected with the positive end Boost of the floating power supply rail; the upper end of the capacitor C1 is connected with the positive terminal Boost, and the lower end is connected with the SW node; power tube MHDrain terminal connected with VINThe grid end is connected with the output end of the driving H module, and the source end is connected with the positive end Boost; power tube MLThe drain terminal is connected with the SW node, the gate terminal is connected with the output end of the driving L module, and the source terminal is connected with the VOUT-; capacitor COUpper end connected with VOUTThe lower end is connected with GND; load RLUpper end connected with VOUT-, lower end connectedGND; the upper end of the inductor L is connected with the SW node, and the lower end of the inductor L is connected with GND; reference current source IREFUpper end connected with VDD_LowThe lower end of the error amplifier is connected with the positive end of an error amplifier EA; resistance RSETThe upper end is connected with the positive end of the error amplifier EA, and the lower end is connected with the VOUT-; the negative end of the error amplifier EA is connected with a reference voltage source VREFThe output end is connected with the peak current limit setting voltage VC(ii) a MOS transistor MN1Drain terminal connected with slope current source IslopeThe lower end and the grid end are connected with a peak current limiting voltage VCAnd source terminal connection resistor RslopeAn upper end; resistance RslopeLower end is connected with VOUT-; ramp current source IslopeUpper end connected with VDD_Low(ii) a MOS transistor MNH1Drain terminal connection voltage VINThe grid end is connected with a first output end EN _ SENSE of a grid-source voltage difference detection module of the power tube, and the source end is connected with an MOS tube MN1A drain terminal; first input end V of power tube grid-source differential pressure detection moduleG(MH)Connect MHThe gate end and the second output end EN _ COMP are connected with the enable end of the PWM comparator; the positive end of the PWM comparator is connected with MNH1The output end of the level Down module is connected with the input end of the level Down module; the output end of the levelDown module is connected with the R end of the RS trigger 2; the S end of the RS trigger 2 is connected with a clock signal CLK, and the Q end is connected with the input end of the driving L module; the output end of the driving module L is connected with MLA gate terminal; the input end of the levelUP module is connected with a clock signal CLK, and the output end of the levelUP module is connected with the S end of the RS trigger 1; the R end of the RS trigger 1 is connected with the output end of the PWM comparator, and the Q end of the RS trigger is connected with the input end of the driving H module; the output end of the drive H module is connected with MHAnd a gate terminal.
The power tube gate-source differential pressure detection module in fig. 2 is used as a key module, can detect the state of the power tube gate-source differential pressure, dynamically sets the time delay of the detection circuit, and avoids the false operation of a loop circuit caused by voltage and current noise generated by the miller platform effect. The specific implementation of the power tube gate-source voltage difference detection module is shown in fig. 4, and comprises NMOS tubes MN 1-MN 5, PMOS tubes MP 1-MP 4, inverters INV 1-INV 3, resistors R1-R4, and a power tube MHCapacitors C1 and C2, NAND gate NAND1, NOR gate NOR1, schmitt trigger SMIT1 and schmitt trigger SMIT 2;
the drain end of the NMOS tube MN1 is connected with the lower end of a resistor R1, the gate end is connected with the upper end of a resistor R2, and the source end is connected with an SW node; NMOS tube MN2 drain terminal connected to bias voltage VbiasThe grid end is connected with the drain end of an NMOS (N-channel metal oxide semiconductor) tube MN1, and the source end is connected with the upper end of a resistor R2; the drain end of an NMOS (N-channel metal oxide semiconductor) tube MN3 is connected with the drain end of a PMOS (P-channel metal oxide semiconductor) tube MP2, the gate end is connected with the output end of an inverter INV3, and the source end is connected with an SW node; the drain end of an NMOS (N-channel metal oxide semiconductor) tube MN4 is connected with the lower end of a resistor R4, the gate end is connected with the output end of a Schmitt trigger SMIT1, and the source end is connected with an SW node; the drain end of an NMOS (N-channel metal oxide semiconductor) tube MN5 is connected with the drain end of a PMOS (P-channel metal oxide semiconductor) tube MP4, the gate end is connected with the output end of a NOR gate NOR1, and the source end is connected with an SW node;
the drain terminal of the PMOS tube MP1 is connected with the gate terminal thereof, the gate terminal is connected with the gate terminal of the PMOS tube MP2, and the source terminal is connected with the VBOOST(ii) a The drain end of the PMOS tube MP2 is connected with the drain end of the NMOS tube MN3, the gate end of the PMOS tube MP1 is connected with the gate end of the PMOS tube MP 5, and the source end of the PMOS tube MP2 is connected with the drain end of the NMOS tube MN 5; the drain terminal of the PMOS transistor MP3 is connected with the upper end of a resistor R3, the gate terminal is connected with the gate terminal of an NMOS transistor MN4, and the source terminal is connected with a voltageBOOST(ii) a The drain terminal of the PMOS tube MP4 is connected with the drain terminal of the NMOS tube MN5, the gate terminal is connected with the output terminal of the NAND gate NAND1, and the source terminal is connected with VBOOST;
The upper end of the resistor R1 is connected with GCThe lower end of the signal is connected with the drain end of an NMOS (N-channel metal oxide semiconductor) tube MN 1; the upper end of the resistor R2 is connected with the source end of an NMOS tube MN2, and the lower end is connected with a SW node; the upper end of the resistor R3 is connected with the drain end of the PMOS tube MP3, and the lower end is connected with the upper end of the resistor R4; the upper end of the resistor R4 is connected with the upper end of the capacitor C2, and the lower end is connected with the upper end of an NMOS tube MN 4;
the upper end of the capacitor C1 is connected with the upper end of the resistor R1, and the lower end of the capacitor C1 is connected with the lower end of the resistor R1; the upper end of the capacitor C2 is connected with the upper end of the resistor R4, and the lower end of the capacitor C2 is connected with the SW node;
the input end of the inverter INV1 is connected with the output end of the NOR gate NOR1, and the output end of the inverter INV1 is connected with the second input end of the NAND gate NAND 1; the input end of the inverter INV2 is connected with the output end of the NAND gate 1, and the output end of the inverter INV2 is connected with the first input end of the NOR gate NOR 1; the input end of the inverter INV3 is connected with GCThe output end of the signal is connected with the grid end of an NMOS tube MN 3;
the first input terminal G of the NAND gate 1CThe second input end of the signal is connected with the output end of the inverter INV1, and the output end of the signal is connected with the grid end of the PMOS tube MP 4; the first input end of the NOR gate NOR1 is connected with the output end of the inverter INV2, and the second input end is connected with the output end GCThe output end of the signal is connected with the input end of the inverter INV 1;
the input end of the Schmitt trigger SMIT1 is connected with the drain end of an NMOS tube MN3, and the output end is connected with the gate end of a PMOS tube MP 3; the output end of the Schmitt trigger SMIT2 is connected with the upper end of the capacitor C2, and the output end is connected with EN _ CMOP;
power tube MHDrain terminal connection voltage VINThe grid end is connected with the drain end of the NMOS pipe MN5, and the source end is connected with the SW node.
The working principle of the invention is as follows:
regarding the PWM comparator: the error amplifier EA output of FIG. 2 produces a peak current limit voltage VCThrough MOS transistor MN1After being converted into current, the current is compensated with a slopeslopeIn MOS transistor MN1The drain end of the MOS transistor M is subjected to subtraction operation and finally is subjected to MOS transistor MNH1(gate terminal signal phase and MHSame) source terminal generates current detection comparison reference voltage information.
At the beginning of each cycle, the clock signal CLK generates a high level pulse, the Q terminal of the RS flip-flop 1 is set to 1, GCAfter the signal drives the H module to enhance the driving capability, the power tube M is startedHInductance current ILAnd starts to rise. At the end of each cycle, the inductor current ILHas risen to a voltage V limited by the peak currentCAt the determined peak value, the PWM comparator outputs high level, and the power tube M is quickly turned off by setting 0 to the Q end output of the trigger 1HInductance current ILAnd begins to fall.
Compared with the PWM comparator in the conventional peak current mode control Buck-Boost converter working at VOUT-and VDD_LowUnlike low voltage power supplies, in the present invention the PWM comparator operates on a high voltage floating supply rail between the SW node and the positive terminal Boost. When the inductive current ILWhen the output signal of the PWM comparator rises to a set peak value, the output signal of the PWM comparator is transmitted to a floating power rail without passing through a levelUp module (namely a level shift module) and then the power tube M is closedH. The method can avoid extra level shift delay, improve the response speed of the system and is more suitable for high-frequency application.
And (3) matching mirror tube sampling about a power tube: in the invention, the power tube M is adoptedHMatched MOS tube MNH1And finishing current sampling.
MHAs a high side power tube, using its on-resistance Rdson(H)Direct current to inductor current ILTo carry out miningSampling the obtained information VPWM-applied to the negative terminal of the PWM comparator. The sampling mode does not need to introduce additional high-voltage devices and feedback control loops, can reduce circuit damage and improve sampling speed, and is suitable for high-frequency application.
VPWM-=VIN-Rdson(H)×IL(1)
Current detection comparison reference voltage VPWM+ applied to positive end of PWM comparator and composed of MOS transistor MNH1Peak current limit setting voltage VCAnd a ramp current IslopeAnd (4) jointly determining.
R in the formula (2)dson(NH1)Is a MOS transistor MNH1On-resistance, Vth(N1)Is a MOS transistor MN1A threshold voltage.
In the formula (2) ILpeakFor the inductor current I in each cycleLA peak value is set.
In the formula (4) (W/L)HAnd (W/L)NH1Are MOS transistors M respectivelyHAnd MOS transistor MNH1Width to length ratio.
As can be seen from the equation (4), by setting the sampled information comparison reference point by the mirror image tube matched with the power tube, I in each period is finally obtainedLpeakThe size of the MOS transistor is only equal to that of the MOS transistor MHAnd MOS transistor MNH1The ratio of the dimensions is relevant. Avoid the drift of power tube parameters caused by process variation to cause Rdson(H)Varying, the final sampling gain is not fixed, so that ILpeakDeviation from the set value.
Regarding power tube grid source voltage difference detection: high side power tubeMHThe Miller platform effect exists in the starting process, the generated noise can influence the sampling precision and the normal work of the circuit, the linear idealized approximation is carried out on the actions of each stage during the starting process, the detailed schematic analysis is shown in figure 3, and figure 3 shows that the high power measuring tube MHThe miller platform effect schematic diagram in the switching process from the closed state to the open state has larger voltage and current mutation, which affects the current detection precision and the system loop stability and easily causes the loop to generate false operation.
Period t 0: after the rising edge of CLK comes, G is delayed by t0 through a levelUP module and an RS trigger 1CSignal-high, high-side power tube MHPreparing to start;
period t 1: high side power tube MHThe gate-source voltage difference is charged to the threshold voltage, and the high-side power tube MHJust starting;
period t 2: inductive current ILIs larger than the high side power tube MHLeakage current, high side power transistor MHThe gate-source voltage difference continues to rise in the saturation state;
period t 3: high side power tube MHLeakage current greater than inductor current ILHigh side power tube MHIn the linear state, the parasitic capacitance of the SW node starts to be charged. Drive H module to high side power tube MHCharging the gate-drain parasitic capacitance, high side power transistor MHThe grid-source voltage difference is kept constant;
period t 4: SW node voltage has risen to VINDriving H module to drive high side power tube MHCharging to V by gate-source voltage differenceBoost-VSWThereafter the power stage produces less noise (dV/dt, dI/dt) with no large voltage and current variations.
For high side power tube MHIn the starting process, because the noise problem is generated by the Miller platform effect, the invention introduces a power tube grid source pressure difference detection module to shield the time period from t0 to t4 so as to wait for a high-side power tube MHAfter the circuit is completely opened, the detection and comparison are carried out when the grid-source voltage difference is large, the influence of noise on sampling precision and the false triggering of a loop circuit are prevented, and the specific circuit is realized as shown in an attached figure 4.
When signal GCAt high time, the high side power tube MHAnd starting to open. The bias current module which is formed by MN1, MN2, MP1 and R2 and is independent of the power supply voltage can generate the bias voltage VbiasIt can provide bias current for PWM comparator and prevent high side power tube MHThe PWM comparator starts to operate when the gate-source voltage difference does not rise high enough. Wherein R1 is a current limiting resistor, and C1 can be used for controlling signal GCWhen a rollover occurs, an acceleration bias point is established. The NMOS transistor MN1 has a large width-to-length ratio in design, and thus has a gate-source voltage difference and a threshold voltage (V)th(MN1)) Approach, generate a bias current IbiasComprises the following steps:
signal GCWhen high, MN3 is turned off. With the high side power tube MHOpening, the gate-source voltage difference gradually increases when it reaches Vbias+|Vth(MP2)When | the MP2 pipe is opened. Vth(MP2)Is the MP2 tube threshold voltage. After being shaped by a Schmitt trigger SMIT1, the current sampling enables EN _ SENSE to jump high, and controls the MOS transistor M in the figure 2NH1Conducting to provide a current detection comparison reference potential (V) for the positive terminal of the PWM comparator in FIG. 2PWM+)。
After this time is delayed by tDelayThereafter, the PWM comparator output enable EN _ COMP is toggled low and the PWM comparator starts to operate. When the inductive current ILWhen the PWM comparator is turned over again after rising to the set peak value, the signal GCIs rapidly pulled down, bias current IbiasAnd a high side power tube MHIs turned off, and MN3 is turned on in fig. 4, M in fig. 2 can be quickly changed by EN _ SENSE and EN _ COMPNH1And the PWM comparator is turned off.
tDelay=ln0.5×R4×C2(6)
Reasonably setting input flip level and resistance R of Schmitt trigger SMIT24And a capacitor C2Parameter, namely, the delay t can be realizedDelayAny adjustment eventually ensures that the PWM comparator does not operate during the period t0 to t4 shown in fig. 3.
Reasonably setting bias voltage VbiasCan ensure the high-side power tube MHAnd before the grid-source voltage difference does not rise to the set value, the PWM comparator does not work.
The above description is only for the purpose of describing the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention, and any variations and modifications made by those skilled in the art based on the above disclosure are within the scope of the appended claims.