clamping circuit

By adjusting the clamping control voltage through a negative feedback loop, the problem of system voltage instability during load transitions in traditional clamping schemes is solved. This achieves optimal clamping effect and rapid response under different operating conditions, ensuring system power supply stability and the reliability of protection functions.

CN123184604APending Publication Date: 2026-11-27SHENZHEN LOWPOWER SEMICON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611537710.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-30
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Traditional clamping solutions suffer from system voltage V during load transitions. SYS Undershoot or overshoot of input current occurs, and the clamping effect is greatly affected by process angle, power supply voltage and ambient temperature, making it difficult to reliably ensure the coordination of system power supply quality and protection functions.

Method used

A negative feedback loop consisting of a reference module, an error amplification module, a voltage generation module, a matching module, and a sampling tube is used to perform closed-loop regulation of the clamping control voltage. The matching module ensures that the voltage difference across the sampling tube is consistent with the drain-source voltage of the power transistor, achieving a precise mapping between the clamping control voltage and the power transistor's conduction current. This allows for dynamic adaptive adjustment to adapt to changes in process technology, power supply voltage, and ambient temperature.

Benefits of technology

Maintaining optimal clamping effect across the entire operating range, quickly suppressing input current spikes, avoiding false tripping of input overcurrent protection, ensuring the transient regulation capability of the system voltage regulation loop, shortening steady-state recovery time, and maintaining maximum load capacity in low-dropout scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123184604A_ABST
    Figure CN123184604A_ABST
Patent Text Reader

Abstract

This application belongs to the field of electronic circuits and provides a clamping circuit. The clamping circuit includes a reference module, an error amplification module, a voltage generation module, a matching module, and a sampling tube. The output terminal of the reference module is connected to the first input terminal of the error amplification module, the output terminal of the error amplification module is connected to the input terminal of the voltage generation module, the first output terminal of the voltage generation module is connected to the control terminal of the sampling tube, the second output terminal of the voltage generation module is connected to the output terminal of the current loop error amplifier, the first terminal of the sampling tube receives the input voltage, the first terminal of the matching module receives the system voltage, the second terminal of the matching module is connected to the second terminal of the sampling tube, and the feedback terminal of the matching module is connected to the second input terminal of the error amplification module. This application uses a negative feedback loop to perform closed-loop regulation of the clamping control voltage, abandoning the traditional fixed bias scheme, fundamentally solving the contradiction between current limiting hysteresis and transient degradation, while taking into account both current limiting protection and load transient response.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of electronic circuit technology, and in particular relates to a clamping circuit. Background Technology

[0002] In the system power path architecture of charging chips, multi-loop collaborative control is typically employed, using multiple control loops such as input current limiting loop and system voltage regulation loop to jointly regulate the power supply. V IN to V SYS The power transistors in the path are used to achieve the dual functions of input current control and system voltage stability.

[0003] In a conventional multi-loop control architecture, the outputs of multiple error amplifiers, after passing through a maximum value gating unit, are controlled by the closed-loop power transistor of the loop with the higher voltage amplitude. When the charging chip is operating in steady state, typically only one loop (the dominant loop) is in linear amplification mode, while the error amplifiers in the other loops (non-dominant loops) operate in saturated output mode. When a large dynamic change occurs in the load, the error amplifiers that were originally in saturation need to recover from the saturation region to the linear amplification region. Their output voltage often takes a considerable amount of time to return to the steady-state operating range, leading to loop response lag and causing system voltage... V SYS Significant fluctuations occurred, severely impacting the stability of the power supply.

[0004] To address the recovery delay issue of saturated error amplifiers, the industry commonly employs a clamping solution for the amplifier's output. However, in practical applications, this solution still results in system voltage fluctuations during load transitions. V SYS Undershoot or input current overshoot occurs, and the clamping effect varies greatly under different operating conditions such as process angle, power supply voltage, and ambient temperature, making it difficult to reliably ensure the coordination of system power supply quality and protection functions. Summary of the Invention

[0005] This application provides a clamping circuit to address the shortcomings of traditional clamping solutions.

[0006] In a first aspect, embodiments of this application provide a clamping circuit applied in the input voltage to system voltage path control architecture of a charging chip including an input current limiting loop and a system voltage regulating loop. The circuit includes a reference module, an error amplification module, a voltage generation module, a matching module, and a sampling tube. The output terminal of the reference module is connected to the first input terminal of the error amplification module, the output terminal of the error amplification module is connected to the input terminal of the voltage generation module, the first output terminal of the voltage generation module is connected to the control terminal of the sampling tube, the second output terminal of the voltage generation module is connected to the output terminal of the current loop error amplifier in the charging chip, the first terminal of the sampling tube is used to receive the input voltage, the first terminal of the matching module is used to receive the system voltage, the second terminal of the matching module is connected to the second terminal of the sampling tube, and the feedback terminal of the matching module is connected to the second input terminal of the error amplification module. The reference module outputs a first reference voltage based on a set current, which is used to set the maximum input current of the charging chip. The matching module makes the voltage difference across the sampling tube equal to the difference between the input voltage and the system voltage, and outputs a clamping control feedback voltage based on the current flowing through the sampling tube. The error amplification module outputs a first voltage based on the first reference voltage and the clamping control feedback voltage. The voltage generation module outputs a clamping control voltage and a sampling control voltage based on the first voltage. The clamping control voltage is used to clamp the output of the current loop error amplifier to a lower limit, and the sampling control voltage is used to control the current flowing through the sampling tube to adjust the clamping control feedback voltage so that the clamping control feedback voltage always follows the first reference voltage.

[0007] In one possible implementation of the first aspect, the clamping circuit further includes a clamping module; a first input terminal of the clamping module is used to connect to the output terminal of the current loop error amplifier, a second input terminal of the clamping module is used to receive a bias voltage, and an output terminal of the clamping module is used to connect to the output terminal of the voltage regulation loop error amplifier in the charging chip. The clamping module is used to clamp the output of the voltage regulation loop error amplifier to a lower limit based on the bias voltage and the output of the current loop error amplifier.

[0008] In one possible implementation of the first aspect, the reference module includes a setting current source and a first resistor; a first terminal of the setting current source receives an input voltage, a second terminal of the setting current source is connected to a first terminal of the first resistor and a first input terminal of the error amplification module, and the second terminal of the first resistor is grounded.

