A logic judgment circuit for detecting current size

By designing a circuit including comparator, RS flip-flop, inverter and counter, the misjudgment problem of switching power supply system when loop current fluctuates, fast and reliable current judgment is achieved, and the stability of the system is improved Sex and safety.

CN118199371BActive Publication Date: 2024-11-12JIAXING FANGXIN MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410317718.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-20
Publication Date
2024-11-12
Estimated Expiration
2044-03-20

AI Technical Summary

Technical Problem

When the loop current fluctuates in traditional switching power supply systems, misjudgment of control logic leads to system instability or components damage, and the existing detection methods are low in accuracy or difficult to implement logic.

Method used

A logic judgment circuit including a comparator, RS flip-flop, inverter, D flip-flop and counter is designed. By comparing the current sampling signal with the reference current signal, it realizes accurate periodic judgment, and uses rising edge delay and counter. Ensure the synchronization and latch of logic signals, and improve the stability and reliability of judgments.

Benefits of technology

It realizes fast and reliable logic judgment under loop current fluctuations, and is suitable for input overcurrent protection, output overload, short circuit protection and secondary synchronous tube enable logic judgment, improving the stability and safety of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118199371B_ABST
    Figure CN118199371B_ABST
Patent Text Reader

Abstract

The present invention discloses a logic judgment circuit for detecting the magnitude of current, which belongs to the field of switching power supplies, and includes a comparator, a first RS trigger, a second RS trigger, a rising edge delay, a first inverter, a second inverter, a D trigger, a first counter, and a second counter; the counter is added mainly to prevent the system from causing a temporary abnormal mutation of Ics due to occasional disturbances, thereby causing misjudgment of the internal detection logic and subsequent erroneous operation of the system. The counter can increase the consistency and reliability judgment of the previous detection output logic. The present invention can accurately judge the magnitude of the current cycle by cycle, and ensure that the switching power supply system can make a stable and reliable rapid logic judgment under the condition of loop current fluctuations, and can be particularly applied to input overcurrent protection, output overload, short circuit protection, and secondary synchronous tube enable logic judgment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of switch power supplies, and in particular to a logic judgment circuit for detecting current magnitude. Background Art

[0002] Traditional switching power supplies such as Figure 1 As shown, it is often necessary to control the loop stability by detecting the switching current to ensure the reliability and safety of the system, so as to prevent the current from surging in the circuit in some unexpected situations (such as output overload, short circuit; input voltage jump, magnetic saturation of magnetic devices, etc.), resulting in damage to the components in the system.

[0003] There are two commonly used detection methods at present, indirect sampling control and direct sampling control. Indirect sampling control detects the loop current by detecting the output voltage, Po=Vo*Io. When the output power Po is rated, the output voltage Vo decreases, which means that the output current Io is increasing. The advantage of this method is that it is relatively simple to implement, because the output voltage is usually a continuous analog DC signal. It only needs to add a detector for output voltage Vo feedback in the circuit to roughly determine the size of the output current; the disadvantage is poor transient response and low accuracy, because inductors and capacitors are generally added to the Vo output end for filtering, which results in the output voltage Vo being unable to reflect the transient current in the loop in real time, and only reflects the average current of the loop output. The other is direct sampling control, which achieves the purpose by directly detecting the real-time current of the loop. Generally, a detector is added to the loop current control end to accurately determine the size of this current. The advantage of this method is fast transient response and high accuracy; the disadvantage is that this current is generally an AC signal, which makes the detection and judgment logic difficult to implement, especially the timing logic requirements for signal sampling are demanding. Summary of the invention

[0004] The purpose of the present invention is to provide a logic judgment circuit for detecting current size, so as to solve the problem that the fluctuation of system loop current leads to misjudgment of internal control logic, thereby making the system unstable or damaging the device.

[0005] In order to solve the above technical problems, the present invention provides a logic judgment circuit for detecting the magnitude of current, comprising a comparator, a first RS trigger, a second RS trigger, a rising edge delay device, a first inverter, a second inverter, a D trigger, a first counter, and a second counter;

