Voltage comparator, control chip and switching power supply

By introducing a voltage clamping circuit into the comparator of the AC-DC switching power supply, the node voltage is controlled at a preset value, which solves the problem of inductor current error caused by the long response time of the comparator and improves the load capacity and safety.

CN107528450BActive Publication Date: 2024-09-06SHENZHEN WINSEMI MICROELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201710757629.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2017-08-29
Publication Date
2024-09-06
Estimated Expiration
2037-08-29

AI Technical Summary

Technical Problem

In AC-DC switching power supplies, the long response time of the comparator results in a large power tube turn-off delay and a large inductor current peak error, which affects the load capacity and reduces safety.

Method used

Design a voltage comparator that includes an input circuit, a current-to-voltage conversion circuit, and a voltage clamping circuit. By controlling the node voltage at a preset value when the sampling voltage is less than the reference voltage, it prevents the voltage from rising to the power supply voltage, thereby shortening the response time.

Benefits of technology

It effectively reduces the response time from the input signal to the output control signal, reduces the inductor current error, and improves the load capacity and safety of the AC-DC switching power supply.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN107528450B
    Figure CN107528450B
Patent Text Reader

Abstract

The present invention is applicable to the field of electronic technology. The present invention provides a voltage comparator, a control chip and a switching power supply. The voltage comparator comprises: an input circuit, a current-voltage conversion circuit, a voltage clamping circuit and an output circuit. By setting the voltage clamping circuit in the comparator, when the sampling voltage is less than the reference voltage, the voltage clamping circuit controls the second node voltage of the output end of the first-stage input circuit to be at a first preset voltage value, and the first preset voltage value is less than the power supply voltage; when the sampling voltage is greater than the reference voltage, the first node voltage of the output end of the current-voltage conversion circuit starts to rise from zero, and the voltage clamping circuit controls the rising peak value of the first node voltage to be at a second preset voltage value, and the second preset voltage value is less than the power supply voltage. Since the first node voltage and the second node voltage do not need to rise to the power supply voltage, the response time of the voltage comparator is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of electronic technology, and in particular relates to a voltage comparator, a control chip and a switching power supply. Background Art

[0002] In the control chip of the AC-DC switching power supply, a comparator is required to control the control chip to output a control signal. Since the comparator has a long response time from receiving the input signal to outputting the control signal, there is a large delay in the shutdown process of the power tube in the AC-DC system, which further causes a large error in the peak value of the inductor current in the AC-DC switching power supply, and ultimately causes the load capacity of the output end of the AC-DC switching power supply to vary greatly under different input line voltages. When the input line voltage is high, the inductor current of the AC-DC switching power supply is very easy to enter a saturation state, reducing the safety of the AC-DC switching power supply. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a voltage comparator, a control chip and a switching power supply, which can quickly respond to and output a control signal, and can effectively reduce the response time from receiving an input signal to outputting a control signal.

[0004] In a first aspect of an embodiment of the present invention, a voltage comparator is provided, comprising: an input circuit, a current-voltage conversion circuit, a voltage clamping circuit and an output circuit; the power supply terminal of the input circuit, the power supply terminal of the current-voltage conversion circuit and the power supply terminal of the output circuit are all connected to the same power supply voltage, and the ground terminal of the current-voltage conversion circuit and the ground terminal of the output circuit are both grounded; the first input terminal of the input circuit is connected to a sampling voltage, and the second input terminal of the input circuit is connected to a reference voltage; the first output terminal of the input circuit is connected to the first input terminal of the current-voltage conversion circuit, and the second output terminal of the input circuit is connected to the second input terminal of the current-voltage conversion circuit. The output circuit comprises a first-stage output circuit and a second-stage output circuit, the power supply terminal of the first-stage output circuit and the power supply terminal of the second-stage output circuit are both connected to the power supply voltage, the ground terminals of the first-stage output circuit and the second-stage output circuit are both grounded, the output terminal of the first-stage output circuit is connected to the input terminal of the second-stage output circuit, and the output terminal of the second-stage output circuit outputs a control voltage; the output terminal of the current-to-voltage conversion circuit is respectively connected to the input terminal of the first-stage output circuit and the first control terminal of the voltage clamping circuit, and the second control terminal and the third control terminal of the voltage clamping circuit are respectively connected to the output terminal of the first-stage output circuit;

[0005] When the sampling voltage is less than the reference voltage, the first current signal outputted from the first output terminal of the input circuit is greater than the second current signal outputted from the second output terminal of the input circuit, the current-to-voltage conversion circuit controls the first node voltage of the output terminal of the current-to-voltage conversion circuit to be zero according to the first current signal and the second current signal, the voltage clamping circuit controls the second node voltage of the output terminal of the first-stage output circuit to be at a first preset voltage value, the first preset voltage value is less than the power supply voltage, and the output control voltage of the output terminal of the second-stage output circuit is zero;