[0009] In one possible implementation of the first aspect, the error amplification module includes a first error amplifier; the non-inverting input of the first error amplifier is connected to the output of the reference module, the inverting input of the first error amplifier is connected to the feedback of the matching module, and the output of the first error amplifier is connected to the input of the voltage generation module.

[0010] In one possible implementation of the first aspect, the matching module includes a first transistor, a second transistor, a second resistor, and a bias current source; the source of the first transistor is connected to the second terminal of the sampling transistor, the gate of the first transistor is connected to the gate of the second transistor, the drain of the second transistor, and the first terminal of the bias current source, the source of the second transistor is used to receive the system voltage, the drain of the first transistor is connected to the first terminal of the second resistor and the second input terminal of the error amplification module, and the second terminal of the bias current source and the second terminal of the second resistor are both grounded.

[0011] In one possible implementation of the first aspect, when the power transistor of the charging chip is a PMOS transistor, the sampling transistor is a PMOS transistor, the gate of the PMOS transistor is the control terminal of the sampling transistor, the source of the PMOS transistor is the first terminal of the sampling transistor, and the drain of the PMOS transistor is the second terminal of the sampling transistor.

[0012] In one possible implementation of the first aspect, when the power transistor of the charging chip is an NMOS transistor, the sampling transistor is an NMOS transistor, the gate of the NMOS transistor is the control terminal of the sampling transistor, the drain of the NMOS transistor is the first terminal of the sampling transistor, and the source of the NMOS transistor is the second terminal of the sampling transistor.

[0013] In one possible implementation of the first aspect, when the power transistor of the charging chip is a PMOS transistor, the voltage generation module includes a third transistor, a fourth transistor, a bias current source, and a first buffer; the drains of the third transistor and the fourth transistor both receive the input voltage, the gates of the third transistor and the fourth transistor are both connected to the output terminal of the error amplification module, the source of the third transistor is connected to the input terminal of the first buffer and the first terminal of the bias current source, the output terminal of the first buffer is connected to the control terminal of the sampling transistor, the source of the fourth transistor is used to connect to the output terminal of the current loop error amplifier, and the second terminal of the bias current source is grounded.

[0014] In one possible implementation of the first aspect, when the power transistor of the charging chip is an NMOS transistor, the voltage generation module includes a fifth transistor, a sixth transistor, a bias current source, and a first buffer; the gates of the fifth transistor and the sixth transistor are both connected to the output terminal of the error amplification module; the source of the fifth transistor is connected to the input terminal of the first buffer and the first terminal of the bias current source, respectively; the second terminal of the bias current source receives a second voltage; the output terminal of the first buffer is connected to the control terminal of the sampling transistor; the source of the sixth transistor is used to connect to the output terminal of the current loop error amplifier; and the drains of the fifth transistor and the sixth transistor are both grounded.

[0015] In one possible implementation of the first aspect, when the power transistor of the charging chip is a PMOS transistor, the clamping module includes a subtractor, a second error amplifier, a seventh transistor, an eighth transistor, and a bias current source; the positive input terminal of the subtractor is connected to the output terminal of the current loop error amplifier, the negative input terminal of the subtractor is used to receive a bias voltage, the output terminal of the subtractor is connected to the non-inverting input terminal of the second error amplifier, the inverting input terminal of the second error amplifier is connected to the source of the seventh transistor and the first terminal of the bias current source, the output terminal of the second error amplifier is connected to the gate of the seventh transistor and the gate of the eighth transistor, the drain of the seventh transistor and the drain of the eighth transistor both receive a third voltage, the second terminal of the bias current source is grounded, and the source of the eighth transistor is connected to the output terminal of the voltage regulation loop error amplifier.

[0016] Secondly, embodiments of this application provide a charging chip, including the clamping circuit described in any one of the first aspects.

[0017] Thirdly, embodiments of this application provide an electronic device including the charging chip described in the second aspect.

[0018] The beneficial effects of the embodiments in this application compared with the prior art are: This application provides a clamping circuit, including a reference module, an error amplification module, a voltage generation module, a matching module, and a sampling tube. The output terminal of the reference module is connected to the first input terminal of the error amplification module, the output terminal of the error amplification module is connected to the input terminal of the voltage generation module, the first output terminal of the voltage generation module is connected to the control terminal of the sampling tube, the second output terminal of the voltage generation module is used to connect to the output terminal of the current loop error amplifier in the charging chip, the first terminal of the sampling tube is used to receive the input voltage, the first terminal of the matching module is used to receive the system voltage, the second terminal of the matching module is connected to the second terminal of the sampling tube, and the feedback terminal of the matching module is connected to the second input terminal of the error amplification module.

[0019] The reference module outputs a first reference voltage based on a set current, which is used to set the maximum input current of the charging chip. The matching module ensures that the voltage difference across the sampling tube is the difference between the input voltage and the system voltage, and outputs a clamping control feedback voltage based on the current flowing through the sampling tube. The error amplification module outputs a first voltage based on the first reference voltage and the clamping control feedback voltage. The voltage generation module outputs a clamping control voltage and a sampling control voltage based on the first voltage. The clamping control voltage is used to clamp the lower limit of the output of the current loop error amplifier, and the sampling control voltage is used to control the current flowing through the sampling tube to adjust the clamping control feedback voltage so that it always follows the first reference voltage.

[0020] This application uses a negative feedback loop consisting of an error amplification module, a voltage generation module, a sampling tube, and a matching module to perform closed-loop regulation of the clamping control voltage. The matching module ensures that the voltage difference across the sampling tube is consistent with the drain-source voltage of the power transistor in the charging chip (both are the difference between the input voltage and the system voltage), thus creating a precise mapping between the clamping control voltage and the power transistor's on-state current. This allows the clamping control voltage and the power transistor's on-state current to adjust according to process conditions, supply voltage, and ambient temperature. PVT The system features dynamic adaptive adjustment to maintain optimal clamping performance across the entire operating range. This application uses a negative feedback loop to directly map the clamping control voltage to the set maximum input current, clamping the output of the error amplifier in the non-dominant loop above the corresponding current-limiting value (i.e., maintaining it near the linear operating region). This ensures that during load transients, the input current limiting loop can quickly disengage and intervene in current limiting, effectively suppressing input current spikes and preventing false tripping of the input overcurrent protection. Furthermore, it prevents the slow-response input current limiting loop from prematurely taking over due to excessively high clamping control voltage, fully guaranteeing the transient regulation capability of the system voltage regulation loop, avoiding significant undershoot in the system voltage, and shortening the system steady-state recovery time. When the difference between the input voltage and the system voltage is small, causing the power transistor to be unable to reach the set maximum input current under the current voltage difference, the negative feedback loop will automatically adjust the clamping control voltage, without limiting the maximum conduction capability of the power transistor, ensuring the system's maximum load-carrying capacity in low-dropout scenarios.

