A valley lock control circuit

By designing a valley-locking control circuit, the resonant valley is precisely locked, solving the problems of high packaging cost, poor system compatibility, and difficulty in implementing line compensation function in primary-side feedback flyback switching power supply systems, thereby improving conversion efficiency and reducing energy loss.

CN118713440BActive Publication Date: 2024-11-12WUXI SI POWER MICRO ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411178357.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-11-12
Estimated Expiration
2044-08-27

AI Technical Summary

Technical Problem

Existing valley-locking control technology cannot be effectively applied to primary-side feedback flyback switching power supply systems, resulting in increased packaging costs, system compatibility issues, difficulty in implementing line compensation functions, and large variations in output ripple voltage.

Method used

Design a valley-locking control circuit. Through a control system composed of an error amplifier, comparator, selector, valley-locking circuit, trigger, and drive circuit, the resonant valley is precisely locked. A voltage window is generated by an analog-to-digital converter and a digital-to-analog converter to control the switching of the power transistor, thereby achieving precise locking within each switching cycle.

Benefits of technology

It improves system conversion efficiency, reduces energy loss, solves packaging cost and system compatibility issues, and achieves effective implementation of line compensation function and stable output ripple voltage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713440B_ABST
    Figure CN118713440B_ABST
Patent Text Reader

Abstract

The present invention relates to a valley locking control circuit. The positive end of the first comparator of the present invention is connected to the output end of the error amplifier, and the negative end of the first comparator is connected to the sawtooth wave signal SAW; the channel of the selector is connected to the output end of the first comparator; the VOK end of the valley latch circuit is connected to the channel of the selector, and the LOCK end of the valley latch circuit is connected to the control end of the selector; the set end of the trigger is connected to the output end of the selector; the positive end and the negative end of the second comparator are respectively connected to the output current feedback signal and the current reference signal, and the output end of the second comparator is connected to the reset end of the trigger; the input end of the driving circuit is connected to the output end of the trigger, and the output end of the driving circuit outputs the driving waveform; the positive end and the negative end of the third comparator are respectively connected to the reference voltage source and the output voltage feedback signal. The present invention can accurately lock the resonance valley in each switching cycle, improve the system conversion efficiency, and effectively reduce energy loss.
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 valley lock control circuit. Background Art

[0002] The flyback switching power supply system has a simple structure and low cost, and is widely used in the fields of small and medium power adapters, chargers, standby power supplies, etc.

[0003] Compared with the energy efficiency level 6, the new energy efficiency level 7 has higher requirements for standby power consumption and conversion efficiency. Quasi-resonant switching is an effective technical solution to improve the system conversion efficiency, but this technical solution has two major shortcomings. One is that the switching frequency spectrum cannot be expanded, and the conducted electromagnetic interference EMI is difficult to deal with. The second is that the switching frequency jumps discretely, which easily leads to system abnormal sound problems. The solution to these two problems is to use the valley-locked quasi-resonant conduction technology.

[0004] However, the existing valley-locked quasi-resonant conduction technology cannot be effectively used in primary-side feedback flyback switching power supply systems. There are mainly the following problems. First, the application requires the addition of an integral capacitor, and the chip needs an extra pin. This is different from the mainstream chip solution and requires a new packaging method, which increases the packaging cost and also has system compatibility issues. An additional integral capacitor also increases the system cost; second, the line compensation function is difficult to achieve, and most primary-side feedback flyback switching power supplies require a line compensation function; third, the output ripple voltage varies greatly, and is also related to the direction of load changes. Summary of the invention

[0005] To this end, the present invention provides a valley locking control circuit, which can accurately lock the resonance valley in each switching cycle, improve the system conversion efficiency, and effectively reduce energy loss.

[0006] In order to solve the above technical problems, the present invention provides a valley lock control circuit for use in a primary side feedback flyback switching power supply system, comprising:

[0007] An error amplifier, wherein the positive terminal and the negative terminal of the error amplifier are respectively connected to a reference voltage source V1 and an output voltage feedback signal;

[0008] A first comparator, wherein a positive terminal of the first comparator is connected to an output terminal of the error amplifier, and a negative terminal of the first comparator is connected to a sawtooth wave signal;

[0009] A selector, wherein channel 0 of the selector is connected to the output end of the first comparator;

[0010] A valley latch circuit, wherein a VOK terminal of the valley latch circuit is connected to a channel 1 of the selector, and a LOCK terminal of the valley latch circuit is connected to a control terminal of the selector; an output terminal of the error amplifier is connected to a first input terminal of the valley latch circuit;

[0011] A trigger, wherein a set terminal of the trigger is connected to an output terminal of the selector;

[0012] A second comparator, wherein a positive terminal and a negative terminal of the second comparator are respectively connected to a current CS flowing through a power tube connected to a primary winding of the transformer and a current reference signal, and an output terminal of the second comparator is connected to a reset terminal of the trigger;

[0013] A driving circuit, wherein an input terminal of the driving circuit is connected to an output terminal Q of the trigger, and an output terminal of the driving circuit outputs a driving waveform;

[0014] A third comparator, wherein the positive terminal and the negative terminal of the third comparator are respectively connected to the reference voltage source V3 and the output voltage feedback signal, and the output terminal of the third comparator is connected to the second input terminal of the valley latch circuit.

[0015] In one embodiment of the present invention, the output rectifier circuit includes a diode, a capacitor and a resistor, the two ends of the capacitor and the resistor being connected in parallel are respectively connected to the cathode of the diode and one end of the secondary winding, and the anode of the diode is connected to the other end of the secondary winding.

[0016] In one embodiment of the present invention, the valley latch circuit includes a valley shaping circuit, a first counter, a second counter, a third counter, a first latch, a second latch, a delay circuit, a first digital comparator, a second digital comparator, an analog-to-digital converter, a digital-to-analog converter, a fourth comparator, a fifth comparator, and a logic gate circuit;

[0017] The output terminal of the third comparator and the driving waveform are respectively connected to the input terminal of the valley shaping circuit, and the output terminal of the valley shaping circuit is used to output the valley shaped signal;

[0018] The input terminal of the second counter is connected to the output terminal of the valley shaping circuit;

[0019] The input end of the third counter is connected to the output end of the valley shaping circuit and the driving waveform;

[0020] The input end of the first counter is connected to the driving waveform, the output end of the first counter is respectively connected to the first input end of the first latch, the first input end of the second latch and the input end of the delay circuit; the output end of the second counter is connected to the second input end of the first latch and the second input end of the second latch;

[0021] The input end of the analog-to-digital converter is connected to the output end of the error amplifier, the input end of the digital-to-analog converter is connected to the output end of the analog-to-digital converter, the negative end of the fourth comparator is connected to the first output end COMP_AD+ of the digital-to-analog converter, the positive end of the fifth comparator is connected to the second output end COMP_AD- of the digital-to-analog converter, and the positive end of the fourth comparator and the negative end of the fifth comparator are respectively connected to the output end of the error amplifier;

[0022] The output terminals of the fourth comparator and the fifth comparator are respectively connected to the two input terminals of the logic gate circuit;

[0023] The output ends of the logic gate circuit, the first latch, the second latch and the delay circuit are respectively connected to the four input ends of the first digital comparator, and the output end of the first digital comparator is the LOCK end of the valley latch circuit;

[0024] The output end of the third counter and the output end of the second latch are respectively connected to the two input ends of the second digital comparator, and the output end of the second digital comparator is the VOK end of the valley latch circuit.

[0025] The above technical solution of the present invention has the following advantages compared with the prior art:

[0026] A valley locking control circuit of the present invention calculates an average valley number AVG1 per cycle by accumulating the total number of resonant valleys in N consecutive switching cycles, and compares it with the average valley number AVG2 per cycle in the next N switching cycles. When AVG1 and AVG2 are not equal, it indicates that the valley locking condition is not met, and AVG1 and AVG2 are recalculated until AVG1 and AVG2 are equal and then the valley is locked; after the valley is locked, the analog-to-digital converter saves the error amplifier output signal at this moment and constructs a voltage window, and the switching of the valley number is performed by judging whether the dynamically changing error amplifier output signal COMP exceeds the voltage window, and if so, the valley locking is exited, AVG1 and AVG2 are recalculated, and the valley locking is performed again after the conditions are met.

[0027] The present invention determines whether to lock the valley by calculating the average value of the resonance valley in N consecutive switching cycles. When specific conditions are met, the valley is locked and a voltage window is generated through an analog-to-digital converter and a digital-to-analog converter to control the switching of the power tube. The resonance valley can be accurately locked in each switching cycle, thereby improving the system conversion efficiency and effectively reducing energy loss. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to make the contents of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments of the present invention in conjunction with the accompanying drawings.

[0029] Figure 1 It is a structural diagram of the switching power supply circuit.

[0030] Figure 2 It is a structural diagram of the valley locking control circuit of the present invention.

[0031] Figure 3 It is a flow chart of the valley locking control method of the present invention.

[0032] Figure 4 It is a schematic diagram of the resonant waveform.

[0033] Figure 5 It is a structural diagram of the valley latch circuit of the present invention.

[0034] Figure 6 The invention discloses an average valley bottom number counting circuit.

[0035] Figure 7 It is a schematic diagram of the valley locking signal of the present invention. DETAILED DESCRIPTION

[0036] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0037] In the present invention, if directions (up, down, left, right, front and back) are described, it is only for the convenience of describing the technical solution of the present invention, and does not indicate or imply that the technical features referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, it cannot be understood as a limitation of the present invention.

[0038] In the present invention, "several" means one or more, "multiple" means more than two, "greater than", "less than", "exceed" and the like are understood to exclude the number itself; "above", "below", "within" and the like are understood to include the number itself. In the description of the present invention, if there is a description of "first" or "second", it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0039] In the present invention, unless otherwise clearly defined, the words "set", "install", "connect" and the like should be understood in a broad sense, for example, they can be directly connected or indirectly connected through an intermediate medium; they can be fixedly connected or detachably connected or integrally formed; they can be mechanically connected or electrically connected or able to communicate with each other; they can be the internal connection of two elements or the interaction relationship between two elements. Those skilled in the art can reasonably determine the specific meanings of the above words in the present invention in combination with the specific content of the technical solution.

[0040] Reference Figure 1 , Figure 2 As shown, a valley lock control circuit U101 is used in a primary side feedback flyback switching power supply system, comprising:

[0041] An error amplifier U201, wherein the positive terminal and the negative terminal of the error amplifier U201 are respectively connected to a reference voltage source V1 and an output voltage feedback signal FB;

[0042] A first comparator U202, wherein a positive terminal of the first comparator U202 is connected to the output terminal of the error amplifier U201, and a negative terminal of the first comparator U202 is connected to a sawtooth wave signal SAW;

[0043] A selector U208, wherein channel 0 of the selector U208 is connected to the output end of the first comparator U202;

[0044] A valley latch circuit U207, wherein a VOK terminal of the valley latch circuit U207 is connected to a channel 1 of the selector U208, and a LOCK terminal of the valley latch circuit U207 is connected to a control terminal of the selector U208; an output terminal of the error amplifier U201 is connected to a first input terminal of the valley latch circuit U207;

[0045] A trigger U204, wherein a set terminal S of the trigger U204 is connected to an output terminal of the selector U208;

[0046] A second comparator U203, wherein a positive terminal and a negative terminal of the second comparator U203 are respectively connected to a current CS flowing through a power tube M1 connected to a primary winding Np of a transformer T1 and a current reference signal V2, and an output terminal of the second comparator U203 is connected to a reset terminal R of the trigger U204;

