Current sampling circuit and switching chip

By using a current sampling circuit structure without sampling resistors, and utilizing a Chopper operational amplifier and clamping module, the error problem introduced by the sampling resistor is solved, achieving high-precision current sampling, which is suitable for switching power supplies and load switching chips.

CN123144758APending Publication Date: 2026-11-20BEIJING SMARTCHIP MICROELECTRONICS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611027575.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-10
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing current sampling circuits suffer from inaccurate sampling due to resistance errors and temperature variations during chip manufacturing, especially at low currents.

Method used

A current sampling circuit structure without sampling resistors is adopted. A feedback loop is established through the first clamping module composed of Chopper operational amplifier and source follower to ensure that the source voltage of the sampling transistor follows the source terminal potential of the main power transistor. The second clamping module clamps the VDS potential of the sampling transistor and the main power transistor to eliminate errors introduced by process and temperature.

Benefits of technology

It improves sampling accuracy, avoids errors caused by sampling resistors, ensures that sampling accuracy is not affected by different temperatures and process conditions, and maintains a constant ratio of sampling tube to main power tube under low current, thus achieving accurate sampling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123144758A_ABST
    Figure CN123144758A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of analog integrated circuits, and provides a current sampling circuit and a switching chip.The current sampling circuit comprises a main power tube, a sampling tube, a first clamping module and a second clamping module, the gate of the main power tube is connected with the gate of the sampling tube, and the drain of the main power tube and the drain of the sampling tube are connected with a voltage source;the first clamping module comprises a first operational amplifier and a first MOS tube, the noninverting input end of the first operational amplifier is connected with the source of the sampling tube, the inverting input end of the first operational amplifier is connected with the source of the main power tube, the output end of the first operational amplifier is connected with the gate of the first MOS tube, and the source of the first MOS tube is connected with the source of the main power tube;the second clamping module comprises a second operational amplifier, the noninverting input end of the second operational amplifier is connected with the source of the sampling tube, the inverting input end is connected with a reference voltage, and the output end is connected with the gate of the main power tube and the gate of the sampling tube.The application can improve the accuracy of the current sampling tube.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of analog integrated circuit technology, specifically to a current sampling circuit and a switching chip. Background Technology

[0002] In switching power supply chips or load switching chips, a small sampling resistor is typically used to convert the sampled small current signal into a voltage signal. This voltage signal is then compared with a reference voltage at the input of an operational amplifier. This comparison allows the chip to limit current or shut down the main power transistor when the load current reaches a set value. However, because a sampling resistor is required, and its resistance value is typically between a few ohms and tens of ohms, variations in resistance values ​​between different batches of chips during manufacturing can introduce errors. Temperature variations can also cause changes in the resistance value, leading to inaccurate sampling. Furthermore, the small-value sampling resistor requires a certain amount of area. Therefore, existing current sampling circuits suffer from low sampling accuracy. Summary of the Invention

[0003] To address the shortcomings of existing technologies, this invention provides a current sampling circuit and a switching chip, which improves the accuracy of current sampling.

[0004] The present invention provides a current sampling circuit, including: a main power transistor Power MOS, a sampling transistor SenseMOS, a first clamping module and a second clamping module, wherein the gate of the main power transistor is connected to the gate of the sampling transistor, and the drain of the main power transistor and the drain of the sampling transistor are connected to a voltage source VS. The first clamping module includes: a first operational amplifier and a first MOSFET M1. The first operational amplifier is a chopper operational amplifier Chopper_OP1, and the first MOSFET M1 is a source follower. The non-inverting input of the first operational amplifier Chopper_OP1 is connected to the source of the sampling transistor Sense MOS, the inverting input of the first operational amplifier Chopper_OP1 is connected to the source of the main power transistor Power MOS, the output of the first operational amplifier Chopper_OP1 is connected to the gate of the first MOSFET M1, and the source of the first MOSFET M1 is connected to the source of the main power transistor Power MOS. The second clamping module includes: a second operational amplifier OP2, the non-inverting input of the second operational amplifier OP2 is connected to the source of the sampling transistor Sense MOS, the inverting input of the second operational amplifier OP2 is connected to the reference voltage Vref, and the output of the second operational amplifier OP2 is connected to the gate of the main power transistor and the gate of the sampling transistor.

