Detection circuit and compensation method for cycle-by-cycle current limiting protection of secondary side

By designing the secondary side cycle-by-cycle current-limiting protection detection circuit in the transformer and using the compensation current to reduce the load current-limiting value deviation during the current-limiting protection process, the problem of untimely current-limiting protection at high switching frequencies is solved and the system stability is improved. .

CN118693754APending Publication Date: 2024-09-24MAXIC TECHNOLOGY CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310301879.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In transformers, under the existing technology, under high switching frequency, the current limiting protection on the secondary side causes a large deviation in the load current limiting value due to the error amount, which affects the stability of the system.

Method used

Design a detection circuit for secondary side cycle-by-cycle current limiting protection, including a triangle wave maximum voltage circuit, a first voltage-to-current charging circuit, a second voltage-to-current charging circuit and a comparator to reduce the deviation of the load current limit value through compensation current Move, conduct current limiting protection in time, and improve system stability.

Benefits of technology

The compensation current is used to reduce the deviation of the load current limit value, ensuring the timeliness of the secondary side current limit protection and improving system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118693754A
    Figure CN118693754A
Patent Text Reader

Abstract

The invention provides a detection circuit and a compensation method for cycle-by-cycle current-limiting protection of a secondary side, which considers the existing error on the detection circuit, such as the leading edge blanking of a CS-ramp triangular wave for sensing the resistance voltage and the time delay from the time when the CS-ramp triangular wave reaches the maximum value to the time when a Vchg-pk triangular wave starts to rise, so that the current-limiting protection of the secondary side is realized. Compensation is carried out on the reference level periodic integral by utilizing the compensation current; and the slope of the Vchg-ref'triangular wave is slowed down, so that the method can adapt to the scene that the rising slope of the Vchg-pk triangular wave is slowed down and the maximum value is reduced due to the existing error, the offset of a load current limiting value is reduced, the current limiting protection of a secondary side is carried out in time, and the stability of the system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of transformer protection circuits, and in particular to a detection circuit and compensation method for secondary-side cycle-by-cycle current limiting protection. Background Art

[0002] Currently, with the use of gallium nitride (GaN) devices, due to the lower switching loss in GaN, the time between switches can be shortened, thereby increasing the switching frequency. The increased switching frequency allows the size of many large components (such as transformers, inductors, and output capacitors) to be reduced. Therefore, in order to reduce the size of the transformer, the existing technology often increases the switching frequency by using gallium nitride devices.

[0003] However, in the transformer, when the control IC circuit on the primary side of the transformer performs the secondary current limiting protection (Secondary OCP, SOCP) process, due to the high-frequency operation of the current limiting protection circuit, the existing error in the circuit cannot be ignored. At a high switching frequency, the error causes a large offset in the load current limiting value, resulting in untimely current limiting protection on the secondary side, thereby affecting system stability.

[0004] Among them, OCP (Over Current Protection) refers to a protection measure that performs corresponding protection actions when the measured current increases and exceeds the allowable value. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a detection circuit and compensation method for secondary-side cycle-by-cycle current limiting protection, so as to solve the problem that in the control IC circuit on the primary side of the transformer in the prior art, during the secondary-side current limiting protection, the existing error of the circuit at a high switching frequency causes a large offset in the load current limiting value, resulting in untimely current limiting protection on the secondary side, thereby affecting the stability of the system.

[0006] The embodiment of the present application provides a detection circuit for secondary-side cycle-by-cycle current limiting protection, the detection circuit is arranged on the primary side of the transformer, and the detection circuit includes: a triangular wave maximum voltage circuit, a first voltage-to-current charging circuit, a second voltage-to-current charging circuit and a comparator;

[0007] The input end of the triangle wave maximum voltage circuit is used to input the CS-ramp triangle wave of the sensing resistor voltage, and the triangle wave maximum voltage circuit is used to sample and maintain the maximum voltage of the CS-ramp triangle wave to obtain and output the maintenance voltage;

[0008] The input end of the first voltage-to-current charging circuit is used to input a reference voltage, and the first voltage-to-current charging circuit is used to convert the reference voltage into a first current, compensate the first current to obtain a compensated current, and use the compensated current to charge the first capacitor to obtain and output a Vchg-ref' triangle wave;

