Quasi-resonance valley bottom detection circuit, control circuit and quasi-resonance control method

By designing a quasi-resonant valley bottom detection circuit, the resonant period information is extracted by using the zero crossing point detection of the feedback voltage, and the quasi-resonant valley bottom detection adaptively detects the quasi-resonant valley bottom, solving the problem of accurate and cost of quasi-resonant valley bottom detection in the existing technology, and improving the switching power supply Efficiency and electromagnetic interference processing effect.

CN118944448APending Publication Date: 2024-11-12SHANGHAI BRIGHT POWER SEMICONDUCTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310525180.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-10
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The prior art is difficult to achieve lower cost and more accurate quasi-resonant valley detection, resulting in large switching losses of switching power supplies at high switching frequency and poor processing of electromagnetic interference signals.

Method used

A quasi-resonant valley bottom detection circuit is designed, including a zero-crossing detection circuit, a valley bottom detection circuit and a valley opening circuit. Resonant period information is extracted by zero-crossing detection of feedback voltage, and a positive and negative half-cycle characterizing the positive and negative half-cycle in the resonant period is generated. The voltage signal is adaptively detected by the quasi-resonant valley, and the power switch of the switching power supply is turned on at this time.

Benefits of technology

Achieve more accurate quasi-resonant valley bottom detection, reduces the power consumption of switching power supplies, improves the overall efficiency and valley bottom detection accuracy of the power supply system, and avoids detection deviations, simplifies circuit design, and reduces the use of external devices and pins. Reduced total system cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118944448A_ABST
    Figure CN118944448A_ABST
Patent Text Reader

Abstract

The invention provides a quasi-resonance valley bottom detection circuit, a control circuit and a quasi-resonance control method, which can extract information of a resonance period according to zero-cross detection of a feedback voltage, generate a first voltage representing a positive half period in the information of the resonance period, and obtain a second voltage representing a negative half period in the information of the resonance period. The moment when the second voltage is equal to the first voltage is used as the moment when the quasi-resonance valley bottom is detected, so that self-adaptive quasi-resonance valley bottom detection can be realized, the quasi-resonance valley bottom can be accurately found, the purpose of switching on a power switch of the switching power supply at the quasi-resonance valley bottom is achieved, the efficiency of the whole system of the switching power supply is improved, the power consumption is reduced, and the reliability of the switching power supply is improved. And deviation caused during quasi-resonance valley bottom detection is avoided, the valley bottom detection precision is improved, the circuit design is simple, and the implementation cost is low.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of switch power supply control, and in particular to a quasi-resonance valley detection circuit, a control circuit and a quasi-resonance control method. Background Art

[0002] Switching power supplies have the advantages of easy control, high efficiency, small size, and good reliability. They are widely used in electronic devices such as mobile chargers, LED lighting, and power adapters. In order to enable the switching power supply to achieve a higher switching frequency while reducing switching losses, quasi-resonant (QR) control technology is currently commonly used. Switching power supplies operating in quasi-resonant mode usually use valley detection technology to detect whether the voltage across the power switch is zero voltage or low voltage, and then control the moment when the power switch is turned on to the valley bottom of the quasi-resonant feedback voltage, thereby reducing switching losses. Quasi-resonant control technology is also beneficial for weakening electromagnetic interference (EMI) signals.

[0003] Therefore, how to achieve lower-cost and more accurate quasi-resonant valley detection has always been one of the hot issues in the field of switching power supplies using quasi-resonant control technology. Summary of the invention

[0004] The object of the present invention is to provide a quasi-resonant valley detection circuit, a control circuit and a quasi-resonant control method, which can achieve lower cost and more accurate quasi-resonant valley detection and minimize switching losses as much as possible.

[0005] To achieve the above object, the present invention provides a quasi-resonant valley detection circuit, comprising:

[0006] A zero-crossing detection circuit, used to detect the zero-crossing point of the feedback voltage at the feedback end of the switching power supply and extract information of the resonance period;

[0007] A valley detection circuit, coupled to the zero-crossing detection circuit, is used to obtain a first voltage representing a positive half-cycle in the information of the resonance period according to the information of the resonance period, and obtain a second voltage representing a negative half-cycle in the information of the resonance period, and generate a valley signal at a moment when the second voltage is equal to the first voltage;

[0008] The valley turn-on circuit is coupled to the valley detection circuit and is used to generate a turn-on signal according to the valley signal to control the power switch of the switching power supply to turn on at the corresponding moment.

[0009] Optionally, the valley detection circuit includes:

[0010] a control signal generating circuit, coupled to the zero-crossing detection circuit, configured to receive a refresh request signal and generate a first control signal according to information of the resonance period and the refresh request signal and generate a second control signal according to information of the resonance period;

[0011] a first voltage generating circuit, coupled to the control signal generating circuit, and configured to generate the first voltage according to the first control signal;

[0012] a second voltage generating circuit, coupled to the control signal generating circuit, and configured to generate the second voltage according to the second control signal;

[0013] The valley signal generating circuit is coupled to the first voltage generating circuit and the second voltage generating circuit, and is used for detecting a moment when the second voltage is equal to the first voltage, and generating the valley signal at the moment.

[0014] Optionally, the first voltage gradually increases with time during the effective phase of the first control signal, and is a constant value during the invalid phase of the first control signal; the second voltage gradually increases with time during the effective phase of the second control signal, the maximum value of the second voltage is greater than the constant value, and the moment is the moment when the second voltage is equal to the constant value.

[0015] Optionally, the control signal generating circuit is used to generate a third control signal based on the information of the resonance period and the refresh request signal and to generate a fourth control signal based on the information of the resonance period, the third control signal is used to control the first voltage generating circuit to refresh the first voltage, and the fourth control signal is used to control the second voltage generating circuit to refresh the second voltage.

[0016] Optionally, the refresh request signal is a one-time forced refresh request signal or a periodic refresh request signal.

[0017] Optionally, the first voltage generating circuit includes a first current source, a first charging switch circuit and a first capacitor coupled in sequence; the control end of the first charging switch circuit is coupled to the control signal generating circuit, and the connection node between the first charging switch circuit and the first capacitor serves as the output end of the first voltage generating circuit, and the output end is coupled to the first input end of the valley signal generating circuit; the first charging switch circuit is turned on when the first control signal is valid, so that the first current source charges the first capacitor to generate the first voltage, and the first charging switch circuit is turned off when the first control signal is invalid, so that the first voltage is stabilized at a constant value by the first capacitor.

[0018] Optionally, the first voltage generating circuit also includes a first discharge switch circuit, which is connected in parallel with the first capacitor, and the control end of the first discharge switch circuit is coupled to the control signal generating circuit. The first discharge switch circuit is turned on under the control of the control signal generating circuit to discharge the first capacitor to refresh the first voltage.

[0019] Optionally, the second voltage generating circuit includes a second current source, a second charging switch circuit and a second capacitor coupled in sequence; the control end of the second charging switch circuit is coupled to the control signal generating circuit, and the connection node between the second charging switch circuit and the second capacitor serves as the output end of the second voltage generating circuit, and the output end is coupled to the second input end of the valley signal generating circuit; the second charging switch circuit is turned on when the second control signal is valid, so that the second current source charges the second capacitor to generate the second voltage, and the second charging switch circuit is turned off when the second control signal is invalid.

[0020] Optionally, the second capacitor and the first capacitor have the same capacitance, and the charging current provided by the second current source is twice the charging current provided by the first current source.

[0021] Optionally, the second voltage generating circuit also includes a second discharge switch circuit, which is connected in parallel with the second capacitor, and the control end of the second discharge switch circuit is coupled to the control signal generating circuit. The second discharge switch circuit is turned on under the control of the control signal generating circuit to discharge the second capacitor to refresh the second voltage.