[0006] When the sampling voltage reaches the reference voltage, the first current signal output by the first output terminal of the input circuit is less than the second current signal output by the second output terminal of the input circuit, the current-to-voltage conversion circuit controls the first node voltage of the output terminal of the current-to-voltage conversion circuit to rise from zero according to the first current signal and the second current signal, the voltage clamping circuit controls the rising peak value of the first node voltage to a second preset voltage value, the second preset voltage value is less than the power supply voltage, the second node voltage of the output terminal of the first-stage output circuit drops from the first preset voltage value to zero, and the output control voltage of the output terminal of the second-stage output circuit is the power supply voltage.

[0007] Furthermore, the voltage clamping circuit includes: a first NMOS transistor and a second NMOS transistor;

[0008] The source of the first NMOS tube, the drain of the second NMOS tube and the gate of the second NMOS tube are respectively connected to the output end of the current-voltage conversion circuit, and the drain of the first NMOS tube, the gate of the first NMOS tube and the source of the second NMOS tube are respectively connected to the output end of the first-stage output circuit.

[0009] Furthermore, the input circuit includes: a first PMOS tube, a second PMOS tube and a third PMOS tube; the source of the first PMOS tube is connected to the power supply voltage, the drain of the first PMOS tube is connected to the source of the second PMOS tube and the source of the third PMOS tube respectively, the gate of the first PMOS tube is connected to the first control signal, the gate of the second PMOS tube is connected to the sampling voltage, the gate of the third PMOS tube is connected to the reference voltage, the drain of the second PMOS tube is connected to the first input end of the current-voltage conversion circuit, and the drain of the third PMOS tube is connected to the second input end of the current-voltage conversion circuit.

[0010] Further, the current-to-voltage conversion circuit includes: a fourth PMOS tube, a fifth PMOS tube, a sixth PMOS tube, a seventh PMOS tube, a third NMOS tube, a fourth NMOS tube, a fifth NMOS tube and a sixth NMOS tube; the source of the fourth PMOS tube and the source of the fifth PMOS tube are both connected to the power supply voltage, the drain and the gate of the fourth PMOS tube are respectively connected to the gate of the fifth PMOS tube, the drain and the gate of the fourth PMOS tube are respectively connected to the source of the sixth PMOS tube, the drain of the fifth PMOS tube is connected to the source of the seventh PMOS tube, and the drain and the gate of the sixth PMOS tube are respectively connected to the gate of the seventh PMOS tube; the drain of the third NMOS tube is respectively connected to the drain and the gate of the sixth PMOS tube, the drain of the fourth NMOS tube is respectively connected to the drain and the gate of the seventh PMOS tube, and the drain of the fourth NMOS tube is respectively connected to the drain and the gate of the seventh PMOS tube. The drain of the third NMOS tube is connected; the source of the third NMOS tube is connected to the drain of the fifth NMOS tube, the source of the fourth NMOS tube is connected to the drain of the sixth NMOS tube, and the gate of the third NMOS tube and the gate of the fourth NMOS tube are both connected to the second control signal; the source of the fifth NMOS tube and the source of the sixth NMOS tube are grounded respectively, and the gate of the fifth NMOS tube and the gate of the sixth NMOS tube are both connected to the third control signal; the common connection point of the source of the third NMOS tube and the drain of the fifth NMOS tube is the first input end of the current-voltage conversion circuit, the common connection point of the source of the fourth NMOS tube and the drain of the sixth NMOS tube is the second input end of the current-voltage conversion circuit, and the common connection point of the drain of the fourth NMOS tube and the drain of the seventh PMOS tube is the output end of the current-voltage conversion circuit.

[0011] Further, the first-stage output circuit includes an eighth PMOS tube and a seventh NMOS tube, and the second-stage output circuit includes a ninth PMOS tube and an eighth NMOS tube; the source of the eighth PMOS tube and the source of the ninth PMOS tube are both connected to the power supply voltage, the drain of the eighth PMOS tube is connected to the drain of the seventh NMOS tube, the drain of the ninth PMOS tube is connected to the drain of the eighth NMOS tube, and the gate of the eighth PMOS tube and the gate of the ninth PMOS tube are both connected to a fourth control signal; the source of the seventh NMOS tube and the source of the eighth NMOS tube are both grounded; the gate of the seventh NMOS tube is the input end of the first-stage output circuit, the common point of the drain of the eighth PMOS tube and the drain of the seventh NMOS tube is the output end of the first-stage output circuit, the gate of the eighth NMOS tube is the input end of the second-stage output circuit, and the common point of the drain of the ninth PMOS tube and the drain of the eighth NMOS tube is the output end of the second-stage output circuit.

[0012] Furthermore, the second-stage output circuit also includes: a first inverter and a second inverter, the first inverter and the second inverter are connected in series, and the input end of the first inverter is connected to the common connection point of the drain of the ninth PMOS tube and the drain of the eighth NMOS tube.

[0013] A second aspect of the embodiments of the present invention provides a control chip, comprising: the voltage comparator described above, and further comprising: an AND gate, a NOR gate, a PWM module, a drive circuit, a sampling resistor, and a power tube;

