A slope compensation circuit and a PWM modulation circuit

By introducing a voltage detection module and an adaptive ramp compensation module into the circuit, the problem that the ramp compensation circuit in the prior art cannot adapt to the entire input voltage range is solved, and the subharmonic oscillation is effectively suppressed without affecting the circuit performance. Effect.

CN115395775BActive Publication Date: 2024-11-15INVT POWER ELECTRONICS SUZHOU CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211213340.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-30
Publication Date
2024-11-15
Estimated Expiration
2042-09-30

AI Technical Summary

Technical Problem

Existing ramp compensation circuits cannot be suitable for the entire input voltage range with subharmonic oscillation circuit topology without affecting the circuit topology performance, especially when the input voltage range is large.

Method used

A circuit including a voltage detection module and an adaptive ramp compensation module is designed. By detecting the input voltage of the target topology circuit and adjusting the intensity of the ramp compensation signal, it forms a negative correlation with the input voltage, thereby eliminating subharmonic oscillation. . This circuit uses a compensation circuit built by transistors, optocouplers, op amps or controllable precision voltage stabilization sources to ensure that the intensity of the slope compensation signal varies with the input voltage.

Benefits of technology

It realizes that the ramp compensation circuit is suitable for the entire input voltage range without affecting the working performance of the circuit topology, effectively suppressing subharmonic oscillations, and improving the stability and adaptability of the circuit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115395775B_ABST
    Figure CN115395775B_ABST
Patent Text Reader

Abstract

The present application discloses a slope compensation circuit, which belongs to the field of power electronics technology. The circuit includes: a voltage detection module, which is used to detect the input voltage of a target topology circuit and obtain a target input voltage; wherein the target topology circuit is a circuit with subharmonic oscillation; a slope compensation module, which is used to output a slope compensation signal and adaptively adjust the intensity of the slope compensation signal so that the intensity of the slope compensation signal forms a negative correlation with the target input voltage, and eliminates the subharmonic oscillation of the target topology circuit. Through the slope compensation circuit, the slope compensation circuit can be applied to the entire input voltage range of the subharmonic oscillation circuit topology without affecting the working performance of the circuit topology. Correspondingly, a PWM modulation circuit provided by the present application also has the above-mentioned beneficial effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power electronics, and in particular to a slope compensation circuit and a PWM modulation circuit. Background Art

[0002] For circuit topologies with subharmonic oscillations, adding a slope compensation circuit can suppress the subharmonic oscillations in the circuit topology. However, the existing slope compensation circuit cannot adapt well to the entire input voltage range of such circuit topologies. In many cases, some performance indicators of the circuit topology are sacrificed to meet the application of the slope compensation circuit in the entire input voltage range of such circuit topologies.

[0003] In the prior art, the following three slope compensation circuits are usually used to suppress the subharmonics generated by the subharmonic oscillation circuit topology. The first is to add a pF capacitor between the oscillation pin and the current detection pin of the power management chip to achieve slope compensation for this type of circuit topology. However, this slope compensation circuit is only applicable to circuit topologies with a narrow input voltage range and cannot be applied to circuit topologies with a larger input voltage range; the second is to add an NPN transistor between the oscillation pin and the current detection pin of the power management chip to achieve slope compensation for the subharmonic oscillation circuit topology, but this method will affect the load capacity of the circuit topology; the third is to divide the input voltage of the subharmonic oscillation circuit topology into multiple gears, and at the same time design the slope compensation strength of the slope compensation circuit into multiple gears, so that different input voltages of this type of circuit topology can correspond to slope compensation of different strengths, but this method has the problem of switching back and forth of the slope compensation shift demarcation point, which will seriously affect the stability of this type of circuit topology during operation. At present, there is no more effective solution to this technical problem. Summary of the invention

[0004] In view of this, the object of the present invention is to provide a slope compensation circuit and a PWM modulation circuit, so that the slope compensation circuit can be applicable to the entire input voltage range of the subharmonic oscillation circuit topology without affecting the working performance of the circuit topology. The specific scheme is as follows:

[0005] A slope compensation circuit, comprising:

[0006] A voltage detection module, used to detect the input voltage of the target topology circuit to obtain the target input voltage; wherein the target topology circuit is a circuit with subharmonic oscillation;

[0007] The slope compensation module is used to output a slope compensation signal and adaptively adjust the strength of the slope compensation signal so that the strength of the slope compensation signal forms a negative correlation with the target input voltage and eliminates subharmonic oscillation of the target topology circuit.

[0008] Preferably, the slope compensation module is specifically a compensation circuit constructed by a transistor, an optocoupler, an operational amplifier or a controllable precision voltage regulator.

[0009] Preferably, the slope compensation module includes: a first switch tube, a second switch tube, the optocoupler, a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor and a power management chip;

[0010] Wherein, the first end of the first switch tube is connected to the first input end of the optocoupler, the second input end of the optocoupler is connected to the first end of the first resistor, the first output end of the optocoupler is respectively connected to the first end of the second resistor and the first end of the second switch tube, the second output end of the optocoupler is connected to the first end of the third resistor, the second end of the third resistor is respectively connected to the second end of the second resistor and the CURRENT end of the power management chip, the second end of the first resistor is connected to the second end of the second switch tube, the first end of the fourth resistor and the VREF end of the power management chip, the control end of the second switch tube is respectively connected to the second end of the fourth resistor, the first end of the first capacitor and the RC / CT end of the power management chip, the second end of the first capacitor is grounded, and the VFB end of the power management chip is grounded;

[0011] Correspondingly, the control end of the first switch tube is used to receive the target input voltage, the OUT end of the power management chip is the output end of the slope compensation module, the CURRENT end of the power management chip is used to receive the slope compensation signal, and the current of the target topology circuit is fed back to the CURRENT end of the power management chip through the target port in the target topology circuit.

[0012] Preferably, the first switch tube is specifically a PNP transistor, and the second switch tube is specifically an NPN transistor;

[0013] Correspondingly, the base of the PNP transistor is the control end of the first switch tube, the emitter of the PNP transistor is the first end of the first switch tube, the collector of the PNP transistor is the second end of the first switch tube, the base of the NPN transistor is the control end of the second switch tube, the collector of the NPN transistor is the first end of the second switch tube, and the emitter of the NPN transistor is the second end of the second switch tube.

[0014] Preferably, it further comprises: a second capacitor;

[0015] The first end of the second capacitor is connected to the second end of the second resistor, and the second end of the second capacitor is grounded.

[0016] Preferably, the voltage detection module includes: a fifth resistor and a sixth resistor;

[0017] Wherein, the second end of the fifth resistor is connected to the first end of the sixth resistor and the control end of the first switch tube respectively;

[0018] Correspondingly, the first end of the fifth resistor is used to receive the input signal of the target topology circuit, and the second end of the sixth resistor is grounded.

[0019] Preferably, it further comprises: a seventh resistor;

[0020] Wherein, the first end of the seventh resistor is connected to the CURRENT end of the power management chip.

[0021] Preferably, the optical coupler is a linear optical coupler.

[0022] Preferably, the target topology circuit is specifically a BUCK circuit, a flyback circuit or a forward circuit.

[0023] Correspondingly, the present invention also discloses a PWM modulation circuit, including a slope compensation circuit as disclosed above.

[0024] It can be seen that in the slope compensation circuit provided by the present invention, since the intensity of the slope compensation signal output by the slope compensation module can form a negative correlation with the target input voltage of the target topology circuit detected by the voltage detection module, the slope compensation signal output by the slope compensation module can adaptively change with the input voltage of the target topology circuit. Compared with the prior art, since the slope compensation circuit will not be limited by the input voltage range of the target topology circuit, and will not affect the working performance of the target topology circuit. Therefore, the use of the slope compensation circuit can make the slope compensation circuit applicable to the entire input voltage range of the subharmonic oscillation circuit topology without affecting the working performance of the circuit topology. Correspondingly, a PWM modulation circuit provided by the present invention also has the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0026] Figure 1 A structural diagram of a slope compensation circuit provided by an embodiment of the present invention;

[0027] Figure 2 A structural diagram of a slope compensation module provided by an embodiment of the present invention;