[0022] Optionally, the valley signal generating circuit includes a second comparator and a pulse generator, the first input terminal of the second comparator is coupled to the first voltage generating circuit, the second input terminal of the second comparator is coupled to the second voltage generating circuit, the output terminal of the second comparator is coupled to the pulse generator, and the second comparator enables the pulse generator when detecting that the second voltage is equal to the first voltage, and the pulse generator outputs the valley signal after being enabled.

[0023] Optionally, the zero-crossing detection circuit includes a first comparator, a first input terminal of the first comparator is used to receive a reference voltage, a second input terminal of the first comparator is used to receive the feedback voltage, and an output terminal is coupled to the valley detection circuit.

[0024] Optionally, the valley opening circuit includes an AND logic circuit, an input end of the AND logic circuit is coupled to the output end of the valley detection circuit, the other input end is used to receive an opening request signal, and the output end of the AND logic circuit outputs the opening signal.

[0025] Optionally, the quasi-resonant valley detection circuit further includes at least one of the following timing circuits:

[0026] a first timing circuit, wherein an input end of the first timing circuit is coupled to an output end of the zero-crossing detection circuit, an output end of the first timing circuit is coupled to an enable end of the zero-crossing detection circuit, and the first timing circuit is used to start timing after the zero-crossing detection circuit detects that the feedback voltage crosses zero for the first time, and disable the zero-crossing detection circuit after the timing reaches a first preset time;

[0027] a second timing circuit, wherein an input end of the second timing circuit is used to receive a driving signal, an output end of the second timing circuit is coupled to an enable end of the zero-crossing detection circuit, and the second timing circuit is used to start timing when the driving signal of the power switch jumps from a high level to a low level, and after the timing reaches a second preset time, the zero-crossing detection circuit is disabled;

[0028] A third timing circuit, wherein the input end of the third timing circuit is used to receive the opening request signal, the output end of the third timing circuit is coupled to an input end of an OR logic circuit, the other input end of the OR logic circuit is coupled to the output end of the valley detection circuit, the output end of the OR logic circuit is coupled to the valley opening circuit, the third timing circuit is used to start timing when the opening request signal is received, and when the timing reaches a third preset time, the valley opening circuit generates the opening signal.

[0029] Optionally, after the power switch is turned off and within the leading edge blanking time of the switching power supply, the quasi-resonant valley detection circuit is disabled.

[0030] Based on the same inventive concept, the present invention further provides a control circuit for controlling a switching power supply, which comprises the quasi-resonant valley detection circuit as described in any one of the present inventions.

[0031] Optionally, the control circuit further includes at least one of the following circuits:

[0032] a shielding time detection circuit, coupled to the quasi-resonant valley detection circuit, for detecting the leading edge blanking time of the switching power supply after the power switch is turned off, and disabling the quasi-resonant valley detection circuit during the leading edge blanking time;

[0033] A reference circuit, coupled to the quasi-resonance valley detection circuit, for providing a reference voltage to a zero-crossing detection circuit in the quasi-resonance valley detection circuit;

[0034] a sampling circuit, coupled to the quasi-resonant valley detection circuit, for sampling the output voltage of the switching power supply to provide a feedback voltage to a zero-crossing detection circuit in the quasi-resonant valley detection circuit;

[0035] The logic control circuit is coupled to the quasi-resonance valley detection circuit and is used to provide a refresh request signal and an opening request signal to the quasi-resonance valley detection circuit.

[0036] Based on the same inventive concept, the present invention also provides a quasi-resonant control method for controlling a switching power supply, which comprises:

[0037] Detecting the zero-crossing point of the feedback voltage at the feedback terminal of the switching power supply and extracting information of the resonance period;

[0038] According to the information of the resonance period, a first voltage representing a positive half-cycle in the information of the resonance period is obtained, and a second voltage representing a negative half-cycle in the information of the resonance period is obtained, and a moment when the second voltage is equal to the first voltage is used as a moment when a quasi-resonance valley is detected, and a valley signal is generated;

[0039] The power switch of the switching power supply is controlled to be turned on at the corresponding moment according to the valley signal.

[0040] Optionally, the quasi-resonance control method further includes: refreshing the second voltage in each resonance period, and / or refreshing the first voltage according to a refresh request signal.

[0041] Optionally, the quasi-resonance control method further comprises: after the power switch is turned off, shielding the detection of the quasi-resonance valley within the leading edge blanking time of the switching power supply.

[0042] Optionally, the quasi-resonant control method further includes: when there is a turn-on request signal requesting to turn on the power switch and a quasi-resonant valley is detected, controlling the power switch to turn on at a corresponding moment according to the valley signal; if timing is started when there is the turn-on request signal, and the quasi-resonant valley is still not detected when the timing reaches a third preset time, then directly turning on the power switch.

[0043] Optionally, the quasi-resonance control method further comprises: starting timing after detecting that the feedback voltage crosses zero for the first time, and when the timing reaches a first preset time, stopping detecting the zero crossing point of the feedback voltage;

[0044] And / or, starting timing after the power switch is turned off, and stopping detecting the zero-crossing point of the feedback voltage when the timing reaches a second preset time.

[0045] Compared with the prior art, the technical solution of the present invention has at least one of the following beneficial effects:

[0046] 1. It is possible to extract information about the resonance period according to zero-crossing detection of the feedback voltage, generate a first voltage representing the positive half-period in the information of the resonance period, and generate a second voltage representing the negative half-period in the information of the resonance period, and then use the moment when the second voltage is equal to the first voltage as the moment when the quasi-resonance valley is detected, thereby enabling adaptive quasi-resonance valley detection to accurately find the quasi-resonance valley, so as to achieve the purpose of turning on the power switch of the switching power supply at the quasi-resonance valley, improve the efficiency of the overall switching power supply system, reduce power consumption, avoid deviations during quasi-resonance valley detection, and improve valley detection accuracy.

[0047] 2. The quasi-resonant valley detection circuit of the present invention is simple in design and can be integrated inside the control chip of the switching power supply. Therefore, it does not increase the use of external devices or pins of the control chip of the switching power supply, thereby saving the total system cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Those skilled in the art will appreciate that the accompanying drawings are provided for a better understanding of the present invention and do not constitute any limitation on the scope of the present invention.

[0049] Figure 1 The present invention is a schematic diagram of a partial circuit structure of a switching power supply with an AC / DC flyback converter (DCM Flyback) architecture.

[0050] Figure 2 yes Figure 1 A timing diagram of the switching power supply shown.

[0051] Figure 3 yes Figure 1 Another timing diagram of the switching power supply shown.

[0052] Figure 4 FIG. 4 is a schematic diagram of the structure of a quasi-resonant valley detection circuit according to the first embodiment of the present invention.

[0053] Figure 5 It is a schematic diagram of a specific example structure of a valley detection circuit and a valley opening circuit in the quasi-resonant valley detection circuit of the first embodiment of the present invention.

[0054] Figure 6 1 is a specific example timing diagram of the quasi-resonant valley detection circuit of the first embodiment of the present invention.

[0055] Figure 7 FIG. 4 is a schematic diagram of the structure of a quasi-resonant valley detection circuit according to a second embodiment of the present invention.

[0056] Figure 8 FIG. 4 is a schematic diagram of the structure of a quasi-resonant valley detection circuit according to a third embodiment of the present invention.

[0057] FIG. 9A to FIG. 9B 2 are schematic diagrams of two specific example structures of the control circuit of the fourth embodiment of the present invention.

[0058] Fig.10 is an exemplary flow chart of the quasi-resonance control method according to the fifth embodiment of the present invention. DETAILED DESCRIPTION

