Demagnetization time detection circuit, method and power supply device

By introducing a resistor voltage dividing circuit and a sample-and-hold module into the switching circuit, the LC resonance voltage after demagnetization of the energy storage inductor is detected, and compared with the adaptive reference voltage, the problem of insufficient compatibility of demagnetization time detection in the existing technology is solved, and the realization Provides more accurate and reliable demagnetization time detection.

CN110554303BActive Publication Date: 2024-10-11恩赛半导体(成都)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910927450.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-27
Publication Date
2024-10-11
Estimated Expiration
2039-09-27

AI Technical Summary

Technical Problem

The existing switching circuit is affected by the parasitic capacitance of the power tube during the detection of the demagnetization time end point, resulting in insufficient compatibility and inability to adapt to the needs of different power tubes.

Method used

A demagnetization time detection circuit is designed, including a resistor voltage divider circuit, a sample and hold module and a hysteresis comparator. The LC resonance voltage after demagnetization of the energy storage inductor is detected through the resistor voltage divider, and compared with the adaptive reference voltage, the output Demagnetization time end signal.

Benefits of technology

It improves the accuracy and reliability of demagnetization time detection, overcomes the influence of parasitic capacitance of the power switch, and is suitable for different power tubes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110554303B_ABST
    Figure CN110554303B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of integrated circuit technology, and specifically to a demagnetization time detection circuit, method, and a power supply device using the demagnetization time detection circuit or method. The demagnetization time detection circuit is applied to a switch circuit having an energy storage inductor and a power switch, and includes a demagnetization time detection module, the demagnetization time detection module detects the end point of the demagnetization time of the energy storage inductor, and after the demagnetization time of the energy storage inductor ends, the output end outputs a demagnetization time end signal. The present invention detects the LC resonant voltage after the demagnetization of the energy storage inductor ends through resistance voltage division, and compares it with an adaptive reference voltage, thereby overcoming the influence caused by the parasitic capacitance of the power switch and improving the accuracy and reliability of the demagnetization time detection point.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated circuits, and in particular to a demagnetization time detection circuit and method, and a power supply device using the demagnetization time detection circuit or method. Background Art

[0002] Figure 1 It is an existing switching circuit, wherein the first end of the energy storage inductor L1 is electrically coupled to the input voltage VIN, the second end is coupled to the input end of the switch tube M1, and is also electrically coupled to the anode of the freewheeling diode D1, the control end of the switch tube M1 is electrically coupled to the output end of the control module, the output end of the switch tube M1 is electrically coupled to the ground, the cathode of the freewheeling diode D1 is electrically coupled to the first end of the output capacitor C1 and the first end of the load, the second end of the output capacitor C1 and the second end of the load are electrically coupled to the input voltage VIN, the input end of the control module is electrically coupled to the output end of the demagnetization time detection module, and the input end of the demagnetization time detection module is electrically coupled to the control end of the switch tube M1. When the energy storage inductor L1 changes from the charging state to the demagnetization state, the control module first outputs a low level to disconnect the power tube M1, and then the output end becomes a high-resistance state. The power tube M1 is kept disconnected by the pull-down resistor. When the energy storage inductor L1 is demagnetized, the energy storage inductor L1 will form an LC oscillation with the parasitic capacitance at the input end of the power tube M1. The principle of demagnetization time detection of the existing switch circuit is to use the parasitic capacitance Cgd of the power tube M1 to couple the LC oscillation voltage signal to the control end of the power tube M1 and compare it with the zero level. When the control end signal of the power tube M1 becomes a negative voltage, the demagnetization time end signal ZXC output by the demagnetization time detection module becomes a high level, thereby realizing the detection of the demagnetization time end point.

[0003] The disadvantage of the demagnetization time end point detection in the existing switching circuit is that the demagnetization time end point will be affected by the parasitic capacitance of the power tube M1. Power tubes M1 of different sizes or structures have different parasitic capacitances, resulting in the compatibility of the switching circuit with different power tubes M1 failing to meet customer needs. Summary of the invention

[0004] The present invention provides a demagnetization time detection circuit and method, and a power supply device using the demagnetization time detection circuit or method.

[0005] A demagnetization time detection circuit according to an embodiment of the present invention is applied to a switch circuit having an energy storage inductor and a power switch, and includes a demagnetization time detection module having a first input terminal, a second input terminal and an output terminal, wherein the first input terminal is electrically coupled to the power switch input terminal, and the second input terminal is electrically coupled to the power switch control terminal. The demagnetization time detection module detects the end point of the demagnetization time of the energy storage inductor, and after the demagnetization time of the energy storage inductor ends, the output terminal outputs a demagnetization time end signal.