[0005] In this embodiment of the invention, the second clamping module further includes: a second MOS transistor M2 and a third MOS transistor M3. The gate and drain of the second MOS transistor M2 are connected and connected to the output terminal of the second operational amplifier OP2. The gate of the third MOS transistor M3 is connected to the output terminal of the second operational amplifier OP2. The drain of the third MOS transistor M3 is connected to the gate of the main power transistor and the gate of the sampling transistor. The source of the second MOS transistor M2 and the source of the third MOS transistor M3 are connected and grounded.

[0006] In this embodiment of the invention, the second clamping module further includes a charge pump module; The charge pump module includes a fourth MOSFET M4 and a fifth MOSFET M5. The gate of the fourth MOSFET M4 is connected to the gate of the fifth MOSFET M5. The source of the fourth MOSFET M4 is connected to the source of the fifth MOSFET M5 and connected to the charge pump Charge_pump. The drain of the fourth MOSFET M4 is connected to its gate and connected to the first current source I. S1 The drain of the fifth MOSFET M5 is connected to the junction of the drain of the third MOSFET M3, the gate of the main power transistor, and the gate of the sampling transistor.

[0007] In this embodiment of the invention, the chopper operational amplifier includes: an input differential pair structure, a folded cascode structure, and a chopper switch; The input differential pair structure is used to convert the input differential voltage signal into a differential current signal; The folded cascode structure is used to fold the differential current signal and improve the output impedance to obtain high voltage gain. The chopper switch is used to modulate and demodulate the frequency of the input differential voltage signal.

[0008] In this embodiment of the invention, the input differential pair structure includes: a sixth MOS transistor M6 and a seventh MOS transistor M7; The source of the sixth MOSFET M6 and the source of the seventh MOSFET M7 are connected together and then connected to the second current source I. S2 The gates of the sixth MOSFET M6 and the seventh MOSFET M7 are respectively connected to the input signal modulated by the first set of chopper switches. The drains of the sixth MOSFET M6 and the seventh MOSFET M7 output differential current to the folded common source and common gate structure.

[0009] In this embodiment of the invention, the folded common-source common-gate structure includes: an eighth MOSFET M8, a ninth MOSFET M9, a tenth MOSFET M10, an eleventh MOSFET M11, a twelfth MOSFET M12, a thirteenth MOSFET M13, a fourteenth MOSFET M14, and a fifteenth MOSFET M15. The sources of the eighth MOSFET M8 and the ninth MOSFET M9 are connected to the power supply voltage VDD, and their gates are connected to the current source bias voltage VP, forming a PMOS common-source common-gate load. The gates of the tenth MOSFET M10 and the eleventh MOSFET M11 are connected to the forward bias voltage VPC, and the gates of the twelfth MOSFET M12 and the thirteenth MOSFET M13 are connected to the negative bias voltage VNC, forming an NMOS common source and common gate structure.

[0010] In this embodiment of the invention, there are three sets of chopper switches, and each set of chopper switches includes four switch pairs.

[0011] In this embodiment of the invention, the time delay between each group of chopper switches is 1 ns.

[0012] In this embodiment of the invention, the reference voltage Vref is generated by a bandgap reference and serves as the reference voltage for the second clamping module.

[0013] In another aspect, the present invention provides a switching chip, the switching chip including the current sampling circuit described above.