[0009] An output terminal of the first voltage-to-current charging circuit is connected to a first input terminal of the comparator;

[0010] The output end of the triangle wave maximum voltage circuit is connected to the input end of the second voltage-to-current charging circuit, and the second voltage-to-current charging circuit is used to convert the reference voltage into a second current, and use the second current to charge the second capacitor to obtain and output a Vchg-pk triangle wave;

[0011] An output terminal of the second voltage-to-current charging circuit is connected to a second input terminal of the comparator;

[0012] The comparator is used to compare the Vchg-pk triangle wave with the Vchg-ref' triangle wave, and determine whether to perform secondary side current limiting protection according to the comparison result.

[0013] In the above technical solution, the existing errors in the detection circuit are taken into consideration, such as the leading edge blanking of the CS-ramp triangle wave of the sensing resistor voltage and the time delay from the CS-ramp triangle wave reaching the maximum value to the Vchg-pk triangle wave starting to rise. Therefore, the reference level period integral is compensated by using the compensation current to obtain the compensated Vchg-ref' triangle wave. The slope of the Vchg-ref' triangle wave becomes slower, which can adapt to the scenario where the rising slope of the Vchg-pk triangle wave becomes slower and the maximum value decreases due to the existing errors, reduce the offset of the load current limiting value, and perform the secondary side current limiting protection in time, thereby improving the system stability.

[0014] In some optional implementations, the triangle wave maximum voltage circuit includes: a first MOS transistor, a third capacitor, and a second MOS transistor;

[0015] The drain of the first MOS tube is used to input a CS-ramp triangle wave, the source of the first MOS tube is grounded after passing through a third capacitor, and the source of the first MOS tube is also connected to the drain of the second MOS tube;

[0016] The gates of the first MOS tube and the second MOS tube are respectively input with a PWM signal and a signal opposite to the PWM signal. The PWM signal is used to: when the PWM signal is at a high level, turn on the first MOS tube and turn off the second MOS tube, so that the third capacitor is charged to the maximum voltage of the CS-ramp triangle wave; when the PWM signal is at a low level, turn off the first MOS tube and turn on the second MOS tube, so that the third capacitor outputs a maintenance voltage after passing through the second MOS tube.

[0017] In some optional implementations, the first voltage-to-current charging circuit includes: a first voltage-to-current circuit and a first charging circuit;

[0018] The input end of the first voltage-to-current circuit is used to input a reference voltage, and the first voltage-to-current circuit is used to convert the reference voltage into a first current and compensate the first current to obtain a compensated current;

[0019] The output end of the first voltage-to-current circuit is connected to the input end of the first charging circuit. The first charging circuit is used to charge the first capacitor with the compensated current to obtain and output a Vchg-ref' triangle wave.

[0020] In some optional implementations, the first voltage-to-current circuit includes: a first resistor, a second resistor, a first operational amplifier, a first current mirror, and a third MOS tube;

[0021] The positive input terminal of the first operational amplifier is used to input a reference voltage, the output terminal of the first operational amplifier is connected to the gate of the third MOS tube, the negative input terminal of the first operational amplifier is connected to the source of the third MOS tube, the source of the third MOS tube is connected to the first end of the first resistor, the second end of the first resistor is connected to the second resistor and then grounded, and the first end of the first resistor is also used to input a compensation current;

[0022] The first end of the first current mirror is connected to the drain of the third MOS tube, and the second end of the first current mirror outputs the compensated current.

[0023] In some optional implementations, the first charging circuit includes: a first capacitor and a fourth MOS tube;

[0024] A first end of the first capacitor is connected to a first end of the first current mirror, and a second end of the first capacitor is grounded;

[0025] The first end of the first capacitor is also connected to the drain of the fourth MOS tube, the source of the fourth MOS tube is grounded, and the gate of the fourth MOS tube is used to input a reset pulse.

[0026] In some optional implementations, the second voltage-to-current charging circuit includes: a second voltage-to-current circuit and a second charging circuit;

[0027] The input end of the second voltage-to-current circuit is used to input the sustaining voltage, and the second voltage-to-current circuit is used to convert the sustaining voltage into a second current;