[0047] A driving circuit U205, wherein an input terminal of the driving circuit U205 is connected to an output terminal Q of the trigger U204, and an output terminal of the driving circuit U205 outputs a driving waveform DRV;

[0048] The third comparator U206, the positive terminal and the negative terminal of the third comparator U206 are respectively connected to the reference voltage source V3 and the output voltage feedback signal FB, and the output terminal of the third comparator U206 is connected to the second input terminal of the valley latch circuit U207.

[0049] Reference Figure 1 As shown, it also includes a transformer T1, an output rectifier circuit R1, a sampling feedback circuit, a power tube M1 and a power tube current sampling circuit R CS ;

[0050] The transformer T1 includes a primary winding Np, a secondary winding Ns and an auxiliary winding N A ;

[0051] The drain of the power tube M1 is connected to the primary winding Np, the output rectifier circuit R1 is connected to the secondary winding Ns, and the sampling feedback circuit is connected to the auxiliary winding N A , the power tube current sampling circuit R CS Connected to the source of the power tube M1;

[0052] The negative terminal of the error amplifier U201 and the negative terminal of the third comparator U206 are respectively connected to the sampling feedback circuit;

[0053] The positive terminal of the second comparator U203 is connected to the current sampling circuit R CS and the source of the power tube M1;

[0054] The output terminal of the driving circuit U205 is connected to the gate of the power tube M1.

[0055] It can be understood that the valley lock control circuit U101 adjusts the duty cycle by collecting the feedback signal, and controls the switch of the power tube M1 to realize the transfer of energy from the primary side to the secondary side.

[0056] It should be noted that the output signal COMP of the error amplifier U201 is used to adjust the duty cycle, peak current, and switching frequency of the system;

[0057] The first comparator U202 is used to compare the output signal COMP of the error amplifier U201 with the sawtooth wave signal SAW. When the output PWM signal of the first comparator U202 is at a high level, the trigger U204 is set via the selector U208, the driving waveform DRV is at a high level, and the power tube M1 is turned on.

[0058] The second comparator U203 is used to compare the output current CS with the current reference signal V2. When the output RESET signal of the second comparator U203 is at a high level, the trigger U204 is reset, the driving waveform DRV is at a low level, and the power tube M1 is turned off.

[0059] The third comparator U206 is used to compare the output voltage feedback signal FB with the reference voltage source V3, and generate a Valley clock signal which is input to the valley latch circuit U207 for valley counting;

[0060] The valley latch circuit U207 generates a latch signal LOCK and a valley lock conduction signal VOK. If the valley is not latched, the signal LOCK is low level, and the selector U208 selects the PWM signal of channel 0; when the valley is locked, the signal LOCK is high level, and the selector U208 selects the VOK signal of channel 1;

[0061] When the valley bottom is not latched, the opening of the power tube M1 is controlled by the PWM signal. When the valley bottom is latched, the opening of the power tube M1 is controlled by the VOK signal.

[0062] Specifically, the sampling feedback circuit includes a first resistor RFB1 and a resistor R FB2 The negative terminal of the error amplifier U201 and the negative terminal of the third comparator U206 are connected to the first resistor RFB1 and the resistor R FB2 between.

[0063] Specifically, the output rectifier circuit R1 includes a diode, a capacitor and a resistor, the two ends of the capacitor and the resistor connected in parallel are respectively connected to the cathode of the diode and one end of the secondary winding Ns, and the anode of the diode is connected to the other end of the secondary winding Ns.

[0064] Reference Figure 5 As shown, the valley latch circuit U207 includes a valley shaping circuit U501, a first counter U502, a second counter U503, a third counter U504, a first latch U505, a second latch U506, a delay circuit U507, a first digital comparator U508, a second digital comparator U509, an analog-to-digital converter U511, a digital-to-analog converter U512, a fourth comparator U513, a fifth comparator U514 and a logic gate circuit U515;