[0014] The current sampling circuit of the present invention eliminates the sampling resistor, avoids the error caused by the sampling resistor itself during the manufacturing process, and saves chip area. On the one hand, the source potentials of the sampling transistor and the main power transistor are directly controlled by voltage clamping. The first clamping module, composed of a Chopper operational amplifier and a source follower, establishes a feedback loop by freewheeling the sampling current. The Chopper operational amplifier forces the source voltage of the sampling transistor to follow the source potential of the main power transistor through the negative feedback loop. At this time, the ratio of the sampling current to the main current is determined only by the ratio of the sampling transistor to the main power transistor (the current ratio is consistent with that of the MOSFET). Since there are no resistors, the sampling accuracy is no longer affected by resistance drift, avoiding errors introduced by process and temperature, and improving the sampling accuracy. On the other hand, the second clamping module, composed of another type of operational amplifier, clamps the potentials of the VDS (drain-source voltage) of the sampling transistor and the main power transistor. Under low current conditions, the error of the operational amplifier can be reduced to ensure that the ratio of the sampling current is not affected by the VGS (gate-source voltage). Under low current conditions, the VDS ratio of the sampling transistor and the main power transistor remains constant, eliminating the nonlinear error under low current conditions, and achieving accurate sampling under different load currents.

[0015] Other features and advantages of the technical solution of the present invention will be described in detail in the following detailed embodiments section. Attached Figure Description

[0016] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this invention, illustrate exemplary embodiments of the invention and are used to explain the invention, but do not constitute an undue limitation of the invention. In the drawings: Figure 1 This is a schematic diagram of a conventional current sampling circuit structure. Figure 2 This is a schematic diagram of the current sampling circuit provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the chopper operational amplifier in the current sampling circuit provided in this embodiment of the invention. Detailed Implementation

[0017] To make the technical solutions and advantages of the embodiments of the present invention clearer, the exemplary embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not an exhaustive list of all embodiments. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of the present invention can be combined with each other.

[0018] In the description of this invention, it should be understood that the terms "first," "second," "third," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. In this invention, unless otherwise expressly specified and limited, terms such as "connected," "linked," and "interlocked" should be interpreted broadly. For example, they can refer to electrical connections or the ability to communicate with each other; they can refer to direct connections or indirect connections through an intermediate medium; they can refer to the internal connection of two elements or the interaction between two elements. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0019] As described in the background section, existing current sampling circuits suffer from low sampling accuracy. Figure 1 This is a schematic diagram of a conventional current sampling circuit structure. (For example...) Figure 1As shown, the existing current sampling circuit structure includes: a main power transistor (Power MOS), a sampling transistor (Sense MOS), and a sampling resistor (Rsense). The gates of the Power MOS and Sense MOS are connected to the gate control signal terminal (Gate_sw). The drain of the Power MOS is connected to the power supply terminal (VDD). The drain of the Sense MOS is connected to one end of the sampling resistor (Rsense), and the other end of Rsense is connected to VDD. The source of the Power MOS is connected to one end of the load resistor (Rload), and the other end of Rload is grounded. The source of the Sense MOS is connected to the source of the Power MOS. The current sampling output terminal (CS) is led out from the connection node between the drain of the Sense MOS and the Rsense. The size ratio (current ratio) of the Power MOS and Sense MOS is N:1.

[0020] Existing current sampling circuits incorporate a sampling resistor, Rsense. However, due to variations in resistor values ​​between different chip batches during manufacturing and changes in temperature, the sampling resistor's value can become inaccurate. Therefore, existing current sampling circuits suffer from low sampling accuracy. Another issue with existing current sampling circuits is that when the load current is low (<200mA), although the gate-source voltage VGS of the sampling transistor and the main power transistor are the same, they are in the deep linear region. The sampling transistor's resistance decreases to a value comparable to the sampling resistor Rsense. Under low current conditions, the source-drain voltage VDS of the sampling transistor is smaller, resulting in a different current ratio compared to the sampling transistor's current under high current conditions, thus introducing further errors.

[0021] In existing current sampling circuits, the introduction of a sampling resistor, Rsense, as a new error factor can mitigate errors caused by variations in the sampling resistor's value, as well as errors introduced by the source-drain voltage VDS when the sampling transistor and main power transistor are in the deep linear region at low currents. This can be achieved by increasing the number of parallel resistors, thus reducing the sampling resistor's value, and also by increasing the resistor's area, which can reduce resistor error. Furthermore, adding dummy resistors in the sampling resistor region can improve the consistency of the resistor string. When selecting sampling resistors, resistors with low temperature coefficients and small sheet resistances should be chosen. While these methods can reduce the errors introduced by the sampling transistor and sampling resistor, they cannot fundamentally eliminate them. Therefore, a new circuit structure is needed to eliminate the error factor and the proportional mismatch between the sampling transistor and main power transistor at low currents.