[0021] It is understood that the beneficial effects of the second and third aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 This is a circuit connection diagram of the charging chip; Figure 2 This is a circuit diagram of a traditional multi-loop clamping scheme; Figure 3 yes V B A schematic diagram of the load transient response corresponding to excessively large values; Figure 4 yes V B A schematic diagram of the load transient response corresponding to a value that is too small; Figure 5 This is a schematic diagram of a clamping circuit provided in one embodiment of this application; Figure 6 This is a schematic diagram of a clamping circuit provided in another embodiment of this application; Figure 7 This is a circuit connection diagram of a clamping circuit provided in an embodiment of this application; Figure 8 This is a circuit connection diagram of a clamping circuit provided in another embodiment of this application.

[0024] In the diagram: 10, clamping circuit; 101, reference module; 102, error amplification module; 103, voltage generation module; 104, matching module; 105, sampling tube; 106, clamping module. Detailed Implementation

[0025] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0026] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0027] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0028] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [the described condition or event] is detected," or "in response to detection of [the described condition or event]."

[0029] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0030] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0031] With the rapid development of portable electronic devices, the dynamic range of system loads continues to expand, placing higher demands on the load transient response speed, input current control accuracy, and protection reliability of charging chips. In the system power path architecture of charging chips, a multi-loop collaborative control mechanism is typically employed, using multiple control loops such as input current limiting loops and system voltage regulation loops to jointly regulate... V IN to V SYS The power transistors in the path are used to achieve the dual functions of input current control and system voltage stability.

[0032] The circuit structure of the charging chip is as follows Figure 1 As shown, where, V IN to V SYSThe control loop of the circuit mainly includes an input current limiting loop and a system voltage regulation loop. The input current limiting loop is equipped with a current loop error amplifier. EA ILIM The current sampling circuit samples the input current and converts it into a first feedback voltage. V IIN_FB , EA ILIM Will V IIN_FB With the first reference voltage V IIN_REF After error amplification, the first error voltage is output. V EA_IIN The system's voltage regulation loop is equipped with a voltage regulation loop error amplifier. EA VSYS : Regarding the second feedback voltage V SYS_FB With the second reference voltage V SYS_REF After error amplification, the second error voltage is output. V EA_SYS . V EA_IIN and V EA_SYS Joint intervention by transistors M N1 , M N2 The maximum value gating unit is constructed to output the synthesized error voltage. V EA_SUM ; V EA_SUM The voltage is from V EA_IIN and V EA_SYS The one with the higher voltage is chosen. V EA_SUM After the drive capability is enhanced by the buffer, the gate drive voltage is generated. V GATE Used to control PMOS power transistors M P1 The degree of conductivity. Ultimately V IN to V SYS Closed-loop control of the pathway, by V EA_IIN and V EA_SYS The loop with higher voltage amplitude is dominant.

[0033] When a charging chip operates in steady state, typically only one loop is in linear amplification mode, while the error amplifiers in the other loops operate in saturated output mode. When a large dynamic change occurs in the load, the error amplifiers, initially in saturation, need to recover from the saturation region to the linear amplification region. Their output voltage often takes a considerable amount of time to return to the steady-state operating range. This results in loop response lag, causing system voltage... V SYS Significant fluctuations occurred, severely impacting the stability of the power supply.

[0034] To address the recovery delay issue of saturated error amplifiers, the industry commonly employs a clamping solution for the error amplifier output. The structure of a traditional multi-loop clamping solution is as follows: Figure 2 As shown. Based on V IN to V SYS The pathway is V EA_IIN and V EA_SYS The circuit features a loop-dominated control characteristic with a higher voltage amplitude. It first selects the higher of the two values ​​using a maximum value selection unit to generate the output voltage. V MAX ,use V MAX Subtract fixed bias voltage V B Then, it is connected to the clamping error amplifier. AMP The non-inverting input terminal. In AMP With NMOS transistors M N3 , M N4 , M N5 Under the combined effect, V EA_IIN and V EA_SYS The lower voltage output will be clamped to a value no lower than [value missing]. V MAX - V B The level is adjusted to reduce the swing range of the non-dominant loop error amplifier output and shorten the saturation recovery time.

[0035] However, the above-mentioned fixed bias clamping scheme has significant technical drawbacks: firstly, the bias voltage... V B The value of this parameter directly determines the clamping level, thus affecting the system's load transient response performance and current limiting protection characteristics. For example... Figure 3 As shown, in the initial state, the system voltage regulation loop dominates the control path, while the output of the input current limiting loop is controlled. VEA_IIN The clamp is located V EA_SYS - V B Level. If the value is too large, the clamping level will be too low. V EA_IIN The longer setup time required to disengage from the clamping state and enter the linear amplification operating region results in the input current limiting loop being unable to intervene in current limiting control in a timely manner, leading to large input current spikes, which may, in severe cases, trigger false tripping of the input overcurrent protection. Figure 4 As shown, if the value is too small, the clamping level will be too high, close to... V EA_SYS At this point, the voltage difference between the output of the input current limiting loop and the output of the dominant loop is too small. When a transient change occurs in the load, the input current limiting loop, with its slower response speed, is prone to premature intervention, limiting the transient regulation capability of the system voltage regulation loop and ultimately leading to a decrease in system voltage. V SYS Significant undershoot occurs, prolonging the system's steady-state recovery time. Secondly, it is affected by process deviations, power supply voltage fluctuations, and changes in ambient temperature. PVT The combined influence of ) and fixed values V B It cannot adapt to all operating conditions and it is difficult to simultaneously ensure transient response performance and current limiting protection reliability under all working conditions.