[0065] The output end of the third comparator U206 and the driving waveform DRV are respectively connected to the input end of the valley shaping circuit U501, and the output end of the valley shaping circuit U501 is used to output the valley shaped signal ValleyCLK;

[0066] The input end of the second counter U503 is connected to the output end of the valley shaping circuit U501;

[0067] The input end of the third counter U504 is connected to the output end of the valley shaping circuit U501 and the driving waveform DRV;

[0068] The input end of the first counter U502 is connected to the driving waveform DRV, and the output end of the first counter U502 is respectively connected to the first input end of the first latch U505, the first input end of the second latch U506 and the input end of the delay circuit U507; the output end of the second counter U503 is connected to the second input end of the first latch U505 and the second input end of the second latch U506;

[0069] The input end of the analog-to-digital converter U511 is connected to the output end of the error amplifier U201, the input end of the digital-to-analog converter U512 is connected to the output end of the analog-to-digital converter U511, the negative end of the fourth comparator U513 is connected to the first output end COMP_AD+ of the digital-to-analog converter U512, the positive end of the fifth comparator U514 is connected to the second output end COMP_AD- of the digital-to-analog converter U512, and the positive end of the fourth comparator U513 and the negative end of the fifth comparator U514 are respectively connected to the output end of the error amplifier U201;

[0070] The output terminals of the fourth comparator U513 and the fifth comparator U514 are respectively connected to the two input terminals of the logic gate circuit U515;

[0071] The output ends of the logic gate circuit U515, the first latch U505, the second latch U506 and the delay circuit U507 are respectively connected to the four input ends of the first digital comparator U508, and the output end of the first digital comparator U508 is the LOCK end of the valley latch circuit U207;

[0072] The output end of the third counter U504 and the output end of the second latch U506 are respectively connected to the two input ends of the second digital comparator U509, and the output end of the second digital comparator U509 is the VOK end of the valley latch circuit U207.

[0073] It should be noted that the valley latch circuit U207 is used to filter out non-resonant valley signals. When the drive waveform DRV is at a high level, the ValleyCLK signal is at a low level. When the drive waveform DRV is at a low level, the selector U208 transmits the Valley signal to ValleyCLK.

[0074] The first counter U502 is used to count the number of switching times, and outputs a first latch U505 control signal ENLATCH1 and a second latch U506 control signal ENLATCH2;

[0075] The second counter U503 is used for counting the resonance valley bottom number and outputting the average valley bottom number AVG per cycle;

[0076] When the control signal ENLATCH1 changes from low to high, the average valley number AVG per cycle is stored by the first latch U505;

[0077] When the control signal ENLATCH2 changes from low to high, the average valley number AVG per cycle is stored by the second latch U506;

[0078] The signal ENLATCH2 is input to the first digital comparator U508 after passing through the delay circuit. When the delay signal ENDLY changes from low to high, the first digital comparator U508 compares the values ​​of the first latch U505 and the second latch U506. If the values ​​of the first latch U505 and the second latch U506 are not equal, the output signal LOCK of the first digital comparator U508 is a low level. When the values ​​of the first latch U505 and the second latch U506 are equal, the output signal LOCK of the first digital comparator U508 is a high level.

[0079] When the output signal LOCK of the first digital comparator U508 becomes a high level, the analog-to-digital converter U511 samples and saves the output signal COMP of the above-mentioned error amplifier, and the digital-to-analog converter U512 generates a voltage window [COMP_AD-, COMP_AD+] with a range of about ±100mV based on the sampled and saved voltage COMP_AD. When the dynamically changing error amplifier output signal COMP exceeds the voltage window, the first digital comparator U508 is cleared and the LOCK signal level changes from high to low.