[0022] This invention provides a current sampling circuit that eliminates the need for a sampling resistor, avoids errors caused by the sampling resistor itself during manufacturing, and saves chip area. On the one hand, the source potentials of the sampling transistor and the main power transistor are directly controlled by voltage clamping. The first clamping module, composed of a Chopper operational amplifier and a source follower, establishes a feedback loop by freewheeling the sampling current. The Chopper operational amplifier forces the source voltage of the sampling transistor to follow the source potential of the main power transistor through the negative feedback loop. At this time, the ratio of the sampling current to the main current is determined only by the ratio of the sampling transistor to the main power transistor (the current ratio is consistent with that of the MOSFET). Since there are no resistors, the sampling accuracy is no longer affected by resistance drift, avoiding errors introduced by process and temperature, and improving the sampling accuracy. On the other hand, the second clamping module, composed of another type of operational amplifier, clamps the potentials of the source-drain voltage VDS of the sampling transistor and the main power transistor. Under low current conditions, the gate-source voltage VGS can be reduced to ensure that the error of the operational amplifier does not affect the ratio of the sampling current. Under low current conditions, the VDS ratio of the sampling transistor and the main power transistor remains constant (the sampling current ratio is strictly equal to N:1), eliminating the nonlinear error under low current conditions, and achieving accurate sampling under different load currents.

[0023] Figure 2 This is a schematic diagram of the current sampling circuit provided in an embodiment of the present invention. Figure 2As shown, the current sampling circuit provided in this embodiment includes: a main power transistor (Power MOS), a sampling transistor (Sense MOS), a first clamping module, and a second clamping module. The gate of the main power transistor (Power MOS) is connected to the gate of the sampling transistor (Sense MOS), and the drains of the main power transistor (Power MOS) and the sampling transistor (Sense MOS) are connected to a voltage source (VS). The main power transistor (Power MOS) and the sampling transistor (Sense MOS) can be NMOS transistors. The first clamping module includes: a first operational amplifier and a first MOS transistor M1 (PMOS). The first operational amplifier is a chopper operational amplifier (Chopper_OP1), and the first MOS transistor M1 acts as a source follower. The non-inverting input of the first operational amplifier (Chopper_OP1) is connected to the source of the sampling transistor (Sense MOS), the inverting input of the first operational amplifier (Chopper_OP1) is connected to the source of the main power transistor (Power MOS), the output of the first operational amplifier (Chopper_OP1) is connected to the gate of the first MOS transistor M1, the source of the first MOS transistor M1 is connected to the source of the main power transistor (Power MOS), and the drain of the first MOS transistor M1 is connected to the sampling signal processing terminal (Sense). The second clamping module includes a second operational amplifier OP2. The non-inverting input of the second operational amplifier OP2 is connected to the source of the sampling transistor SenseMOS, the inverting input of the second operational amplifier OP2 is connected to the reference voltage Vref, and the output of the second operational amplifier OP2 is connected to the gate of the main power transistor PowerMOS and the gate of the sampling transistor SenseMOS.

[0024] A chopper operational amplifier (also known as a zero-drift operational amplifier) ​​is an operational amplifier used for high-precision amplification of weak DC or extremely low-frequency signals. It can significantly reduce input offset voltage and low-frequency noise, thereby achieving high stability and high precision.

[0025] In this embodiment, the main power transistor (Power MOS) and the sampling transistor (Sense MOS) are clamped at their source terminals by a chopper operational amplifier (Chopper_OP1) to ensure that the source voltages are identical, thereby eliminating errors caused by operational amplifier matching. The chopper operational amplifier (Chopper_OP1) adopts a folded cascode structure and integrates three sets of chopper switches to achieve high-precision amplification with low offset and low noise.