[0036] Therefore, there is an urgent need for a multi-loop operational amplifier output clamping scheme that can dynamically and adaptively adjust the clamping level, effectively limiting input current spikes and ensuring current limiting protection functions, while also taking into account the transient response performance of the system's power supply load and possessing good performance characteristics. PVT Adaptability and compatibility with low differential pressure conditions.

[0037] To address the aforementioned problems, this application proposes a clamping circuit. This circuit uses a negative feedback loop, comprised of an error amplification module, a voltage generation module, a sampling transistor, and a matching module, to perform closed-loop regulation of the clamping control voltage. The matching module ensures that the voltage difference across the sampling transistor is consistent with the drain-source voltage of the power transistor (both are the difference between the input voltage and the system voltage), thus creating a precise mapping between the clamping control voltage and the power transistor's on-state current. This allows the clamping control voltage and the power transistor's on-state current to adjust for variations in process technology, supply voltage, and ambient temperature. PVT The system dynamically and adaptively adjusts to maintain optimal clamping performance across the entire operating range, fundamentally overcoming the limitations of traditional solutions that use a fixed bias voltage. V BTo address the issue of clamping performance degradation under different operating conditions, this application uses a negative feedback loop to directly map the clamping control voltage to the set maximum input current. This clamps the output of the error amplifier in the non-dominant loop above the corresponding current-limiting value (i.e., maintaining it near the linear operating region). This ensures that when the load experiences transient changes, the input current limiting loop can quickly disengage from the clamp and intervene in current limiting, effectively suppressing input current spikes and preventing false tripping of the input overcurrent protection. Furthermore, it prevents the slow-response input current limiting loop from prematurely taking over due to excessively high clamping control voltage, fully guaranteeing the transient regulation capability of the system voltage regulation loop, avoiding significant undershoot in the system voltage, and shortening the system steady-state recovery time. When the difference between the input voltage and the system voltage is small, causing the power transistor to be unable to reach the set maximum input current under the current voltage difference, the negative feedback loop will automatically adjust the clamping control voltage, without limiting the maximum conduction capability of the power transistor, ensuring the system's maximum load-carrying capacity in low-dropout scenarios.

[0038] To illustrate the technical solution described in this application, specific embodiments are provided below.

[0039] Figure 5 A schematic diagram of a clamping circuit according to an embodiment of this application is shown. The clamping circuit provided in this application is applied to systems including an input current limiting loop and a system voltage regulation loop. V IN to V SYS In the path control architecture, the output of the multi-path error amplifier, after passing through the maximum value gating unit, is controlled by the closed-loop control of the power transistor by the loop with the higher voltage amplitude. For example... Figure 5 As shown, the clamping circuit 10 includes a reference module 101, an error amplification module 102, a voltage generation module 103, a matching module 104, and a sampling tube 105. The output terminal of the reference module 101 is connected to the first input terminal of the error amplification module 102, the output terminal of the error amplification module 102 is connected to the input terminal of the voltage generation module 103, the first output terminal of the voltage generation module 103 is connected to the control terminal of the sampling tube 105, and the second output terminal of the voltage generation module 103 is used to connect with the current loop error amplifier in the charging chip. EA ILIM The output terminal is connected, and the first terminal of the sampling tube 105 is used to receive the input voltage. V IN The first terminal of the matching module 104 is used to receive the system voltage. V SYS The second end of the matching module 104 is connected to the second end of the sampling tube 105, and the feedback end of the matching module 104 is connected to the second input end of the error amplification module 102.

[0040] Specifically, the reference module 101 determines the current based on the set current. ISET Output first reference voltage V IIN_REF Set current I SET Used to set the maximum input current of the charging chip. Matching module 104 ensures the voltage difference across sampling tube 105 is equal to the input voltage. V IN With system voltage V SYS The difference between them (i.e., with the power transistor) M P1 The drain-source voltages remain consistent, both being... V IN - V SYS The feedback voltage is output clamped based on the current flowing through the sampling tube 105. V CLAMP_FB The error amplification module 102 calculates the error based on the first reference voltage. V IIN_REF and clamping control feedback voltage V CLAMP_FB Output first voltage V AMP1 The voltage generation module 103 generates the voltage based on the first voltage. V AMP1 Output clamping control voltage V CLAMP and sampling control voltage V G Clamping control voltage V CLAMP Used for current loop error amplifier EA ILIM The output is clamped to the lower limit, and the control voltage is sampled. V G Used to control the current flowing through the sampling tube 105 to adjust the clamp control feedback voltage. V CLAMP_FB This enables the clamping control feedback voltage. V CLAMP_FB Always follow the first reference voltage V IIN_REF Among them, the type of sampling tube 105 is the same as that of the power tube. M P1 They are of the same type.

[0041] This application uses a negative feedback loop consisting of an error amplification module 102, a voltage generation module 103, a sampling tube 105, and a matching module 104 to control the clamping voltage. V CLAMP Closed-loop regulation is performed, and the voltage across the sampling transistor 105 is matched with that of the power transistor through the matching module 104. M P1The drain-source voltages remain consistent (both are) V IN - V SYS ), to clamp control voltage V CLAMP With power transistor M P1 The conduction current forms a precise mapping, thereby enabling the clamping control voltage. V CLAMP With power transistor M P1 The conduction current varies with process, supply voltage and ambient temperature. PVT Fluctuations are dynamically and adaptively adjusted, without relying on a fixed bias voltage. V B It can maintain optimal clamping effect across the entire operating range, fundamentally overcoming the limitations of traditional solutions that use fixed bias voltage. V B This application addresses the issue of clamping performance degradation under different operating conditions by using a negative feedback loop to adjust the clamping control voltage. V CLAMP Directly mapped to the set maximum input current, the output of the error amplifier in the non-dominant loop is clamped above the corresponding current-limiting value (i.e., maintained near the linear operating region). This ensures that when the load experiences transient changes, the input current limiting loop can quickly disengage and intervene in current limiting, effectively suppressing input current spikes and preventing false tripping of the input overcurrent protection; it also prevents the clamping control voltage from causing problems. V CLAMP Excessive input current causes the slow-response limiting loop to intervene prematurely, ensuring the transient regulation capability of the system voltage regulation loop and preventing system voltage fluctuations. V SYS Significant undershoot occurs, shortening the system's steady-state recovery time; when the input voltage V IN With system voltage V SYS The difference between them is small, which leads to the power transistor M P1 When the set maximum input current cannot be reached under the current differential pressure, the negative feedback loop will automatically adjust the clamping control voltage. V CLAMP It will not limit the power transistor M P1 The maximum conduction capacity ensures the system's maximum load-carrying capacity in low-pressure differential scenarios.