[0080] When the LOCK signal is at a high level, the third counter U504 counts the number of resonances in the current cycle. When the count value of the third counter U504 is equal to the value of the second latch U506, the second digital comparator U509 outputs a VOK signal that changes from low to high, controlling the power tube to turn on; the third counter U504 is cleared cycle by cycle through the driving waveform DRV.

[0081] To simplify the circuit, the consecutive N switching cycles can be set to a power of 2, such as the count value N of the first counter U502 = 2 x , the count value of the second counter U503 is CNT=2 x+y , where x and y are positive integers, so the average value AVG=2 y , corresponding to the high y bits of the counter.

[0082] Specifically, the clock signal of the first counter U502 is DRV, and the clock signals of the second counter U503 and the third counter U504 are valley-shaped signals ValleyCLK.

[0083] After N switches, the first counter U502 generates an enable signal ENLATCH1 for the first latch U505, and the average value AVG of the number of resonances per cycle obtained by the second counter U503 is locked into the first latch U505. Similarly, after the next N switches, the first counter U502 generates an enable signal ENLATCH2 for the second latch U506, and the average value AVG of the number of resonances per cycle obtained by the second counter U503 is locked into the second latch U506. The first digital comparator U508 performs comparison after the average value AVG is locked into the second latch U506, and the enable signal ENDLY of the first digital comparator U508 is delayed by several nanoseconds compared with the enable signal ENLATCH2 of the second latch U506.

[0084] When the values ​​of the first latch U505 and the second latch U506 are not equal, the valley lock indication signal LOCK is at a low level, and the above operation is repeated until locking occurs.

[0085] When the values ​​of the first latch U505 and the second latch U506 are equal, the valley lock indication signal LOCK is at a high level, and the analog-to-digital converter U511 samples and holds the output signal COMP of the error amplifier U201 once, and generates a voltage window [COMP_AD-, COMP_AD+] with a range of about ±100mV through the digital-to-analog converter U512, which are respectively connected to the positive end of the fifth comparator U514 and the negative end of the fourth comparator U513. The negative end of the fifth comparator U514 and the positive end of the fourth comparator U513 are both connected to the output signal COMP of the error amplifier U201. When the dynamically changing COMP signal exceeds the above-mentioned voltage window, the first digital comparator U508 is cleared, and the LOCK signal level changes from high to low, and continues to return to the above-mentioned locking operation.

[0086] When the dynamically changing COMP signal continues to remain within the voltage window, the LOCK signal remains at a high level, and the third counter U504 counts the number of resonances in the current cycle. When the count value of the third counter U504 is equal to the value of the second latch U506, the second digital comparator U509 outputs a VOK signal that changes from low to high, controlling the power tube M1 to turn on; the third counter U504 is cleared cycle by cycle through the driving waveform DRV.

[0087] Therefore, before valley locking, the LOCK signal is a low voltage, selector U208 selects channel 0, and the switch of the power tube is controlled by the PWM signal. After valley locking, the LOCK signal is a high voltage, selector U208 selects channel 1, and the switch of the power tube is controlled by the VOK signal. When the system load changes and exits valley locking, the LOCK signal changes from high to low, selector U208 selects channel 0, and the switch of the power tube returns to PWM signal control until the valley is locked again.

[0088] Reference Figure 3 The figure shows the flow chart of the valley locking control method. It is divided into the following steps:

[0089] S1, the circuit is powered on and started, the output voltage reaches the target value, and is ready to start valley locking;

[0090] S2. In N consecutive switching cycles, the total number of resonance valleys CNT1 is accumulated, and the average number of resonance valleys per switching cycle is AVG1=[CNT1 / N] ([ ] indicates rounding of the average value)

[0091] S3, same as step S2, calculate the average resonance valley number AVG2 per cycle in the next N switching cycles = [CNT2 / N]

[0092] S4 compares AVG1 and AVG2 to see if they are equal, if so proceed to the next step, otherwise return to step S2;