[0026] Figure 3 This is a schematic diagram of the structure of the chopper operational amplifier Chopper_OP1 in the current sampling circuit provided in this embodiment of the invention. Figure 3As shown, the chopper operational amplifier includes an input differential pair structure, a folded cascode structure, and three sets of chopper switches. The input differential pair structure converts the input differential voltage signals (INP, INN) into differential current signals. The input differential pair structure includes a sixth MOSFET M6 and a seventh MOSFET M7, which form an NMOS differential pair. The sources of the sixth MOSFET M6 and the seventh MOSFET M7 are connected and connected to the second current source I. S2 The gates of the sixth MOSFET M6 and the seventh MOSFET M7 are connected to the input signal modulated by the first set of chopper switches (CLK1). The drains of the sixth MOSFET M6 and the seventh MOSFET M7 output differential currents to the folded cascode structure. When the INP voltage is higher than INN, the gate potential of the sixth MOSFET M6 is higher, its on-state current decreases, and the on-state current of the seventh MOSFET M7 increases, thus generating opposite current changes at the drains of the differential pair, outputting differential current.

[0027] The folded cascode structure folds the differential current of the input differential pair to the output differential current (folding it from the PMOS differential to the NMOS path) and increases the output impedance through the cascode structure, thereby achieving high voltage gain. The cascode structure effectively suppresses the influence of power supply voltage variations on the output signal. The folded cascode structure includes: the eighth MOSFET M8, the ninth MOSFET M9, the tenth MOSFET M10, the eleventh MOSFET M11, the twelfth MOSFET M12, the thirteenth MOSFET M13, the fourteenth MOSFET M14, and the fifteenth MOSFET M15. M8, M9, M10, and M11 are PMOS transistors. The sources of M8 and M9 are connected to VDD, and their gates are connected to the current source bias voltage VP, forming a PMOS cascode load. The gates of M10 and M11 are connected to the bias voltage VPC, and the gates of M12 and M13 are connected to the bias voltage VNC, forming an NMOS cascode structure. VPC and VNC are the common gate bias. M12, M13, M14, and M15 form the output stage. Differential current flows from the drain of the sixth MOSFET M6 and the seventh MOSFET M7. Part of the current flows into the PMOS cascode transistors M8 / M9 / M10 / M11, and the other part flows through the fold point into the NMOS cascode transistors M12 / M13 / M14 / M15. Since the gate biases VPC and VNC of the cascode transistors are fixed, their leakage current is controlled by the input differential current, resulting in a voltage change at the output node OUT. The high output impedance allows even a small differential current to generate a large output voltage swing, thus achieving high gain.

[0028] There are three sets of chopper switches used for modulation and demodulation of the input differential voltage signal. The three sets of chopper switches are multiple pairs of switches (NMOS / PMOS switches) controlled by clock signals CLK1, CLK2, and CLK3. Each set of chopper switches contains multiple switch pairs (four of each) to achieve cross-connection of the fully differential signal in both forward and reverse directions. The first set of chopper switches (controlled by CLK1) modulates the input signal INP / INN, modulating the input signal and the operational amplifier's own offset voltage to the chopper frequency (CLK1's frequency), enabling subsequent circuitry to separate it from the useful signal. The second set of chopper switches (controlled by CLK2) is located at an internal node of the folded cascode structure, demodulating the signal after the first stage of amplification, while further modulating the offset and noise. The third set of chopper switches (controlled by CLK3) is located in the output stage, completing the final demodulation, restoring the useful signal to baseband, and shifting the offset to a higher frequency component.

[0029] In this embodiment, the chopper operational amplifier converts differential voltage into differential current through input differential pairs (M6, M7). The folded cascode structure (M8-M15) provides high gain and high output impedance, while three sets of chopper switches (CLK1 / CLK2 / CLK3) eliminate the operational amplifier's own offset voltage through modulation and demodulation techniques. The three parts work together to enable the operational amplifier to achieve an equivalent input offset voltage in the microvolt range (≤50μV), thus providing a high-precision comparison basis for source-end clamping in the current sampling circuit, ensuring that the source-end voltages of the main power transistor and the sampling transistor are strictly equal. In this embodiment, the 3sigma error of the chopper operational amplifier Chopper_OP1 is approximately 50µV, allowing for accurate proportional replication of the sampling transistor and the main power transistor under the same source-end clamping conditions.