[0006] The comparator has positive and negative input terminals connected to an external current sampling signal Ics, a negative input terminal connected to an external reference current signal Iref, and an output terminal outputting a signal Comp_out;

[0007] The S terminal of the first RS flip-flop is connected to the output terminal of the comparator, the R terminal is connected to the internal narrow pulse clock signal clk of the switching power supply system, and the Q terminal outputs the signal RS1_out;

[0008] The input terminal of the first inverter is connected to the drive signal switch_on of the switching power supply switch tube, the output terminal is connected to the input terminal of the rising edge delay element, and the output terminal of the rising edge delay element outputs the signal rs_delay_out;

[0009] The D terminal of the D flip-flop is connected to the Q terminal of the first RS flip-flop, the clock input terminal CK of the D flip-flop is connected to the output terminal of the rising edge delay element, and the Q terminal of the D flip-flop outputs the signal D_out;

[0010] The input terminal of the second inverter is connected to the Q terminal of the D flip-flop, and the output terminal outputs the signal D_outB; the clock input terminals CK of the first counter and the second counter are both connected to the output terminal of the rising edge delay element, the EN terminal of the first counter is connected to the output terminal of the second inverter, and the EN terminal of the second counter is connected to the Q terminal of the D flip-flop;

[0011] The R terminal of the second RS flip-flop is connected to the Q terminal of the first counter, the S terminal of the second RS flip-flop is connected to the Q terminal of the second counter, and the Q terminal of the second RS flip-flop outputs the out signal as the final judgment logic.

[0012] In an implementation manner, the comparator compares the current sampling signal Ics and the reference current signal Iref. When Ics > Iref, the output signal Comp_out of the comparator is a high pulse signal. When Ics < Iref, the output signal Comp_out of the comparator is a low level signal;

[0013] When the output signal Comp_out is a high pulse signal, the first RS flip-flop and the system clock narrow pulse signal clk perform high-level logic extension on the Comp_out high pulse signal; the D flip-flop, the first inverter, the rising edge delay element, and the drive signal switch_on of the switch tube form a synchronous periodic sampling of the high and low levels of the logic signal Comp_out; among them, the drive signal switch_on of the switch tube generates the signal rs_delay_out through the first inverter and the rising edge delay element;

[0014] When the output signal D_out is at a high level, the second counter starts counting with the rising edge of the input terminal CK signal, and after consecutive 2 nWhen the output signal C2_out of the second counter is high, the second counter is immediately cleared when the output signal D_out is low. The working principle of the first counter is similar to that of the second counter.

[0015] In one implementation, the delay time t_delay is set inside the rising edge delay device to ensure that the D flip-flop can sample the flip logic signal of Comp_out at the rising edge of rs_delay_out.

[0016] In one implementation, the output signal D_out of the D flip-flop serves as the enable and clear signal of the second counter, and the output signal D_outB of the second inverter serves as the enable and clear signal of the first counter; the enable terminals EN of the first counter and the second counter are valid at a high level and cleared at a low level.

[0017] In one implementation, the first counter outputs a logic signal C1_out to the R terminal of the second RS flip-flop, and the second counter outputs a logic signal C2_out to the S terminal of the second RS flip-flop, and the second RS flip-flop ensures latching of the C1_out and C2_out logic signals.

[0018] The present invention provides a logic judgment circuit for detecting current size, which can accurately judge the current size cycle by cycle, and ensure that the switching power supply system can make stable, reliable and fast logic judgments when the loop current fluctuates. It can be particularly applied to input overcurrent protection, output overload, short-circuit protection, and secondary-side synchronous tube enable logic judgment. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 Schematic diagram of a switching power supply.

[0020] Figure 2 A schematic diagram of the structure of a logic judgment circuit for detecting current size in the present invention.

[0021] Figure 3 Schematic diagram of the signal timing of each main node of the present invention. DETAILED DESCRIPTION