[0014] The output end of the voltage comparator is connected to the first input end of the AND gate, the second input end of the AND gate is connected to the LEB shielding signal, and the output end of the AND gate is connected to the first input end of the PWM module; the first input end of the NOR gate is connected to the OSC clock signal, the second input end of the NOR gate is grounded, and the output end of the NOR gate is connected to the second input end of the PWM module; the output end of the PWM module is connected to the input end of the drive circuit, the output end of the drive circuit is connected to the gate of the power tube, the drain of the power tube is connected to the input voltage, the source of the power tube is connected to one end of the sampling resistor, the other end of the sampling resistor is grounded, and the common point of the source of the power tube and the sampling resistor is connected to the first input end of the voltage comparator.

[0015] Furthermore, the power tube is an NMOS tube.

[0016] A third aspect of the embodiments of the present invention provides a switching power supply, comprising the above-mentioned control chip, and further comprising: an input capacitor, a chip power supply capacitor, an energy storage inductor, a freewheeling diode, an output feedback diode, an output capacitor and a load resistor;

[0017] The drain of the power tube of the control chip is the first input terminal of the control chip, and the control chip also includes a second input terminal for connecting to a power supply for the control chip, and the ground terminal of the sampling resistor of the control chip is the ground terminal of the control chip;

[0018] One end of the input capacitor is connected to the supply voltage, and the other end of the input capacitor is grounded; the first input end of the control chip is connected to the input voltage, the second input end of the control chip is connected to the cathode of the output feedback diode, the ground end of the control chip is connected to one end of the energy storage inductor, and the other end of the energy storage inductor is connected to the anode of the output feedback diode;

[0019] The chip power supply capacitor is connected between the common connection point of the second input terminal of the control chip and the cathode of the output feedback diode and the common connection point of the ground terminal of the control chip and the energy storage inductor; the cathode of the freewheeling diode is connected to the common connection point of the chip power supply capacitor and the energy storage inductor, and the anode of the freewheeling diode is grounded; one end of the output capacitor connected in parallel with the load resistor is connected to the common connection point of the energy storage inductor and the output feedback diode, and the other end of the output capacitor connected in parallel with the load resistor is grounded, and the two ends of the load resistor are the output ends of the switching power supply.

[0020] Furthermore, the supply voltage is an alternating current voltage, and the output ends of the switching power supply are positive and negative output ends for outputting direct current.

[0021] The beneficial effects of the embodiments of the present invention compared with the prior art are as follows: a voltage comparator, a control chip and a switching power supply provided by the embodiments of the present invention, by setting a voltage clamping circuit in the comparator, when the sampling voltage is less than the reference voltage, the voltage clamping circuit controls the second node voltage at the output end of the first-stage output circuit to be at a first preset voltage value, and the first preset voltage value is less than the power supply voltage; when the sampling voltage is greater than the reference voltage, the first node voltage at the output end of the current-voltage conversion circuit starts to rise from zero, and the voltage clamping circuit controls the rising peak value of the first node voltage to be at a second preset voltage value, and the second preset voltage value is less than the power supply voltage. Since neither the first node voltage nor the second node voltage needs to rise to the power supply voltage, the response time of the voltage comparator is shortened. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0023] Figure 1 A schematic diagram of the module structure of a voltage comparator provided by an embodiment of the present invention;

[0024] Figure 2 A schematic diagram of the circuit structure of a voltage comparator provided by an embodiment of the present invention;

[0025] Figure 3 A schematic diagram of the circuit structure of a control chip provided in an embodiment of the present invention;

[0026] Figure 4 A schematic diagram of a circuit structure of a switching power supply provided by an embodiment of the present invention;

[0027] Figure 5A waveform diagram of the inductor current of an AC-DC switching power supply in an ideal state provided by an embodiment of the present invention;

[0028] Figure 6 A waveform diagram of the inductor current of an AC-DC switching power supply in an actual state provided by an embodiment of the present invention;

[0029] Figure 7 A waveform diagram of the inductor current of the switching power supply under high and low input line voltages provided by an embodiment of the present invention;

[0030] Figure 8 A schematic diagram of the corresponding relationship between different input voltages and overload protection points provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0032] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0033] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0034] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0035] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0036] In order to illustrate the technical solution of the present invention, a specific embodiment is provided below for illustration.

[0037] refer to Figure 1 , Figure 1 A schematic diagram of a module structure of a voltage comparator provided by an embodiment of the present invention. For ease of description, only the parts related to the present invention are shown. The voltage comparator 100 of this embodiment includes: an input circuit 10, a current-to-voltage conversion circuit 20, a voltage clamping circuit 30 and an output circuit 40.

[0038] The power supply terminal of the input circuit 10, the power supply terminal of the current-voltage conversion circuit 20, and the power supply terminal of the output circuit 40 are all connected to the power supply voltage VDD. The ground terminal of the current-voltage conversion circuit 20 and the ground terminal of the output circuit 40 are all grounded GND. The first input terminal 101 of the input circuit 10 is connected to the sampling voltage VRcs, and the second input terminal 102 of the input circuit 10 is connected to the reference voltage Vref. The first output terminal 103 of the input circuit 10 is connected to the first input terminal 201 of the current-voltage conversion circuit 20, and the second output terminal 104 of the input circuit 10 is connected to the second input terminal 202 of the current-voltage conversion circuit.