[0006] According to a demagnetization time detection circuit of an embodiment of the present invention, the demagnetization time detection module includes: a resistor voltage divider circuit, the resistor voltage divider circuit has a first end, a second end and a voltage divider output end, wherein the first end is electrically coupled to the power switch input end, the second end is electrically coupled to the ground, and the voltage divider output end outputs a voltage divider signal proportional to the voltage of the power switch input end; a sampling and holding module, having a first input end, a second input end and an output end, wherein the first input end is electrically coupled to the voltage divider signal, the second input end is electrically coupled to the power switch control end signal, and the output end outputs a sampling and holding signal; a hysteresis comparator, having a first input end, a second input end and an output end, wherein the first input end is electrically coupled to the voltage divider signal, the second input end is electrically coupled to the sampling and holding signal, and the output end outputs a demagnetization time end signal.

[0007] According to a demagnetization time detection circuit of an embodiment of the present invention, the sampling and holding module includes: a single pulse circuit having an input end and an output end, wherein the input end is electrically coupled to an inverter output end, the inverter input end is electrically coupled to the power switch control end signal, and the single pulse circuit outputs a single pulse signal at the falling edge of the power switch control end signal; a first switch having an input end, an output end and a control end, wherein the input end is electrically coupled to the voltage-dividing signal output by the resistor voltage-dividing circuit, and the control end is electrically coupled to the output end of the single pulse circuit to receive the single pulse signal; a sampling and holding capacitor having a first end and a second end, wherein the first end is electrically coupled to the output end of the first switch, and the second end is electrically coupled to the ground, and the sampling and holding capacitor samples and holds the voltage-dividing signal output by the resistor voltage-dividing circuit during the high level time of the single pulse signal; a second switch having an input end, an output end and a control end, wherein the input end is electrically coupled to the first end of the capacitor, the control end is electrically coupled to the power switch control end signal, and the output end is electrically coupled to the ground.

[0008] According to a demagnetization time detection circuit of one embodiment of the present invention, the switching circuit used includes: an energy storage inductor, having a first end and a second end, wherein the first end is electrically coupled to the input voltage, and the second end is electrically coupled to the input end of the power switch; a freewheeling diode, having a cathode and an anode, wherein the anode is electrically coupled to the input end of the power switch and the second end of the energy storage inductor; an output capacitor and a load are connected in parallel, wherein the first end of the parallel connection of the output capacitor and the load is electrically coupled to the cathode of the freewheeling diode, and the second end of the parallel connection is electrically coupled to the input voltage.

[0009] According to a demagnetization time detection circuit of one embodiment of the present invention, the switching circuit used includes: an energy storage inductor which is a main inductor of a transformer, the main inductor having a first end and a second end, wherein the first end is electrically coupled to the input voltage, and the second end is electrically coupled to the input end of the power switch, and the secondary inductor of the transformer has a first end and a second end; a freewheeling diode having a cathode and an anode, wherein the anode is electrically coupled to the first end of the secondary inductor of the transformer; an output capacitor and a load are connected in parallel, wherein the first end of the parallel connection of the output capacitor and the load is electrically coupled to the cathode of the freewheeling diode, and the second end of the parallel connection is electrically coupled to the second end of the secondary inductor of the transformer.

[0010] According to a demagnetization time detection circuit of one embodiment of the present invention, the switching circuit used includes: an energy storage inductor having a first end and a second end, wherein the second end is electrically coupled to the input end of the power switch; an output capacitor and a load are connected in parallel, wherein the first end of the output capacitor and the load connected in parallel is electrically coupled to the input voltage, and the second end of the parallel connection is electrically coupled to the first end of the energy storage inductor; a freewheeling diode having a cathode and an anode, wherein the anode is electrically coupled to the input end of the power switch and the second end of the energy storage inductor, and the cathode is electrically coupled to the input voltage.

[0011] According to a demagnetization time detection circuit of one embodiment of the present invention, the switching circuit used includes: an energy storage inductor having a first end and a second end, wherein the first end is electrically coupled to an input voltage; an output capacitor and a load are connected in parallel, wherein the first end of the output capacitor and the load connected in parallel is electrically coupled to the second end of the energy storage inductor, and the second end of the parallel connection is electrically coupled to the power switch input end; a freewheeling diode having a cathode and an anode, wherein the anode is electrically coupled to the power switch input end, and the cathode is electrically coupled to the input voltage.

[0012] According to a demagnetization time detection circuit of an embodiment of the present invention, the switch circuit used includes: a control module having an input end and an output end, wherein the input end is electrically coupled to the output end of the demagnetization time detection module to receive the demagnetization time end signal, the output end is electrically coupled to the power switch control end, the power switch output end is electrically coupled to the ground, and the control module controls the power switch to be turned on based on the detection result of the demagnetization time end point of the energy storage inductor by the demagnetization time detection module, so that the input voltage charges the energy storage inductor through the power switch.

