Current-limiting protection circuit, chip and electronic equipment
By using sampling modules and comparison modules in the current limit protection circuit to control the current limit transistors, ensuring that the load current is within the current limit threshold, solving the problem of slow response of the existing current limit protection circuit and direct shutdown of the overcurrent protection, achieving rapid Response and load current limiting effects.
Patent Information
- Application Number
- CN202411137410.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-11-26
AI Technical Summary
The existing current-limiting protection circuit reacts slowly when facing overcurrent, which can easily lead to circuit damage. At the same time, the overcurrent protection directly closes the path, which will cause the load end to fail, and cannot effectively avoid chip damage caused by long-term operation of large currents.
Design a current limit protection circuit, including a sampling module and a comparison module, which mirrors the load current flowing through the current limit transistor, and controls the conduction or disconnection of the current limit transistor by comparing the comparison module with the reference current and outputting the comparison voltage. On, ensure that the load current is within the current limit threshold, respond quickly to overcurrent and do not directly shut down the load.
It realizes rapid response in the face of overcurrent, avoids the load current working for too long, protects the circuit from being damaged, and avoids direct shutdown of the load, ensuring that the load current is within the rated current, improving the safety of the chip and reliability.
Smart Images

Figure CN119029815A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic circuits, and in particular to a current limiting protection circuit, a chip and an electronic device. Background Art
[0002] With the continuous improvement of the integration of medium and large-scale integrated circuits, circuit power consumption and environmental stability have become important factors affecting chip performance. When power supply short circuit, line short circuit and charge discharge occur inside the chip, the current will increase, causing the temperature inside the chip to rise. The device is very likely to be irreversibly damaged due to the temperature rise. In addition, in power chips, the long-term operation of high current loads will also cause the chip temperature to rise and cause irreversible damage.
[0003] To prevent excessive current, chip protection modules generally have overcurrent protection and current limiting protection. Overcurrent protection is generally used in an open loop. When overcurrent occurs, the overcurrent path is directly shut down through a comparator. Its advantages are fast speed, safety and reliability. The disadvantage is that it will directly shut down the path and cause the load end to fail to work. Current limiting protection is generally used in a closed loop. When overcurrent occurs, the current limiting protection circuit loop is opened and feedback is used to control the output current. The advantage is that the current can be limited to below the rated current when overcurrent occurs. The disadvantage is that the current limiting loop opens slowly, and excessive current can easily burn the circuit when the loop is opened. Summary of the invention
[0004] In view of the above problems, the embodiments of the present application provide a current limiting protection circuit, a chip and an electronic device to solve the above technical problems.
[0005] In a first aspect, an embodiment of the present application provides a current limiting protection circuit, comprising: a sampling module and a comparison module, wherein: the sampling module is used to mirror the load current flowing through the current limiting transistor to output a sampling current; the comparison module is used to compare the sampling current with the reference current and output a comparison voltage; the output end of the comparison module is connected to the control end of the current limiting transistor to turn on or off the current limiting transistor based on the comparison voltage.
[0006] In a second aspect, an embodiment of the present application further provides a chip, comprising the above-mentioned current limiting protection circuit.
[0007] In a third aspect, an embodiment of the present application further provides an electronic device, comprising the above-mentioned chip or current limiting protection circuit.
[0008] The current limiting protection circuit, chip and electronic device provided by the embodiment of the present application, when the load current is less than the current limiting threshold, the comparison module outputs a comparison voltage to turn on the current limiting transistor; when the load current is greater than the current limiting threshold, the comparison module outputs a comparison voltage to turn off the current limiting transistor; as the current limiting transistor is turned off, the load current is pulled down, and since the sampling current is mirrored from the load current, the change of the load current is fed back to the comparison module through the sampling current, and the comparison module performs feedback adjustment based on the sampling current to limit the load current below the current limiting threshold. In this way, it can respond quickly to overcurrent, and will not work with high current for a long time, and will not directly shut down the load, but limit the load current to below the rated current.
[0009] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0011] Figure 1 A schematic diagram of the structure of a current limiting protection circuit provided in an embodiment of the present application is shown.
[0012] Figure 2 An exemplary signal change diagram during the current limiting protection process of an embodiment of the present application is shown.
[0013] Figure 3 A schematic diagram of the structure of a comparison module provided in an embodiment of the present application is shown.
[0014] Figure 4 A structural schematic diagram of a current limiting protection circuit provided in an embodiment of the present application is shown.
[0015] Figure 5 A schematic structural diagram of a reference current source provided in an embodiment of the present application is shown.
[0016] Figure 6 A schematic diagram of the structure of an operational amplifier provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0017] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0018] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.
[0019] In the embodiments of the present application, it should be noted that, in this article, relational terms such as first and second, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.
[0020] Moreover, the terms "comprises," "comprising," or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0021] In the description of the embodiments of the present application, words such as "example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "example" or "for example" in the embodiments of the present application is not to be interpreted as being more preferred or having more advantages than another embodiment or design. The use of words such as "example" or "for example" is intended to present relative concepts in a clear manner.
[0022] In addition, the "plurality" in the embodiments of the present application refers to two or more than two. In view of this, in the embodiments of the present application, "plurality" can also be understood as "at least two". "At least one" can be understood as one or more, for example, one, two or more. For example, including at least one means including one, two or more, and there is no limit on which ones are included. For example, including at least one of A, B and C, then A, B, C, A and B, A and C, B and C, or A, B and C can be included.
[0023] It should be noted that, in the embodiments of the present application, "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / ", unless otherwise specified, generally indicates that the associated objects before and after are in an "or" relationship.
[0024] It should be noted that in the embodiments of the present application, "connection" can be understood as electrical connection, and the connection between two electrical components can be a direct or indirect connection between the two electrical components. For example, the connection between A and B can be either a direct connection between A and B or an indirect connection between A and B through one or more other electrical components.
[0025] The first pole / first end of each transistor used in the embodiments of the present application is one of the source and the drain, and the second pole / second end of each transistor is the other of the source and the drain. Since the source and drain of the transistor can be symmetrical in structure, the source and drain thereof can be structurally indistinguishable, that is, the first pole / first end and the second pole / second end of the transistor in the embodiments of the present application can be structurally indistinguishable. Exemplarily, in the case where the transistor is a P-type transistor, the first pole / first end of the transistor is the source, and the second pole / second end is the drain; exemplarily, in the case where the transistor is an N-type transistor, the first pole / first end of the transistor is the drain, and the second pole / second end is the source.
[0026] In the circuit structure provided in the embodiments of the present application, the first node, the second node and other nodes do not represent actual existing components, but represent the junction points of related couplings in the circuit diagram, that is, these nodes are nodes formed by the equivalent junction points of related couplings in the circuit diagram.
[0027] The present application embodiment provides a current limiting protection circuit, such as Figure 1As shown, the current limiting protection circuit 100 includes: a sampling module 110 and a comparison module 120. The sampling module 110 is used to mirror the load current Ic flowing through the current limiting transistor Mc to output a sampling current Is. The comparison module 120 is used to compare the sampling current Is with the reference current Iref and output a comparison voltage Vout. The output end of the comparison module 120 is connected to the control end of the current limiting transistor Mc to turn on or off the current limiting transistor Mc based on the comparison voltage Vout. The current limiting transistor Mc is connected between the power supply terminal VC and the load Load, and the current flowing through the current limiting transistor Mc is the load current Ic provided by the power supply terminal VC to the load Load. When the load current Ic is less than the current limiting threshold, the comparison module 120 outputs a first comparison voltage to turn on the current limiting transistor Mc. When the load current Ic is greater than the current limiting threshold, for example, the comparison module 120 outputs a second comparison voltage to turn off the current limiting transistor Mc, thereby quickly responding to overcurrent and preventing the load from working at a large current for a long time. After the current limiting transistor Mc is disconnected, the load current Ic is pulled down. Since the sampling current Is is mirrored from the load current Ic, the change of the load current Ic is fed back to the comparison module 120 through the sampling current Is. The comparison module 120 performs feedback adjustment based on the sampling current Is to limit the load current Ic below the current limiting threshold, thereby not directly shutting down the load Load, but limiting the load current Ic below the rated current.
[0028] For easier understanding of the embodiments of this application, please refer to Figure 2 As shown, when the load current Ic is less than the current limiting threshold Ith, the comparison module 120 outputs a first comparison voltage (e.g., a high level), and the current limiting transistor Mc is in an on state. When the load current Ic increases rapidly to be greater than the current limiting threshold Ith, the sampling current Is increases accordingly, and the output of the comparison module 120 is flipped, from the first comparison voltage to the second comparison voltage (e.g., a low level), and the current limiting transistor Mc is disconnected under the control of the voltage at its control terminal. As the current limiting transistor Mc is disconnected, the load current Ic decreases rapidly to near zero, and the sampling current Is decreases rapidly to near zero. As the sampling current Is decreases, the output of the comparison module 120 flips again, gradually changing from the second comparison voltage to the first comparison voltage. During this process, the comparison module 120 performs feedback regulation to limit the load current Ic below the current limiting threshold Ith.
[0029] In some possible implementations, such as Figure 3As shown, the comparison module 120 may include a first stage 121 and a second stage 122. The first stage 121 is used to distribute the reference current Iref based on a first voltage U1 corresponding to the sampled current Is and a second voltage U2 corresponding to the reference current Iref. The second stage 122 is used to output a comparison voltage Vout based on the current difference between the two currents obtained by the first stage 121 distribution. Since the first voltage U1 corresponds to the sampled current Is and the second voltage U2 corresponds to the reference current Iref, that is, the current distribution changes with the sampled current Is, and the sampled current Is is mirrored from the load current Ic, that is, the current distribution changes with the load current Ic.
[0030] In some possible implementations, such as Figure 3 As shown, the comparison module 120 may include a first stage 121 and a second stage 122. The first stage 121 may include: a first current path 1211, a second current path 1212, a first resistance unit 1213 and a second resistance unit 1214. The first resistance unit 1213 is used to form a first voltage U1 corresponding to the sampling current Is at a first voltage node L1 on the first current path 1211. The second resistance unit 1214 is used to form a second voltage U2 corresponding to the reference current Iref at a second voltage node L2 on the second current path 1212. The first current path 1211 and the second current path 1212 perform current distribution on the reference current Iref based on the first voltage U1 and the second voltage U2. The second stage 122 is connected to the first current path 1211 and the second current path 1212, respectively, and is used to output a comparison voltage Vout based on the current difference between the first current path 1211 and the second current path 1212. Since the first voltage U1 corresponds to the sampling current Is, and the second voltage U2 is based on the reference current, the current distribution of the reference current Iref by the first current path 1211 and the second current path 1212 is based on the sampling current Is, that is, the current distribution changes with the sampling current Is, and the sampling current Is is mirrored from the load current Ic, that is, the current distribution of the first current path 1211 and the second current path 1212 changes with the load current Ic.
[0031] As an implementation, see Figure 3 and Figure 4As shown, the first current path 1211 may include: a first transistor M1, a second transistor M2, a third transistor M3 and a fourth transistor M4. The second transistor M2 is used to mirror the current of the first transistor M1. The fourth transistor M4 is used to mirror the current of the third transistor M3. The second end of the first transistor M1 is connected to the reference current source 200, and the first end of the first transistor M1 is connected to the first end of the first resistor unit 1213. The first end of the second transistor M2 is connected to the first end of the first resistor unit 1213. The first voltage node L1 is located at the first end of the first transistor M1 and the second transistor M2, and is also the first end of the first resistor unit 1213. The first end of the third transistor M3 is connected to the second end of the second transistor M2, and the first end of the third transistor M3 is connected to the control end of the third transistor M3. The first end of the fourth transistor M4 is connected to the second stage 122.
[0032] As an implementation, please continue to see Figure 3 and Figure 4 As shown, the second current path 1212 may include: a fifth transistor M5 and a sixth transistor M6. The sixth transistor M6 is used to mirror the current of the fifth transistor M5. The second end of the fifth transistor M5 is connected to the reference current source 200, the first end of the fifth transistor M5 is connected to the first end of the second resistor unit 1214, and the second end of the fifth transistor M5 is connected to the control end of the fifth transistor M5. The first end of the sixth transistor M6 is connected to the first end of the second resistor unit 1214, the control end of the sixth transistor M6 is connected to the control end of the fifth transistor M6, and the second end of the sixth transistor M6 is connected to the second stage 122. The second voltage node L2 is located at the first end of the fifth transistor M5 and the sixth transistor M6, and is also the first end of the second resistor unit 1214.
[0033] As an implementation, please continue to see Figure 3 and Figure 4 As shown, the second stage 122 may include a seventh transistor M7 and a current source 123. The control terminal of the seventh transistor M7 is connected to the first current path 1211 and the second current path 1212, and the second terminal of the seventh transistor M7 is connected to the first voltage terminal. Figure 4 As shown, the control terminal of the seventh transistor M7 is connected to the first terminal of the fourth transistor M4 and the second terminal of the sixth transistor M6. The current source 123 is between the first terminal of the seventh transistor M7 and the second voltage terminal. The comparison voltage Vout is the voltage of the first terminal of the seventh transistor M7.
[0034] As an implementation, please continue to see Figure 4 As shown, the second end of the first resistance unit 1213 and the second end of the second resistance unit 1214 are connected to the power supply terminal VC.
[0035] As an implementation, please continue to see Figure 4 As shown, the sampling module 110 includes: a sampling transistor Ms, a control end of the sampling transistor Ms is connected to a control end of the current limiting transistor Mc, and a first end of the sampling transistor Ms is connected to a first voltage node L1.
[0036] For the convenience of describing the embodiments of the present application, Figure 4 As shown, the first transistor M1 and the second transistor M2 include PMOS transistors, the third transistor M3 and the fourth transistor M4 include NMOS transistors, the fifth transistor M5 and the sixth transistor M6 include PMOS transistors, the seventh transistor M7 includes an NMOS transistor, the sampling transistor Ms and the current limiting transistor Mc include NMOS tubes, and it is assumed that the transistors M1, M2, M5, and M6 have the same size, and the transistors M3 and M4 have the same size. Based on the above situation, the working process of the current limiting protection circuit is exemplarily described below.
[0037] When the comparison module 120 is in a balanced state, the first voltage U1 of the first voltage node L1 is equal to the second voltage U2 of the second voltage node L2, and the current of the first transistor M1 and the current of the fifth transistor M5 are both 1 / 2*Iref; the second transistor M2 is the same size as the first transistor M1, so that the second transistor M2 can mirror the current of the first transistor M1 1:1, that is, the current of the second transistor M2 is 1 / 2*Iref; the sixth transistor M6 is the same size as the fifth transistor M5, so that the sixth transistor M6 can mirror the current of the fifth transistor M5 1:1, that is, the current of the sixth transistor M6 is 1 / 2*Iref. The first current I1 of the branch where the first resistor unit 1213 is located is the sum of the sampling current Is, the current of the first transistor M1 and the current of the second transistor M2. The second current I2 of the branch where the second resistor unit 1214 is located is the sum of the current of the sixth transistor M6 and the current of the fifth transistor M5. At this time, the following equation holds:
[0038] Uc-I1 R1= Uc-I2 R2 (1)
[0039] I2= 1 / 2*Iref+1 / 2*Iref=Iref (2)
[0040] I1=Is+1 / 2*Iref+1 / 2*Iref=Is+Iref (3)
[0041] From equations (1), (2) and (3), we can deduce:
[0042] Is=Iref(R2 / R1-1) (4)
[0043] Wherein, Uc is the voltage of the power supply terminal VC, I1 is the current passing through the first resistance unit 1213, I2 is the current passing through the second resistance unit 1214, R1 is the resistance value of the first resistance unit 1213, and R2 is the resistance value of the second resistance unit 1214. The first voltage U1 of the first voltage node L1 is Uc-I1 R1, and the second voltage U2 of the second voltage node L2 is Uc-I2 R2.
[0044] When the load current Ic passing through the current limiting transistor Mc is less than the current limiting threshold, referring to equations (1) to (4), it can be known that the sampling current Is output by the sampling transistor Ms is less than Iref(R2 / R1-1), so R1*I1 is less than R2*I2; further, the first voltage U1 of the first voltage node L1 is Uc-I1 R1, and the second voltage U2 of the second voltage node L2 is Uc-I2 R2, so the first voltage U1 is greater than the second voltage U2, and the current distributed by the second current path 1212 is less than the current distributed by the first current path 1211. At this time, the drain voltages of the fourth transistor M4 and the sixth transistor M6 are relatively low, the seventh transistor M7 is disconnected, and the comparison module 120 outputs a high level.
[0045] When the load current Ic passing through the current limiting transistor Mc is greater than the current limiting threshold, the sampling current Is output by the sampling transistor Ms is greater than Iref(R2 / R1-1), so R1*I1 is greater than R2*I2; further, the first voltage U1 of the first voltage node L1 is Uc-I1 R1, and the second voltage U2 of the second voltage node L2 is Uc-I2 R2, so the first voltage U1 is less than the second voltage U2, and the current distributed by the second current path 1212 is greater than the current distributed by the first current path 1211. At this time, the drain voltages of the fourth transistor M4 and the sixth transistor M6 are instantly pulled high, the seventh transistor M7 is turned on, the output of the comparison module 120 is instantly pulled low, the comparison module 120 outputs a low level, and the current of the current limiting transistor Mc is instantly pulled low. Then, the loop feedback control starts, and the comparison module 120 is converted into the operational amplifier mode until a balanced state is reached, and the currents of the current limiting transistor Mc and the sampling transistor Ms are limited to near the current limiting threshold.
[0046] Based on formula (4), it can be known that the current limiting threshold is determined by the first resistor unit 1213 and the second resistor unit 1214. In some embodiments, the current limiting threshold is set by adjusting the resistance value of the first resistor unit 1213. The first resistor unit 1213 may include: a first resistor array and a first switch array, and the first switch array selects resistors in the first resistor array based on a first control signal. In some embodiments, the current limiting threshold is set by adjusting the resistance value of the second resistor unit 1214. The second resistor unit 1214 may include: a second resistor array and a second switch array, and the second switch array selects resistors in the second resistor array based on a second control signal. Reference Figure 4 As shown, the second resistor array includes resistors R2_1, R2_2 to R2_n, totaling n resistors, and the second switch array includes switches T2_1 to T2_n, totaling n switches. In some embodiments, the current limiting threshold is set by adjusting the resistance values of the first resistor unit 1213 and the second resistor unit 1214.
[0047] In some embodiments, Figure 4 As shown, the current limiting protection circuit 100 may further include: a charge pump 124, connected between the power supply terminal VC and the current source 123, for boosting the power supply voltage Uc of the power supply terminal VC to ensure that the overcurrent capability is still good when the impedance of the load Load terminal is large.
[0048] As an implementation method, the reference current source can be Figure 5 As shown, the bandgap reference voltage VBG generates a current I on the resistor R driven by the operational amplifier AMP and the MOS tube Mp1 (a calibration module can be designed for the resistor R to achieve a small deviation under various process angles), and generates a reference current Iref under the mirror effect of the MOS tubes Mp2 and Mn1. Where:
[0049]
[0050] Where A V is the loop gain, where resistor R can be added to calibrate the module.
[0051] As an implementation method, the operational amplifier AMP in the reference current source can be as follows Figure 6 As shown, the operational amplifier AMP is composed of a two-stage amplifier to achieve a larger gain to ensure the accuracy of the current I. The first stage is a five-tube operational amplifier, and the second stage is a common source amplifier with a current source as the load. Capacitor C and resistor R Z It is the Miller capacitor and zero adjustment resistor to ensure loop stability.
[0052] The embodiment of the present application also provides a chip, which includes the above-mentioned current limiting protection circuit. The chip is also called an integrated circuit (IC), and the chip can be, but is not limited to, a SOC (System on Chip) chip or a SIP (system in package) chip. When the load current of the chip is less than the current limiting threshold, the comparison module outputs a comparison voltage to turn on the current limiting transistor; when the load current is greater than the current limiting threshold, the comparison module outputs a comparison voltage to turn off the current limiting transistor; as the current limiting transistor is turned off, the load current is pulled down, and since the sampling current is mirrored from the load current, the change of the load current is fed back to the comparison module through the sampling current, and the comparison module performs feedback adjustment based on the sampling current to limit the load current to below the current limiting threshold. In this way, it can respond quickly to overcurrent, will not work for a long time with high current, and will not directly shut down the load, but limit the load current to below the rated current.
[0053] The embodiment of the present application also provides an electronic device, which includes a device body and a chip as described above disposed in the device body. The electronic device may be, but is not limited to, a weight scale, a body fat scale, a nutrition scale, an infrared electronic thermometer, a pulse oximeter, a human body composition analyzer, a mobile power supply, a wireless charger, a fast charger, a car charger, an adapter, a display, a USB (Universal Serial Bus) docking station, a stylus, a true wireless headset, a car central control screen, a car, a smart wearable device, a mobile terminal, and a smart home device. Smart wearable devices include, but are not limited to, smart watches, smart bracelets, and cervical massagers. Mobile terminals include, but are not limited to, smart phones, laptops, tablet computers, and POS (point of sales terminal). Smart home devices include, but are not limited to, smart sockets, smart rice cookers, smart sweepers, and smart lights. In this electronic device, when the load current is less than the current limiting threshold, the comparison module outputs a comparison voltage to turn on the current limiting transistor; when the load current is greater than the current limiting threshold, the comparison module outputs a comparison voltage to turn off the current limiting transistor; as the current limiting transistor is turned off, the load current is pulled down, and since the sampling current is mirrored from the load current, the change of the load current is fed back to the comparison module through the sampling current, and the comparison module performs feedback adjustment based on the sampling current to limit the load current below the current limiting threshold. In this way, it can respond quickly to overcurrent, and will not work with high current for a long time, and will not directly shut down the load, but limit the load current below the rated current.
[0054] The above are only preferred embodiments of the present application, and are not intended to limit the present application in any form. Although the present application has been disclosed as above with preferred embodiments, it is not intended to limit the present application. Any technical personnel in the field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present application. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.
Claims
1. A current limiting protection circuit, characterized in that: include: Sampling module and comparison module, where: The sampling module is used to mirror the load current flowing through the current limiting transistor to output a sampling current; The comparison module is used to compare the sampled current with a reference current and output a comparison voltage; The output terminal of the comparison module is connected to the control terminal of the current limiting transistor to turn on or off the current limiting transistor based on the comparison voltage.
2. The circuit according to claim 1, characterized in that The comparison module comprises: The first stage is used to distribute the reference current based on a first voltage corresponding to the sampled current and a second voltage corresponding to the reference current; The second stage is used to output the comparison voltage based on the current difference between the two currents obtained by the first stage allocation.
3. The circuit according to claim 2, characterized in that The first level includes: a first current path; A first resistance unit, configured to form a first voltage corresponding to the sampling current at a first voltage node on the first current path; a second current path; a second resistance unit, configured to form a second voltage corresponding to the reference current at a second voltage node on the second current path; The first current path and the second current path perform current distribution on the reference current based on the first voltage and the second voltage; The second stage is connected to the first current path and the second current path respectively, and is used to output the comparison voltage based on the current difference between the first current path and the second current path.
4. The circuit according to claim 3, characterized in that The first current path comprises: a first transistor, wherein a second terminal of the first transistor is connected to a reference current source, and a first terminal of the first transistor is connected to a first terminal of the first resistance unit; A second transistor, used for mirroring the current of the first transistor, wherein a first end of the second transistor is connected to a first end of the first resistance unit; a third transistor, wherein a first terminal of the third transistor is connected to a second terminal of the second transistor, and a second terminal of the third transistor is connected to a control terminal of the third transistor; a fourth transistor, configured to mirror the current of the third transistor, wherein a first terminal of the fourth transistor is connected to the second stage; The first voltage node is located at a first end of the first transistor.
5. The circuit according to claim 3, characterized in that The second current path comprises: a fifth transistor, wherein a second terminal of the fifth transistor is connected to a reference current source, a first terminal of the fifth transistor is connected to a first terminal of a second resistor unit, and a second terminal of the fifth transistor is connected to a control terminal of the fifth transistor; a sixth transistor, used for mirroring the current of the fifth transistor, wherein a first end of the sixth transistor is connected to a first end of the second resistor unit, a control end of the sixth transistor is connected to a control end of the fifth transistor, and a second end of the sixth transistor is connected to the second stage; The second voltage node is located at the first end of the fifth transistor.
6. The circuit according to claim 4 or 5, characterized in that The second end of the first resistance unit and the second end of the second resistance unit are connected to a power supply end.
7. The circuit according to any one of claims 3 to 5, characterized in that: The first resistor unit includes: a first resistor array and a first switch array, the first switch array selects a resistor in the first resistor array based on a first control signal; and / or The second resistor unit includes: a second resistor array and a second switch array, and the second switch array selects a resistor in the second resistor array based on a second control signal.
8. The circuit according to any one of claims 3 to 5, characterized in that: The second level includes: a seventh transistor, wherein a control terminal of the seventh transistor is connected to the first current path and the second current path, and a second terminal of the seventh transistor is connected to the first voltage terminal; a current source connected between the first terminal and the second voltage terminal of the seventh transistor; The comparison voltage is a voltage of the first terminal of the seventh transistor.
9. The circuit according to claim 8, characterized in that Also includes: A charge pump is connected between the power supply terminal and the current source, and is used to boost the power supply voltage of the power supply terminal.
10. The circuit according to any one of claims 3 to 5, characterized in that: The sampling module comprises: a sampling transistor, a control end of the sampling transistor is connected to the control end of the current limiting transistor, and a first end of the sampling transistor is connected to the first voltage node.
11. A chip, characterized in that: The invention comprises the current limiting protection circuit as claimed in any one of claims 1 to 10.
12. An electronic device, characterized in that: The invention comprises a device body and the chip as claimed in claim 11 arranged in the device body.