[0028] Figure 3 A structural diagram of another slope compensation circuit provided by an embodiment of the present invention;

[0029] Figure 4 To use Figure 3 The slope compensation circuit shown is a schematic diagram of performing slope compensation on a BUCK circuit. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0031] See also Figure 1 , Figure 1 A structural diagram of a slope compensation circuit provided by an embodiment of the present invention, the circuit includes:

[0032] A voltage detection module 11 is used to detect the input voltage of the target topology circuit to obtain a target input voltage; wherein the target topology circuit is a circuit with a sub-slope oscillation;

[0033] The slope compensation module 12 is used to output a slope compensation signal and adaptively adjust the strength of the slope compensation signal so that the strength of the slope compensation signal forms a negative correlation with the target input voltage and eliminates subharmonic oscillation of the target topology circuit.

[0034] In this embodiment, a slope compensation circuit is provided. By using the slope compensation circuit, the circuit can be applied to the entire input voltage range of the subharmonic oscillation circuit topology without affecting the working performance of the circuit topology.

[0035] The slope compensation circuit is provided with a voltage detection module 11 and a slope compensation module 12, wherein the voltage detection module 11 is used to detect the input voltage of the target topology circuit to obtain the target input voltage. In practical applications, the voltage detection module 11 can be set as a resistor voltage divider circuit to detect the input voltage of the target topology circuit, or the voltage detection module 11 can be set as an operational amplifier to detect the input voltage of the target topology circuit, or a voltage detector can be directly used to detect the input voltage of the target topology circuit.

[0036] The slope compensation module 12 is used to output a slope compensation signal and adaptively adjust the intensity of the slope compensation signal so that the intensity of the slope compensation signal forms a negative correlation with the target input voltage of the target topology circuit, thereby eliminating the subharmonic oscillation of the target topology circuit. It can be imagined that when the intensity of the slope compensation signal output by the slope compensation module 12 can form a negative correlation with the target input voltage of the target topology circuit, the slope compensation signal output by the slope compensation module 12 can change in real time with the change of the input voltage of the target topology circuit, which is equivalent to allowing the slope compensation module 12 to adaptively adjust the intensity of its output slope compensation signal according to the input voltage of the target topology circuit, so under this setting mode, the working performance of the target topology circuit will not be affected. In addition, since the intensity of the slope compensation signal output by the slope compensation module 12 can form a negative correlation with the target input voltage of the target topology circuit, the slope compensation circuit can be applied to the entire input voltage range of the target topology circuit.

[0037] Specifically, in practical applications, a transistor, an optocoupler, an operational amplifier or a controllable precision voltage regulator can be used to build the slope compensation module 12. Since the construction method of the slope compensation module 12 is common knowledge for those skilled in the art, the specific structure of the slope compensation module 12 will not be described in detail here.

[0038] In addition, in actual applications, the target topology circuit can be set to a BUCK circuit (step-down conversion circuit), a flyback circuit or a forward circuit. Since these circuits are typical circuits with subharmonic oscillations, the slope compensation circuit provided in the present application can be used in actual operations to eliminate the subharmonic oscillations of the BUCK circuit, the flyback circuit or the forward circuit, thereby enabling the BUCK circuit, the flyback circuit or the forward circuit to work better.

[0039] It can be seen that in the slope compensation circuit provided in the present embodiment, since the intensity of the slope compensation signal output by the slope compensation module can form a negative correlation with the target input voltage of the target topology circuit detected by the voltage detection module, the slope compensation signal output by the slope compensation module can be adaptively changed as the input voltage of the target topology circuit changes. Compared with the prior art, since the slope compensation circuit is not limited by the input voltage range of the target topology circuit, and also does not affect the working performance of the target topology circuit. Therefore, the use of the slope compensation circuit can make the slope compensation circuit applicable to the entire input voltage range of the subharmonic oscillation circuit topology without affecting the working performance of the circuit topology.

[0040] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. Figure 2 , Figure 2 A structural diagram of a slope compensation module provided by an embodiment of the present invention. As a preferred implementation, the slope compensation circuit includes: a first switch Q1 tube, a second switch Q2 tube, an optical coupler PC, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a first capacitor C1 and a power management chip U;