[0028] The output end of the second voltage-to-current circuit is connected to the input end of the second charging circuit. The second charging circuit is used to charge the second capacitor with the second current to obtain and output a Vchg-pk triangle wave.

[0029] In some optional implementations, the second voltage-to-current circuit includes: a third resistor, a second operational amplifier, a fifth MOS tube, and a second current mirror;

[0030] The positive input terminal of the second operational amplifier is used to input the maintenance voltage, the output terminal of the second operational amplifier is connected to the gate of the fifth MOS tube, the negative input terminal of the second operational amplifier is connected to the source of the fifth MOS tube, and the source of the fifth MOS tube is connected to the third resistor and then grounded;

[0031] The first end of the second current mirror is connected to the drain of the fifth MOS tube, and the second end of the second current mirror outputs the second current.

[0032] In some optional implementations, the second charging circuit includes: a second capacitor and a sixth MOS transistor;

[0033] A first end of the second capacitor is connected to a first end of the second current mirror, and a second end of the second capacitor is grounded;

[0034] The first end of the second capacitor is also connected to the drain of the sixth MOS tube, the source of the sixth MOS tube is grounded, and the gate of the sixth MOS tube is used to input a reset pulse.

[0035] In some optional implementations, the value of the third resistor R3 = R1 + R2; the first current ichg' = (VREF-i×R2) / (R1 + R2);

[0036] Wherein, i is the compensation current, R1 is the value of the first resistor, R2 is the value of the second resistor, and VREF is the reference voltage.

[0037] In the above technical solution, when no compensation current is input, ichg=VREF / (R1+R2), and ΔI=ichg-ichg'=i×R2 / (R1+R2) compared with the compensation current and without the compensation current. That is to say, the charging current is reduced by i×R2 / (R1+R2) without the compensation current. Then, the Vchg-ref' triangle wave obtained by charging with the compensated current is relative to the Vchg-ref triangle wave obtained by charging with the first current. The degree to which the rising slope of the Vchg-ref' triangle wave is slowed down is determined by i×R2 / (R1+R2).

[0038] An embodiment of the present application provides a compensation method for a secondary side cycle-by-cycle current limiting protection detection circuit, comprising:

[0039] Get the switching frequency;

[0040] Determine the compensation current according to the switching frequency, and input the compensation current into a detection circuit of the secondary side cycle-by-cycle current limiting protection such as any one of the above, so as to determine whether to perform secondary side current limiting protection according to the Vchg-pk triangle wave and the compensated Vchg-ref' triangle wave;

[0041] Among them, the compensation current is positively correlated with the switching frequency.

[0042] In the above technical solution, the existing errors in the detection circuit, such as the leading edge blanking of the CS-ramp triangle wave of the sensing resistor voltage and the time delay from the CS-ramp triangle wave reaching the maximum value to the Vchg-pk triangle wave starting to rise, the existing errors cause the larger the offset of the load current limit value as the switching frequency increases. Therefore, a compensation current positively correlated with the switching frequency is input to compensate for the situation where the rising slope of the Vchg-pk triangle wave slows down and the maximum value decreases due to the existing errors, thereby reducing the offset of the load current limit value, performing the secondary side current limiting protection in time, and improving the system stability. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 A schematic diagram of a transformer system circuit provided in an embodiment of the present application;

[0045] Figure 2 A schematic diagram of a voltage-to-current charging circuit without compensation current provided in an embodiment of the present application;

[0046] Figure 3 A schematic diagram of a second voltage-to-current charging circuit provided in an embodiment of the present application;

[0047] Figure 4 A schematic diagram of the SCOP detection principle provided in the embodiment of the present application;

[0048] Figure 5 A schematic diagram of the effect of errors on SOCP detection provided in an embodiment of the present application;

[0049] Figure 6 A schematic diagram of a first voltage-to-current charging circuit using a compensation current provided in an embodiment of the present application;

[0050] Figure 7 A schematic diagram of a compensated waveform provided in an embodiment of the present application;

[0051] Figure 8 A schematic diagram of a detection circuit for secondary-side cycle-by-cycle current limiting protection provided in an embodiment of the present application;