[0022] The following is a further detailed description of a logic judgment circuit for detecting current size proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer according to the following description. It should be noted that the accompanying drawings are all in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

[0023] The present invention provides a logic judgment circuit for detecting the magnitude of current, the structure of which is as follows: Figure 2As shown, the current sampling signal Ics and the reference current signal Iref inputted externally are connected to the positive input terminal and the negative input terminal of the fast comparator respectively, the output signal Comp_out of the comparator is connected to the S terminal of the RS trigger RS1, the narrow pulse clock signal clk inside the switching power supply system is connected to the R terminal of the RS trigger RS1, and the output signal RS1_out of the RS trigger RS1 is connected to the D terminal of the D trigger. The driving signal switch_on of the switching power supply switch tube is connected to the input terminal of the inverter INV1, and the output terminal of the inverter INV1 is connected to the input terminal of the rising edge delay rs_delay. The output signal rs_delay_out of the rising edge delay rs_delay is connected to the clock input terminal CK of the D trigger, the clock input terminal CK of the counter COUNTER1, and the clock input terminal CK of the counter COUNTER2. The Q terminal of the D trigger is simultaneously connected to the input terminal of the inverter INV2 and the EN terminal of the counter COUNTER2, and the output terminal of the inverter INV2 is connected to the EN terminal of the counter COUNTER1. Counter COUNTER1 and counter COUNTER2 are n-bit counters. The output end of the counter COUNTER1 and the output end of the counter COUNTER2 are respectively connected to the R end and the S end of the RS flip-flop RS2. The output of the RS flip-flop RS2 is out, which serves as the final judgment logic output.

[0024] Combination Figure 1-3, the specific working principle of the present invention is that the switching power supply current sampling signal Ics is compared with the DC reference current signal Iref. When Ics > Iref, the comparator outputs a high pulse signal Comp_out. When Ics < Iref, the comparator outputs a low level signal Comp_out. When Comp_out is a high pulse signal, since its pulse width is not fixed (the pulse width is affected by Ics and Iref) and is generally relatively narrow and not easily sampled by the subsequent stage, extension logic processing needs to be performed. The RS flip-flop RS1 and the system clock narrow pulse signal clk exactly perform high-level logic extension on the high pulse signal of Comp_out. The D flip-flop, the inverter INV1, the rising edge delay rs_delay, and the drive signal switch_on of the switching transistor form a synchronous periodic sampling of the high and low levels of the logic signal Comp_out. Among them, the drive signal switch_on of the switching transistor generates the signal rs_delay_out through the inverter INV1 and the rising edge delay rs_delay. The delay time t_delay can be set inside the edge delay, as long as it is ensured that the D flip-flop can sample the inverted logic signal of Comp_out at the rising edge of rs_delay_out. The output signal D_out of the D flip-flop serves as the enable and clear signal of the counter COUNTER2, and the signal D_outB of the output signal D_out passing through the inverter INV2 serves as the enable and clear signal of the counter COUNTER1. When the output signal D_out is at a high level, the counter COUNTER2 starts counting along with the rising edge of the input signal CK rs_delay. After n two switching cycles (n is the number of bits of the counter), the output signal C2_out of the counter COUNTER2 becomes high. When the output signal D_out is at a low level, the counter COUNTER2 is immediately cleared. The working principle of the counter COUNTER1 is similar to that of the counter COUNTER2. The enable terminals EN of the counter COUNTER1 and the counter COUNTER2 are active high and cleared low. The addition of the counter is mainly to prevent the system from having a short-term abnormal mutation of Ics due to accidental disturbances, resulting in misjudgment of the internal detection logic and subsequent misoperations of the system. The counter can increase the judgment of the consistency and reliability of the previous detection output logic. The output logic signal C1_out of the counter COUNTER1 is connected to the R terminal of the RS flip-flop RS2, and the output logic signal C2_out of the counter COUNTER2 is connected to the S terminal of the RS flip-flop RS2. The RS flip-flop RS2 ensures the latching of the logic signals C1_out and C2_out. The output logic signal out of the RS flip-flop RS2 serves as the final output logic judgment signal.