[0013] A demagnetization time detection method includes: when a power switch is disconnected, sampling the drain voltage at the input end of the power switch to obtain a drain voltage division; sampling and holding the drain voltage division to obtain a comparison reference voltage; comparing the drain voltage division with the reference voltage, and outputting a demagnetization time end signal when the drain voltage division is less than the reference voltage.

[0014] A power supply device according to an embodiment of the present invention includes any one of the above-mentioned demagnetization time detection circuits or adopts the above-mentioned demagnetization time detection method.

[0015] The demagnetization time detection circuit proposed in the present invention detects the LC resonant voltage after the demagnetization of the energy storage inductor is completed through resistance voltage division, and compares it with an adaptive reference voltage, thereby overcoming the influence caused by the parasitic capacitance of the power switch and improving the accuracy and reliability of the demagnetization time detection point. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 Shown is a schematic diagram of an existing demagnetization time detection circuit;

[0017] Figure 2A FIG. 1 is a schematic diagram of a demagnetization time detection circuit according to an embodiment of the present invention;

[0018] Figure 2B FIG. 1 is a schematic diagram of a demagnetization time detection module according to an embodiment of the present invention;

[0019] Figure 2C FIG. 1 is a schematic diagram of a sample-and-hold module according to an embodiment of the present invention;

[0020] Figure 2D Shown is a schematic diagram of a single pulse circuit according to an embodiment of the present invention;

[0021] Figure 2E FIG. 2 is a schematic diagram of a demagnetization time detection circuit according to a second embodiment of the present invention;

[0022] Figure 2F FIG. 1 is a schematic diagram of a demagnetization time detection circuit according to a third embodiment of the present invention;

[0023] Figure 2G FIG. 4 is a schematic diagram of a demagnetization time detection circuit according to a fourth embodiment of the present invention;

[0024] Figure 3A Shown is a typical working waveform diagram of an embodiment of the present invention;

[0025] Figure 3B Shown is a typical working waveform diagram of another embodiment of the present invention;

[0026] Figure 3C Shown is a typical working waveform diagram of yet another embodiment of the present invention;

[0027] Figure 4 FIG. 4 is a flow chart of a demagnetization time detection method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The specific embodiments of the present invention will be described in detail below. It should be noted that the embodiments described herein are only for illustration and are not intended to limit the present invention. In the following description, a large number of specific details are set forth in order to provide a thorough understanding of the present invention. However, it is obvious to those of ordinary skill in the art that these specific details do not have to be used to implement the present invention. In other examples, in order to avoid confusing the present invention, known circuits, materials or methods are not specifically described.

[0029] Throughout the specification, references to "one embodiment", "an embodiment", "an example" or "an example" mean that a particular feature, structure or characteristic described in conjunction with the embodiment or example is included in at least one embodiment of the present invention. Therefore, the phrases "in one embodiment", "in an embodiment", "an example" or "an example" that appear in various places throughout the specification do not necessarily refer to the same embodiment or example. In addition, particular features, structures or characteristics may be combined in one or more embodiments or examples in any appropriate combination and / or sub-combination. In addition, it should be understood by those of ordinary skill in the art that the drawings provided herein are for illustrative purposes and that the drawings are not necessarily drawn to scale. It should be understood that when an element is said to be "connected to" or "coupled to" another element, it may be directly connected or coupled to another element or there may be an intermediate element. In contrast, when an element is said to be "directly connected to" or "directly coupled to" another element, there is no intermediate element. The same reference numerals indicate the same element. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0030] Figure 2AThe figure shows a demagnetization time detection circuit according to an embodiment of the present invention, which is applied to a switch circuit 200 having an energy storage inductor 201 and a power switch 205, and includes a demagnetization time detection module 220, having a first input terminal, a second input terminal and an output terminal, wherein the first input terminal is electrically coupled to the input terminal Vdrain of the power switch 205, and the second input terminal is electrically coupled to the control terminal of the power switch 205 (for the convenience of expression, the input terminal or output terminal of a component is equivalent to its input terminal signal or output terminal signal name), and the demagnetization time detection module 220 detects the end point of the demagnetization time of the energy storage inductor 201, and after the demagnetization time of the energy storage inductor 201 ends, the output terminal outputs a demagnetization time end signal ZXC.