[0059] In the following description, a large number of specific details are given in order to provide a more thorough understanding of the present invention. However, it is obvious to those skilled in the art that the present invention can be implemented without one or more of these details. In other examples, in order to avoid confusion with the present invention, some technical features known in the art are not described. It should be understood that the present invention can be implemented in different forms and should not be interpreted as being limited to the embodiments proposed here. On the contrary, providing these embodiments will make the disclosure thorough and complete, and the scope of the present invention will be fully conveyed to those skilled in the art. The same reference numerals represent the same elements from beginning to end. It should be understood that when an element is referred to as "connected to", "coupled" other elements, it can be directly connected to other elements, or there can be intervening elements. On the contrary, when an element is referred to as "directly connected to" other elements, there is no intervening element. When used here, the singular forms of "one", "an" and "said / the" are also intended to include plural forms, unless the context clearly indicates another way. It should also be understood that the term "comprising" is used to identify the presence of features, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, steps, operations, elements, components and / or groups. When used herein, the term "and / or" includes any and all combinations of the relevant listed items.

[0060] Please refer to Figure 1, a switching power supply with an AC / DC flyback converter (Flyback) architecture, which includes a transformer, a power switch Q, a voltage divider circuit, a clamping diode D0 (for example, a Zener diode located inside a chip), a freewheeling diode D1, an output capacitor Cout, and an equivalent load resistor R0. Wherein, the transformer includes a primary winding, a secondary winding, and an auxiliary winding, wherein Np is the number of turns of the primary winding, Ns is the number of turns of the secondary winding, and Na is the number of turns of the auxiliary winding. The power switch Q is connected in series with the primary winding, the anode of the freewheeling diode is connected to the first end of the secondary winding, the cathode of the freewheeling diode is connected to the first end of the output capacitor Cout and the first end of the equivalent load resistor R0, the second end of the secondary winding is connected to the second end of the output capacitor Cout and the second end of the equivalent load resistor R0, and the voltage divider circuit is connected in parallel with the auxiliary winding. The cathode of the clamping diode D0 is connected to the voltage divider point of the voltage divider circuit, and the anode of the clamping diode D0 is grounded. The voltage divider circuit includes a resistor R1 and a resistor R2 connected in series, and a connection point between the resistor R1 and the resistor R2 serves as a voltage divider point of the voltage divider circuit for providing a feedback voltage VFB.

[0061] Please combine Figure 1 and Figure 2 The working principle of the AC / DC flyback converter in discontinuous conduction DCM (Discontinuous Conduction Mode) mode is as follows:

[0062] When the driving signal Ton_p of the power switch Q is at a high level, the power switch Q is turned on, the voltage Vd at the first end of the power switch Q is close to 0V, and the feedback voltage VFB is clamped to Vclamp_VFB, for example, -0.7V, by the clamping diode D0.

[0063] When the driving signal Ton_p of the power switch Q changes from a high level to a low level, the power switch Q is turned off, the freewheeling diode D1 is turned on, and demagnetization begins. The voltage Vd at the first end of the power switch Q is approximately Vin+Nps·Vout, where Nps is the turns ratio of the primary and secondary windings, Nps=Np / Ns, Vout is the output voltage, and T_demag is the demagnetization time. At this time, the voltage Va on the auxiliary winding is proportional to the output voltage Vout, Va=Nas·Vout, and Va is divided by resistors R1 and R2 to obtain the feedback voltage VFB. Therefore, VFB=R2 / (R1+R2)·Va=Nas·Vout·rfb, where rfb=R2 / (R1+R2), Nas is the turns ratio of the auxiliary winding and the secondary winding, Nas=Na / Ns.

[0064] After demagnetization, the voltage Vd at the first end of the power switch Q will resonate freely. The resonance is mainly composed of the parasitic capacitance Cd of the power switch Q and the excitation inductance Lp of the primary side. Theoretically, the resonance period T=T1+T2 is determined by the parasitic capacitance Cd and the excitation inductance Lp of the primary side. During the resonance process, the resonance center value of the voltage Vd at the first end of the power switch Q is Vin, and the initial amplitude of the resonance is Nps·Vout. The voltage Vd at the first end of the power switch Q will have a minimum point (i.e., valley bottom) Vdmin. At this time (i.e., at the Vd valley bottom), turning on the power switch Q can reduce switching losses and EMI noise interference. Therefore, accurately detecting the quasi-resonance valley bottom (i.e., Vd valley bottom) can minimize the switching losses and EMI noise interference of the switching power supply. In addition, during the resonance process, the feedback voltage VFB resonates with 0V as the center, the amplitude of the positive half cycle is Nas·Vout·rfb, and the amplitude of the negative half cycle is clamped to Vclamp_VFB by the clamping diode D0.

[0065] from Figure 2 and Figure 3 It can be seen that during the resonance process, the resonance period T needs to be detected and recorded. Generally, the resonance period information T is extracted from the zero crossing point of the feedback voltage VFB. For example, the negative half period T1 is obtained by timing from the first zero crossing point of the feedback voltage VFB to the second zero crossing point, and the positive half period T2 is obtained from the second zero crossing point to the third zero crossing point. In one case, Figure 2 As shown, the lowest point (i.e., valley bottom) Vdmin of the voltage Vd at the first end of the power switch Q is greater than 0, the positive half cycle T2 and the negative half cycle T1 are equal, and the resonant period T = T1 + T2. However, in another case, Figure 3 As shown, the lowest point (i.e., valley bottom) Vdmin of the voltage Vd at the first end of the power switch Q is less than 0, the negative half cycle T1 is greater than the positive half cycle T2, the negative half cycle T1 plus the positive half cycle T2 is greater than the true resonant cycle T', wherein the true resonant cycle T'=2*T2, at this time, the voltage Vd at the first end of the power switch Q is clamped, and it is no longer the normal resonance formed by the parasitic capacitance Cd of the power switch Q and the primary excitation inductance Lp.

[0066] Moreover, in one case, within a resonant cycle T, T / 4 is the Vd valley point starting from the first zero crossing of the feedback voltage VFB. Therefore, the quasi-resonant valley can be determined by detecting the zero crossing moment of the feedback voltage VFB, thereby realizing the valley turn-on of the power switch Q on the primary side.

[0067] Based on this, in the prior art, the main method for realizing valley conduction of the power switch Q on the primary side is the fixed-time delay method. Specifically, at the beginning stage of a resonant cycle, that is, after detecting the first zero-crossing of the feedback voltage VFB, after a fixed delay Tc = T / 4, a valley signal QR for turning on the power switch Q is generated. This method is the simplest. However, in another case, when device parameters such as Lp and Cd in the circuit change, the actual resonant cycle T' may become larger or smaller than before (for example Figure 3 as shown in T' < T = T1 + T2), at this time, the valley point changes to T' / 4, and the moment after the fixed delay Tc = T / 4 is not the changed resonant valley point. Obviously, at this time, the power switch Q cannot be accurately turned on at the valley.

[0068] Therefore, the present invention provides a quasi-resonant valley detection circuit and method, a control circuit, and a quasi-resonant control method, which can realize a low-cost and accurate quasi-resonant valley detection scheme. The core is to detect the zero-crossing moment of the feedback voltage of the switching power supply to obtain the information of the resonant cycle, and further use the detected time information of the positive half-cycle and the negative half-cycle information to determine the quasi-resonant valley, generate a valley signal QR, and then turn on the power switch of the switching power supply at the quasi-resonant valley. Using the time information of the positive half-cycle as the reference time of resonance makes the determination of the quasi-resonant valley moment more accurate.

[0069] The technical solutions proposed by the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. According to the following description, the advantages and features of the present invention will be clearer. It should be noted that the accompanying drawings are all in a very simplified form and use non-precise scales, only for the purpose of facilitating and clearly assisting in explaining the embodiments of the present invention.