[0052] Fig. 9 A schematic diagram of a circuit for obtaining a maximum voltage from a triangular wave provided in an embodiment of the present application;

[0053] Fig.10 A schematic diagram of the working principle of a comparator provided in an embodiment of the present application;

[0054] Fig.11 A flow chart of the steps of a compensation method for a secondary-side cycle-by-cycle current limiting protection detection circuit provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0056] Please refer to Figure 1 , Figure 1 A schematic diagram of a transformer system circuit provided in an embodiment of the present application, wherein the resistor grounded below the MOS tube Q0 is the sensing resistor Rcs, and the inductor current generates a CS-ramp triangle wave through the sensing resistor Rcs. The slope of the CS-ramp triangle wave is determined by the primary side inductance value and the amplitude of the input AC voltage VAC, that is, the slope of the CS-ramp triangle wave is equal to the ratio of the amplitude of VAC to the primary side inductance value.

[0057] Please refer to Figure 2 , Figure 2 A schematic diagram of a voltage-to-current charging circuit without compensation current provided in an embodiment of the present application specifically includes: a voltage-to-current circuit and a charging circuit; the input end of the voltage-to-current circuit is used to input a reference voltage VREF, and the voltage-to-current circuit is used to convert the reference voltage VREF into a first current; the output end of the voltage-to-current circuit is connected to the input end of the charging circuit, and the charging circuit is used to charge the first capacitor with the compensated current to obtain and output a Vchg-ref triangle wave.

[0058] The voltage-to-current circuit includes: a third resistor R3, a first operational amplifier D1, a first current mirror M1 and a third MOS tube Q3; the positive input terminal of the first operational amplifier D1 is used to input a reference voltage VREF, the output terminal of the first operational amplifier D1 is connected to the gate of the third MOS tube Q3, the negative input terminal of the first operational amplifier D1 is connected to the source of the third MOS tube Q3, the source of the third MOS tube Q3 is connected to the third resistor R3 and then grounded; the first end of the first current mirror M1 is connected to the drain of the third MOS tube Q3, and the second end of the first current mirror M1 outputs the first current.

[0059] The charging circuit includes: a first capacitor and a fourth MOS tube Q4; the first end of the first capacitor is connected to the first end of the first current mirror M1, and the second end of the first capacitor is grounded; the first end of the first capacitor is also connected to the drain of the fourth MOS tube Q4, the source of the fourth MOS tube Q4 is grounded, and the gate of the fourth MOS tube Q4 is used to input a reset pulse.

[0060] For corresponding Figure 3 , Figure 3 The schematic diagram of the second voltage-to-current charging circuit provided in the embodiment of the present application specifically includes: a second voltage-to-current circuit and a second charging circuit. The input end of the second voltage-to-current circuit is used to input the maintenance voltage Cs-max of the maximum voltage of the CS-ramp triangle wave, and the second voltage-to-current circuit is used to convert the maintenance voltage Cs-max into a second current; the output end of the second voltage-to-current circuit is connected to the input end of the second charging circuit, and the second charging circuit is used to charge the second capacitor with the second current to obtain and output the Vchg-pk triangle wave.

[0061] Among them, the second voltage-to-current circuit includes: a third resistor R3, a second operational amplifier D2, a fifth MOS tube Q5 and a second current mirror M2; the positive input terminal of the second operational amplifier D2 is used to input the maintenance voltage Cs-max, the output terminal of the second operational amplifier D2 is connected to the gate of the fifth MOS tube Q5, the negative input terminal of the second operational amplifier D2 is connected to the source of the fifth MOS tube Q5, the source of the fifth MOS tube Q5 is connected to the third resistor R3 and then grounded; the first end of the second current mirror M2 is connected to the drain of the fifth MOS tube Q5, and the second end of the second current mirror M2 outputs the second current.

[0062] The second charging circuit includes: a second capacitor and a sixth MOS tube Q6; the first end of the second capacitor is connected to the first end of the second current mirror M2, and the second end of the second capacitor is grounded; the first end of the second capacitor is also connected to the drain of the sixth MOS tube Q6, the source of the sixth MOS tube Q6 is grounded, and the gate of the sixth MOS tube Q6 is used to input a reset pulse.