[0031] Figure 2B The circuit diagram of a demagnetization time detection module 220 according to an embodiment of the present invention is shown, comprising: a resistor voltage divider circuit 221, the resistor voltage divider circuit 221 having a first end, a second end and a voltage divider output end, wherein the first end is electrically coupled to the input end of the power switch 205 to receive the input end voltage Vdrain, the second end is electrically coupled to the ground, and the voltage divider output end outputs a voltage divider signal VN2 proportional to the input end voltage Vdrain of the power switch 205, wherein VN2=k*Vdrain, wherein k is a constant ; A sampling and holding module 222, having a first input terminal, a second input terminal and an output terminal, wherein the first input terminal is electrically coupled to the voltage-dividing signal VN2, the second input terminal is electrically coupled to the control terminal signal PWM of the power switch 205, and the output terminal outputs a sampling and holding signal Vsmp; A hysteresis comparator 223, having a first input terminal, a second input terminal and an output terminal, wherein the first input terminal is electrically coupled to the voltage-dividing signal VN2, the second input terminal is electrically coupled to the sampling and holding signal Vsmp, and the output terminal outputs a demagnetization time end signal ZXC.

[0032] In one embodiment, the resistor voltage divider circuit 221 includes an upper voltage divider resistor and a lower voltage divider resistor, wherein a first end of the upper voltage divider resistor is electrically coupled to an input end of the power switch 205 to receive the input end voltage Vdrain, a second end is electrically coupled to a first end of the lower voltage divider resistor, a second end of the lower voltage divider resistor is electrically coupled to the ground, a common end of the upper voltage divider resistor and the lower voltage divider resistor is a voltage divider output end, and a voltage divider signal VN2 is output, wherein VN2=k*Vdrain.

[0033] Figure 2CThe circuit diagram of a sampling and holding module 222 according to an embodiment of the present invention is shown, comprising: a single pulse circuit 2221, having an input terminal and an output terminal, wherein the input terminal is electrically coupled to the output terminal of an inverter 2222, the input terminal of the inverter 2222 is electrically coupled to the control terminal signal PWM of the power switch 205, and the single pulse circuit 2221 outputs a single pulse signal Vpulse at the falling edge of the control terminal signal PWM of the power switch 205; a first switch 2223, having an input terminal, an output terminal and a control terminal, wherein the input terminal is electrically coupled to the voltage-dividing signal VN2 output by the resistor voltage-dividing circuit 221, and the control terminal is electrically coupled to the output terminal of the single pulse circuit 2221 to receive the single pulse signal Vpulse; The sampling and holding capacitor 2224 has a first end and a second end, wherein the first end is electrically coupled to the output end of the first switch 2223, and the second end is electrically coupled to the ground. The sampling and holding capacitor 2224 samples and holds the voltage-dividing signal VN2 output by the resistance voltage-dividing circuit 221 during the high-level time of the single pulse signal Vpulse; the second switch 2225 has an input end, an output end and a control end, wherein the input end is electrically coupled to the first end of the capacitor 2224, the control end is electrically coupled to the control-end signal PWM of the power switch 205, and the output end is electrically coupled to the ground. When the control-end signal PWM of the power switch 205 becomes high level, the second switch 2225 clears the sampling and holding signal Vsmp on the sampling and holding capacitor 2224.

[0034] In one embodiment, the single pulse circuit 2221 includes a rising edge delay circuit 2221a, which delays the rising edge of its input signal PWMB, and has an input end and an output end, wherein the input end is electrically coupled to the output end of the inverter 2222; an inverter 2221b, whose input end is electrically coupled to the output end of the rising edge delay circuit 2221a, and whose output end is electrically coupled to a first input end of an AND gate 2221c; the second input end of the AND gate 2221c is electrically coupled to the input end of the rising edge delay circuit 2221a, and the output end of the AND gate 2221c outputs a single pulse signal Vpulse.

[0035] In one embodiment, if Figure 2AAs shown, the switch circuit 200 used in the demagnetization time detection circuit includes: an energy storage inductor 201, having a first end and a second end, wherein the first end is electrically coupled to the input voltage VIN, and the second end is electrically coupled to the input end of the power switch 205; a freewheeling diode 202, having a cathode and an anode, wherein the anode is electrically coupled to the input end of the power switch 205 and the second end of the energy storage inductor 201; an output capacitor 203 and a load 204, wherein the first end of the output capacitor 203 and the load 204 connected in parallel is electrically coupled to the cathode of the freewheeling diode 202, and the second end of the parallel connection is electrically coupled to the input voltage VIN, and the switch circuit 200 forms a buck-boost circuit structure.