[0025] The above description is only a description of the preferred embodiments 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 claims.

Claims

1. A logic judgment circuit for detecting the magnitude of current, characterized in that, it includes a comparator, a first RS flip-flop, a second RS flip-flop, a rising-edge delay element, a first inverter, a second inverter, a D flip-flop, a first counter, and a second counter; The positive input terminal of the comparator is connected to an externally input current sampling signal Ics, the negative input terminal is connected to an externally input reference current signal Iref, and the output terminal outputs a signal Comp_out; The S terminal of the first RS flip-flop is connected to the output terminal of the comparator, the R terminal is connected to a narrow pulse clock signal clk inside the switching power supply system, and the Q terminal outputs a signal RS1_out; The input terminal of the first inverter is connected to the drive signal switch_on of the switching power supply switch tube, the output terminal is connected to the input terminal of the rising-edge delay element, and the output terminal of the rising-edge delay element outputs a signal rs_delay_out; The D terminal of the D flip-flop is connected to the Q terminal of the first RS flip-flop, the clock input terminal CK of the D flip-flop is connected to the output terminal of the rising-edge delay element, and the Q terminal of the D flip-flop outputs a signal D_out; The input terminal of the second inverter is connected to the Q terminal of the D flip-flop, and the output terminal outputs a signal D_outB; the clock input terminals CK of the first counter and the second counter are both connected to the output terminal of the rising-edge delay element, the EN terminal of the first counter is connected to the output terminal of the second inverter, and the EN terminal of the second counter is connected to the Q terminal of the D flip-flop; The R terminal of the second RS flip-flop is connected to the Q terminal of the first counter, the S terminal of the second RS flip-flop is connected to the Q terminal of the second counter, and the Q terminal of the second RS flip-flop outputs an out signal as the final judgment logic.

2. The logic judgment circuit for detecting the magnitude of current according to claim 1, characterized in that, The comparator compares the current sampling signal Ics and the reference current signal Iref. When Ics > Iref, the output signal Comp_out of the comparator is a high pulse signal. When Ics < Iref, the output signal Comp_out of the comparator is a low level signal; When the output signal Comp_out is a high pulse signal, the first RS flip-flop and the system clock narrow pulse signal clk perform a high-level logic extension on the Comp_out high pulse signal; the D flip-flop, the first inverter, the rising-edge delay element, and the drive signal switch_on of the switch tube form a synchronous periodic sampling of the high and low levels of the logic signal Comp_out; among them, the drive signal switch_on of the switch tube generates a signal rs_delay_out through the first inverter and the rising-edge delay element; When the output signal D_out is at a high level, the second counter starts counting with the rising edge of the input terminal CK signal. n When the output signal D_out is at a low level, the second counter is immediately cleared to zero. The working principle of the first counter is similar to that of the second counter.

3. The logic judgment circuit for detecting the magnitude of current according to claim 2, characterized in that, The delay time t_delay is set inside the rising edge delay device to ensure that the D flip-flop can sample the flip logic signal of Comp_out at the rising edge of rs_delay_out.

4. The logic judgment circuit for detecting the current size as claimed in claim 1, It is characterized in that The output signal D_out of the D flip-flop is used as the enable and clear signal of the second counter, and the output signal D_outB of the second inverter is used as the enable and clear signal of the first counter; the enable terminals EN of the first counter and the second counter are valid at high level and cleared at low level.

5. The logic judgment circuit for detecting the current size as claimed in claim 1, It is characterized in that The first counter outputs a logic signal C1_out to the R terminal of the second RS flip-flop, and the second counter outputs a logic signal C2_out to the S terminal of the second RS flip-flop. The second RS flip-flop ensures the latching of the C1_out and C2_out logic signals.