[0039] The output circuit 40 includes a first-stage output circuit 410 and a second-stage output circuit 420. The power supply terminal of the first-stage output circuit 410 and the power supply terminal of the second-stage output circuit 420 are both connected to the power supply voltage, and the ground terminals of the first-stage output circuit 410 and the second-stage output circuit 420 are both grounded. The output terminal of the first-stage output circuit 410 is connected to the input terminal of the second-stage output circuit 420, and the output terminal of the second-stage output circuit 420 outputs a control voltage. The output terminals of the current-voltage conversion circuit 20 are respectively connected to the input terminals of the first-stage output circuit 410. The first control terminal 301 of the voltage clamping circuit 30 is connected to the output terminal of the current-voltage conversion circuit 20, the second control terminal 302 and the third control terminal 303 of the voltage clamping circuit 30 are connected to the output terminal of the first-stage output circuit 410, and the output terminal of the second-stage output circuit 420 is the output terminal of the voltage comparator.

[0040] When the sampling voltage VRcs is less than the reference voltage Vref, the first current signal outputted from the first output terminal 103 of the input circuit 10 is greater than the second current signal outputted from the second output terminal 104 of the input circuit 10, and the current-to-voltage conversion circuit 20 controls the first node voltage vo1 of the output terminal of the current-to-voltage conversion circuit 20 to be zero according to the first current signal and the second current signal, and the voltage clamping circuit 30 controls the second node voltage vo2 of the output terminal of the first-stage output circuit 410 to be at a first preset voltage value, the first preset voltage value is less than the power supply voltage, and the control voltage vo3 outputted from the output terminal of the second-stage output circuit is zero.

[0041] When the sampling voltage VRcs reaches the reference voltage Vref, the first current signal outputted from the first output terminal 103 of the input circuit 10 is less than the second current signal outputted from the second output terminal 104 of the input circuit 10, and the current-to-voltage conversion circuit 20 controls the first node voltage vo1 at the output terminal of the current-to-voltage conversion circuit 20 to rise from zero according to the first current signal and the second current signal, and the voltage clamping circuit 30 controls the rising peak value of the first node voltage vo1 to a second preset voltage value, which is less than the power supply voltage, and the second node voltage vo2 at the output terminal of the first-stage output circuit 410 drops from the first preset voltage value to zero, and the output control voltage vo3 at the output terminal of the second-stage output circuit 420 is the power supply voltage.

[0042] It should be noted that: in this embodiment, the first preset voltage value and the second preset voltage value may be different or the same. For example, the first preset voltage value and the second preset voltage value are equal to or approximately equal to half of the power supply voltage.

[0043] It can be seen from the above embodiments that by setting a voltage clamping circuit in the comparator, when the sampling voltage is less than the reference voltage, the voltage clamping circuit controls the second node voltage at the output end of the first-stage output circuit to be at a first preset voltage value, and the first preset voltage value is less than the power supply voltage; when the sampling voltage is greater than the reference voltage, the first node voltage at the output end of the current-voltage conversion circuit starts to rise from zero, and the voltage clamping circuit controls the rising peak value of the first node voltage to be at a second preset voltage value, and the second preset voltage value is less than the power supply voltage. Since neither the first node voltage nor the second node voltage needs to rise to the power supply voltage, the comparator can output a control voltage, thereby shortening the response time of the voltage comparator.

[0044] refer to Figure 2 , Figure 2 A schematic diagram of the circuit structure of a voltage comparator provided by an embodiment of the present invention.

[0045] For the convenience of explanation, only the parts related to the present invention are shown, which are described in detail as follows:

[0046] As a preferred embodiment of the present invention, the voltage clamping circuit 30 includes: a first NMOS transistor 31 and a second NMOS transistor 32 .

[0047] The source of the first NMOS tube 31, the drain of the second NMOS tube 32, and the gate of the second NMOS tube 32 are respectively connected to the output end of the current-voltage conversion circuit 20, and the drain of the first NMOS tube 31, the gate of the first NMOS tube 31, and the source of the second NMOS tube 32 are respectively connected to the output end of the first-stage output circuit 410.

[0048] As a preferred embodiment of the present invention, the input circuit 10 includes: a first PMOS transistor 11 , a second PMOS transistor 12 and a third PMOS transistor 13 .

[0049] The source of the first PMOS tube 11 is connected to the power supply voltage, the drain of the first PMOS tube 11 is connected to the source of the second PMOS tube 12 and the source of the third PMOS tube 13 respectively, and the gate of the first PMOS tube 11 is connected to the first control signal vb1; the gate of the second PMOS tube 12 is connected to the sampling voltage, and the gate of the third PMOS tube 13 is connected to the reference voltage; the drain of the second PMOS tube 12 is connected to the first input terminal of the current-voltage conversion circuit 20, and the drain of the third PMOS tube 13 is connected to the second input terminal of the current-voltage conversion circuit 20.