[0036] Typical working waveform diagram of buck-boost circuit structure Figure 3A As shown, when the control terminal signal PWM of the power switch 205 is at a high level, the power switch 205 is turned on, and its input terminal voltage Vdrain becomes a low level, the sampling capacitor 2224 is reset to a zero level, the energy storage inductor 201 is charged, and the inductor current IL increases linearly; when the control terminal signal PWM of the power switch 205 is at a low level, the power switch 205 is turned off, and its input terminal voltage Vdrain becomes a high level. For the buck-boost circuit structure, Vdrain=VIN+Vout, where Vout is the load voltage, and the resistor voltage divider circuit 2224 in the demagnetization time detection module 220 The voltage Vdrain at the input end of the power switch 205 is divided to obtain a divided voltage signal VN2=k*Vdrain. The single pulse circuit in the sample and hold circuit 222 outputs a sampling pulse Vpulse. During the high level period, the sample and hold module 222 samples and holds the divided voltage signal VN2 in the capacitor 2224 as the in-phase reference voltage Vsmp of the comparator 223. When the Vdrain voltage is high, the reference voltage Vsmp is high, and when the Vdrain voltage is low, the reference voltage Vamp is low. Therefore, the reference voltage Vsmp has a function of adaptive regulation. During the period when the power switch 205 is disconnected, the energy storage inductor 201 is in a demagnetization discharge state, and the current IL of the energy storage inductor 201 decreases linearly; when the current IL of the energy storage inductor 201 drops to zero and the demagnetization is completed, the energy storage inductor 201 and the parasitic capacitance at its second end undergo LC resonance, causing the input voltage Vdrain of the power switch 205 to oscillate, and the voltage divider signal VN2 will also oscillate. When the voltage amplitude of the voltage divider signal VN2 oscillates to a set threshold value lower than the reference voltage Vsmp of the comparator, the demagnetization time end signal ZXC output by the comparator 223 becomes a high level, indicating that the demagnetization of the energy storage inductor 201 is completed at this time.

[0037] In one embodiment, if Figure 2EAs shown, the switch circuit 300 used in the demagnetization time detection circuit includes an energy storage inductor 301 which is a primary inductor of a transformer T1, wherein the primary inductor 301 has a first end and a second end, wherein the first end is electrically coupled to the input voltage VIN, and the second end is electrically coupled to the input end of the power switch 205, and the secondary inductor 305 of the transformer T1 has a first end and a second end; a freewheeling diode 302 having a cathode and an anode, wherein the anode is electrically coupled to the first end of the secondary inductor 305 of the transformer T1; an output capacitor 303 and a load 304 are connected in parallel, wherein the first end of the parallel connection of the output capacitor 303 and the load 304 is electrically coupled to the cathode of the freewheeling diode 302, and the second end of the parallel connection is electrically coupled to the second end of the secondary inductor 305 of the transformer T1, and the switch circuit 300 forms a flyback circuit structure.

[0038] Combined with the typical working waveform of the flyback circuit structure Figure 3CAs shown, when the control terminal signal PWM of the power switch 205 is at a high level, the power switch 205 is turned on, and its input terminal voltage Vdrain becomes a low level, the sampling capacitor 2224 is reset to a zero level, the energy storage inductor 301 is charged, and the inductor current IL increases linearly; when the control terminal signal PWM of the power switch 205 is at a low level, the power switch 205 is turned off, and its input terminal voltage Vdrain becomes a high level. For the flyback circuit structure, Vdrain = VIN + Nps * Vout, where Vout is the load voltage, Nps is the winding turns ratio of the primary side and the secondary side of the transformer, and the demagnetization time detection module 22 The resistor voltage divider circuit 221 in 0 divides the voltage Vdrain at the input end of the power switch 205 to obtain a voltage divider signal VN2=k*Vdrain. The single pulse circuit in the sample and hold circuit 222 outputs a sampling pulse Vpulse. During its high level period, the sample and hold module 222 samples and holds the voltage divider signal VN2 in the capacitor 2224 as the in-phase reference voltage Vsmp of the comparator 223. When the Vdrain voltage is high, the reference voltage Vsmp is high, and when the Vdrain voltage is low, the reference voltage Vamp is low. Therefore, the reference voltage Vsmp has the function of adaptive regulation. During the period when the power switch 205 is disconnected, the secondary inductor 305 of the transformer T1 is in a demagnetization discharge state, and the current IL decreases linearly; when the secondary inductor current IL drops to zero and the demagnetization is completed, the energy storage inductor 301 and the parasitic capacitor at its second end undergo LC resonance, causing the input voltage Vdrain of the power switch 205 to oscillate, and the voltage divider signal VN2 will also oscillate. When the voltage amplitude of the voltage divider signal VN2 oscillates to a set threshold value lower than the reference voltage Vsmp of the comparator, the demagnetization time end signal ZXC output by the comparator 223 becomes a high level, indicating that the demagnetization of the secondary inductor 305 of the transformer T1 is completed at this time.