[0030] In this embodiment, the chopper operational amplifier adopts a folded cascode structure, with a 1ns time delay between the first, second, and third sets of chopper switches. The 1ns time delay between the clocks of the three sets of chopper switches avoids mutual interference from charge injection and clock feedthrough effects during switch switching, further improving accuracy.

[0031] Since the operational amplifier gain is limited to 60dB-70dB, there will be an offset of about 0.2mV across the operational amplifier. Similarly, under low current, VDS decreases to a point where this offset cannot be ignored, which will cause the ratio of the sampling transistor and the power transistor to become unbalanced. Therefore, an operational amplifier is needed to clamp VDS to a preset value by reducing the gate voltage through a loop when VDS is small. This value should be much greater than 0.2mV.

[0032] like Figure 1As shown, Chopper_OP1 is an operational amplifier that clamps the sampling transistor and the source of the main power transistor. The output of the op-amp is connected to a PMOS as a source follower, and the sampling transistor current freewheels through the clamping loop and flows out from the Sense port. Under low current, VDS can be clamped by the operational amplifier OP2 with a common folded cascode structure. The reference voltage Vref is generated by a bandgap reference and provides a reference for the second clamping module, ensuring that Vref is unaffected by power supply and temperature. Typically, the reference voltage Vref is 40mV.

[0033] In this embodiment, the second clamping module includes a second operational amplifier OP2, a second MOSFET M2, and a third MOSFET M3. The gate and drain of the second MOSFET M2 are connected to the output terminal of the second operational amplifier OP2. The gate of the third MOSFET M3 is connected to the output terminal of the second operational amplifier OP2. The drain of the third MOSFET M3 is connected to the gate of the main power transistor and the gate of the sampling transistor. The source of the second MOSFET M2 and the source of the third MOSFET M3 are connected to ground. The second MOSFET M2 and the third MOSFET M3 form an NMOS diode structure. Since there are two poles in the clamping loop, and because the power transistor has a large area and a large parasitic capacitance, the two poles being close together leads to loop instability. In this embodiment, the output position of the second operational amplifier OP2 is connected to ground through the NMOS diode formed by the second MOSFET M2 and the third MOSFET M3, which reduces the output impedance, shifts the secondary pole in the loop to the right, separates the primary and secondary poles, and makes the phase margin greater than 60 degrees.

[0034] In an optional embodiment, the second clamping module further includes a charge pump module, which includes a fourth MOSFET M4 and a fifth MOSFET M5. The gate of the fourth MOSFET M4 is connected to the gate of the fifth MOSFET M5, the source of the fourth MOSFET M4 is connected to the source of the fifth MOSFET M5 and connected to the charge pump Charge_pump, and the drain of the fourth MOSFET M4 is connected to the gate of the fourth MOSFET M4 and connected to the first current source I. S1 The drain of the fifth MOSFET M5 is connected to the junction of the drain of the third MOSFET M3, the gate of the main power MOSFET, and the gate of the sampling MOSFET Sense MOSFET. The charge pump module generates a voltage higher than VDD, which is supplied to Gate_sw to drive the NMOS gate, enabling it to be completely turned off or to provide sufficient negative voltage to ensure that the main power MOSFET is reliably turned on when needed.

[0035] This invention provides a switching chip that includes the aforementioned current sampling circuit. The switching chip can be a switching power supply chip or a load switching chip. The current sampling circuit samples the load current, and when the load current reaches a set current value, the chip limits the current or shuts down the main power transistor.

[0036] The optional embodiments of the present invention have been described in detail above with reference to the accompanying drawings. However, the embodiments of the present invention are not limited to the specific details in the above embodiments. Within the scope of the technical concept of the embodiments of the present invention, various simple modifications can be made to the technical solutions of the embodiments of the present invention, and these simple modifications all fall within the protection scope of the embodiments of the present invention. Furthermore, it should be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. As long as such combination does not violate the spirit of the embodiments of the present invention, it should also be considered as the content disclosed in the embodiments of the present invention.