[0042] In one embodiment of this application, such as Figure 6 As shown, the clamping circuit 10 also includes a clamping module 106; the first input terminal of the clamping module 106 is used to connect to the current loop error amplifier. EA ILIMThe output terminal is connected, and the second input terminal of the clamping module 106 is used to receive the bias voltage. V B The output of the clamping module 106 is used to connect with the error amplifier of the voltage regulation loop in the charging chip. EA VSYS Connect the output terminal.

[0043] Specifically, the clamping module 106 is used to clamp according to the bias voltage. V B and current loop error amplifier EA ILIM The output of the voltage regulator loop error amplifier EA VSYS The output is clamped to a lower limit. The principle of the clamping module 106 is to clamp the current loop error amplifier. EA ILIM The output minus the fixed bias voltage V B As a clamping level, to the voltage regulation loop error amplifier EA VSYS The output is clamped at the lower limit. It should be noted that the clamping circuit 10 only clamps the non-dominant loop at the lower limit; the dominant loop will not be clamped.

[0044] This application is based on power transistors M P1 Two specific implementations are proposed for this type. When the power transistor... M P1 The specific structure of the clamping circuit 10 is as follows: (The circuit is a PMOS transistor.) Figure 7 As shown; when the power transistor M P1 The clamping circuit 10 is an NMOS transistor, and its specific structure is as follows: Figure 8 As shown. The specific structures of the reference module 101, error amplification module 102, and matching module 104 are not affected by the power transistor. M P1 The type of influence remains consistent across all embodiments.

[0045] like Figure 7 or Figure 8 As shown, the reference module 101 includes a setting current source and a first resistor. R 1; Set the first terminal of the current source to receive the input voltage. V IN The second terminal of the current source is set to be connected to the first resistor. R The first terminal of 1 is connected to the first input terminal of the error amplifier module 102, and the first resistor is connected to the first input terminal of the error amplifier module 102. R The second terminal of 1 is grounded, and the second terminal of the current source is set to be connected to the first resistor. R The common terminal of the first end of 1 serves as the output terminal of the reference module 101.

[0046] Specifically, the set current source is used to provide the set current. I SET Set current I SET This is used to set the maximum input current of the charging chip. Based on the specific structure of the reference module 101, it can be seen that... V IIN_REF = I SET R 1. Combining Figure 1 It can be seen that the maximum input current is set to be V IIN_REF / R SEN = I SET R 1 / R SEN This application generates a clamping control voltage that is mapped to the maximum input current through a negative feedback loop. V CLAMP .

[0047] like Figure 7 or Figure 8 As shown, the error amplification module 102 includes a first error amplifier. AMP1 First error amplifier AMP1 The non-inverting input terminal serves as the first input terminal of the error amplifier module 102, and is connected to the output terminal of the reference module 101. The first error amplifier... AMP1 The inverting input terminal serves as the second input terminal of the error amplifier module 102, and is connected to the feedback terminal of the matching module 104. The first error amplifier... AMP1 The output terminal is used as the output terminal of the error amplification module 102 and is connected to the input terminal of the voltage generation module 103.

[0048] Specifically, the first error amplifier AMP1 It forms part of the negative feedback loop and is used to enable the clamping control feedback voltage. V CLAMP_FB Always follow the first reference voltage V IIN_REF .

[0049] like Figure 7 or Figure 8 As shown, the matching module 104 includes a first transistor. M 1. Second transistor M 2. Second resistor R 2 and bias current source; first transistor MThe source of transistor 1 serves as the second terminal of matching module 104 and is connected to the second terminal of sampling transistor 105. M The gate of transistor 1 is connected to the gate of transistor 2. M 2's gate, second transistor M The drain of transistor 2 is connected to the first terminal of the bias current source, and the second transistor... M The source of pin 2 serves as the first terminal of the matching module 104, used to receive the system voltage. V SYS The first transistor M The drain of 1 is connected to the second resistor. R The first terminal of 2 is connected to the second input terminal of the error amplifier module 102, the second terminal of the bias current source is connected to the second resistor. R The second terminals of transistor 2 are all grounded; the first transistor M 1's drain and the second resistor R The common terminal of the first end of 2 serves as the feedback terminal of the matching module 104. The bias current source is used to provide the bias current. I B The first transistor M 1 and second transistors M Both are PMOS transistors.

[0050] Specifically, the matching module 104 utilizes the first transistor M 1 and second transistors M The current mirror structure formed by 2 makes the voltage difference across the sampling tube 105 equal to the input voltage. V IN With system voltage V SYS The difference between them (i.e., with the power transistor) M P1 The drain-source voltages remain consistent, both being... V IN - V SYS ), to clamp control voltage V CLAMP With power transistor M P1 The conduction current forms a precise mapping relationship, ensuring the clamping control voltage under different voltage differentials. V CLAMP corresponding power transistor M P1 The conduction current is stable and controllable. The matching module 104 also bases its operation on the current flowing through the sampling tube 105 in the second resistor. R 2. Generate clamping control feedback voltage V CLAMP_FB Sampling control voltage V G The feedback voltage is controlled by adjusting the clamping current flowing through the sampling tube 105.V CLAMP_FB This, in turn, causes the clamping control feedback voltage to... V CLAMP_FB Always follow the first reference voltage V IIN_REF .

[0051] like Figure 7 As shown, when the power transistor M P1 When it is a PMOS transistor, sampling transistor 105 is a PMOS transistor, that is Figure 7 transistors in M S The gate of the PMOS transistor is the control terminal of the sampling transistor 105, the source of the PMOS transistor is the first terminal of the sampling transistor 105, and the drain of the PMOS transistor is the second terminal of the sampling transistor 105.

[0052] Specifically, this application uses a power transistor M P1 The same type of mirror transistor, namely sampling transistor 105, is matched by matching module 104 to make the voltage difference across sampling transistor 105 equal to that of power transistor. M P1 The drain-source voltages remain consistent (both are) V IN - V SYS ), to clamp control voltage V CLAMP With power transistor M P1 The conduction current forms a precise mapping relationship, ensuring the clamping control voltage under different voltage differentials. V CLAMP corresponding power transistor M P1 The conduction current is stable and controllable.