[0070] First Embodiment

[0071] Please refer to Figures 4 to 6 , this embodiment provides a quasi-resonant valley detection circuit 1, which includes a zero-crossing detection circuit 10, a valley detection circuit 11, and a valley turn-on circuit 12.

[0072] Among them, the zero-crossing detection circuit 10 is used to detect the zero-crossing point of the feedback voltage VFB on the output side of the switching power supply during the quasi-resonant stage of the switching power supply and extract the information VFB_low of the resonant cycle.

[0073] The valley detection circuit 11 is coupled to the zero-crossing detection circuit 10, and is used to obtain the first voltage V_hold of the positive half-cycle in the information VFB_low representing the resonant cycle according to the information VFB_low of the resonant cycle, and obtain the second voltage V_cap of the negative half-cycle in the information VFB_low representing the resonant cycle, and generate a valley signal QR at the moment when the second voltage V_cap is equal to the first voltage V_hold (V_cap=V_hold) (this moment is the valley moment of the quasi-resonant stage). It should be noted that the positive half-cycle refers to the time period corresponding to the feedback voltage greater than zero in a resonant cycle, and the negative half-cycle refers to the time period corresponding to the feedback voltage less than zero in a resonant cycle. In some embodiments, the positive half-cycle and the negative half-cycle may be equal. In other embodiments, the positive half-cycle and the negative half-cycle may not be equal.

[0074] Please combine Figure 4 and Fig. 9B The valley turn-on circuit 12 is coupled to the valley detection circuit 11 and is used to generate a turn-on signal Tonp_set according to the valley signal QR to control the power switch Q of the switching power supply to turn on at the corresponding moment when V_cap=V_hold.

[0075] It should be understood that the zero-crossing detection circuit 10, valley detection circuit 11 and valley opening circuit 12 in this embodiment can be implemented using any suitable circuit design in the art, as long as they can achieve the functions of the above-mentioned circuits, and the present invention does not make specific limitations on this.

[0076] As an example, the zero-crossing detection circuit 10 includes a first comparator CMP1, a non-inverting input terminal "+" of the first comparator CMP1 is used to receive a reference voltage Vref (for example, close to 0V), an inverting input terminal "-" is used to receive a feedback voltage VFB, and an output terminal is coupled to a valley detection circuit 11. The first comparator CMP1 determines the zero-crossing point of the feedback voltage VFB by comparing the error between the feedback voltage VFB and the reference voltage Vref, and then extracts the information VFB_low of the resonance period. In other embodiments, the inverting input terminal "-" of the first comparator CMP1 is used to receive the reference voltage Vref, the non-inverting input terminal "+" is used to receive the feedback voltage VFB, and the output terminal is coupled to the valley detection circuit 11.

[0077] Please refer to Figure 6, when VFB is lower than Vref, VFB_low is at a high level, and when VFB is higher than Vref, VFB_low is at a low level (which can be 0V). In a resonant cycle, the moment when VFB crosses zero downward for the first time determines the rising edge of the high level of VFB_low, and the moment when VFB crosses zero upward for the first time determines the falling edge of the high level of VFB_low. In each resonant cycle, the high level time of VFB_low corresponds to the negative half cycle of the resonant cycle, and the low level time of VFB_low corresponds to the positive half cycle of the resonant cycle. Thus, VFB_low represents the information of the resonant cycle, and the zero-crossing detection circuit 10 extracts VFB_low by detecting the zero-crossing point of the feedback voltage VFB at the feedback end of the switching power supply, that is, extracts the information of the resonant cycle.

[0078] In this embodiment, please refer to Figure 4 The valley detection circuit 11 includes a control signal generating circuit 111 , a first voltage generating circuit 112 , a second voltage generating circuit 113 and a valley signal generating circuit 114 .

[0079] Among them, the control signal generating circuit 111 is coupled to the output end of the first comparator CMP1 of the zero-crossing detection circuit 10, and the control signal generating circuit 111 is used to receive the refresh request signal Sample_Req and the information VFB_low of the resonance cycle, and generate a first control signal Φ1 according to the information VFB_low of the resonance cycle and the refresh request signal Sample_Req, and generate a second control signal Φ2 according to the information VFB_low of the resonance cycle.

[0080] The first voltage generating circuit 112 is coupled to the control signal generating circuit 111 and is configured to generate a first voltage V_hold according to a first control signal Φ1.

[0081] The second voltage generating circuit 113 is coupled to the control signal generating circuit 111 and is configured to generate a second voltage V_cap according to a second control signal Φ2.

[0082] The valley signal generating circuit 114 is coupled to the first voltage generating circuit 112 and the second voltage generating circuit 113 for detecting the moment when the second voltage V_cap is equal to the first voltage V_hold (ie, the quasi-resonance valley moment) and generating a valley signal QR at the moment.

[0083] In this embodiment, the first control signal Φ1 generated by the control signal generating circuit 111 according to the resonance cycle information VFB_low and the refresh request signal Sample_Req reflects the positive half cycle time in a resonance cycle of the resonance stage, that is, Figure 6The time T2 that the feedback voltage VFB experiences from the first upward zero-crossing to the second downward zero-crossing within the corresponding resonance period. That is to say, the combined action of the zero-crossing detection circuit 11 and the control signal generation circuit 111 actually samples the positive half-cycle waveform signal during the resonance of the feedback voltage VFB to obtain and record the positive half-cycle of the resonance period. This can avoid the problem that the first voltage V_hold (i.e., the positive half-cycle time) generated by the first control signal Ф1 controlling the first voltage generation circuit 12 is inaccurate. The specific analysis is as follows:

[0084] First, please refer to Figure 1 and Figure 6 . After the secondary side conduction ends, when the secondary side demagnetization time signal T_demag becomes low and the drive signal Ton_p remains low, the resonance network composed of the parasitic capacitance Cd (i.e., the resonance capacitance) of the power switch Q and the parasitic inductance Lp of the primary side winding will resonate freely. The resonance center value of the resonance voltage Vd is the input voltage Vin of the primary side winding, the initial amplitude of the resonance voltage Vd is Vin + Nps·Vout, VFB resonates centered at 0V, the initial amplitude is Nas·Vout·rfb, and rfb = R2 / (R1 + R2), Nas is the turn ratio of the auxiliary winding and the secondary side winding, Nas = Na / Ns. In theory, the resonance period T = T1 + T2 and is determined by Lp and Cd. T1 is the negative half-cycle time of the resonance period (i.e., the time when the feedback voltage VFB first goes downward through zero to the first upward through zero within the corresponding resonance period), and T2 is the positive half-cycle time of the resonance period (i.e., the time when the feedback voltage VFB first goes upward through zero to the second downward through zero within the same resonance period as T1).

[0085] When Vin < Nps·Vout, the first valley of the resonance of Vd will be lower than 0V and be clamped by the body diode parasitic on the power switch Q (such as Figure 1 shown by Dd), resulting in the time T1 when the feedback voltage VFB first goes downward through zero to the first upward through zero within the corresponding resonance period exceeding half of the resonance period T / 2. At this time, T2 is the accurate T / 2, that is, T1 > T2 = T / 2. If T1 is recorded as the half-cycle time and the valley is calculated based on T1, the recorded half-cycle time will be greater than the actual half-cycle at this time, resulting in a deviation in the final valley detection result. Therefore, using T2 to calculate the valley is the most accurate.

[0086] In this embodiment, the waveform of the second control signal Ф2 generated by the valley detection circuit 11 according to the resonance period information VFB_low is different from that of the first control signal Ф1. Specifically, please refer to Figure 6The second control signal Φ2 carries negative half-cycle information in each resonant cycle of the resonant stage (i.e., the time from the first downward zero crossing to the first upward zero crossing of the feedback voltage VFB in the corresponding resonant cycle). As an example, the waveform of the second control signal Φ2 is the same as the resonant cycle information VFB_low.