[0041] Wherein, the first end of the first switch Q1 tube is connected to the first input end of the optocoupler PC, the second input end of the optocoupler PC is connected to the first end of the first resistor R1, the first output end of the optocoupler PC is respectively connected to the first end of the second resistor R2 and the first end of the second switch Q2 tube, the second output end of the optocoupler PC is connected to the first end of the third resistor R3, the second end of the third resistor R3 is respectively connected to the second end of the second resistor R2 and the CURRENT end of the power management chip U, the second end of the first resistor R1 is connected to the second end of the second switch Q2 tube, the first end of the fourth resistor R4 and the VREF end of the power management chip U, the control end of the second switch Q2 tube is respectively connected to the second end of the fourth resistor R4, the first end of the first capacitor C1 and the RC / CT end of the power management chip U, the second end of the first capacitor C1 is grounded, and the VFB end of the power management chip U is grounded;

[0042] Correspondingly, the control end of the first switch Q1 tube is used to receive the target input voltage, the OUT end of the power management chip is the output end of the slope compensation module, the CURRENT end of the power management chip is used to receive the slope compensation signal, and the current of the target topology circuit is fed back to the CURRENT end of the power management chip through the target port in the target topology circuit.

[0043] In the slope compensation circuit provided in this embodiment, the control end of the first switch tube Q1 is used to receive the target input voltage of the target topology circuit. In practical applications, the first switch tube Q1 and the second switch tube Q2 can be set to MOS tubes (Metal Oxide Semiconductor Field Effect Transistor, metal half field effect transistors), IGBTs (Insulated Gate Bipolar Transistor, insulated gate bipolar transistors) or triodes.

[0044] Specifically, in this embodiment, the first switch tube Q1 can be set as a PNP transistor, and the second switch tube Q2 can be set as an NPN transistor. Because the manufacturing cost of the transistor is relatively low compared with other types of switch tubes, when the first switch tube Q1 is set as a PNP transistor and the second switch tube Q2 is set as an NPN transistor, the setting cost of the slope compensation circuit can be further reduced.

[0045] When the first switch tube Q1 is set as a PNP transistor and the second switch tube Q2 is set as an NPN transistor, the base of the first switch tube Q1 is used to receive the target input voltage of the target topology circuit, the emitter of the first switch tube Q1 is connected to the first input end of the optocoupler PC, the second input end of the optocoupler PC is connected to the first end of the first resistor R1, the first output end of the optocoupler PC is connected to the emitter of the second switch tube Q2, the second output end of the optocoupler PC is connected to the third resistor R3, and the second resistor R2 and the third resistor R3 are jointly connected to the CURRENT pin of the power management chip U. The second end of the first resistor R1 is connected to the VREF pin of the power management chip U for outputting a reference voltage. The fourth resistor R4 and the first capacitor C1 form an oscillation circuit for generating a sawtooth wave at the RC / CT pin of the power management chip U, and the second switch tube Q2 and the second resistor R2 jointly form a slope compensation circuit of fixed strength.

[0046] In this embodiment, the optocoupler PC can be set to a linear optocoupler, because the current transfer characteristic curve of the linear optocoupler is close to a straight line, and isolation control can be performed with linear characteristics. If a nonlinear optocoupler is used, the oscillation waveform may deteriorate and abnormal oscillation may occur. Therefore, in this embodiment, the optocoupler PC needs to be set to a linear optocoupler.

[0047] See also Figure 3 , Figure 3A structural diagram of another slope compensation circuit provided by an embodiment of the present invention. In this embodiment, in order to filter the sampled current of the CURRENT pin of the power management chip U, a second capacitor C2 may be further provided in the slope compensation circuit, wherein a first end of the second capacitor C2 is connected to a second end of the second resistor R2, and a second end of the second capacitor C2 is grounded.

[0048] Furthermore, in order to further simplify the circuit structure of the slope compensation circuit, two resistors can be directly used to build a voltage detection module. That is, the fifth resistor R5 and the sixth resistor R6 are used to build the voltage detection module 11; wherein the second end of the fifth resistor R5 is respectively connected to the first end of the sixth resistor R6 and the control end of the first switch tube Q1; accordingly, the first end of the fifth resistor R5 is used to receive the input signal of the target topology circuit, and the second end of the sixth resistor R6 is grounded.