[0063] Please refer to Figure 4 , Figure 4The schematic diagram of the SCOP detection principle provided in the embodiment of the present application. In theory, when comparing the above Vchg-pk triangle wave with the Vchg-ref triangle wave, the following should be done: Figure 4 As shown, within a cycle of a Vchg-ref triangle wave, during the high level of the pwm pulse, the CS-ramp triangle wave rises to a maximum value, and then the second capacitor is charged with the maintenance voltage Cs-max of the maximum value to obtain a Vchg-pk triangle wave waveform. If the waveform of the Vchg-pk triangle wave exceeds the range of a Vchg-ref triangle wave cycle, it is considered that SOCP has occurred.

[0064] However, in the current control loop on the primary side, there will be a pulse peak current at the moment of switch on. If the current value at this time is sampled and controlled, false triggering will occur due to the peak of the pulse leading edge. Therefore, leading edge blanking is used at the beginning of the MOS tube Q0 conduction to eliminate the hidden danger of false triggering. In addition, there is a time delay between the CS-ramp triangle wave rising to the maximum value and the Vchg-pk triangle wave starting to rise.

[0065] The leading edge blanking and time delay mentioned above will cause the load current limit value to shift. Please refer to Figure 5 , Figure 5 Schematic diagram of error affecting SOCP detection provided in an embodiment of the present application. Among them, leading edge blanking reduces the maximum value Cs-max of the CS-ramp triangle wave to Cs-max', and the low Cs-max' slows down the rising slope of the Vchg-pk triangle wave charging during the low pwm level. Time delay delays the time when the Vchg-pk triangle wave starts charging during the low pwm level, resulting in a decrease in the maximum value to which the Vchg-pk triangle wave rises.

[0066] To this end, the present application considers compensating for the slowing down of the rising slope and the reduction of the maximum value of the Vchg-pk triangle wave caused by the above errors (leading edge blanking and time delay) by reducing the slope of Vchg-ref.

[0067] Please refer to Figure 8 , Figure 8A schematic diagram of a detection circuit for a secondary-side cycle-by-cycle current limiting protection provided in an embodiment of the present application. A detection circuit for a secondary-side cycle-by-cycle current limiting protection provided in an embodiment of the present application, the detection circuit is arranged in an IC circuit on the primary side of a transformer, and the detection circuit includes: a triangle wave maximum voltage circuit, a first voltage-to-current charging circuit, a second voltage-to-current charging circuit, and a comparator D3; the input end of the triangle wave maximum voltage circuit is used to input a CS-ramp triangle wave of a sensing resistor voltage, and the triangle wave maximum voltage circuit is used to sample and maintain the maximum voltage of the CS-ramp triangle wave to obtain and output a maintenance voltage Cs-max; the input end of the first voltage-to-current charging circuit is used to input a reference voltage VREF, and the first voltage-to-current charging circuit is used to convert the reference voltage VREF into a first current, and compensate the first current to obtain a compensation voltage Cs-max. The compensated current is used to charge the first capacitor with the compensated current to obtain and output the Vchg-ref' triangle wave; the output end of the first voltage-to-current charging circuit is connected to the first input end of the comparator D3; the output end of the triangle wave maximum voltage circuit is connected to the input end of the second voltage-to-current charging circuit, and the second voltage-to-current charging circuit is used to convert the reference voltage VREF into a second current, and use the second current to charge the second capacitor to obtain and output the Vchg-pk triangle wave; the output end of the second voltage-to-current charging circuit is connected to the second input end of the comparator D3; the comparator D3 is used to compare the Vchg-pk triangle wave with the Vchg-ref' triangle wave, and determine whether to perform secondary side current limiting protection according to the comparison result.

[0068] Please refer to Figure 6 , Figure 6 A schematic diagram of a first voltage-to-current charging circuit using a compensation current provided in an embodiment of the present application. The first voltage-to-current charging circuit includes: a first voltage-to-current circuit and a first charging circuit; the input end of the first voltage-to-current circuit is used to input a reference voltage VREF, and the first voltage-to-current circuit is used to convert the reference voltage VREF into a first current and compensate the first current to obtain a compensated current; the output end of the first voltage-to-current circuit is connected to the input end of the first charging circuit, and the first charging circuit is used to charge the first capacitor using the compensated current to obtain and output a Vchg-ref' triangle wave.