[0050] As a preferred embodiment of the present invention, the current-voltage conversion circuit 20 includes: a fourth PMOS tube 21, a fifth PMOS tube 22, a sixth PMOS tube 23, a seventh PMOS tube 24, a third NMOS tube 25, a fourth NMOS tube 26, a fifth NMOS tube 27 and a sixth NMOS tube 28.

[0051] The source of the fourth PMOS tube 21 and the source of the fifth PMOS tube 22 are both connected to the power supply voltage, the drain and the gate of the fourth PMOS tube 21 are respectively connected to the gate of the fifth PMOS tube 22, the drain and the gate of the fourth PMOS tube 21 are respectively connected to the source of the sixth PMOS tube 23, the drain of the fifth PMOS tube 22 is connected to the source of the seventh PMOS tube 24, and the drain and the gate of the sixth PMOS tube 23 are respectively connected to the gate of the seventh PMOS tube 24;

[0052] The drain of the third NMOS tube 25 is connected to the drain and gate of the sixth PMOS tube 23 respectively, and the drain of the fourth NMOS tube 26 is connected to the drain of the seventh PMOS tube 24; the source of the third NMOS tube 25 is connected to the drain of the fifth NMOS tube 27, the source of the fourth NMOS tube 26 is connected to the drain of the sixth NMOS tube 28, and the gates of the third NMOS tube 25 and the fourth NMOS tube 26 are both connected to the second control signal vb2; the source of the fifth NMOS tube 27 and the source of the sixth NMOS tube 28 are grounded respectively, and the gates of the fifth NMOS tube 27 and the sixth NMOS tube 28 are both connected to the third control signal vb3;

[0053] The common point of the source of the third NMOS tube 25 and the drain of the fifth NMOS tube 27 is the first input terminal of the current-voltage conversion circuit 20, the common point of the source of the fourth NMOS tube 26 and the drain of the sixth NMOS tube 28 is the second input terminal of the current-voltage conversion circuit 20, and the common point of the drain of the fourth NMOS tube 26 and the drain of the seventh PMOS tube 24 is the output terminal of the current-voltage conversion circuit 20.

[0054] As a preferred embodiment of the present invention, the first-stage output circuit 410 includes an eighth PMOS transistor 411 and a seventh NMOS transistor 412 ; the second-stage output circuit 420 includes a ninth PMOS transistor 421 and an eighth NMOS transistor 422 .

[0055] The source of the eighth PMOS tube 411 and the source of the ninth PMOS tube 421 are connected to the power supply voltage, the drain of the eighth PMOS tube 411 is connected to the drain of the seventh NMOS tube 412, the drain of the ninth PMOS tube 421 is connected to the drain of the eighth NMOS tube 422, the gate of the eighth PMOS tube 411 and the gate of the ninth PMOS tube 421 are connected to the fourth control signal vb4; the source of the seventh NMOS tube 412 and the source of the eighth NMOS tube 422 are grounded.

[0056] The gate of the seventh NMOS tube 412 is the input end of the first-stage output circuit 410, the drain of the eighth PMOS tube 411 and the drain of the seventh NMOS tube 412 are the output end of the first-stage output circuit 410, the gate of the eighth NMOS tube 422 is the input end of the second-stage output circuit 420, and the drain of the ninth PMOS tube 421 and the drain of the eighth NMOS tube 422 are the output end of the second-stage output circuit 420.

[0057] As a preferred embodiment of the present invention, the above-mentioned second-stage output circuit may further include: a first inverter A1 and a second inverter A2, wherein the first inverter A1 and the second inverter A2 are connected in series, and the input end of the first inverter A1 is connected to the common point of the drain of the ninth PMOS tube 421 and the drain of the eighth NMOS tube 422.

[0058] It should be noted that the delay time of the voltage comparator provided in the embodiment of the present invention is 25 nS, which is much shorter than the delay time of 53.5 nS of a common voltage comparator.

[0059] refer to Figure 2 and 3 , Figure 3A circuit structure diagram of a control chip provided in an embodiment of the present invention. For ease of explanation, only the parts related to the present invention are shown. The control chip 200 of this embodiment includes: the voltage comparator 100, the AND gate 210, the NOR gate 220, the PWM module 230, the drive circuit 240, the sampling resistor Rcs250 and the power tube 260 of the above-mentioned embodiment.

[0060] The output end of the voltage comparator 100 is connected to the first input end of the AND gate 210, the second input end of the AND gate 210 is connected to the LEB shielding signal, and the output end of the AND gate 210 is connected to the first input end of the PWM module 230. The first input end of the NOR gate 220 is connected to the OSC clock signal, the second input end of the NOR gate 220 is grounded GND, and the output end of the NOR gate 220 is connected to the second input end of the PWM module 230; the output end of the PWM module 230 is connected to the input end of the drive circuit 240, and the output end of the drive circuit 240 is connected to the gate of the power tube 260. The drain of the power tube 260 is connected to the input voltage, the source of the power tube 260 is connected to one end of the sampling resistor Rcs250, the other end of the sampling resistor 250 is grounded, and the common point of the source of the power tube 260 and the sampling resistor 250 is connected to the first input end of the voltage comparator 100. The drive circuit is a voltage amplifier circuit, and the power tube 260 is an NMOS tube.