[0039] In one embodiment, if Figure 2F As shown, the switch circuit 400 used in the demagnetization time detection circuit includes: an energy storage inductor 401 having a first end and a second end, wherein the second end is electrically coupled to the input end of the power switch 205; an output capacitor 403 and a load 404 are connected in parallel, wherein the first end of the output capacitor 403 and the load 404 connected in parallel is electrically coupled to the input voltage VIN, and the second end of the parallel connection is electrically coupled to the first end of the energy storage inductor 401; a freewheeling diode 402, having a cathode and an anode, wherein the anode is electrically coupled to the input end of the power switch 205 and the second end of the energy storage inductor 401, and the cathode is electrically coupled to the input voltage VIN. The switch circuit 400 forms a buck circuit structure.

[0040] Typical working waveform diagram of the buck circuit structure Figure 3B As shown, when the control terminal signal PWM of the power switch 205 is at a high level, the power switch 205 is turned on, and its input terminal voltage Vdrain becomes a low level, the sampling capacitor 2224 is reset to a zero level, the energy storage inductor 401 is charged, and the inductor current IL increases linearly; when the control terminal signal PWM of the power switch 205 is at a low level, the power switch 205 is turned off, and its input terminal voltage Vdrain becomes a high level. For the step-down circuit structure, Vdrain = VIN-Vout, where Vout is the load voltage, and the resistor voltage divider circuit 222 in the demagnetization time detection module 220 The voltage Vdrain at the input end of the power switch 205 is divided to obtain a divided voltage signal VN2=k*Vdrain. The single pulse circuit in the sample and hold circuit 222 outputs a sampling pulse Vpulse. During the high level period, the sample and hold module 222 samples and holds the divided voltage signal VN2 in the capacitor 2224 as the in-phase reference voltage Vsmp of the comparator 223. When the Vdrain voltage is high, the reference voltage Vsmp is high, and when the Vdrain voltage is low, the reference voltage Vamp is low. Therefore, the reference voltage Vsmp has a function of adaptive regulation. During the period when the power switch 205 is disconnected, the energy storage inductor 401 is in a demagnetization discharge state, and the current IL of the energy storage inductor 401 decreases linearly; when the current IL of the energy storage inductor 401 drops to zero and the demagnetization is completed, the energy storage inductor 401 and the parasitic capacitance at its second end undergo LC resonance, causing the input voltage Vdrain of the power switch 205 to oscillate, and the voltage divider signal VN2 will also oscillate. When the voltage amplitude of the voltage divider signal VN2 oscillates to a set threshold value lower than the reference voltage Vsmp of the comparator, the demagnetization time end signal ZXC output by the comparator 223 becomes a high level, indicating that the demagnetization of the energy storage inductor 401 is completed at this time.

[0041] In one embodiment, if Figure 2G As shown, the switch circuit 500 used in the demagnetization time detection circuit includes: an energy storage inductor 501 having a first end and a second end, wherein the first end is electrically coupled to the input voltage VIN; an output capacitor 503 and a load 504 are connected in parallel, wherein the first end of the output capacitor 503 and the load 504 connected in parallel is electrically coupled to the second end of the energy storage inductor 501, and the second end of the parallel connection is electrically coupled to the input end of the power switch 205; a freewheeling diode 502, having a cathode and an anode, wherein the anode is electrically coupled to the input end of the power switch 205, and the cathode is electrically coupled to the input voltage VIN, and the switch circuit 500 forms a buck circuit structure.

[0042] Typical working waveform diagram of the buck circuit structure Figure 3BAs shown, when the control terminal signal PWM of the power switch 205 is at a high level, the power switch 205 is turned on, and its input terminal voltage Vdrain becomes a low level, the sampling capacitor 2224 is reset to a zero level, the energy storage inductor 501 is charged, and the inductor current IL increases linearly; when the control terminal signal PWM of the power switch 205 is at a low level, the power switch 205 is turned off, and its input terminal voltage Vdrain becomes a high level. For the step-down circuit structure, Vdrain=VIN-Vout, where Vout is the load voltage, and the resistor voltage divider circuit 222 in the demagnetization time detection module 220 The voltage Vdrain at the input end of the power switch 205 is divided to obtain a divided voltage signal VN2=k*Vdrain. The single pulse circuit in the sample and hold circuit 222 outputs a sampling pulse Vpulse. During the high level period, the sample and hold module 222 samples and holds the divided voltage signal VN2 in the capacitor 2224 as the in-phase reference voltage Vsmp of the comparator 223. When the Vdrain voltage is high, the reference voltage Vsmp is high, and when the Vdrain voltage is low, the reference voltage Vamp is low. Therefore, the reference voltage Vsmp has a function of adaptive regulation. During the period when the power switch 205 is disconnected, the energy storage inductor 501 is in a demagnetization discharge state, and the current IL of the energy storage inductor 501 decreases linearly; when the current IL of the energy storage inductor 501 drops to zero and the demagnetization is completed, the energy storage inductor 501 and the parasitic capacitance at its second end undergo LC resonance, and through the coupling of the output capacitor 503, the input voltage Vdrain of the power switch 205 also oscillates, and the voltage divider signal VN2 also oscillates. When the voltage amplitude of the voltage divider signal VN2 oscillates to a set threshold value lower than the reference voltage Vsmp of the comparator, the demagnetization time end signal ZXC output by the comparator 223 becomes a high level, indicating that the demagnetization of the energy storage inductor 501 is completed at this time.