[0087] It should be understood that the control signal generating circuit 111 , the first voltage generating circuit 112 , the second voltage generating circuit 113 and the valley signal generating circuit 114 may be implemented by any suitable circuit design.

[0088] As an example, see Figure 5 The first voltage generating circuit 112 includes a first current source I1, a first charging switch circuit K1 and a first capacitor C1 coupled in sequence. The second voltage generating circuit 113 includes a second current source I2, a second charging switch circuit K2 and a second capacitor C2 coupled in sequence. The valley signal generating circuit 114 may include a second comparator CMP2 and a pulse generator 114a.

[0089] The capacitance of the first capacitor C1 and the second capacitor C2 are the same, both C, and the charging current provided by the second current source I2 is twice the charging current provided by the first current source I1. The control end of the first charging switch circuit K1 is used to receive the first control signal Φ1, and the connection node between the first charging switch circuit K1 and the first capacitor C1 is used as the output end of the first voltage generating circuit 112, and is coupled to the inverting input end "-" of the second comparator CMP2 (i.e., the first input end of the valley signal generating circuit 114). The control end of the second charging switch circuit K2 is used to receive the second control signal Φ2, and the connection node between the second charging switch circuit K2 and the second capacitor C2 is used as the output end of the second voltage generating circuit 113, and is coupled to the non-inverting input end "+" of the second comparator CMP2 (i.e., the second input end of the valley signal generating circuit 114), and the output end of the second comparator CMP2 is coupled to the pulse generator 114a, and the output end of the pulse generator 114a is coupled to the first input end of the valley opening circuit 12. The second comparator CMP2 enables the pulse generator 114 a when detecting that the second voltage V_cap is equal to the first voltage V_hold. The pulse generator 114 a outputs the valley signal QR after being enabled.

[0090] The first charging switch circuit K1 is turned on when the first control signal Φ1 is valid, and is turned off (i.e., cut off) when the first control signal Φ1 is invalid. When the first charging switch circuit K1 is turned on, the first current source I1 charges the first capacitor C1 with a charging current I when the first charging switch circuit K1 is turned on, thereby converting the positive half-cycle time information carried by the first control signal Φ1 into a first voltage V_hold for storage, and when the first charging switch circuit K1 is cut off, the first voltage V_hold is stabilized by the first capacitor C1 at a constant value (i.e., the maximum V_hold obtained after the first capacitor C1 is charged). The second charging switch circuit K2 is turned on when the second control signal Φ2 is valid, and is turned off (i.e., cut off) when the second control signal Φ2 is invalid, so that each time after VFB crosses the zero point downward, the second current source I2 charges the second capacitor C2 with a charging current 2I when the second charging switch circuit K2 is turned on.

[0091] When the second voltage V_cap received at the non-inverting input terminal of the second comparator CMP2 rises from 0 to be equal to the first voltage V_hold received at its inverting input terminal, this moment is the valley moment, for example, one quarter of a cycle. At this time, the output enable signal en of the second comparator CMP1 is used to enable the pulse generator 114a. After being enabled, the pulse generator 114a generates a pulse signal as a valley signal QR to the valley turn-on circuit 12. Therefore, the rising edge triggering moment of the pulse is the quasi-resonance valley moment. At this time, the valley turn-on circuit 12 can generate a turn-on signal Ton_set for turning on the power switch Q at the quasi-resonance valley moment according to the valley signal QR and the turn-on request signal Ton_Req.

[0092] In this embodiment, the positive half-cycle time information carried by the first control signal Φ1 is converted into the first voltage V_hold for storage by C1, which can simplify the system and save costs.

[0093] Furthermore, if there are leakage problems in the first charging switch circuit K1 and other devices, the half-cycle time information (i.e., the first voltage V_hold) stored in the first voltage generating circuit 12 may be inaccurate, thereby causing the moment when V_cap=V_hold obtained by the second comparator CMP1 to be inaccurate. Therefore, optionally, in this embodiment, the first voltage generating circuit 12 also includes a first discharge switch circuit K3, and the second voltage generating circuit 113 also includes a second discharge switch circuit K4. The first discharge switch circuit K3 is connected in parallel with the first capacitor C1, and the second discharge switch circuit K4 is connected in parallel with the second capacitor C2. The control signal generating circuit 111 also generates a third control signal Φ3 according to the refresh request signal Sample_Req and the information VFB_low of the resonance period, and generates a fourth control signal Φ4 according to the information VFB_low of the resonance period. The control end of the first discharge switch circuit K3 is coupled to the third control signal Φ3. When the first discharge switch circuit K3 is turned on under the control of the third control signal Φ3, it can discharge the first capacitor C1 and refresh the first voltage V_hold, for example, resetting the first voltage V_hold to 0V. The control end of the second discharge switch circuit K4 is coupled to the fourth control signal Φ4. When the second discharge switch circuit K4 is turned on under the control of the fourth control signal Φ4, it can discharge the second capacitor C2, thereby refreshing the second voltage V_cap, for example, resetting the second voltage V_cap to 0V.

[0094] In this embodiment, the refresh request signal Sample_Req can be a one-time forced refresh request signal or a periodic refresh request signal, such as multiple switching cycles. Under the refresh of the refresh request signal Sample_Req, the first voltage V_hold can be refreshed to avoid the inaccuracy of the quasi-resonance moment (i.e., the moment when V_cap=V_hold) determined before the refresh. Among them, the third control signal Φ3 is a single pulse signal with a very small pulse width, and its rising edge is aligned with the rising edge of the first control signal Φ1. The fourth control signal Φ4 is a periodic signal complementary to the second control signal Φ2. Under the control of the fourth control signal Φ2, the second voltage V_cap can be refreshed in each resonant cycle, thereby enabling the second comparator CMP2 to obtain the moment when V_cap=V_hold in multiple resonant cycles (especially the second resonant cycle and subsequent resonant cycles), thereby enabling the pulse generator 114a to generate the corresponding valley signal QR.

[0095] It should be understood that K1~K4 in the above-mentioned first voltage generating circuit 112 and the second voltage generating circuit 113 can be any suitable switching elements in the art (such as MOS tubes or triodes, etc.) or logic circuits that can implement switching logic (such as triggers or transmission gates, etc.), and the present invention does not make specific limitations on this.

[0096] As an example, see Figure 5 The valley turn-on circuit 12 includes an AND logic circuit AND, one input end of the AND logic circuit AND is used to receive the valley signal QR, and the other input end is used to receive the turn-on request signal Tonp_Req. The AND logic circuit AND performs an AND logic operation on the valley signal QR and the turn-on request signal Tonp_Req to generate a turn-on signal Tonp_set. When the turn-on request signal Tonp_Req is valid and the valley signal QR is valid, a valid turn-on signal Tonp_set is generated. The valid turn-on signal Tonp_set can control the power switch Q of the switching power supply to turn on at the corresponding moment when V_cap=V_hold (i.e., the quasi-resonance valley moment).

[0097] To sum up, the technical solution of this embodiment can extract the information of the resonant period according to the zero-crossing detection of the feedback voltage, generate a first voltage representing the positive half-period in the information of the resonant period and a second voltage representing the negative half-period in the information of the resonant period, and then use the moment when the second voltage is equal to the first voltage as the moment when the quasi-resonant valley is detected, thereby realizing adaptive quasi-resonant valley detection to accurately find the quasi-resonant valley, so as to achieve the purpose of turning on the power switch of the switching power supply at the quasi-resonant valley, improve the efficiency of the overall system of the switching power supply, reduce power consumption, avoid deviations during quasi-resonant valley detection, and improve the accuracy of valley detection.