[0049] As a preferred implementation, the slope compensation circuit further includes: a seventh resistor R7;

[0050] The first end of the seventh resistor R7 is connected to the CURRENT end of the power management chip U.

[0051] It is understandable that the CURRENT port of the power management chip U can feed back the instantaneous current output by the power management chip U. In this embodiment, in order to enable the instantaneous current in the power management chip U to be fed back more smoothly to the circuit connected to the back end of the power management chip U, a seventh resistor R7 can also be connected to the CURRENT end of the power management chip U to limit the instantaneous current output by the power management chip U.

[0052] See also Figure 3 ,exist Figure 3 In the example, the BUCK circuit is connected to the back end of the power management chip U. In addition, the current of the BUCK circuit is fed back to the CURRENT end of the power management chip U through the CS port in the BUCK circuit. At the same time, the OUT end of the power management chip U is connected to the control end of the switch tube VT in the BUCK circuit through the isolation module. Figure 3The working principle of the slope compensation circuit shown is described in detail. When the BUCK circuit receives power supply, the proportional voltage divider circuit composed of the fifth resistor R5 and the sixth resistor R6 will make the voltage across the sixth resistor R6 within the amplification area of ​​the first switch tube Q1. When the input voltage of the BUCK circuit increases, the slope compensation strength required by the BUCK circuit decreases, and the slope compensation current required by the CURRENT end of the power management chip U decreases. Then the working principle of the slope compensation circuit at this time is: the input voltage of the BUCK circuit increases → the voltage across the sixth resistor R6 increases → the base current of the first switch tube Q1 decreases → the current of the collector of the first switch tube Q1 decreases → the current of the primary side of the optocoupler PC decreases → the current of the secondary side of the optocoupler PC decreases → the current flowing from the third resistor R3 to the CURRENT end of the power management chip U decreases, thereby realizing the working mechanism that the higher the input voltage of the BUCK circuit, the weaker the slope compensation strength of the slope compensation circuit.

[0053] When the input voltage of the BUCK circuit is reduced, the slope compensation intensity required by the BCUK circuit increases, and the slope compensation current required by the CURRENT end of the power management chip U increases. Then the working principle of the slope compensation circuit at this time is: the input voltage of the BUCK circuit is reduced → the voltage across the sixth resistor R6 is reduced → the base current of the first switch tube Q1 increases → the current of the collector of the first switch tube Q1 increases → the current of the primary side of the optocoupler PC increases → the current of the secondary side of the optocoupler PC increases → the current flowing from the third resistor R3 to the CURRENT end of the current management chip U increases, thereby realizing the working mechanism that the lower the input voltage of the BUCK circuit, the stronger the slope compensation intensity of the slope compensation circuit.

[0054] See also Figure 4 , Figure 4 To use Figure 3 The schematic diagram of the slope compensation circuit shown in FIG. 1 is a schematic diagram of the slope compensation circuit for the BUCK circuit. Figure 4 In the figure, the horizontal axis represents time t, and the vertical axis represents voltage V. Curve 1 represents the input voltage variation curve of the BUCK circuit; Curve 2 represents the variation curve of the slope compensation intensity outputted by the fixed intensity slope compensation circuit composed of the second switch tube Q2 and the second resistor R2 to the BUCK circuit; Curve 3 represents the variation curve of the slope compensation intensity outputted by the adaptive adjustment intensity slope compensation circuit composed of the first switch tube Q1, the second switch tube Q2, the optocoupler PC, the first resistor R1, the third resistor R3, the fourth resistor R4, the first capacitor C1 and the second capacitor C2 to the BUCK circuit; Curve 4 represents the variation curve of the slope compensation intensity outputted by the combined slope compensation circuit composed of the first switch tube Q1, the second switch tube Q2, the optocoupler PC, the first resistor R1, the second resistor R2, the third resistor R3, the fourth resistor R4, the first capacitor C1 and the second capacitor C2 to the BUCK circuit. From Figure 4It can be seen that the slope compensation circuit provided in the present application can adaptively adjust the strength of the slope compensation signal provided to the BUCK circuit.