[0069] The first voltage-to-current circuit includes: a first resistor R1, a second resistor R2, a first operational amplifier D1, a first current mirror M1 and a third MOS tube Q3; the positive input terminal of the first operational amplifier D1 is used to input a reference voltage VREF, the output terminal of the first operational amplifier D1 is connected to the gate of the third MOS tube Q3, the negative input terminal of the first operational amplifier D1 is connected to the source of the third MOS tube Q3, the source of the third MOS tube Q3 is connected to the first end of the first resistor R1, the second end of the first resistor R1 is connected to the second resistor R2 and then grounded, and the first end of the first resistor R1 is also used to input a compensation current; the first end of the first current mirror M1 is connected to the drain of the third MOS tube Q3, and the second end of the first current mirror M1 outputs the compensated current.

[0070] The first charging circuit includes: a first capacitor and a fourth MOS tube Q4; the first end of the first capacitor is connected to the first end of the first current mirror M1, and the second end of the first capacitor is grounded; the first end of the first capacitor is also connected to the drain of the fourth MOS tube Q4, the source of the fourth MOS tube Q4 is grounded, and the gate of the fourth MOS tube Q4 is used to input a reset pulse.

[0071] In the embodiment of the present application, taking into account the leading edge blanking on the detection circuit and the time delay from the CS-ramp triangle wave reaching the maximum value to the Vchg-pk triangle wave starting to rise, the reference level period integral is compensated by using the compensation current to obtain the compensated Vchg-ref' triangle wave. The slope of the Vchg-ref' triangle wave is slower than the slope of the original Vchg-ref triangle wave, which can compensate for the slower rising slope and reduced maximum value of the Vchg-pk triangle wave caused by the existing error, thereby reducing the offset of the load current limiting value, performing the secondary side current limiting protection in time, and improving the system stability.

[0072] Please refer to Fig. 9 , Fig. 9 A schematic diagram of a triangle wave maximum voltage circuit provided in an embodiment of the present application. The triangle wave maximum voltage circuit includes: a first MOS tube Q1, a third capacitor, and a second MOS tube Q2; the drain of the first MOS tube Q1 is used to input a CS-ramp triangle wave, the source of the first MOS tube Q1 is grounded after passing through the third capacitor, and the source of the first MOS tube Q1 is also connected to the drain of the second MOS tube Q2; the gates of the first MOS tube Q1 and the second MOS tube Q2 are respectively input with a PWM signal and a signal opposite to the PWM signal, and the PWM signal is used to: when the PWM signal is at a high level, turn on the first MOS tube Q1, turn off the second MOS tube Q2, and charge the third capacitor to the maximum voltage of the CS-ramp triangle wave; when the PWM signal is at a low level, turn off the first MOS tube Q1, turn on the second MOS tube Q2, and output the maintenance voltage Cs-max after the third capacitor passes through the second MOS tube Q2.

[0073] The second voltage-to-current charging circuit adopts Figure 3 The circuit shown will not be described in detail here.

[0074] Please refer to Fig.10 , Fig.10 The schematic diagram of the working principle of the comparator D3 provided in the embodiment of the present application. The Vchg-ref' triangle wave is input to the negative input terminal of the comparator D3, and the Vchg-pk triangle wave is input to the positive input terminal of the comparator D3. When SOCP does not occur, the comparator D3 outputs a low level; if the comparator D3 outputs a high level, it means that the Vchg-pk triangle wave exceeds the range of the Vchg-ref' triangle wave, SOCP occurs, and the secondary side current limiting protection is required.

[0075] Please refer to Figure 7 , Figure 7 A schematic diagram of a compensated waveform provided in an embodiment of the present application. In this embodiment, the value of the third resistor R3 is R3=R1+R2; the first current ichg'=(VREF-i×R2) / (R1+R2);

[0076] Among them, i is the compensation current and VREF is the reference voltage.