[0093] S5, the analog-to-digital converter U511 samples and stores the output signal of the error amplifier U201 and constructs a hysteresis window based on this signal;

[0094] S6, detecting whether the error amplifier output signal exceeds the hysteresis window cycle by cycle, if not, proceed to the next step, otherwise return to step S2.

[0095] S7, lock valley conduction.

[0096] Reference Figure 4 As shown, DRV is the power tube drive waveform, FB is the feedback signal waveform, ValleyCLK is the shaped waveform, the accumulated valley bottom number CNT is divided by N switches, and the value is rounded to get the average value of the resonance valley bottom number per cycle. In the figure, AVG1 and AVG2 are the average values ​​of the resonance valley bottom number per cycle of the first N switches and the last N switches, respectively.

[0097] Figure 6 It is an average valley bottom counting circuit. The first counter U502 includes a circuit U601 composed of multiple D flip-flops connected in series; the second counter U503 includes a circuit U602 composed of multiple D flip-flops connected in series. The consecutive N switching cycles can be set to a power of 2. For example, the count value N of the first counter U502 is 2 x , the count value of the second counter U503 is CNT=2 x+y , where x and y are positive integers, so the average value AVG=2 y , corresponding to the high y bits of the counter.

[0098] Figure 7This is a schematic diagram of the valley lock signal. As shown in the figure, at t1, the dynamically changing COMP signal is lower than the lower limit of the voltage window COMP_AD-, and the LOCK signal changes from high to low to exit the valley lock; at t2, the locking condition is met and the LOCK signal changes from low to high to enter the valley lock, and the analog-to-digital converter samples once to establish a new voltage window; at t3, the dynamically changing COMP signal is higher than the upper limit of the voltage window COMP_AD+, and the LOCK signal changes from high to low to exit the valley lock; at t4, the locking condition is met and the LOCK signal changes from low to high to enter the valley lock, and the analog-to-digital converter U511 samples once to establish a new voltage window;

[0099] Finally, it should be noted that the above specific implementation methods are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to examples, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.

Claims