[0055] Obviously, through the technical solution provided in this embodiment, the slope compensation circuit can be applied to the entire input voltage range of the BUCK circuit without affecting the working performance of the BUCK circuit.

[0056] Correspondingly, an embodiment of the present invention further discloses a PWM modulation circuit, including a slope compensation circuit as disclosed above.

[0057] A PWM (Pulse Width Modulation) modulation circuit provided in an embodiment of the present invention has the beneficial effects of the aforementioned slope compensation circuit.

[0058] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0059] A slope compensation circuit and a PWM modulation circuit provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A slope compensation circuit, characterized in that: include: A voltage detection module, used to detect the input voltage of the target topology circuit to obtain the target input voltage; wherein the target topology circuit is a circuit with subharmonic oscillation; A slope compensation module, used for outputting a slope compensation signal and adaptively adjusting the strength of the slope compensation signal so that the strength of the slope compensation signal forms a negative correlation with the target input voltage and eliminates subharmonic oscillation of the target topology circuit; The slope compensation module is specifically a compensation circuit constructed by a transistor, an optocoupler, an operational amplifier or a controllable precision voltage regulator; The slope compensation module includes: a first switch tube, a second switch tube, the optical coupler, a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor and a power management chip; Wherein, the first end of the first switch tube is connected to the first input end of the optocoupler, the second input end of the optocoupler is connected to the first end of the first resistor, the first output end of the optocoupler is respectively connected to the first end of the second resistor and the first end of the second switch tube, the second output end of the optocoupler is connected to the first end of the third resistor, the second end of the third resistor is respectively connected to the second end of the second resistor and the CURRENT end of the power management chip, the second end of the first resistor is connected to the second end of the second switch tube, the first end of the fourth resistor and the VREF end of the power management chip, the control end of the second switch tube is respectively connected to the second end of the fourth resistor, the first end of the first capacitor and the RC / CT end of the power management chip, the second end of the first capacitor is grounded, and the VFB end of the power management chip is grounded; Correspondingly, the control end of the first switch tube is used to receive the target input voltage, the OUT end of the power management chip is the output end of the slope compensation module, the CURRENT end of the power management chip is used to receive the slope compensation signal, and the current of the target topology circuit is fed back to the CURRENT end of the power management chip through the target port in the target topology circuit.

2. The slope compensation circuit according to claim 1, characterized in that: The first switch tube is specifically a PNP transistor, and the second switch tube is specifically an NPN transistor; Correspondingly, the base of the PNP transistor is the control end of the first switch tube, the emitter of the PNP transistor is the first end of the first switch tube, the collector of the PNP transistor is the second end of the first switch tube, the base of the NPN transistor is the control end of the second switch tube, the collector of the NPN transistor is the first end of the second switch tube, and the emitter of the NPN transistor is the second end of the second switch tube.

3. The slope compensation circuit according to claim 1, characterized in that: Also includes: A second capacitor; The first end of the second capacitor is connected to the second end of the second resistor, and the second end of the second capacitor is grounded.

4. The slope compensation circuit according to claim 1, characterized in that: The voltage detection module includes: a fifth resistor and a sixth resistor; Wherein, the second end of the fifth resistor is connected to the first end of the sixth resistor and the control end of the first switch tube respectively; Correspondingly, the first end of the fifth resistor is used to receive the input signal of the target topology circuit, and the second end of the sixth resistor is grounded.

5. The slope compensation circuit according to claim 1, characterized in that: Also includes: The seventh resistor; Wherein, the first end of the seventh resistor is connected to the CURRENT end of the power management chip.

6. The slope compensation circuit according to claim 1, characterized in that: The optical coupler is specifically a linear optical coupler.

7. The slope compensation circuit according to any one of claims 1 to 6, characterized in that: The target topology circuit is specifically a BUCK circuit, a flyback circuit or a forward circuit.

8. A PWM modulation circuit, characterized in that: The invention comprises a slope compensation circuit as claimed in any one of claims 1 to 7.