[0053] like Figure 7 As shown, when the power transistor M P1 When the transistor is a PMOS, the voltage generation module 103 includes a third transistor. M 3. Fourth transistor M 4. Bias current source and first buffer; third transistor M 3's drain and the fourth transistor M The drains of all four cells receive the input voltage. V IN The third transistor M 3's gate and fourth transistor M The gates of transistors 4 together serve as the input terminals of voltage generation module 103, and are connected to the output terminals of error amplification module 102. The third transistor... MThe source of transistor 3 is connected to the input terminal of the first buffer and the first terminal of the bias current source, respectively. The output terminal of the first buffer serves as the first output terminal of the voltage generation module 103 and is connected to the control terminal of the sampling transistor 105. The fourth transistor... M The source of 4 serves as the second output terminal of the voltage generation module 103, used in conjunction with the current loop error amplifier. EA ILIM The output terminal is connected, and the second terminal of the bias current source is grounded. The bias current source is used to provide the bias current. I B The third transistor M 3 and the fourth transistor M 4. Conventional NMOS transistors or Native NMOS (Native NMOS / Intrinsic NMOS).

[0054] Specifically, the third transistor M 3 and the fourth transistor M The gate voltage of 4 is the first voltage. V AMP1 The third transistor M The source voltage of 3 is V CLAMP ,so V AMP1 = V CLAMP + V THM3 (i.e., the third transistor) M (3) gate-source voltage), and then the fourth transistor can be obtained by utilizing the drain-source conduction characteristics of the transistor. M The source voltage of 4 is V AMP1 - V GSM4 (i.e., the fourth transistor) M 4 gate-source voltage) = V CLAMP + V GSM3 - V GSM4 The third transistor M 3's gate-source voltage and the fourth transistor M The gate-source voltages of transistors 4 and 4 are equal, therefore the fourth transistor... M The source voltage of 4 is V CLAMP To the current loop error amplifier EA ILIM The output is used for lower limit clamping. Clamping control voltage. V CLAMP After the first buffer enhances the driving capability, a sampling control voltage is generated. V GIt should be noted that the first buffer and Figure 1 medium power transistor M P1 The buffers have the same input-output voltage transfer relationship.

[0055] like Figure 7 As shown, when the power transistor M P1 When the transistor is a PMOS, the clamping module 106 includes a subtractor and a second error amplifier. AMP2 The seventh transistor M 7. Eighth transistor M 8 and bias current source; the positive input of the subtractor serves as the first input of the clamping module 106, used in conjunction with the current loop error amplifier. EA ILIM The output terminal of the subtractor is connected, and the negative input terminal of the subtractor serves as the second input terminal of the clamping module 106 to receive the bias voltage. V B The output of the subtractor is connected to the second error amplifier. AMP2 The non-inverting input terminal is connected to the second error amplifier. AMP2 The inverting input terminals are respectively connected to the seventh transistor. M The source of 7 is connected to the first terminal of the bias current source, and the second error amplifier is connected. AMP2 The output terminals are respectively connected to the seventh transistor M Gate of 7 and transistor 8 M Gate connection of 8, seventh transistor M The drain of transistor 7 and the eighth transistor M The drains of all 8 receive a third voltage. VDD The second terminal of the bias current source is grounded, and the eighth transistor... M The source of 8 serves as the output of the clamping module 106, used in conjunction with the voltage regulation loop error amplifier. EA VSYS The output terminal is connected. The bias current source is used to provide the bias current. I B The seventh transistor M 7 and 8 transistors M All 8 are NMOS transistors.

[0056] Specifically, the current loop error amplifier EA ILIM The output minus the fixed bias voltage V B As a clamping level, to the voltage regulation loop error amplifier EA VSYS The output is clamped to the lower limit.

[0057] like Figure 8 As shown, when the power transistorM P1 When it is an NMOS transistor, sampling transistor 105 is an NMOS transistor, that is Figure 8 transistors in M S The gate of the NMOS transistor is the control terminal of the sampling transistor 105, the source of the NMOS transistor is the second terminal of the sampling transistor 105, and the drain of the NMOS transistor is the first terminal of the sampling transistor 105.

[0058] Specifically, this application uses a power transistor M P1 The same type of mirror transistor, namely sampling transistor 105, is matched by matching module 104 to make the voltage difference across sampling transistor 105 equal to that of power transistor. M P1 The drain-source voltages remain consistent (both are) V IN - V SYS ), to clamp control voltage V CLAMP With power transistor M P1 The conduction current forms a precise mapping relationship, ensuring the clamping control voltage under different voltage differentials. V CLAMP corresponding power transistor M P1 The conduction current is stable and controllable.

[0059] like Figure 8 As shown, when the power transistor M P1 When the transistor is an NMOS transistor, the voltage generation module 103 includes a fifth transistor. M 5. The sixth transistor M 6. Bias current source and first buffer; fifth transistor M 5's gate and the sixth transistor M The gates of transistors 6 together serve as the input terminal of voltage generation module 103, and are connected to the output terminal of error amplification module 102. (The fifth transistor...) M The source of 5 is connected to the input terminal of the first buffer and the first terminal of the bias current source, respectively, and the second terminal of the bias current source receives the second voltage. V CP The output terminal of the first buffer serves as the first output terminal of the voltage generation module 103 and is connected to the control terminal of the sampling tube 105. The sixth transistor... M The source of 6 serves as the second output terminal of the voltage generation module 103, used in conjunction with the current loop error amplifier. EA ILIM The output terminal is connected to the fifth transistor. M 5's drain and the sixth transistor MThe drains of all six terminals are grounded. The bias current source is used to provide the bias current. I B The fifth transistor M 5 and the sixth transistor M All 6 are PMOS transistors.