[0098] Second embodiment

[0099] Please combine Figure 7 and Fig.9A This embodiment provides a quasi-resonant valley detection circuit 1. Compared with the quasi-resonant valley detection circuit 1 of the first embodiment, in addition to including a zero-crossing detection circuit 10, a valley detection circuit 11 and a valley opening circuit 12, it further includes a first timing circuit 13 and a second timing circuit 14.

[0100] Among them, the input end of the first timing circuit 13 is coupled to the output end of the zero-crossing detection circuit 10 of the quasi-resonant valley detection circuit 1, and the output end of the first timing circuit 13 is coupled to the enable end (not shown) of the zero-crossing detection circuit 11. The first timing circuit 13 is used to start timing after the zero-crossing detection circuit 11 detects that the feedback voltage VFB crosses zero for the first time (that is, after detecting that VFB≤Vref), that is, start timing after VFB_low turns high, and output the control signal ctrl1 after the timing reaches the first preset time T_DET (for example, about 10 to 20 resonance cycles), so as to disable the zero-crossing detection circuit 11. In other words, after exceeding this first preset time T_DET, the zero-crossing detection circuit 10 will be turned off to reduce power consumption. The first preset time T_DET can depend on the length of the resonance period. In actual application, the first preset time T_DET can be set to a fixed duration value according to the empirical fluctuation range of the resonance period of the switching power supply.

[0101] The input end of the second timing circuit 14 receives the driving signal Toff of the power switch Q, and the output end of the second timing circuit 14 is coupled to the enable end (not shown) of the zero-crossing detection circuit 10, and is used for the second timing circuit to start timing when the driving signal Toff jumps from a high level to a low level, and output a control signal ctrl2 after the timing reaches a second preset time T_DET_OFF (for example, about 40 μs after the power switch Q is turned off), so as to disable the zero-crossing detection circuit 10. In other words, after exceeding this second preset time T_DET_OFF, the zero-crossing detection circuit 10 will be turned off to reduce power consumption. The second preset time T_DET_OFF can depend on the length of the cycle of the driving signal Toff. In actual application, the second preset time T_DET_OFF can be set to a fixed duration value according to the empirical fluctuation range of the cycle of the driving signal Toff of the switching power supply.

[0102] It should be understood that, in this embodiment, the output terminals of the first timing circuit 13 and the second timing circuit 14 can be coupled to the enable terminal of the zero-crossing detection circuit 10 through any suitable method such as an OR logic circuit (not shown).

[0103] In other embodiments of the present invention, the first timing circuit 13 or the second timing circuit 14 may be omitted, that is, the first timing circuit 13 and the second timing circuit 14 may be set selectively. In this case, the power consumption is still lower than that of the first embodiment.

[0104] In summary, the technical solution of this embodiment, since the corresponding first timing circuit and second timing circuit are added compared to the first embodiment, can disable the zero-crossing detection circuit under corresponding circumstances, and has lower power consumption.

[0105] Third embodiment

[0106] Please combine Figure 8 and Fig.9A This embodiment provides a quasi-resonance valley detection circuit 1 , which, compared with the quasi-resonance valley detection circuit 1 of the second embodiment, further includes an OR logic circuit OR and a third timing circuit 15 .

[0107] The input end of the third timing circuit 15 is used to receive the turn-on request signal Tonp_Req corresponding to the power switch Q, the output end of the third timing circuit 15 is coupled to an input end of the OR logic circuit OR, the other input end of the OR logic circuit OR is coupled to the output end of the valley detection circuit 11, or the output end of the logic circuit OR is coupled to an input end of the AND logic circuit of the valley turn-on circuit 12. The third timing circuit 15 is used to start timing when there is a turn-on request signal Tonp_Req (or when the turn-on request signal Tonp_Req is valid), and when the timing reaches the third preset time T_OR, the OR logic circuit OR enables the valley turn-on circuit 12 to generate and output the turn-on signal Tonp_set based on the OR logic operation result of the valley signal QR and the turn-on request signal Tonp_Req. That is, the duration of the turn-on request signal Tonp_Req corresponds to the maximum valley detection duration T_QR. If the quasi-resonant valley detection circuit of the present embodiment does not detect the valley within T_QR, the valley signal QR will be directly generated by the third timing circuit 15 via the OR logic circuit OR to avoid the problem that the power switch Q cannot be turned on when necessary. In addition, the valley detection circuit 11 can detect the moment when Vcap=V_hold within the T_OR time period.

[0108] In summary, the technical solution of this embodiment has better performance and higher reliability because it further adds a corresponding third timing circuit compared to the second embodiment.

[0109] Fourth embodiment

[0110] Please refer to FIG. 9A to FIG. 9B This embodiment provides a control circuit for controlling a switching power supply, and has a quasi-resonance valley detection circuit 1 of the present invention. The quasi-resonance valley detection circuit 1 can be implemented by using any suitable example in the above embodiments.

[0111] It should be understood that the internal circuit structure of the control circuit may include other functional circuits in addition to the quasi-resonance valley detection circuit 1 of the present invention.

[0112] As an example, see Fig.9AIn addition to the quasi-resonant valley detection circuit 1, the control circuit also includes a driving circuit 2. The driving circuit 2 can generate a driving signal Ton_p for driving the power switch Q to turn on or off under the control of the turn-on signal Tonp_set signal output by the quasi-resonant valley detection circuit 1.

[0113] As another example, see Fig. 9B In addition to the quasi-resonance valley detection circuit 1 and the drive circuit 2, the control circuit also includes at least one of the following circuits:

[0114] The logic control circuit 3 is coupled to the quasi-resonance valley detection circuit 1 and is used to provide a refresh request signal Sample_Req and an opening request signal Tonp_Req for the quasi-resonance valley detection circuit 1;

[0115] The masking time detection circuit 6, also known as a leading edge blanking (LEB) unit, is coupled to the quasi-resonant valley detection circuit 1, and is used to detect the leading edge blanking time LEB of the switching power supply after the power switch Q is turned off, and to disable the quasi-resonant valley detection circuit 1 within the leading edge blanking time LEB;

[0116] A reference circuit 5, coupled to the quasi-resonance valley detection circuit 1, for providing a required reference voltage Vref to the zero-crossing detection circuit 10 in the quasi-resonance valley detection circuit 1;

[0117] The sampling circuit 4 is coupled to the quasi-resonance valley detection circuit 1 and is used for sampling the output voltage of the switching power supply to provide a feedback voltage VFB to the zero-crossing detection circuit 10 in the quasi-resonance valley detection circuit 1 .

[0118] The control circuit of this embodiment can be integrated into a control chip. In this case, the quasi-resonant valley detection circuit of this embodiment has a simple design, and because it is integrated inside the control chip of the switching power supply, it does not increase the use of external devices or pins of the control chip of the switching power supply, thereby saving the total system cost.

[0119] The control circuit of this embodiment can be applied to any switching power supply with a suitable architecture, such as Figure 1 The switching power supply of the AC / DC flyback converter (DCM Flyback) architecture is shown.

[0120] Fifth embodiment

[0121] Please refer to Figures 4 to 10 This embodiment also provides a quasi-resonance control method for a switching power supply, which can be implemented by using the quasi-resonance valley detection circuit 1 or the control circuit described in any embodiment of the present invention. The quasi-resonance control method specifically includes:

[0122] First, the zero-crossing point of the feedback voltage VFB at the feedback terminal of the switching power supply is detected and the information VFB_low of the resonance period is extracted;

[0123] Next, a first voltage V_hold representing a positive half-cycle in the information of the resonance cycle is obtained according to the information VFB_low of the resonance cycle, and a second voltage V_cap representing a negative half-cycle in the information of the resonance cycle is obtained, and a valley signal QR is generated at a moment when the second voltage V_cap is equal to the first voltage V_hold;

