Slope compensation circuit, control method thereof, electrical apparatus, and storage medium
By connecting the ramp compensation module to the oscillation end and current detection end of the drive module in the ramp compensation circuit, and controlling the voltage at the current detection end by using the control module, the loop instability problem when the duty cycle is less than 0.5 in the prior art is solved. , realizes voltage control at the current detection terminal to ensure normal driving function.
Patent Information
- Application Number
- CN202411160421.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-11-26
AI Technical Summary
When the duty cycle of the existing ramp compensation circuit is less than 0.5, the voltage of the current detection pin changes with the voltage of the oscillator CT of the drive control chip, resulting in loop instability and inductance components.
A ramp compensation circuit is designed, including a drive module, a ramp compensation module and a control module. By connecting the ramp compensation module to the oscillation end and current detection end of the drive module, a ramp compensation signal is provided, and the drive signal is outputted through the control module according to the switch drive signal. Control the signal and control the voltage at the current detection terminal to ensure that the voltage at the current detection terminal is lower than the threshold voltage of the driving module.
It effectively avoids the problem of loop instability when the duty cycle is less than 0.5, ensures that the driving function of the drive module is normally activated, and solves the inductor component howling phenomenon.
Smart Images

Figure CN119030284A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power electronics technology, and in particular to a slope compensation circuit and a control method thereof, an electrical device and a storage medium. Background Art
[0002] In the field of switching power supplies, for a Buck circuit, a Boost circuit or a Buck-Boost circuit with a wide voltage input, when the duty cycle is greater than 0.5, slope compensation is required to suppress subharmonic oscillations in the circuit topology.
[0003] In the prior art, slope compensation is generally achieved by adding a transistor between the oscillator pin and the current detection pin of the driver control chip. However, when the duty cycle is less than 0.5, after the switch of the main circuit is turned off, the voltage of the current detection pin still follows the oscillator CT voltage of the driver control chip, and the signal waveform is as follows: Figure 1 As shown, when the PWM is turned on in the next cycle, the voltage of the current detection pin is higher than the threshold voltage of the drive control chip, the drive cannot be turned on, and one or more carrier cycles are lost, thereby generating loop oscillation and the inductor component generates howling. Summary of the invention
[0004] The main purpose of the present application is to provide a slope compensation circuit and a control method thereof, an electrical device and a storage medium, aiming to solve the problem of loop instability in the existing slope compensation circuit when the duty cycle is small.
[0005] To achieve the above object, the present application provides a slope compensation circuit, the slope compensation circuit comprising:
[0006] A driving module, the driving module is used to output a switch driving signal;
[0007] A slope compensation module, wherein a first end of the slope compensation module is connected to an oscillation end of the driving module, a second end of the slope compensation module is connected to a current detection end of the driving module, and the slope compensation module is used to provide a slope compensation signal to the current detection end;
[0008] A control module, wherein the input end of the control module is connected to the driving signal output end of the driving module, and the output end of the control module is connected to the current detection end. The control module is used to output a corresponding control signal according to the switch driving signal output by the driving signal output end to control the voltage of the current detection end.
[0009] In one embodiment, the control module includes a first switch tube and a second switch tube;
[0010] The controlled end of the first switch tube is connected to the drive signal output end, the first end of the first switch tube is respectively connected to the power supply and the controlled end of the second switch tube, and the second end of the first switch tube is grounded;
[0011] A first end of the second switch tube is connected to the current detection end, and a second end of the second switch tube is grounded.
[0012] In one embodiment, the control module further includes a first resistor, a second resistor, a third resistor and a fourth resistor;
[0013] The first end of the first resistor is connected to the drive signal output end, the second end of the first resistor is connected to the controlled end of the first switch tube, the first end of the second resistor is connected to the controlled end of the first switch tube, the second end of the second resistor is connected to the second end of the first switch tube, the first end of the third resistor is connected to the power supply, the second end of the third resistor is connected to the first end of the first switch tube, the first end of the fourth resistor is connected to the controlled end of the second switch tube, and the second end of the fourth resistor is grounded.
[0014] In one implementation, the slope compensation module includes a third switch tube and a fifth resistor;
[0015] The controlled end of the third switch tube is connected to the oscillation end, the first end of the third switch tube is connected to the reference power supply, the second end of the third switch tube is connected to the first end of the fifth resistor, and the second end of the fifth resistor is connected to the current detection end.
[0016] In one implementation, the slope compensation module further includes a sixth resistor, a seventh resistor and a first capacitor;
[0017] The first end of the sixth resistor and the first end of the first capacitor are respectively connected to the current detection end, the second end of the sixth resistor is connected to the first end of the seventh resistor, and the second end of the first capacitor and the second end of the seventh resistor are respectively grounded.
[0018] In one embodiment, the slope compensation circuit further includes an oscillation module;
[0019] The first end of the oscillation module is connected to a reference power source, the second end of the oscillation module is connected to the oscillation end, and the oscillation module is used to provide an operating frequency to the driving module.
[0020] In one embodiment, the oscillation module includes an eighth resistor and a second capacitor;
[0021] A first end of the eighth resistor is connected to the reference power supply, a second end of the eighth resistor and a first end of the second capacitor are respectively connected to the oscillation end, and a second end of the second capacitor is grounded.
[0022] In addition, the present application also provides a slope compensation circuit control method, which is applied to the above-mentioned slope compensation circuit, and the slope compensation circuit control method includes:
[0023] A switch driving signal outputted from a driving signal output terminal of a receiving driving module, wherein the switch driving signal includes a high level signal and a low level signal;
[0024] If the switch driving signal is a high level signal, the output control signal is a shutdown signal to disconnect the connection between the control module and the current detection terminal of the driving module, and the current detection terminal normally receives the signal obtained after being compensated by the slope compensation signal provided by the slope compensation module;
[0025] If the switch driving signal is a low level signal, the output control signal is a clamping voltage signal to clamp the voltage of the current detection end, and the clamping voltage signal is smaller than the current detection threshold voltage of the driving module.
[0026] In addition, the present application also provides an electrical device, which includes the above-mentioned slope compensation circuit.
[0027] In addition, the present application also provides a computer-readable storage medium, on which a slope compensation circuit control program is stored. When the slope compensation circuit control program is executed by a processor, the steps of the above-mentioned slope compensation circuit control method are implemented.
[0028] The slope compensation circuit provided in the present application includes a driving module, a slope compensation module and a control module. By connecting the slope compensation module to the oscillation end and the current detection end of the driving module, the slope compensation module can provide a slope compensation signal to the current detection end of the driving module based on the voltage of the oscillation end to achieve slope compensation. At the same time, by connecting the input end of the control module to the driving signal output end of the driving module and the output end of the control module to the current detection end, the control module can output a corresponding control signal to the current detection end according to the switch driving signal output by the driving module to control the voltage of the current detection end, so that the voltage of the current detection end can be controlled according to the waveform of the switch driving signal, avoiding that the voltage of the current detection end still follows the voltage change of the oscillation end after the switch of the main circuit is turned off. Therefore, at the opening moment of the next cycle of the switch driving signal, the voltage of the current detection end can be controlled by the control signal to be lower than the current detection threshold voltage of the driving module, so that the driving function of the driving module is normally opened, and the driving module can continue to output the switch driving signal normally, solving the problem that the loop cannot be normally stable after the slope compensation is added and the duty ratio of the switch driving signal is small. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present application 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 some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
[0030] Figure 1 A signal waveform diagram after using the slope compensation circuit control method of the prior art;
[0031] Figure 2 A schematic diagram of the structure of an embodiment of a slope compensation circuit provided by the present application;
[0032] Figure 3 A schematic diagram of the structure of another embodiment of the slope compensation circuit provided by the present application;
[0033] Figure 4 A circuit diagram of a control module involved in an embodiment of the present application;
[0034] Figure 5 A schematic diagram of a circuit of a driving module, a slope compensation module and an oscillation module involved in an embodiment of the present application;
[0035] Figure 6 A flow chart of the slope compensation circuit control method provided in this application;
[0036] Figure 7 For use Figure 6 The signal waveform diagram after the slope compensation circuit control method is shown.
[0037] Description of Figure Numbers:
[0038] 10. Slope compensation circuit; 100. Driving module; 200. Slope compensation module; 300. Control module; 400. Oscillation module; R1-R8. First resistor to eighth resistor; Q1-Q3. First switch tube to third switch tube; C1-C3. First capacitor to third capacitor.
[0039] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0041] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0042] In this application, the term "comprises", "includes" or any other variation thereof is intended to cover non-exclusive inclusion, so that a device or system including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such a device or system. In the absence of more restrictions, an element defined by the sentence "includes..." does not exclude the presence of other identical elements in the device or system including the element.
[0043] In addition, in this application, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0044] If there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features.
[0045] In the field of switching power supplies, for a Buck circuit, a Boost circuit or a Buck-Boost circuit with a wide voltage input, when the duty cycle is greater than 0.5, slope compensation is required to suppress subharmonic oscillations in the circuit topology.
[0046] In the prior art, slope compensation is generally achieved by adding a transistor between the oscillator pin and the current detection pin of the driver control chip. However, when the duty cycle is less than 0.5, after the switch of the main circuit is turned off, the voltage of the current detection pin still follows the oscillator CT voltage change of the driver control chip, resulting in the voltage of the current detection pin being higher than the threshold voltage of the driver control chip when the PWM is turned on in the next cycle, and the driver cannot be turned on, and one or more carrier cycles are lost, thereby generating loop oscillation and the inductor generating howling.
[0047] In summary, in order to solve the problem of loop instability in the above-mentioned conventional slope compensation circuit when the duty cycle is small, the present application provides a slope compensation circuit and a control method thereof, an electrical device and a storage medium.
[0048] In one embodiment of the present application, please refer to Figure 2 , Figure 2 This is a schematic diagram of the structure of an embodiment of a slope compensation circuit provided in the present application. The slope compensation circuit 10 provided in the present application includes:
[0049] A driving module 100, wherein the driving module 100 is used to output a switch driving signal;
[0050] A slope compensation module 200, wherein a first end of the slope compensation module 200 is connected to an oscillation end of the driving module 100, a second end of the slope compensation module 200 is connected to a current detection end of the driving module 100, and the slope compensation module 200 is used to provide a slope compensation signal to the current detection end;
[0051] A control module 300, wherein the input end of the control module 300 is connected to the drive signal output end of the drive module 100, and the output end of the control module 300 is connected to the current detection end. The control module 300 is used to output a corresponding control signal according to the switch drive signal output by the drive signal output end to control the voltage of the current detection end.
[0052] In this embodiment, by connecting the slope compensation module 200 to the oscillation terminal and the current detection terminal of the driving module 100, the slope compensation module 200 can provide a slope compensation signal to the current detection terminal of the driving module 100 based on the voltage of the oscillation terminal to achieve slope compensation. At the same time, by connecting the input end of the control module 300 to the drive signal output end of the driving module 100, and connecting the output end of the control module 300 to the current detection end, the control module 300 can output a corresponding control signal to the current detection end according to the switch drive signal output by the driving module 100 to control the voltage of the current detection end, so that the voltage of the current detection end can be controlled according to the waveform of the switch drive signal, avoiding the voltage of the current detection end following the voltage change of the oscillation end after the switch of the main circuit is turned off. Therefore, at the opening moment of the next cycle of the switch drive signal, the voltage of the current detection end can be controlled by the control signal to be lower than the current detection threshold voltage of the driving module 100, so that the driving function of the driving module 100 is normally turned on, and the driving module 100 can continue to output the switch drive signal normally, thereby solving the problem that the loop cannot be normally stabilized after the slope compensation is added and the duty ratio of the switch drive signal is small.
[0053] It should be noted that the switch driving signal output by the driving module 100 is used to drive the switch of the main circuit of the device to turn on or off, for example, it can be used to drive the switch tube on the Buck circuit, Boost circuit or Buck-Boost circuit to turn on or off.
[0054] Further, in some feasible embodiments, please refer to Figure 4 , Figure 4 Schematic diagram of a control module according to an embodiment of the present application. The control module 300 includes a first switch tube Q1 and a second switch tube Q2;
[0055] The controlled end of the first switch tube Q1 is connected to the drive signal output end, the first end of the first switch tube Q1 is respectively connected to the power supply VCC and the controlled end of the second switch tube Q2, and the second end of the first switch tube Q1 is grounded;
[0056] A first end of the second switch tube Q2 is connected to the current detection end, and a second end of the second switch tube Q2 is grounded.
[0057] In this embodiment, the first switch tube Q1 may be an NPN transistor, the second switch tube Q2 may be an N-channel MOS tube, and the driving module 100 includes a driving control chip, and the specific model may be UC2842. By connecting the base of the first switch tube Q1 to the driving signal output pin OUTPUT of the driving control chip UC2842, the first switch tube Q1 can be turned on or off based on the switch driving signal output by the driving control chip UC2842, that is, the first switch tube Q1 can change with the state change of the switch of the main circuit, and at the same time, the collector of the first switch tube Q1 is connected to the gate of the second switch tube Q2, and the drain of the second switch tube Q2 is connected to the current detection pin ISENSE of the driving control chip UC2842, and the source of the second switch tube Q2 is grounded. With such a configuration, when the drive signal output pin OUTPUT of the drive control chip UC2842 outputs a switch drive signal to drive the switch of the main circuit, if the switch drive signal is a high-level signal at this time, the first switch tube Q1 is turned on, the gate of the second switch tube Q2 is grounded, and the second switch tube Q2 is turned off, and the second switch tube Q2 is disconnected from the drive control chip UC2842, and the current detection pin ISENSE of the drive control chip UC2842 normally receives the signal compensated by the slope compensation signal; if the switch drive signal is a low-level signal at this time, the first switch tube Q1 is turned off, and the gate of the second switch tube Q2 is connected to the power supply. When the power supply VCC is used, the second switch tube Q2 is turned on, so that the current detection pin ISENSE of the drive control chip UC2842 is grounded, and the signal of the current detection pin ISENSE is pulled down to 0V, thereby ensuring that the voltage of the current detection pin ISENSE is lower than the current detection threshold voltage inside the drive control chip UC2842 when the next cycle of the switch drive signal is started, and the drive function of the drive control chip UC2842 is normally turned on. The drive control chip UC2842 can continue to output the switch drive signal normally, solving the problem that the loop cannot be normally stable after adding slope compensation and the duty ratio of the switch drive signal is small. It should be noted that the first switch tube Q1 and the second switch tube Q2 can also be other types of switch tubes, such as IGBT, thyristor, etc., and the drive control chip can also be other types of chips, such as UC2843, UC3842, UC3843, etc., which are not limited in this embodiment.
[0058] Further, in some feasible embodiments, please continue to refer to Figure 4 , the control module 300 further includes a first resistor R1, a second resistor R2, a third resistor R3 and a fourth resistor R4;
[0059] A first end of the first resistor R1 is connected to the driving signal output end, a second end of the first resistor R1 is connected to the controlled end of the first switch tube Q1, a first end of the second resistor R2 is connected to the controlled end of the first switch tube Q1, a second end of the second resistor R2 is connected to the second end of the first switch tube Q1, a first end of the third resistor R3 is connected to the power supply VCC, a second end of the third resistor R3 is connected to the first end of the first switch tube Q1, a first end of the fourth resistor R4 is connected to the controlled end of the second switch tube Q2, and a second end of the fourth resistor R4 is grounded.
[0060] In this embodiment, the first resistor R1 limits the current flowing through the controlled end of the first switch tube Q1 to prevent excessive current from damaging the first switch tube Q1, and the second resistor R2 provides a stable bias current for the first switch tube Q1 to reduce the impact of temperature changes on the working state of the first switch tube Q1. At the same time, the third resistor R3 and the fourth resistor R4 form a voltage divider circuit. When the switch drive signal is a low-level signal, the first switch tube Q1 is turned off, and the power supply VCC is connected to the gate of the second switch tube Q2 after the voltage is divided by the third resistor R3 and the fourth resistor R4, so that the second switch tube Q2 is turned on, thereby clamping the voltage of the current detection end of the driving module 100, so that the voltage of the current detection end of the driving module 100 is below the current detection threshold voltage of the driving module 100.
[0061] Further, in some other feasible embodiments, please refer to Figure 5 , Figure 5 Schematic diagram of the circuit of the driving module, slope compensation module and oscillation module involved in the embodiment of the present application. The slope compensation module 200 includes a third switch tube Q3 and a fifth resistor R5;
[0062] The controlled end of the third switch tube Q3 is connected to the oscillation end, the first end of the third switch tube Q3 is connected to the reference power supply, the second end of the third switch tube Q3 is connected to the first end of the fifth resistor R5, and the second end of the fifth resistor R5 is connected to the current detection end.
[0063] In this embodiment, the slope compensation module 200 includes a third switch tube Q3 and a fifth resistor R5, the driving module 100 includes a driving control chip UC2842, the controlled end of the third switch tube Q3 is connected to the oscillation pin RT / CT of the driving control chip UC2842, and the second end of the fifth resistor R5 is connected to the current detection pin ISENSE of the driving control chip UC2842. The slope compensation is achieved by using the third switch tube Q3 to follow the oscillation voltage of the oscillation pin RT / CT of the driving control chip UC2842, and superimposing the slope compensation signal obtained after the voltage division of the fifth resistor R5 on the current detection pin ISENSE of the driving control chip UC2842. It should be noted that the first end of the third switch tube Q3 can be connected to the reference voltage pin VREF of the driving control chip UC2842, and the driving control chip UC2842 provides a reference power supply to the third switch tube Q3.
[0064] Further, in some feasible embodiments, please continue to refer to Figure 5 , the slope compensation module 200 further includes a sixth resistor R6, a seventh resistor R7 and a first capacitor C1;
[0065] The first end of the sixth resistor R6 and the first end of the first capacitor C1 are respectively connected to the current detection end, the second end of the sixth resistor R6 is connected to the first end of the seventh resistor R7, and the second end of the first capacitor C1 and the second end of the seventh resistor R7 are respectively grounded.
[0066] In this embodiment, the common end of the sixth resistor R6 and the seventh resistor R7 can be used as a current sampling end, which is used to sample the current of the inductor element in the main loop, and the sampling voltage signal is superimposed with the slope compensation signal after voltage division by the sixth resistor R6 and the seventh resistor R7, and finally the voltage signal obtained after superposition compensation is input to the current detection end of the driving module 100 to achieve slope compensation. At the same time, the RC filter formed by the sixth resistor R6 and the first capacitor C1 can well suppress the influence of the switching front edge spike on the current detection end of the driving module 100.
[0067] Further, in some other feasible embodiments, please refer to Figure 3 , the slope compensation circuit 10 further includes an oscillation module 400;
[0068] A first end of the oscillation module 400 is connected to a reference power source, a second end of the oscillation module 400 is connected to the oscillation end, and the oscillation module 400 is used to provide an operating frequency to the driving module 100 .
[0069] In this embodiment, the slope compensation circuit 10 further includes an oscillating module 400 . By connecting the oscillating module 400 to an oscillating end of the driving module 100 , an operating frequency can be provided for the driving module 100 .
[0070] Further, in some feasible embodiments, please continue to refer to Figure 5 , the oscillation module 400 includes an eighth resistor R8 and a second capacitor C2;
[0071] A first end of the eighth resistor R8 is connected to the reference power supply, a second end of the eighth resistor R8 and a first end of the second capacitor C2 are respectively connected to the oscillation end, and a second end of the second capacitor C2 is grounded.
[0072] In this embodiment, the eighth resistor R8 and the second capacitor C2 form an oscillation module 400, which is used to provide an operating frequency for the driving module 100. It should be noted that the driving module 100 includes a driving control chip UC2842, and the first end of the eighth resistor R8 can be connected to the reference voltage pin VREF of the driving control chip UC2842. At this time, the driving control chip UC2842 provides a reference power supply to the third switch tube Q3, and the common end between the eighth resistor R8 and the second capacitor C2 is connected to the oscillation pin RT / CT of the driving control chip UC2842, so that the oscillation pin RT / CT of the driving control chip UC2842 generates a sawtooth wave, and then obtains a slope compensation signal after passing through the slope compensation module 200, and finally the slope compensation signal is superimposed on the current detection pin ISENSE of the driving control chip UC2842 to achieve slope compensation.
[0073] The present application also provides a slope compensation circuit control method, Figure 6 is a flow chart of a slope compensation circuit control method provided in an embodiment of the present application, Figure 7 For use Figure 6 The signal waveform diagram after the slope compensation circuit control method is shown. The process in this embodiment is executed by the slope compensation circuit of the above embodiment, wherein each step can be performed in sequence in the order as shown in the flowchart during the operation, or multiple steps can be performed simultaneously according to the actual situation, which is not limited here. The slope compensation circuit control method includes:
[0074] Step S501: receiving a switch driving signal outputted from a driving signal output terminal of the driving module 100, wherein the switch driving signal includes a high level signal and a low level signal;
[0075] Step S502: if the switch driving signal is a high level signal, the output control signal is a shutdown signal to disconnect the control module 300 from the current detection terminal of the driving module 100, and the current detection terminal normally receives the signal obtained after being compensated by the slope compensation signal provided by the slope compensation module 200;
[0076] Step S503 : if the switch driving signal is a low level signal, the output control signal is a clamping voltage signal to clamp the voltage of the current detection end, and the clamping voltage signal is smaller than the current detection threshold voltage of the driving module 100 .
[0077] Specifically, in step S501, when the driving module 100 outputs a switch driving signal to the switch of the main circuit, the switch driving signal is also input into the control module 300. The switch driving signal output by the driving module 100 is a PWM signal, including a high level signal and a low level signal.
[0078] Specifically, in step S502, after receiving the switch driving signal, if the switch driving signal is a high-level signal at this time, the control module 300 outputs a shutdown signal to the current detection end of the driving module 100, so that the connection between the control module 300 and the current detection end of the driving module 100 is disconnected, and the current detection end of the driving module 100 can normally receive the signal obtained after compensation by the slope compensation signal provided by the slope compensation module 200, thereby realizing slope compensation.
[0079] Specifically, in step S503, after receiving the switch drive signal, if the switch drive signal is a low level signal at this time, the control module 300 outputs a clamping voltage signal to the current detection end of the driving module 100 to clamp the voltage of the current detection end, and the clamping voltage signal is less than the current detection threshold voltage of the driving module 100 to pull the voltage of the current detection end down to below the current detection threshold voltage of the driving module 100.
[0080] In the slope compensation circuit control method of the present embodiment, a switch drive signal outputted from the drive signal output terminal of the drive module 100 is received, and the switch drive signal includes a high-level signal and a low-level signal; if the switch drive signal is a high-level signal, the output control signal is a shutdown signal to disconnect the connection between the control module 300 and the current detection terminal of the drive module 100, and the current detection terminal normally receives the signal obtained after the slope compensation signal provided by the slope compensation module 200 is compensated; if the switch drive signal is a low-level signal, the output control signal is a clamping voltage signal to clamp the voltage of the current detection terminal, and the clamping voltage signal is less than the current detection threshold voltage of the drive module 100. Figure 7As shown, by outputting a shutdown signal when the switch drive signal is a high-level signal and outputting a clamping voltage signal when the switch drive signal is a low-level signal, the slope compensation circuit 10 of the present application can not only realize slope compensation, but also control the voltage of the current detection terminal to be lower than the current detection threshold voltage of the drive module 100 at the opening moment of the next cycle of the switch drive signal, so that the driving function of the drive module 100 is normally turned on, and the drive module 100 can continue to output the switch drive signal normally, thereby avoiding the situation that when the slope compensation is added and the duty cycle of the switch drive signal is less than 0.5, the voltage of the current detection terminal also changes with the voltage change of the oscillation terminal of the drive module 100 after the switch of the main circuit is turned off, thereby solving the problem that the loop cannot be normally stable when the duty cycle is small.
[0081] The present application also provides an electrical device, which includes the slope compensation circuit 10 in any of the above embodiments. The specific structure of the slope compensation circuit 10 refers to the above embodiments. Since the electrical device adopts all the technical solutions of all the above embodiments, it at least has all the beneficial effects brought by the technical solutions of the above embodiments, which will not be repeated here one by one.
[0082] The present application also provides a computer-readable storage medium, on which a slope compensation circuit control program is stored. When the slope compensation circuit control program is executed by a processor, the steps of the above-mentioned slope compensation circuit control method are implemented.
[0083] The corresponding technical features in the above-mentioned embodiments can be used interchangeably without causing contradiction or impracticability of the solutions.
[0084] It should be noted that, in this article, the terms "include", "comprises" or any other variations 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. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0085] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0086] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0087] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A slope compensation circuit, characterized in that: The slope compensation circuit comprises: A driving module, the driving module is used to output a switch driving signal; A slope compensation module, wherein a first end of the slope compensation module is connected to an oscillation end of the driving module, a second end of the slope compensation module is connected to a current detection end of the driving module, and the slope compensation module is used to provide a slope compensation signal to the current detection end; A control module, wherein the input end of the control module is connected to the driving signal output end of the driving module, and the output end of the control module is connected to the current detection end. The control module is used to output a corresponding control signal according to the switch driving signal output by the driving signal output end to control the voltage of the current detection end.
2. The slope compensation circuit according to claim 1, wherein: The control module includes a first switch tube and a second switch tube; The controlled end of the first switch tube is connected to the drive signal output end, the first end of the first switch tube is respectively connected to the power supply and the controlled end of the second switch tube, and the second end of the first switch tube is grounded; A first end of the second switch tube is connected to the current detection end, and a second end of the second switch tube is grounded.
3. The slope compensation circuit as claimed in claim 2, characterized in that: The control module also includes a first resistor, a second resistor, a third resistor and a fourth resistor; The first end of the first resistor is connected to the drive signal output end, the second end of the first resistor is connected to the controlled end of the first switch tube, the first end of the second resistor is connected to the controlled end of the first switch tube, the second end of the second resistor is connected to the second end of the first switch tube, the first end of the third resistor is connected to the power supply, the second end of the third resistor is connected to the first end of the first switch tube, the first end of the fourth resistor is connected to the controlled end of the second switch tube, and the second end of the fourth resistor is grounded.
4. The slope compensation circuit according to claim 1, wherein: The slope compensation module includes a third switch tube and a fifth resistor; The controlled end of the third switch tube is connected to the oscillation end, the first end of the third switch tube is connected to the reference power supply, the second end of the third switch tube is connected to the first end of the fifth resistor, and the second end of the fifth resistor is connected to the current detection end.
5. The slope compensation circuit as claimed in claim 4, characterized in that: The slope compensation module further includes a sixth resistor, a seventh resistor and a first capacitor; The first end of the sixth resistor and the first end of the first capacitor are respectively connected to the current detection end, the second end of the sixth resistor is connected to the first end of the seventh resistor, and the second end of the first capacitor and the second end of the seventh resistor are respectively grounded.
6. The slope compensation circuit according to claim 1, wherein: The slope compensation circuit also includes an oscillation module; The first end of the oscillation module is connected to a reference power source, the second end of the oscillation module is connected to the oscillation end, and the oscillation module is used to provide an operating frequency to the driving module.
7. The slope compensation circuit according to claim 6, wherein: The oscillation module includes an eighth resistor and a second capacitor; The first end of the eighth resistor is connected to the reference power supply, the second end of the eighth resistor and the first end of the second capacitor are respectively connected to the oscillation end, and the second end of the second capacitor is grounded.
8. A slope compensation circuit control method, applied to the slope compensation circuit according to any one of claims 1 to 7, characterized in that: The slope compensation circuit control method comprises: A switch driving signal outputted from a driving signal output terminal of a receiving driving module, wherein the switch driving signal includes a high level signal and a low level signal; If the switch driving signal is a high level signal, the output control signal is a shutdown signal to disconnect the connection between the control module and the current detection terminal of the driving module, and the current detection terminal normally receives the signal obtained after being compensated by the slope compensation signal provided by the slope compensation module; If the switch driving signal is a low level signal, the output control signal is a clamping voltage signal to clamp the voltage of the current detection end, and the clamping voltage signal is smaller than the current detection threshold voltage of the driving module.
9. An electrical device, characterized in that: The electrical device comprises the slope compensation circuit according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a slope compensation circuit control program, and when the slope compensation circuit control program is executed by the processor, the steps of the slope compensation circuit control method according to claim 8 are implemented.
Citation Information
Cited By
Slope compensation method and system for digital power supply current sampling
CN120546463A