[0061] refer to Figure 3 and 4 , Figure 4 A schematic diagram of the circuit structure of a switching power supply provided in an embodiment of the present invention. For ease of description, only the parts related to the present invention are shown. The switching power supply 300 of this embodiment includes: a control chip 200, an input capacitor 310, a chip power supply capacitor 320, an energy storage inductor 330, a freewheeling diode 340, an output feedback diode 350, an output capacitor 360 and a load resistor 370.

[0062] The drain of the power tube 260 of the control chip 200 is the first input terminal VIN of the control chip. The control chip 200 also includes a second input terminal VCC for connecting to a power supply for the control chip 200. The ground terminal of the sampling resistor 250 of the control chip 200 is the ground terminal GND of the control chip 200.

[0063] One end of the input capacitor 310 is connected to the supply voltage, and the other end of the input capacitor is grounded; the first input terminal VIN of the control chip 200 is connected to the input voltage, the second input terminal VCC of the control chip 200 is connected to the cathode of the output feedback diode 350, the ground terminal GND of the control chip 200 is connected to one end of the energy storage inductor 330, and the other end of the energy storage inductor 330 is connected to the anode of the output feedback diode 350.

[0064] The chip power supply capacitor 320 is connected between the common point of the second input terminal of the control chip 200 and the cathode of the output feedback diode 350 and the common point of the ground terminal of the control chip 200 and the energy storage inductor 330. The cathode of the freewheeling diode 340 is connected to the common point of the chip power supply capacitor 320 and the energy storage inductor 330, and the anode of the freewheeling diode 340 is grounded. One end of the output capacitor 360 connected in parallel with the load resistor 370 is connected to the common point of the energy storage inductor 330 and the output feedback diode 350, and the other end of the output capacitor 360 connected in parallel with the load resistor 370 is grounded, and the two ends of the load resistor 370 are the output ends of the switching power supply. The power supply voltage is an AC voltage, and the two ends of the load resistor 370 are respectively the positive and negative output ends of the switching power supply 300.

[0065] In a specific application example, the power switch may be a BUCK type AC-DC switching power supply. Figure 3 and 4 The power tube 260 is turned on by the internal clock signal OSC controlling the PWM module 230 to output an on signal; the power tube 260 is turned off by the comparator 100 detecting that VRcs reaches the reference voltage Vref by sampling Rcs, the comparator 100 outputs a shut-off control signal to the PWM module 230, and the PWM module 230 outputs a reset signal to shut down the power tube 260. When the power tube 260 is turned off, the inductor current value Iocp of the energy storage inductor 330 is Vref / Rcs.

[0066] For an ideal AC-DC switching power supply, the waveform of the energy storage inductor current is as follows: Figure 5 As shown: I1 and I2 are current waveforms with different rising slopes corresponding to different input line voltages (power supply voltages), and their peak values ​​are completely consistent with the internally set Iocp threshold and can be expressed as I L =(V / L)*T, where V is the input line voltage of the AC-D switching power supply, L is the inductance of the energy storage inductor 330, and T is the time required for the inductor current value of the energy storage inductor to rise from the initial point to Iocp in one switching cycle.

[0067] For a real-world AC-DC switching power supply, the inductor current of the energy storage inductor can be expressed as: I L =V / L*T+V / L*Td, where Td is the delay from when the inductor current reaches Iocp (equivalent to when the sampling voltage VRcs reaches the reference voltage Vref) to when the power tube is turned off. Due to the existence of Td, the inductor current of the energy storage inductor is ΔI=(V / L)T d The error is proportional to the input line voltage and the delay Td. For a known AC-DC switching power supply, Td is fixed. Figure 6, the waveform of the inductor current of the energy storage inductor under actual conditions. It can be seen that the larger the input line voltage, the larger the inductor current error, and the smaller the input line voltage, the smaller the inductor current error.

[0068] Among them, Td=Tcomp+Tds, where Tcomp is the response time of the voltage comparator, and Tds is the time required for the comparator to output the shutdown control signal Vcomp to the gate of the power tube 260. Since Tds is mainly composed of the delay of the logic circuit (voltage comparator 100, AND gate 210, NOR gate 220, PWM module 230) and the driving circuit, there is not much room for optimization. The response time Tcomp of the voltage comparator has a greater effect on Td.

[0069] For an AC-DC switching power supply in actual state, when the output load changes from small to large, the inductor current will enter the CCM (Continuous Current Mode) mode from the DCM (Discontinuous Current Mode) mode. Figure 7 When the input line voltage is small, the inductor current error ΔI caused by the above Tcomp L1 Smaller, I L1 The peak current Ipeak1 in the CCM period has good consistency; when the input line voltage is large, the inductor current error ΔI caused by the above Tcomp L2 Larger, I L2 The consistency of the peak current Ipeak2 during the CCM period is poor. It can be seen that when the input line voltage is high, the energy stored in the energy storage inductor in each switching cycle is greater than the energy stored when the input line voltage is low, resulting in a smaller load capacity at the output end of the system at low input line voltage and a larger input line voltage.