[0124] The power switch Q of the switching power supply is controlled to be turned on at a corresponding moment when the second voltage V_cap is equal to the first voltage V_hold according to the valley signal QR.

[0125] Optionally, the quasi-resonance control method further includes: refreshing the second voltage V_cap in each resonance period, and / or refreshing the first voltage V_hold according to a refresh request signal.

[0126] Please combine Figure 4 , Figure 5 , Figure 8 and Fig.10 As an example, the specific process of the quasi-resonance control method of this embodiment is as follows:

[0127] (1) After the switching power supply system is started and enters the quasi-resonance mode, the zero-crossing detection circuit 10 in the quasi-resonance valley detection circuit 1 of the present invention is enabled, and before that, the zero-crossing detection circuit 10 in the quasi-resonance valley detection circuit 1 is not enabled.

[0128] (2) The system will periodically refresh the quasi-resonance valley detection circuit 1 at a fixed period, or perform a one-time forced refresh on the quasi-resonance valley detection circuit 1 at irregular intervals. At this time, Sample_Req=1 to avoid inaccurate resonance solid valley moment determined by the quasi-resonance valley detection circuit 1.

[0129] (3) After the power switch Q is turned off, the timing starts, and when the timing reaches the second preset time T_DET_OFF, the zero-crossing detection circuit 10 in the quasi-resonant valley detection circuit 1 is disabled to reduce power consumption. During this time period, it is further determined whether the turn-on request signal Tonp_Req is valid, for example, whether Tonp_Req=1. If Tonp_Req is valid, the turn-on signal Tonp_set is directly generated at the end of the timing T_DET_OFF to turn on the power switch Q.

[0130] (4) After the power switch Q is turned off and during the leading edge blanking time of the switching power supply, the detection of the quasi-resonance valley is shielded, thereby avoiding false detection caused by interference.

[0131] (5) After the leading edge blanking time ends, the zero-crossing detection circuit 10 in the quasi-resonant valley detection circuit 1 outputs the result of zero-crossing detection of the feedback voltage VFB on the output side of the switching power supply. Specifically, the zero-crossing detection circuit 10 compares the magnitudes of the feedback voltage VFB and the reference voltage Vref to determine whether there are moments when VFB > Vref changes to VFB = Vref and when VFB < Vref changes to VFB = Vref, so as to extract the information VFB_low of the resonant period based on these moments. Among them, the timing relationship among VFB_low, VFB, and Vref can be referred to Figure 6 .

[0132] (6) Enable the valley detection circuit 11. The valley detection circuit 11 generates a first voltage V_hold and a second voltage V_cap according to VFB_LOW, and compares the magnitude relationship between V_cap and V_hold. A valley signal QR can be generated according to the comparison result. At this time, it can be further determined whether the turn-on request signal Tonp_Req is valid. For example, it is determined whether Tonp_Req = 1. If Tonp_Req is valid, a turn-on signal Tonp_set can be generated according to the valley signal QR and the turn-on request signal Tonp_Req to turn on the power switch Q. During the stage of enabling the valley detection circuit 1, timing can be started at the first zero-crossing point of the feedback voltage VFB after the valley detection circuit 11 is enabled. If Tonp_Req is still invalid when the timing reaches the first preset time T_DET, the zero-crossing detection circuit 10 is disabled to reduce power consumption. At this time, it can be further determined whether the turn-on request signal Tonp_Req is valid. For example, it is determined whether Tonp_Req = 1. If Tonp_Req is valid, a turn-on signal Tonp_set can be directly generated at the end of the timing to the first preset time T_DET to turn on the power switch Q. During the stage of enabling the valley detection circuit 1, the effective duration of Tonp_Req can be further timed (for example, the duration of Tonp_Req = 1 is timed). If the timing reaches the third preset time T_QR and the moment when V_cap = V_hold is not detected, that is, the valley detection circuit 11 has not generated a valid valley signal QR within the third preset time T_QR, a turn-on signal Tonp_set is directly generated at the end of the timing T_QR to turn on the power switch Q.

[0133] (7) Within the valid time of Tonp_Req (i.e., the third preset time T_QR), it is determined whether the first resonant cycle has passed. If the first resonant cycle has not passed and the moment when V_cap=V_hold has been obtained, a valid valley signal QR is generated at the moment when V_cap=V_hold is obtained. If the first resonant cycle has not passed and the moment when V_cap=V_hold has not been reached, the valley detection circuit 11 can generate a valid valley signal QR at a preset time delay, and based on the valid valley signal QR, a turn-on signal Tonp_set can be generated to turn on the power switch Q; if the first resonant cycle has passed, the valley detection circuit 11 is refreshed according to the valid refresh request signal Sample_Req=1 to obtain the moment when V_cap=V_hold in the resonant cycle after the first resonant cycle, and further generates a valid valley signal QR at the moment when V_cap=V_hold is obtained, and then generates a turn-on signal Tonp_set based on the valid valley signal QR to turn on the power switch Q at the quasi-resonant valley moment.

[0134] The quasi-resonant control method of the present embodiment can extract information about the resonance period based on zero-crossing detection of the feedback voltage, generate a first voltage representing the positive half-period in the information of the resonance period and a second voltage representing the negative half-period in the information of the resonance period, and then use the moment when the second voltage is equal to the first voltage as the moment when the quasi-resonant valley is detected, thereby enabling adaptive quasi-resonant valley detection to accurately find the quasi-resonant valley, thereby achieving the purpose of turning on the power switch of the switching power supply at the quasi-resonant valley, improving the efficiency of the overall switching power supply system, reducing power consumption, avoiding deviations during quasi-resonant valley detection, and improving valley detection accuracy.

[0135] The above description is only a description of the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the technical solution of the present invention.

Claims

1. A quasi-resonant valley detection circuit, applied to a switching power supply, characterized in that: include: A zero-crossing detection circuit, used to detect the zero-crossing point of the feedback voltage at the feedback end of the switching power supply and extract information of the resonance period; A valley detection circuit, coupled to the zero-crossing detection circuit, is used to obtain a first voltage representing a positive half-cycle in the information of the resonance period according to the information of the resonance period, and obtain a second voltage representing a negative half-cycle in the information of the resonance period, and generate a valley signal at a moment when the second voltage is equal to the first voltage; The valley turn-on circuit is coupled to the valley detection circuit and is used to generate a turn-on signal according to the valley signal to control the power switch of the switching power supply to turn on at the corresponding moment.

2. The quasi-resonant valley detection circuit according to claim 1, characterized in that: The valley detection circuit comprises: a control signal generating circuit, coupled to the zero-crossing detection circuit, configured to receive a refresh request signal and generate a first control signal according to information of the resonance period and the refresh request signal and generate a second control signal according to information of the resonance period; a first voltage generating circuit, coupled to the control signal generating circuit, and configured to generate the first voltage according to the first control signal; a second voltage generating circuit, coupled to the control signal generating circuit, and configured to generate the second voltage according to the second control signal; The valley signal generating circuit is coupled to the first voltage generating circuit and the second voltage generating circuit, and is used for detecting a moment when the second voltage is equal to the first voltage, and generating the valley signal at the moment.

3. The quasi-resonant valley detection circuit according to claim 2, characterized in that: The first voltage gradually increases with time during the effective phase of the first control signal, and is a constant value during the invalid phase of the first control signal; the second voltage gradually increases with time during the effective phase of the second control signal, the maximum value of the second voltage is greater than the constant value, and the moment is the moment when the second voltage is equal to the constant value.