[0077] In the embodiment of the present application, when the compensation current is not input, ichg=VREF / (R1+R2), and ΔI=ichg-ichg'=i×R2 / (R1+R2) compared with the compensation current and the non-compensation current, that is, the charging current is reduced by i×R2 / (R1+R2) without the compensation current. Then, the Vchg-ref' triangle wave obtained by charging with the compensated current is relative to the Vchg-ref triangle wave obtained by charging with the first current. The degree to which the rising slope of the Vchg-ref' triangle wave is slowed down is determined by i×R2 / (R1+R2).

[0078] Therefore, the degree to which the rising slope of the Vchg-ref' triangle wave becomes slower can be adjusted by adjusting the size of the input compensation circuit i, or the degree to which the slope of the Vchg-ref' triangle wave becomes slower can be adjusted by setting the second resistor R2 to a high-precision adjustable resistor.

[0079] Please refer to Fig.11 , Fig.11 A flow chart of the steps of a compensation method for a secondary side cycle-by-cycle current limiting protection detection circuit provided in an embodiment of the present application specifically includes:

[0080] Step 100: Obtain a switching frequency;

[0081] Step 200, determine the compensation current according to the switching frequency, and input the compensation current into the detection circuit of the secondary side cycle-by-cycle current limiting protection to determine whether to perform secondary side current limiting protection according to the Vchg-pk triangle wave and the compensated Vchg-ref' triangle wave; wherein the compensation current is positively correlated with the switching frequency.

[0082] In the embodiment of the present application, the existing errors in the detection circuit, such as the leading edge blanking of the CS-ramp triangle wave of the sensing resistor voltage and the time delay from the CS-ramp triangle wave reaching the maximum value to the Vchg-pk triangle wave starting to rise, the existing errors cause the larger the offset of the load current limit value as the switching frequency increases. Therefore, a compensation current positively correlated with the switching frequency is input to compensate for the situation in which the rising slope of the Vchg-pk triangle wave slows down and the maximum value decreases due to the existing errors, thereby reducing the offset of the load current limit value, performing the secondary side current limiting protection in time, and improving the system stability.

[0083] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0084] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0085] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0086] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0087] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of protection of the present application.

Claims

1. A detection circuit for secondary side cycle-by-cycle current limiting protection, characterized in that: The detection circuit is arranged on the primary side of the transformer, and the detection circuit comprises: a triangle wave maximum voltage circuit, a first voltage-to-current charging circuit, a second voltage-to-current charging circuit and a comparator; The input end of the triangle wave maximum voltage circuit is used to input the CS-ramp triangle wave of the sensing resistor voltage, and the triangle wave maximum voltage circuit is used to sample and maintain the maximum voltage of the CS-ramp triangle wave to obtain and output the maintenance voltage; The input end of the first voltage-to-current charging circuit is used to input a reference voltage, and the first voltage-to-current charging circuit is used to convert the reference voltage into a first current, compensate the first current to obtain a compensated current, and use the compensated current to charge the first capacitor to obtain and output a Vchg-ref' triangle wave; The output end of the first voltage-to-current charging circuit is connected to the first input end of the comparator; The output end of the triangle wave maximum voltage circuit is connected to the input end of the second voltage-to-current charging circuit, and the second voltage-to-current charging circuit is used to convert the reference voltage into a second current, and use the second current to charge the second capacitor to obtain and output a Vchg-pk triangle wave; The output end of the second voltage-to-current charging circuit is connected to the second input end of the comparator; The comparator is used to compare the Vchg-pk triangle wave with the Vchg-ref' triangle wave, and determine whether to perform secondary side current limiting protection according to the comparison result.

2. The detection circuit according to claim 1, characterized in that: The triangle wave maximum voltage circuit comprises: a first MOS tube, a third capacitor and a second MOS tube; The drain of the first MOS tube is used to input the CS-ramp triangle wave, the source of the first MOS tube is grounded after passing through the third capacitor, and the source of the first MOS tube is also connected to the drain of the second MOS tube; The gates of the first MOS tube and the second MOS tube are respectively input with a PWM signal and a signal opposite to the PWM signal; Among them, the first MOS tube and the second MOS tube are configured as follows: when the PWM signal is at a high level, the first MOS tube is turned on and the second MOS tube is turned off, so that the third capacitor is charged to the maximum voltage of the CS-ramp triangle wave; when the PWM signal is at a low level, the first MOS tube is turned off and the second MOS tube is turned on, so that the third capacitor outputs the maintenance voltage after passing through the second MOS tube.