[0070] refer to Figure 8 , Figure 8 The corresponding relationship between the overload Iload protection points of the voltage comparator with different input voltages V1, V2 and V3. Among them, Iload1 and Iload2 are the overload protection points of the ordinary comparator; Iload1 and Iload2 are the overload protection points of the voltage comparator in the embodiment of the present invention. It can be seen that the voltage comparator provided by the embodiment of the present invention can make the overload protection point of the switching power supply have good consistency and enhance the safety of the switching power supply. The delay time of the ordinary comparator is 53.5nS, and the delay time of the comparator of the present invention is 25nS. It can be seen that the comparator of the present invention greatly improves the response speed.

[0071] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A voltage comparator, characterized in that: include: Input circuit, current-voltage conversion circuit, voltage clamping circuit and output circuit; The power supply terminal of the input circuit, the power supply terminal of the current-voltage conversion circuit and the power supply terminal of the output circuit are all connected to the same power supply voltage, and the ground terminal of the current-voltage conversion circuit and the ground terminal of the output circuit are both grounded; the first input terminal of the input circuit is connected to the sampling voltage, and the second input terminal of the input circuit is connected to the reference voltage; the first output terminal of the input circuit is connected to the first input terminal of the current-voltage conversion circuit, and the second output terminal of the input circuit is connected to the second input terminal of the current-voltage conversion circuit; The output circuit comprises a first-stage output circuit and a second-stage output circuit, the power supply terminal of the first-stage output circuit and the power supply terminal of the second-stage output circuit are both connected to the power supply voltage, the ground terminals of the first-stage output circuit and the second-stage output circuit are both grounded, the output terminal of the first-stage output circuit is connected to the input terminal of the second-stage output circuit, and the output terminal of the second-stage output circuit outputs a control voltage; the output terminal of the current-voltage conversion circuit is respectively connected to the input terminal of the first-stage output circuit and the first control terminal of the voltage clamping circuit, and the second control terminal and the third control terminal of the voltage clamping circuit are respectively connected to the output terminal of the first-stage output circuit; When the sampling voltage is less than the reference voltage, the first current signal outputted from the first output terminal of the input circuit is greater than the second current signal outputted from the second output terminal of the input circuit, the current-to-voltage conversion circuit controls the first node voltage of the output terminal of the current-to-voltage conversion circuit to be zero according to the first current signal and the second current signal, the voltage clamping circuit controls the second node voltage of the output terminal of the first-stage output circuit to be at a first preset voltage value, the first preset voltage value is less than the power supply voltage, and the output control voltage of the output terminal of the second-stage output circuit is zero; When the sampling voltage reaches the reference voltage, the first current signal output by the first output terminal of the input circuit is less than the second current signal output by the second output terminal of the input circuit, the current-to-voltage conversion circuit controls the first node voltage of the output terminal of the current-to-voltage conversion circuit to rise from zero according to the first current signal and the second current signal, the voltage clamping circuit controls the rising peak value of the first node voltage to a second preset voltage value, the second preset voltage value is less than the power supply voltage, the second node voltage of the output terminal of the first-stage output circuit drops from the first preset voltage value to zero, and the output control voltage of the output terminal of the second-stage output circuit is the power supply voltage.

2. The voltage comparator according to claim 1, characterized in that: The voltage clamping circuit comprises: a first NMOS tube and a second NMOS tube; The source of the first NMOS tube, the drain of the second NMOS tube and the gate of the second NMOS tube are respectively connected to the output end of the current-voltage conversion circuit, and the drain of the first NMOS tube, the gate of the first NMOS tube and the source of the second NMOS tube are respectively connected to the output end of the first-stage output circuit.

3. The voltage comparator according to claim 1, characterized in that: The input circuit comprises: a first PMOS tube, a second PMOS tube and a third PMOS tube; The source of the first PMOS tube is connected to the power supply voltage, the drain of the first PMOS tube is connected to the source of the second PMOS tube and the source of the third PMOS tube respectively, the gate of the first PMOS tube is connected to the first control signal, the gate of the second PMOS tube is connected to the sampling voltage, the gate of the third PMOS tube is connected to the reference voltage, the drain of the second PMOS tube is connected to the first input end of the current-voltage conversion circuit, and the drain of the third PMOS tube is connected to the second input end of the current-voltage conversion circuit.