4. The quasi-resonant valley detection circuit according to claim 2, characterized in that: The control signal generating circuit is used to generate a third control signal according to the information of the resonance period and the refresh request signal, and to generate a fourth control signal according to the information of the resonance period, the third control signal is used to control the first voltage generating circuit to refresh the first voltage, and the fourth control signal is used to control the second voltage generating circuit to refresh the second voltage.

5. The quasi-resonant valley detection circuit according to claim 4, characterized in that: The refresh request signal is a one-time forced refresh request signal or a periodic refresh request signal.

6. The quasi-resonant valley detection circuit according to any one of claims 2 to 5, characterized in that: The first voltage generating circuit includes a first current source, a first charging switch circuit and a first capacitor coupled in sequence; the control end of the first charging switch circuit is coupled to the control signal generating circuit, and the connection node between the first charging switch circuit and the first capacitor serves as the output end of the first voltage generating circuit, and the output end is coupled to the first input end of the valley signal generating circuit; the first charging switch circuit is turned on when the first control signal is valid, so that the first current source charges the first capacitor to generate the first voltage, and the first charging switch circuit is turned off when the first control signal is invalid, so that the first voltage is stabilized at a constant value by the first capacitor.

7. The quasi-resonant valley detection circuit according to claim 6, characterized in that: The first voltage generating circuit also includes a first discharge switch circuit, which is connected in parallel with the first capacitor, and a control end of the first discharge switch circuit is coupled to the control signal generating circuit. The first discharge switch circuit is turned on under the control of the control signal generating circuit to discharge the first capacitor to refresh the first voltage.

8. The quasi-resonant valley detection circuit according to claim 6, characterized in that: The second voltage generating circuit includes a second current source, a second charging switch circuit, and a second capacitor coupled in sequence; the control end of the second charging switch circuit is coupled to the control signal generating circuit, and the connection node between the second charging switch circuit and the second capacitor serves as the output end of the second voltage generating circuit, and the output end is coupled to the second input end of the valley signal generating circuit; the second charging switch circuit is turned on when the second control signal is valid, so that the second current source charges the second capacitor to generate the second voltage, and the second charging switch circuit is turned off when the second control signal is invalid.

9. The quasi-resonant valley detection circuit according to claim 8, characterized in that: The capacitance of the second capacitor is equal to that of the first capacitor, and the charging current provided by the second current source is twice the charging current provided by the first current source.

10. The quasi-resonant valley detection circuit according to claim 8, characterized in that: The second voltage generating circuit also includes a second discharge switch circuit, which is connected in parallel with the second capacitor, and a control end of the second discharge switch circuit is coupled to the control signal generating circuit. The second discharge switch circuit is turned on under the control of the control signal generating circuit to discharge the second capacitor to refresh the second voltage.

11. The quasi-resonant valley detection circuit according to claim 2, characterized in that: The valley signal generating circuit includes a second comparator and a pulse generator, wherein the first input terminal of the second comparator is coupled to the first voltage generating circuit, the second input terminal of the second comparator is coupled to the second voltage generating circuit, the output terminal of the second comparator is coupled to the pulse generator, and the second comparator enables the pulse generator when detecting that the second voltage is equal to the first voltage, and the pulse generator outputs the valley signal after being enabled.

12. The quasi-resonant valley detection circuit according to claim 1, characterized in that: The zero-crossing detection circuit includes a first comparator, a first input terminal of the first comparator is used to receive a reference voltage, a second input terminal of the first comparator is used to receive the feedback voltage, and an output terminal is coupled to the valley detection circuit.

13. The quasi-resonant valley detection circuit according to claim 1, characterized in that: The valley opening circuit includes an AND logic circuit, one input end of the AND logic circuit is coupled to the output end of the valley detection circuit, the other input end is used to receive an opening request signal, and the output end of the AND logic circuit outputs the opening signal.

14. The quasi-resonant valley detection circuit according to claim 1, characterized in that: Also includes at least one of the following timing circuits: a first timing circuit, wherein an input end of the first timing circuit is coupled to an output end of the zero-crossing detection circuit, an output end of the first timing circuit is coupled to an enable end of the zero-crossing detection circuit, and the first timing circuit is used to start timing after the zero-crossing detection circuit detects that the feedback voltage crosses zero for the first time, and disable the zero-crossing detection circuit after the timing reaches a first preset time; a second timing circuit, wherein an input end of the second timing circuit is used to receive a driving signal, an output end of the second timing circuit is coupled to an enable end of the zero-crossing detection circuit, and the second timing circuit is used to start timing when the driving signal of the power switch jumps from a high level to a low level, and after the timing reaches a second preset time, the zero-crossing detection circuit is disabled; A third timing circuit, wherein the input end of the third timing circuit is used to receive the opening request signal, the output end of the third timing circuit is coupled to an input end of an OR logic circuit, the other input end of the OR logic circuit is coupled to the output end of the valley detection circuit, the output end of the OR logic circuit is coupled to the valley opening circuit, the third timing circuit is used to start timing when the opening request signal is received, and when the timing reaches a third preset time, the valley opening circuit generates the opening signal.

15. The quasi-resonant valley detection circuit according to claim 1, characterized in that: After the power switch is turned off and within the leading edge blanking time of the switching power supply, the quasi-resonant valley detection circuit is disabled.

16. A control circuit for controlling a switching power supply, characterized in that: The method comprises the quasi-resonant valley detection circuit as claimed in any one of claims 1 to 15.

17. The control circuit according to claim 16, characterized in that: Also includes at least one of the following circuits: a shielding time detection circuit, coupled to the quasi-resonant valley detection circuit, for detecting the leading edge blanking time of the switching power supply after the power switch is turned off, and disabling the quasi-resonant valley detection circuit during the leading edge blanking time; A reference circuit, coupled to the quasi-resonance valley detection circuit, for providing a reference voltage to a zero-crossing detection circuit in the quasi-resonance valley detection circuit; a sampling circuit, coupled to the quasi-resonant valley detection circuit, for sampling the output voltage of the switching power supply to provide a feedback voltage to a zero-crossing detection circuit in the quasi-resonant valley detection circuit; The logic control circuit is coupled to the quasi-resonance valley detection circuit and is used to provide a refresh request signal and an opening request signal to the quasi-resonance valley detection circuit.

18. A quasi-resonant control method for controlling a switching power supply, characterized in that: include: Detecting the zero-crossing point of the feedback voltage at the feedback terminal of the switching power supply and extracting information of the resonance period; According to the information of the resonance period, a first voltage representing a positive half-cycle in the information of the resonance period is obtained, and a second voltage representing a negative half-cycle in the information of the resonance period is obtained, and a valley signal is generated at a moment when the second voltage is equal to the first voltage; The power switch of the switching power supply is controlled to be turned on at the corresponding moment according to the valley signal.

19. The quasi-resonance control method according to claim 18, characterized in that: Also includes: The second voltage is refreshed in each resonance period, and / or the first voltage is refreshed according to a refresh request signal.

20. The quasi-resonance control method according to claim 18, characterized in that: Also includes: After the power switch is turned off, the detection of the quasi-resonance valley is shielded within the leading edge blanking time of the switching power supply.

21. The quasi-resonance control method according to claim 18, characterized in that: Also includes: When there is a turn-on request signal requesting to turn on the power switch and a quasi-resonance valley is detected, the power switch is controlled to turn on at the corresponding moment according to the valley signal; if timing starts when there is the turn-on request signal and the quasi-resonance valley is still not detected when the timing reaches a third preset time, the power switch is directly turned on.

22. The quasi-resonance control method according to claim 18, characterized in that: Also includes: After detecting that the feedback voltage crosses zero for the first time, start timing, and when the timing reaches a first preset time, stop detecting the zero crossing point of the feedback voltage; And / or, starting timing after the power switch is turned off, and stopping detecting the zero-crossing point of the feedback voltage when the timing reaches a second preset time.