3. The detection circuit according to claim 2, characterized in that: The first voltage-to-current charging circuit comprises: a first voltage-to-current circuit and a first charging circuit; The input end of the first voltage-to-current circuit is used to input the reference voltage, and the first voltage-to-current circuit is used to convert the reference voltage into the first current, and compensate the first current to obtain the compensated current; The output end of the first voltage-to-current circuit is connected to the input end of the first charging circuit, and the first charging circuit is used to charge the first capacitor with the compensated current to obtain and output the Vchg-ref' triangle wave.

4. The detection circuit according to claim 3, characterized in that: The first voltage-to-current circuit includes: a first resistor, a second resistor, a first operational amplifier, a first current mirror and a third MOS tube; The positive input terminal of the first operational amplifier is used to input the reference voltage, the output terminal of the first operational amplifier is connected to the gate of the third MOS transistor, the negative input terminal of the first operational amplifier is connected to the source of the third MOS transistor, the source of the third MOS transistor is connected to the first end of the first resistor, the second end of the first resistor is connected to the second resistor and then grounded, and the first end of the first resistor is also used to input a compensation current; The first end of the first current mirror is connected to the drain of the third MOS tube, and the second end of the first current mirror outputs the compensated current.

5. The detection circuit according to claim 4, characterized in that: The first charging circuit comprises: the first capacitor and a fourth MOS tube; A first end of the first capacitor is connected to a first end of the first current mirror, and a second end of the first capacitor is grounded; The first end of the first capacitor is also connected to the drain of the fourth MOS transistor, the source of the fourth MOS transistor is grounded, and the gate of the fourth MOS transistor is used to input a reset pulse.

6. The detection circuit according to claim 5, characterized in that: The second voltage-to-current charging circuit comprises: a second voltage-to-current circuit and a second charging circuit; The input end of the second voltage-to-current circuit is used to input the sustaining voltage, and the second voltage-to-current circuit is used to convert the sustaining voltage into the second current; The output end of the second voltage-to-current circuit is connected to the input end of the second charging circuit, and the second charging circuit is used to charge the second capacitor with the second current to obtain and output the Vchg-pk triangle wave.

7. The detection circuit according to claim 6, characterized in that: The second voltage-to-current circuit comprises: a third resistor, a second operational amplifier, a fifth MOS tube and a second current mirror; The positive input terminal of the second operational amplifier is used to input the maintenance voltage, the output terminal of the second operational amplifier is connected to the gate of the fifth MOS transistor, the negative input terminal of the second operational amplifier is connected to the source of the fifth MOS transistor, and the source of the fifth MOS transistor is connected to the third resistor and then grounded; The first end of the second current mirror is connected to the drain of the fifth MOS tube, and the second end of the second current mirror outputs the second current.

8. The detection circuit according to claim 7, characterized in that: The second charging circuit comprises: the second capacitor and a sixth MOS tube; A first end of the second capacitor is connected to a first end of the second current mirror, and a second end of the second capacitor is grounded; The first end of the second capacitor is also connected to the drain of the sixth MOS tube, the source of the sixth MOS tube is grounded, and the gate of the sixth MOS tube is used to input a reset pulse.

9. The detection circuit according to claim 8, characterized in that: The value of the third resistor R3 = R1 + R2; the first current ichg' = (VREF-i×R2) / (R1 + R2); Wherein, i is the compensation current, R1 is the value of the first resistor, R2 is the value of the second resistor, and VREF is the reference voltage.

10. A compensation method for a secondary side cycle-by-cycle current limiting protection detection circuit, characterized in that: include: Get the switching frequency; Determine a compensation current according to the switching frequency, and input the compensation current into a detection circuit for secondary-side cycle-by-cycle current limiting protection as described in any one of claims 1 to 9, so as to determine whether to perform secondary-side current limiting protection according to the Vchg-pk triangle wave and the compensated Vchg-ref' triangle wave; Among them, the compensation current is positively correlated with the switching frequency.