[0060] Specifically, the fifth transistor M 5 and the sixth transistor M The gate voltage of 6 is the first voltage. V AMP1 The fifth transistor M The source voltage of 5 is V CLAMP ,so V AMP1 = V CLAMP - V GSM5 (i.e., the fifth transistor) M (5 gate-source voltage), and then the sixth transistor can be obtained by utilizing the drain-source conduction characteristics of the transistor. M The source voltage of 6 is V AMP1 + V GSM6 (i.e., the sixth transistor) M 6 gate-source voltage) = V CLAMP - V GSM5 + V GSM6 The fifth transistor M 5's gate-source voltage and the sixth transistor M The gate-source voltages of transistors 6 and 6 are equal, therefore the sixth transistor... M The source voltage of 6 is V CLAMP To the current loop error amplifier EA ILIM The output is used for lower limit clamping. Clamping control voltage. V CLAMP After the first buffer enhances the driving capability, a sampling control voltage is generated. V G It should be noted that the first buffer and Figure 1 medium power transistor M P1 The buffers have the same input-output voltage transfer relationship.

[0061] like Figure 8 As shown, the clamping module 106 includes a subtractor and a second error amplifier. AMP2 Ninth transistor M 9. The tenth transistor M10 and bias current source; the positive input terminal of the subtractor serves as the first input terminal of the clamping module 106, used to connect with the current loop error amplifier. EA ILIM The output terminal of the subtractor is connected, and the negative input terminal of the subtractor serves as the second input terminal of the clamping module 106 to receive the bias voltage. V B The output of the subtractor is connected to the second error amplifier. AMP2 The non-inverting input terminal is connected to the second error amplifier. AMP2 The inverting input terminal is connected to the first terminal of the bias current source and the ninth transistor, respectively. M 9's source connection, second error amplifier AMP2 The output terminals of the ninth transistor are respectively M Gate of 9 and tenth transistor M 10 Gate connection, tenth transistor M 10 The source terminal serves as the output terminal of the clamping module 106, used in conjunction with the voltage regulation loop error amplifier. EA VSYS The output terminal is connected to the ninth transistor. M The drain of transistor 9 and the tenth transistor M 10 The drains of both are grounded, and the second terminal of the bias current source receives the third voltage. VDD The bias current source is used to provide the bias current. I B Ninth transistor M 9 and 10 transistors M 10 All are PMOS transistors.

[0062] Specifically, the current loop error amplifier EA ILIM The output minus the fixed bias voltage V B As a clamping level, to the voltage regulation loop error amplifier EA VSYS The output is clamped to the lower limit.

[0063] The following is based on Figure 7 For example, let's illustrate the working principle of this application: setting the current. I SET Flow through the first resistor R 1. Generate the first reference voltage V IIN_REF The first error amplifier in the negative feedback loop AMP1 This enables the clamping control feedback voltage. V CLAMP_FB Always follow the first reference voltageV IIN_REF .transistor M S The drain current flows through the second resistor R 2. Generate clamping control feedback voltage V CLAMP_FB Thus, transistor M S Drain current I DSMS It can be represented as: I DSMS = I SET R 1 / R 2. Sampling control voltage V G Depend on V CLAMP This is generated after passing through the first buffer, which is connected to the power transistor. M P1 The buffers have the same input-output voltage transfer relationship. In the first transistor... M 1 and second transistors M Under the action of 2, the transistor M S The drain-source voltage is approximately equal to V IN - V SYS With power transistors M P1 The drain-source voltages are basically the same. Assume the power transistor... M P1 With transistors M S The ratio of its width to its length is K When the gate-source voltages of the two are equal, the power transistor M P1 Conduction current I DS_P It can be represented as: I DS_P = K I SET R 1 / R 2, namely, clamping control voltage V CLAMP The corresponding on-current of the power transistor I DS_P for K I SET R 1 / R 2. Third transistor M 3 and the fourth transistor M 4. Used for current loop error amplifiers EA ILIM The output is clamped to a lower limit, clamping its lowest level at [the specified value]. V CLAMP By configuring a second resistor R 2. Resistance and aspect ratio coefficient K The transistor can be flexibly adjusted. M S The drain current, and thus the power transistor under the same gate-source voltage. M P1 The conduction current is controlled, ultimately limiting the maximum value of the input current spike. Simultaneously, the current loop error amplifier... EA ILIM The power transistor corresponding to the output clamping level M P1 The on-state current is higher than the set maximum input current, so the clamping mechanism will not degrade the load transient response speed.

[0064] Clamping control voltage V CLAMP Generated by closed-loop negative feedback, it can be adjusted according to process, supply voltage and temperature. PVT The fluctuations in input voltage are dynamically and adaptively adjusted to suit various working scenarios. Furthermore, when the input voltage... V IN With system voltage V SYS When the voltage difference between them is small, in order to make the clamping control feedback voltage V CLAMP_FB Always follow the first reference voltage V IIN_REF Sampling control voltage V G It will be pulled down, corresponding to the clamping control voltage. V CLAMP This reduces the load capacity without limiting the system's maximum load capacity. Figure 8 The clamping circuit 10 shown is suitable for power transistors. M P1 In scenarios where NMOS transistors are used, their working principle is similar to... Figure 7 The working principle of the clamping circuit 10 shown is similar, and will not be described again here.

[0065] In summary, this application employs a dynamic clamping generation mechanism: based on a set current... I SET Based on this, a clamping control voltage is generated through a negative feedback closed loop. V CLAMPAbandoning the traditional fixed bias V B The solution addresses the fundamental conflict between current limiting hysteresis and transient degradation, while simultaneously considering both current limiting protection and load transient response. It employs a matched mirror architecture: ensuring that the voltage difference across sampling transistor 105 is synchronized with that across the power transistor. M P1 The drain-source voltage remains consistent to ensure the clamping control voltage across the entire differential voltage range. V CLAMP With power transistor M P1 The mapping accuracy of the conduction current. PVT Adaptive characteristics: Clamping control voltage V CLAMP Generated in real-time via a closed loop, device parameters drift synchronously with process, voltage, and temperature changes, achieving consistent clamping performance across all operating conditions without additional calibration. Automatic low-dropout clamping: No additional control logic is required; the clamping control voltage is automatically reduced when the dropout is insufficient. V CLAMP No restrictions on power transistors M P1 It maintains its conductivity while fully preserving the system's maximum load capacity.

[0066] This application also provides a charging chip, including the clamping circuit described above. Since the charging chip provided in this application adopts all the technical solutions of all the above embodiments, it possesses at least all the beneficial effects brought about by the technical solutions of the above embodiments, and will not be elaborated further here.