Claims

1. A current sampling circuit, characterized in that, include: The main power transistor, the sampling transistor, the first clamping module, and the second clamping module are connected. The gate of the main power transistor is connected to the gate of the sampling transistor, and the drain of the main power transistor and the drain of the sampling transistor are connected to a voltage source. The first clamping module includes: a first operational amplifier and a first MOS transistor. The first operational amplifier is a chopper operational amplifier. The non-inverting input terminal of the first operational amplifier is connected to the source of the sampling transistor, the inverting input terminal of the first operational amplifier is connected to the source of the main power transistor, the output terminal of the first operational amplifier is connected to the gate of the first MOS transistor, and the source of the first MOS transistor is connected to the source of the main power transistor. The second clamping module includes: a second operational amplifier, the non-inverting input of the second operational amplifier being connected to the source of the sampling transistor, the inverting input of the second operational amplifier being connected to a reference voltage, and the output of the second operational amplifier being connected to the gate of the main power transistor and the gate of the sampling transistor.

2. The current sampling circuit according to claim 1, characterized in that, The second clamping module further includes a second MOS transistor and a third MOS transistor. The gate and drain of the second MOS transistor are connected to the output terminal of the second operational amplifier. The gate of the third MOS transistor is connected to the output terminal of the second operational amplifier. The drain of the third MOS transistor is connected to the gate of the main power transistor and the gate of the sampling transistor. The source of the second MOS transistor and the source of the third MOS transistor are connected to ground.

3. The current sampling circuit according to claim 2, characterized in that, The second clamping module also includes: a charge pump module; The charge pump module includes a fourth MOS transistor and a fifth MOS transistor. The gate of the fourth MOS transistor is connected to the gate of the fifth MOS transistor. The source of the fourth MOS transistor is connected to the source of the fifth MOS transistor and connected to the charge pump. The drain of the fourth MOS transistor is connected to the gate of the fourth MOS transistor and connected to the first current source. The drain of the fifth MOS transistor is connected to the junction point of the drain of the third MOS transistor, the gate of the main power transistor, and the gate of the sampling transistor.

4. The current sampling circuit according to claim 1, characterized in that, The chopper operational amplifier includes: an input differential pair structure, a folded cascode structure, and a chopper switch; The input differential pair structure is used to convert the input differential voltage signal into a differential current signal; The folded cascode structure is used to fold the differential current signal and improve the output impedance to obtain high voltage gain. The chopper switch is used to modulate and demodulate the frequency of the input differential voltage signal.

5. The current sampling circuit according to claim 4, characterized in that, The input differential pair structure includes: a sixth MOS transistor and a seventh MOS transistor; The source of the sixth MOSFET and the source of the seventh MOSFET are connected to the second current source. The gates of the sixth MOSFET and the seventh MOSFET are respectively connected to the input signal modulated by the first set of chopper switches. The drains of the sixth MOSFET and the seventh MOSFET output differential current to the folded common source and common gate structure.

6. The current sampling circuit according to claim 4, characterized in that, The folded cascode structure includes: an eighth MOSFET, a ninth MOSFET, a tenth MOSFET, an eleventh MOSFET, a twelfth MOSFET, a thirteenth MOSFET, a fourteenth MOSFET, and a fifteenth MOSFET; The source of the eighth and ninth MOSFETs is connected to the power supply voltage, and the gate of the eighth and ninth MOSFETs is connected to the current source bias voltage. The gates of the 10th and 11th MOSFETs are connected to a forward bias voltage, while the gates of the 12th and 13th MOSFETs are connected to a negative bias voltage.

7. The current sampling circuit according to claim 4, characterized in that, The chopper switch has three sets, and each set of chopper switches includes four switch pairs.

8. The current sampling circuit according to claim 7, characterized in that, The time delay between each set of chopper switches is 1 ns.

9. The current sampling circuit according to claim 1, characterized in that, The reference voltage is generated by a bandgap reference and serves as the reference voltage for the second clamping module.

10. A switching chip, characterized in that, The switching chip includes the current sampling circuit according to any one of claims 1-9.