1. A valley lock control circuit for use in a primary side feedback flyback switching power supply system. It is characterized in that include: An error amplifier (U201), wherein a positive terminal and a negative terminal of the error amplifier (U201) are respectively connected to a reference voltage source V1 and an output voltage feedback signal (FB); A first comparator (U202), wherein a positive terminal of the first comparator (U202) is connected to the output terminal of the error amplifier (U201), and a negative terminal of the first comparator (U202) is connected to a sawtooth wave signal (SAW); A selector (U208), wherein channel 0 of the selector (U208) is connected to the output end of the first comparator (U202); A valley latch circuit (U207), wherein a VOK terminal of the valley latch circuit (U207) is connected to channel 1 of the selector (U208), and a LOCK terminal of the valley latch circuit (U207) is connected to a control terminal of the selector (U208); an output terminal of the error amplifier (U201) is connected to a first input terminal of the valley latch circuit (U207); A trigger (U204), wherein a set terminal (S) of the trigger (U204) is connected to an output terminal of the selector (U208); a second comparator (U203), wherein a positive terminal and a negative terminal of the second comparator (U203) are respectively connected to a current CS flowing through a power tube (M1) connected to a primary winding (Np) of a transformer (T1) and a current reference signal (V2), and an output terminal of the second comparator (U203) is connected to a reset terminal (R) of the trigger (U204); A driving circuit (U205), wherein an input end of the driving circuit (U205) is connected to an output end Q of the trigger (U204), and an output end of the driving circuit (U205) outputs a driving waveform (DRV); A third comparator (U206), wherein the positive terminal and the negative terminal of the third comparator (U206) are respectively connected to a reference voltage source V3 and an output voltage feedback signal (FB), and the output terminal of the third comparator (U206) is connected to the second input terminal of the valley latch circuit (U207); The valley latch circuit (U207) comprises a valley shaping circuit (U501), a first counter (U502), a second counter (U503), a third counter (U504), a first latch (U505), a second latch (U506), a delay circuit (U507), a first digital comparator (U508), a second digital comparator (U509), an analog-to-digital converter (U511), a digital-to-analog converter (U512), a fourth comparator (U513), a fifth comparator (U514) and a logic gate circuit (U515); The output end of the third comparator (U206) and the driving waveform (DRV) are respectively connected to the input end of the valley shaping circuit (U501), and the output end of the valley shaping circuit (U501) is used to output a valley-shaped signal (ValleyCLK); An input end of the second counter (U503) is connected to an output end of the valley shaping circuit (U501); An input end of the third counter (U504) is connected to an output end of the valley shaping circuit (U501) and the driving waveform (DRV); The input end of the first counter (U502) is connected to the driving waveform (DRV); the output end of the first counter (U502) is respectively connected to the first input end of the first latch (U505), the first input end of the second latch (U506) and the input end of the delay circuit (U507); the output end of the second counter (U503) is connected to the second input end of the first latch (U505) and the second input end of the second latch (U506); The input end of the analog-to-digital converter (U511) is connected to the output end of the error amplifier (U201), the input end of the digital-to-analog converter (U512) is connected to the output end of the analog-to-digital converter (U511), the negative end of the fourth comparator (U513) is connected to the first output end COMP_AD+ of the digital-to-analog converter (U512), the positive end of the fifth comparator (U514) is connected to the second output end COMP_AD- of the digital-to-analog converter (U512), and the positive end of the fourth comparator (U513) and the negative end of the fifth comparator (U514) are respectively connected to the output end of the error amplifier (U201); The output terminals of the fourth comparator (U513) and the fifth comparator (U514) are respectively connected to the two input terminals of the logic gate circuit (U515); The output ends of the logic gate circuit (U515), the first latch (U505), the second latch (U506) and the delay circuit (U507) are respectively connected to the four input ends of the first digital comparator (U508), and the output end of the first digital comparator (U508) is the LOCK end of the valley latch circuit (U207); The output end of the third counter (U504) and the output end of the second latch (U506) are respectively connected to the two input ends of the second digital comparator (U509), and the output end of the second digital comparator (U509) is the VOK end of the valley latch circuit (U207).

2. A valley lock control circuit according to claim 1, It is characterized in that It also includes a transformer (T1), an output rectifier circuit (R1), a sampling feedback circuit, a power tube (M1), and a power tube current sampling circuit (R CS ); The transformer (T1) includes a primary winding (Np), a secondary winding (Ns) and an auxiliary winding (N A ); The drain of the power tube (M1) is connected to the primary winding (Np), the output rectifier circuit (R1) is connected to the secondary winding (Ns), and the sampling feedback circuit is connected to the auxiliary winding (N A ), the power tube current sampling circuit (R CS ) is connected to the source of the power tube (M1); The negative end of the error amplifier (U201) and the negative end of the third comparator (U206) are respectively connected to a sampling feedback circuit; The positive terminal of the second comparator (U203) is connected to the current sampling circuit (R CS ) and the source of the power tube (M1); The output end of the driving circuit (U205) is connected to the gate of the power tube (M1).

3. A valley lock control circuit according to claim 2, It is characterized in that The sampling feedback circuit includes a first resistor (R FB1 ) and the second resistor (R FB2 ), the negative terminal of the error amplifier (U201) and the negative terminal of the third comparator (U206) are respectively connected to the first resistor (R FB1 ) and the second resistor (R FB2 )between.

4. A valley lock control circuit according to claim 2, It is characterized in that The output rectifier circuit (R1) comprises a diode, a capacitor and a resistor, wherein two ends of the capacitor and the resistor connected in parallel are respectively connected to the cathode of the diode and one end of the secondary winding (Ns), and the anode of the diode is connected to the other end of the secondary winding (Ns).