[0043] According to a demagnetization time detection circuit of an embodiment of the present invention, the switch circuit used in the demagnetization time detection circuit is as follows: Figure 2A , Figure 2E , Figure 2F and Figure 2G As shown, it also includes: a control module 240, having an input end and an output end, wherein the input end is electrically coupled to the output end of the demagnetization time detection module 220 to receive the demagnetization time end signal ZXC, and the output end is electrically coupled to the control end of the power switch 205, and the output end of the power switch 205 is electrically coupled to the ground. The control module 240 controls the power switch 205 to be turned on based on the detection result of the demagnetization time end point of the energy storage inductor by the demagnetization time detection module 220, so that the input voltage VIN charges the energy storage inductor through the power switch 205.

[0044] According to an embodiment of the present invention, the power switch 205 is an NMOS tube, the control terminal gate of the NMOS tube is electrically coupled to the output terminal of the control module 240, the output terminal source is electrically coupled to the ground, and the input terminal drain is electrically coupled to the energy storage inductor; or the power switch 205 is an NPN transistor, the control terminal base of the NPN transistor is electrically coupled to the output terminal of the control module 240, the input terminal emitter is electrically coupled to the ground, and the output terminal collector is electrically coupled to the energy storage inductor.

[0045] Figure 4 4 is a flow chart of a demagnetization time detection method according to an embodiment of the present invention, comprising steps 401 to 403.

[0046] Step 401, when the power switch is turned off, sampling the drain voltage at the input end of the power switch to obtain the drain divided voltage;

[0047] Step 402, sampling and holding the drain voltage division to obtain a comparison reference voltage;

[0048] Step 403: compare the drain voltage division with the reference voltage, and when the drain voltage division is less than the reference voltage, output a demagnetization time end signal.

[0049] A power supply device according to an embodiment of the present invention includes any one of the above-mentioned demagnetization time detection circuits or adopts the above-mentioned demagnetization time detection method.

[0050] Although the present invention has been described with reference to several typical embodiments, it should be understood that the terms used are illustrative and exemplary, rather than restrictive. Since the present invention can be embodied in a variety of forms without departing from the spirit or essence of the invention, it should be understood that the above embodiments are not limited to any of the foregoing details, but should be interpreted broadly within the spirit and scope defined by the appended claims, and therefore all changes and modifications falling within the scope of the claims or their equivalents should be covered by the appended claims. For those of ordinary skill in the art, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A demagnetization time detection circuit, applied to a switch circuit having an energy storage inductor and a power switch, characterized in that: include: a demagnetization time detection module, having a first input terminal, a second input terminal and an output terminal, wherein the first input terminal is electrically coupled to the power switch input terminal, and the second input terminal is electrically coupled to the power switch control terminal, the demagnetization time detection module detects the end point of the demagnetization time of the energy storage inductor, and after the demagnetization time of the energy storage inductor ends, the output terminal outputs a demagnetization time end signal; The demagnetization time detection module comprises: a resistor voltage divider circuit, the resistor voltage divider circuit having a first end, a second end and a voltage divider output end, wherein the first end is electrically coupled to the power switch input end, the second end is electrically coupled to ground, and the voltage divider output end outputs a voltage divider signal proportional to the voltage of the power switch input end; a sampling and holding module having a first input terminal, a second input terminal and an output terminal, wherein the first input terminal is electrically coupled to the voltage-divided signal, the second input terminal is electrically coupled to the power switch control terminal signal, and the output terminal outputs a sampling and holding signal; A hysteresis comparator has a first input terminal, a second input terminal and an output terminal, wherein the first input terminal is electrically coupled to the voltage division signal, the second input terminal is electrically coupled to the sampling and holding signal, and the output terminal outputs a demagnetization time end signal.