[0067] This application also provides an electronic device including the charging chip described above. Since the electronic device provided in this application adopts all the technical solutions of all the above embodiments, it possesses at least all the beneficial effects brought about by the technical solutions of the above embodiments, and will not be elaborated further here.

[0068] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0069] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A clamping circuit, characterized in that, It includes a reference module, an error amplification module, a voltage generation module, a matching module, and a sampling tube. The output terminal of the reference module is connected to the first input terminal of the error amplification module, the output terminal of the error amplification module is connected to the input terminal of the voltage generation module, the first output terminal of the voltage generation module is connected to the control terminal of the sampling tube, the second output terminal of the voltage generation module is used to connect to the output terminal of the current loop error amplifier in the charging chip, the first terminal of the sampling tube is used to receive the input voltage, the first terminal of the matching module is used to receive the system voltage, the second terminal of the matching module is connected to the second terminal of the sampling tube, and the feedback terminal of the matching module is connected to the second input terminal of the error amplification module. The reference module outputs a first reference voltage based on a set current, which is used to set the maximum input current of the charging chip. The matching module makes the voltage difference across the sampling tube equal to the difference between the input voltage and the system voltage, and outputs a clamping control feedback voltage based on the current flowing through the sampling tube. The error amplification module outputs a first voltage based on the first reference voltage and the clamping control feedback voltage. The voltage generation module outputs a clamping control voltage and a sampling control voltage based on the first voltage. The clamping control voltage is used to clamp the output of the current loop error amplifier to a lower limit, and the sampling control voltage is used to control the current flowing through the sampling tube to adjust the clamping control feedback voltage so that the clamping control feedback voltage always follows the first reference voltage.

2. The clamping circuit according to claim 1, characterized in that, The clamping circuit further includes a clamping module; the first input terminal of the clamping module is used to connect to the output terminal of the current loop error amplifier, the second input terminal of the clamping module is used to receive the bias voltage, and the output terminal of the clamping module is used to connect to the output terminal of the voltage regulation loop error amplifier in the charging chip. The clamping module is used to clamp the output of the voltage regulation loop error amplifier to a lower limit based on the bias voltage and the output of the current loop error amplifier.

3. The clamping circuit according to claim 1 or 2, characterized in that, The reference module includes a setting current source and a first resistor; the first terminal of the setting current source receives the input voltage, the second terminal of the setting current source is connected to the first terminal of the first resistor and the first input terminal of the error amplification module, and the second terminal of the first resistor is grounded.

4. The clamping circuit according to claim 1 or 2, characterized in that, The error amplification module includes a first error amplifier; the non-inverting input of the first error amplifier is connected to the output of the reference module, the inverting input of the first error amplifier is connected to the feedback of the matching module, and the output of the first error amplifier is connected to the input of the voltage generation module.

5. The clamping circuit according to claim 1 or 2, characterized in that, The matching module includes a first transistor, a second transistor, a second resistor, and a bias current source. The source of the first transistor is connected to the second terminal of the sampling transistor. The gate of the first transistor is connected to the gate of the second transistor, the drain of the second transistor, and the first terminal of the bias current source. The source of the second transistor is used to receive the system voltage. The drain of the first transistor is connected to the first terminal of the second resistor and the second input terminal of the error amplification module. The second terminal of the bias current source and the second terminal of the second resistor are both grounded.

6. The clamping circuit according to claim 1 or 2, characterized in that, When the power transistor of the charging chip is a PMOS transistor, the sampling transistor is also a PMOS transistor. The gate of the PMOS transistor is the control terminal of the sampling transistor, the source of the PMOS transistor is the first terminal of the sampling transistor, and the drain of the PMOS transistor is the second terminal of the sampling transistor.

7. The clamping circuit according to claim 1 or 2, characterized in that, When the power transistor of the charging chip is an NMOS transistor, the sampling transistor is also an NMOS transistor. The gate of the NMOS transistor is the control terminal of the sampling transistor, the drain of the NMOS transistor is the first terminal of the sampling transistor, and the source of the NMOS transistor is the second terminal of the sampling transistor.

8. The clamping circuit according to claim 1 or 2, characterized in that, When the power transistor of the charging chip is a PMOS transistor, the voltage generation module includes a third transistor, a fourth transistor, a bias current source, and a first buffer. The drains of the third transistor and the fourth transistor both receive the input voltage. The gates of the third transistor and the fourth transistor are both connected to the output terminal of the error amplification module. The source of the third transistor is connected to the input terminal of the first buffer and the first terminal of the bias current source, respectively. The output terminal of the first buffer is connected to the control terminal of the sampling transistor. The source of the fourth transistor is used to connect to the output terminal of the current loop error amplifier. The second terminal of the bias current source is grounded.

9. The clamping circuit according to claim 1 or 2, characterized in that, When the power transistor of the charging chip is an NMOS transistor, the voltage generation module includes a fifth transistor, a sixth transistor, a bias current source, and a first buffer. The gates of the fifth transistor and the sixth transistor are both connected to the output terminal of the error amplification module. The source of the fifth transistor is connected to the input terminal of the first buffer and the first terminal of the bias current source, respectively. The second terminal of the bias current source receives a second voltage. The output terminal of the first buffer is connected to the control terminal of the sampling transistor. The source of the sixth transistor is used to connect to the output terminal of the current loop error amplifier. The drains of the fifth transistor and the sixth transistor are both grounded.

10. The clamping circuit according to claim 2, characterized in that, When the power transistor of the charging chip is a PMOS transistor, the clamping module includes a subtractor, a second error amplifier, a seventh transistor, an eighth transistor, and a bias current source. The positive input terminal of the subtractor is connected to the output terminal of the current loop error amplifier, the negative input terminal of the subtractor is used to receive the bias voltage, the output terminal of the subtractor is connected to the non-inverting input terminal of the second error amplifier, the inverting input terminal of the second error amplifier is connected to the source of the seventh transistor and the first terminal of the bias current source, the output terminal of the second error amplifier is connected to the gate of the seventh transistor and the gate of the eighth transistor, the drain of the seventh transistor and the drain of the eighth transistor both receive a third voltage, the second terminal of the bias current source is grounded, and the source of the eighth transistor is connected to the output terminal of the voltage regulation loop error amplifier.