4. The voltage comparator according to claim 1, characterized in that: The current-voltage conversion circuit includes: a fourth PMOS tube, a fifth PMOS tube, a sixth PMOS tube, a seventh PMOS tube, a third NMOS tube, a fourth NMOS tube, a fifth NMOS tube and a sixth NMOS tube; The source of the fourth PMOS tube and the source of the fifth PMOS tube are both connected to the power supply voltage, the drain and the gate of the fourth PMOS tube are respectively connected to the gate of the fifth PMOS tube, the drain and the gate of the fourth PMOS tube are respectively connected to the source of the sixth PMOS tube, the drain of the fifth PMOS tube is connected to the source of the seventh PMOS tube, and the drain and the gate of the sixth PMOS tube are respectively connected to the gate of the seventh PMOS tube; The drain of the third NMOS tube is connected to the drain and gate of the sixth PMOS tube respectively, and the drain of the fourth NMOS tube is connected to the drain of the seventh PMOS tube; the source of the third NMOS tube is connected to the drain of the fifth NMOS tube, the source of the fourth NMOS tube is connected to the drain of the sixth NMOS tube, and the gates of the third NMOS tube and the fourth NMOS tube are both connected to the second control signal; the source of the fifth NMOS tube and the source of the sixth NMOS tube are grounded respectively, and the gates of the fifth NMOS tube and the sixth NMOS tube are both connected to the third control signal; The common point of the source of the third NMOS tube and the drain of the fifth NMOS tube is the first input end of the current-voltage conversion circuit, the common point of the source of the fourth NMOS tube and the drain of the sixth NMOS tube is the second input end of the current-voltage conversion circuit, and the common point of the drain of the fourth NMOS tube and the drain of the seventh PMOS tube is the output end of the current-voltage conversion circuit.

5. The voltage comparator according to claim 1, characterized in that: The first-stage output circuit includes an eighth PMOS tube and a seventh NMOS tube, and the second-stage output circuit includes a ninth PMOS tube and an eighth NMOS tube; The source of the eighth PMOS tube and the source of the ninth PMOS tube are both connected to the power supply voltage, the drain of the eighth PMOS tube is connected to the drain of the seventh NMOS tube, the drain of the ninth PMOS tube is connected to the drain of the eighth NMOS tube, the gate of the eighth PMOS tube and the gate of the ninth PMOS tube are both connected to the fourth control signal; the source of the seventh NMOS tube and the source of the eighth NMOS tube are both grounded; The gate of the seventh NMOS tube is the input end of the first-stage output circuit, the common point of the drain of the eighth PMOS tube and the drain of the seventh NMOS tube is the output end of the first-stage output circuit, the gate of the eighth NMOS tube is the input end of the second-stage output circuit, and the common point of the drain of the ninth PMOS tube and the drain of the eighth NMOS tube is the output end of the second-stage output circuit.

6. The voltage comparator according to claim 5, characterized in that: The second-stage output circuit also includes: a first inverter and a second inverter, the first inverter and the second inverter are connected in series, and the input end of the first inverter is connected to the common connection point of the drain of the ninth PMOS tube and the drain of the eighth NMOS tube.

7. A control chip, characterized in that: The voltage comparator comprises the voltage comparator as claimed in any one of claims 1 to 6, further comprising: an AND gate, a NOR gate, a PWM module, a drive circuit, a sampling resistor and a power tube; The output end of the voltage comparator is connected to the first input end of the AND gate, the second input end of the AND gate is connected to the LEB shielding signal, and the output end of the AND gate is connected to the first input end of the PWM module; the first input end of the NOR gate is connected to the OSC clock signal, the second input end of the NOR gate is grounded, and the output end of the NOR gate is connected to the second input end of the PWM module; the output end of the PWM module is connected to the input end of the drive circuit, the output end of the drive circuit is connected to the gate of the power tube, the drain of the power tube is connected to the input voltage, the source of the power tube is connected to one end of the sampling resistor, the other end of the sampling resistor is grounded, and the common point of the source of the power tube and the sampling resistor is connected to the first input end of the voltage comparator.

8. The control chip according to claim 7, characterized in that: The power tube is an NMOS tube.

9. A switching power supply, characterized in that: The control chip comprises the control chip as claimed in any one of claims 7 or 8, and further comprises: an input capacitor, a chip power supply capacitor, an energy storage inductor, a freewheeling diode, an output feedback diode, an output capacitor and a load resistor; The drain of the power tube of the control chip is the first input terminal of the control chip, and the control chip also includes a second input terminal for connecting to a power supply for the control chip, and the ground terminal of the sampling resistor of the control chip is the ground terminal of the control chip; One end of the input capacitor is connected to the supply voltage, and the other end of the input capacitor is grounded; the first input end of the control chip is connected to the input voltage, the second input end of the control chip is connected to the cathode of the output feedback diode, the ground end of the control chip is connected to one end of the energy storage inductor, and the other end of the energy storage inductor is connected to the anode of the output feedback diode; The chip power supply capacitor is connected between the common connection point of the second input terminal of the control chip and the cathode of the output feedback diode and the common connection point of the ground terminal of the control chip and the energy storage inductor; the cathode of the freewheeling diode is connected to the common connection point of the chip power supply capacitor and the energy storage inductor, and the anode of the freewheeling diode is grounded; one end of the output capacitor connected in parallel with the load resistor is connected to the common connection point of the energy storage inductor and the output feedback diode, and the other end of the output capacitor connected in parallel with the load resistor is grounded, and the two ends of the load resistor are the output ends of the switching power supply.

10. The switching power supply according to claim 9, characterized in that: The supply voltage is an alternating current voltage, and the output ends of the switching power supply are positive and negative output ends for outputting direct current.