2. A demagnetization time detection circuit as claimed in claim 1, characterized in that: The sampling and holding module comprises: a single pulse circuit having an input terminal and an output terminal, wherein the input terminal is electrically coupled to an inverter output terminal, the inverter input terminal is electrically coupled to the power switch control terminal signal, and the single pulse circuit outputs a single pulse signal at the falling edge of the power switch control terminal signal; A first switch having an input terminal, an output terminal and a control terminal, wherein the input terminal is electrically coupled to the voltage division signal output by the resistor voltage division circuit, and the control terminal is electrically coupled to the output terminal of the single pulse circuit to receive the single pulse signal; a sampling and holding capacitor having a first end and a second end, wherein the first end is electrically coupled to the first switch output end, and the second end is electrically coupled to ground, and the sampling and holding capacitor samples and holds the voltage-divided signal output by the resistor voltage-dividing circuit within the high level time of the single pulse signal; The second switch has an input terminal, an output terminal and a control terminal, wherein the input terminal is electrically coupled to the first terminal of the capacitor, the control terminal is electrically coupled to the control terminal signal of the power switch, and the output terminal is electrically coupled to the ground.

3. A demagnetization time detection circuit as claimed in claim 1, characterized in that: The switching circuits used include: an energy storage inductor having a first end and a second end, wherein the first end is electrically coupled to the input voltage, and the second end is electrically coupled to the input end of the power switch; a freewheeling diode having a cathode and an anode, wherein the anode is electrically coupled to the input terminal of the power switch and the second terminal of the energy storage inductor; An output capacitor and a load are connected in parallel, wherein a first end of the parallel connection of the output capacitor and the load is electrically coupled to the cathode of the freewheeling diode, and a second end of the parallel connection is electrically coupled to the input voltage.

4. A demagnetization time detection circuit as claimed in claim 1, characterized in that: The switching circuits used include: An energy storage inductor, which is a primary inductor of a transformer, the primary inductor having a first end and a second end, wherein the first end is electrically coupled to the input voltage, and the second end is electrically coupled to the input end of the power switch, and the secondary inductor of the transformer has a first end and a second end; a freewheeling diode having a cathode and an anode, wherein the anode is electrically coupled to the first end of the secondary inductor of the transformer; An output capacitor and a load are connected in parallel, wherein a first end of the parallel connection of the output capacitor and the load is electrically coupled to the cathode of the freewheeling diode, and a second end of the parallel connection is electrically coupled to the second end of the secondary inductor of the transformer.

5. A demagnetization time detection circuit as claimed in claim 1, characterized in that: The switching circuits used include: an energy storage inductor having a first end and a second end, wherein the second end is electrically coupled to the power switch input end; An output capacitor and a load are connected in parallel, wherein a first end of the output capacitor and the load connected in parallel is electrically coupled to the input voltage, and a second end of the output capacitor and the load connected in parallel is electrically coupled to the first end of the energy storage inductor; A freewheeling diode has a cathode and an anode, wherein the anode is electrically coupled to the power switch input terminal and the second terminal of the energy storage inductor, and the cathode is electrically coupled to the input voltage.

6. A demagnetization time detection circuit as claimed in claim 1, characterized in that: The switching circuits used include: An energy storage inductor has a first terminal and a second terminal, wherein the first terminal is electrically coupled to the input voltage; An output capacitor and a load are connected in parallel, wherein a first end of the output capacitor and the load connected in parallel is electrically coupled to a second end of the energy storage inductor, and a second end of the parallel connection is electrically coupled to an input end of the power switch; A freewheeling diode has a cathode and an anode, wherein the anode is electrically coupled to the power switch input terminal, and the cathode is electrically coupled to the input voltage.

7. A demagnetization time detection circuit as claimed in claim 1, characterized in that: The applied switch circuit also includes: a control module having an input end and an output end, wherein the input end is electrically coupled to the output end of the demagnetization time detection module to receive the demagnetization time end signal, the output end is electrically coupled to the power switch control end, and the power switch output end is electrically coupled to the ground. The control module controls the power switch to turn on based on the detection result of the demagnetization time end point of the energy storage inductor by the demagnetization time detection module, so that the input voltage charges the energy storage inductor through the power switch.

8. A demagnetization time detection method, characterized in that: The method is applied to the demagnetization time detection circuit as claimed in claim 1, and the method comprises: When the power switch is turned off, the drain voltage at the input end of the power switch is sampled to obtain the drain voltage division; Sampling and holding the drain divided voltage to obtain a comparison reference voltage; The drain voltage division is compared with the reference voltage, and when the drain voltage division is less than the reference voltage, a demagnetization time end signal is output.

9. A power supply device, characterized in that: The invention comprises a demagnetization time detection circuit as claimed in any one of claims 1 to 7 or adopts a demagnetization time detection method as claimed in claim 8.