Current detection circuit and chip

By using a clamp circuit and a voltage bias circuit in the current detection circuit, the accuracy of the current detection circuit in detecting milliamp-level current is ensured, the problem of large errors in the existing current detection circuit is solved, and the current detection circuit is realized from milliamp level to Accurate measurement of current in amperes.

CN118604437APending Publication Date: 2024-09-06辰芯半导体(深圳)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410689655.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing current detection circuits have a problem of large errors when detecting milliamp-level currents. This is mainly due to the fact that the offset voltage and loop gain of the operational amplifier are not high enough, resulting in a difference in source and drain voltages between the clamping power tube and the sampling transistor. are inconsistent, leading to detection errors.

Method used

A current detection circuit is adopted, including first and second switching circuits, a voltage bias circuit and a clamping circuit. The voltage difference is equal to the voltage of the voltage bias circuit through the clamping function to ensure the conduction of the first and second switching circuits. The pass impedance maintains an equal proportional relationship, and a larger voltage bias voltage (for example, 200 millivolts) is used to reduce the impact of the operational amplifier error.

Benefits of technology

It achieves accurate measurement when detecting milliamp-level current, reduces detection errors, and can simultaneously detect current from milliamp level to ampere level, providing accurate current data for battery management systems and industrial automation to avoid equipment damage or accidents. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118604437A
    Figure CN118604437A
Patent Text Reader

Abstract

The invention discloses a current detection circuit and a chip, and relates to the technical field of current detection.The current detection circuit comprises a power input end, a first switching circuit, a second switching circuit, a voltage bias circuit, a first clamping circuit, a second clamping circuit, a first voltage division circuit and a power output end; the first clamping circuit is used for clamping the voltage of the output end of the first switching circuit to be equal to the voltage difference between the power input end and the voltage bias circuit, so that the voltage difference between the input end and the output end of the first switching circuit is equal to the voltage of the voltage bias circuit; the second clamping circuit is used for clamping the voltage of the output end of the second switching circuit to be equal to the voltage difference between the power input end and the voltage bias circuit, so that the voltage difference between the input end and the output end of the second switching circuit is equal to the voltage of the voltage bias circuit. The invention aims to solve the problem that the error is large when a current detection circuit detects a small current.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of current detection, and in particular to a current detection circuit and a chip. Background Art

[0002] With the rapid development and continuous innovation of science and technology, modern portable electronic devices such as smartphones and cameras have increasingly rich functions and increasingly stringent requirements for power management. This trend has led to an increasing demand for output current detection accuracy to ensure that these devices can achieve low power consumption and long battery life while operating efficiently. In short, high-precision current detection has become an indispensable part of modern portable electronic products.

[0003] The existing current detection circuit generally adopts an ordinary operational amplifier to clamp the source voltage of the power tube and the sampling transistor to be equal, so as to improve the detection accuracy. However, when the existing current detection circuit detects the current at the milliampere level, the voltage of the power tube will be very small. For example, when the impedance of the power tube is 100 milliohms and the detected current is 10 milliamperes, the voltage of the power tube is 1 millivolt. Since the operational amplifier has a millivolt offset voltage and the loop gain of the operational amplifier is not high enough, the positive and negative input terminals of the operational amplifier will produce millivolt errors when the existing current detection circuit detects the current at the milliampere level, so that the operational amplifier cannot accurately clamp the source voltage of the power tube and the sampling transistor to be equal, that is, the source and drain voltage difference of the clamped power tube and the sampling transistor is inconsistent, which further leads to the problem of large detection error when the current detection circuit detects the current at the milliampere level. Summary of the invention

[0004] The main purpose of the present invention is to provide a current detection circuit and a chip, aiming to solve the problem that the current detection circuit has a large error when detecting a relatively small current.

[0005] To achieve the above object, the current detection circuit proposed by the present invention includes:

[0006] Power input terminal;

[0007] a first switch circuit, wherein an input end of the first switch circuit is electrically connected to the power input end, and an output end of the first switch circuit is electrically connected to a load;

[0008] a second switch circuit, wherein an input terminal of the second switch circuit is electrically connected to the power input terminal, and a controlled terminal of the second switch circuit is electrically connected to a controlled terminal of the first switch circuit;

[0009] a voltage bias circuit and a first clamp circuit;

[0010] The first end of the voltage bias circuit is electrically connected to the input end of the first switch circuit, the first end of the first clamp circuit is electrically connected to the second end of the voltage bias circuit, and the second end of the first clamp circuit is electrically connected to the output end of the first switch circuit;

[0011] The first clamping circuit is used to clamp the voltage of the output terminal of the first switch circuit to be equal to the voltage difference between the power input terminal and the voltage bias circuit, so that the voltage difference between the input terminal and the output terminal of the first switch circuit is equal to the voltage of the voltage bias circuit;

[0012] a second clamping circuit, wherein a first end of the second clamping circuit is electrically connected to a second end of the first clamping circuit, and a second end of the second clamping circuit is electrically connected to an output end of the second switch circuit;

[0013] The second clamping circuit is used to clamp the voltage of the output terminal of the second switch circuit to be equal to the voltage difference between the power input terminal and the voltage bias circuit, so that the voltage difference between the input terminal and the output terminal of the second switch circuit is equal to the voltage of the voltage bias circuit;

[0014] A first voltage divider circuit and a voltage output end, wherein the first end of the first voltage divider circuit is electrically connected to the output end of the second switch circuit and the voltage output end respectively, the second end of the first voltage divider circuit is grounded, and the voltage output end is used to output a voltage that is proportional to the current flowing through the first switch circuit.

[0015] In one embodiment, the first clamping circuit comprises:

[0016] A first operational amplifier circuit, wherein the non-inverting end of the first operational amplifier circuit is electrically connected to the second end of the voltage bias circuit, the inverting end of the first operational amplifier circuit is electrically connected to the output end of the first switch circuit, and the output end of the first operational amplifier circuit is electrically connected to the controlled end of the first switch circuit.

[0017] In one embodiment, the second clamping circuit comprises:

[0018] A second operational amplifier circuit and a third switch tube, wherein the in-phase end of the second operational amplifier circuit is electrically connected to the second end of the first clamp circuit, the inverting end of the second operational amplifier circuit is electrically connected to the output end of the second switch circuit, the input end of the third switch tube is electrically connected to the output end of the second switch circuit, the output end of the third switch tube is electrically connected to the first end of the first voltage divider circuit, and the controlled end of the third switch tube is electrically connected to the output end of the second operational amplifier circuit.

[0019] In one embodiment, the voltage bias circuit comprises:

[0020] A second voltage divider circuit and a current source, wherein the first end of the second voltage divider circuit is electrically connected to the input end of the first switch circuit, the second end of the second voltage divider circuit is electrically connected to the first end of the first clamp circuit and the first end of the current source respectively, and the second end of the current source is grounded.

[0021] In one embodiment, the first switch circuit includes:

[0022] A first switch tube, wherein an input end of the first switch tube is electrically connected to the power input end, and an output end of the first switch tube is electrically connected to a load;

[0023] The second switch circuit comprises:

[0024] A second switch tube, wherein the input end of the second switch tube is electrically connected to the power input end, the output end of the second switch tube is electrically connected to the first end of the first voltage divider circuit, and the controlled end of the second switch tube is electrically connected to the controlled end of the first switch tube.

[0025] In one implementation, both the first switch tube and the second switch tube are NMOS tubes.

[0026] In one implementation, the third switch tube is a PMOS tube.

[0027] In one embodiment, a ratio of an on-resistance of the first switch circuit to an on-resistance of the second switch circuit is 1:10000.

[0028] The present invention further provides a current detection chip, comprising any one of the current detection circuits described above.

[0029] The technical solution of the present invention clamps the voltage of the output end of the first switch circuit to be equal to the voltage difference between the power input end and the voltage bias circuit through the clamping effect of the first clamping circuit, so that the voltage difference between the input end and the output end of the first switch circuit is equal to the voltage of the voltage bias circuit, and also clamps the voltage of the output end of the second switch circuit to be equal to the voltage of the first clamping circuit, that is, the voltage difference between the power input end and the voltage bias circuit through the clamping effect of the second clamping circuit, so that the voltage difference between the input end and the output end of the second switch circuit is equal to the voltage of the voltage bias circuit, and because the controlled end of the first switch circuit is connected to the controlled end of the second switch circuit, the voltage difference between the controlled end and the output end of the first switch circuit is equal to the voltage difference between the controlled end and the output end of the second switch circuit, and further, the on-resistance of the first switch circuit and the on-resistance of the second switch circuit always maintain an equiproportional relationship, that is, the second switch circuit samples to The current flowing through the first switch circuit always maintains an equal proportional relationship with the current flowing through the first switch circuit. The second switch circuit is used to collect the current at the power input end. The collected current flows to the first voltage divider circuit. The main control or host computer can obtain a voltage that is proportional to the current flowing through the first switch circuit through the voltage output end, that is, the voltage of the first voltage divider circuit. The current at the power input end can be obtained by analyzing the ratio of the equivalent impedance between the first switch circuit and the second switch circuit and the impedance of the first voltage divider circuit. With such a setting, it is only necessary to set the voltage of the voltage bias circuit to a larger value, such as 200 millivolts. When the current detection circuit of the present invention detects a current in the milliampere level, even if the operational amplifier in the clamp circuit has an offset voltage or a lower loop gain to generate an error, it will not have a significant impact on the clamping voltage of the clamping circuit, thereby solving the problem that the current detection circuit has a large detection error when detecting a current in the milliampere level.

[0030] In practical applications, the present invention can be applied to battery-using devices such as electric vehicles and smart phones. The battery management system (BMS) needs to detect the charging and discharging current of the battery in real time to ensure the safe and efficient use of the battery, and the current detection circuit of the present invention can accurately measure the current from milliampere level to ampere level, and provide accurate current data for the BMS. During the charging process, it can detect whether the charging current is too large to avoid overheating or damage to the battery; during the discharging process, the discharge current of the battery can be monitored, the remaining power can be estimated, and an accurate power display can be provided. The present invention can also be applied to industrial automation production lines, robot control and other systems to monitor the operating status and current consumption of the motor in real time. The current of the motor will change greatly during the start, operation and stop process. The current detection circuit of the present invention can simultaneously detect large currents and milliampere-level small currents, and provide accurate current data for the control system. When the motor has faults such as overload and short circuit, the current detected by the current detection circuit of the present invention can be discovered and alarmed in time to avoid equipment damage or accidents. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0032] Figure 1 A schematic diagram of a module according to an embodiment of the present invention;

[0033] Figure 2 FIG. 1 is a schematic diagram of a circuit structure of an embodiment of the present invention.

[0034] Description of Figure Numbers:

[0035] 10. A first switch circuit; 20. A second switch circuit; 30. A voltage bias circuit; 40. A first clamp circuit; 50. A second clamp circuit; 60. A first voltage divider circuit. DETAILED DESCRIPTION

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

[0037] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly.

[0038] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features limited to "first" and "second" may explicitly or implicitly include at least one of the features. In addition, if "and / or" or "and / or" appears in the full text, its meaning includes three parallel solutions. Taking "A and / or B" as an example, it includes solution A, solution B, or solutions that satisfy both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0039] With the rapid development and continuous innovation of science and technology, modern portable electronic devices such as smartphones and cameras have increasingly rich functions and increasingly stringent requirements for power management. This trend has led to an increasing demand for output current detection accuracy to ensure that these devices can achieve low power consumption and long battery life while operating efficiently. In short, high-precision current detection has become an indispensable part of modern portable electronic products.

[0040] The existing current detection circuit generally adopts an ordinary operational amplifier to clamp the source voltage of the power tube and the sampling transistor to be equal, so as to improve the detection accuracy. However, when the existing current detection circuit detects the current at the milliampere level, the voltage of the power tube will be very small. For example, when the impedance of the power tube is 100 milliohms and the detected current is 10 milliamperes, the voltage of the power tube is 1 millivolt. Since the operational amplifier has a millivolt offset voltage and the loop gain of the operational amplifier is not high enough, the positive and negative input terminals of the operational amplifier will produce millivolt errors when the existing current detection circuit detects the current at the milliampere level, so that the operational amplifier cannot accurately clamp the source voltage of the power tube and the sampling transistor to be equal, that is, the source and drain voltage difference of the clamped power tube and the sampling transistor is inconsistent, which further leads to the problem of large detection error when the current detection circuit detects the current at the milliampere level.

[0041] To this end, the present invention proposes a current detection circuit and a chip, aiming to solve the problem that the current detection circuit has a large error when detecting a relatively small current.

[0042] refer to Figure 1 In one embodiment of the present invention, a current detection circuit includes:

[0043] Power input terminal;

[0044] A first switch circuit 10, wherein an input end of the first switch circuit 10 is electrically connected to the power input end, and an output end of the first switch circuit 10 is electrically connected to a load;

[0045] a second switch circuit 20, wherein an input terminal of the second switch circuit 20 is electrically connected to the power input terminal, and a controlled terminal of the second switch circuit 20 is electrically connected to a controlled terminal of the first switch circuit 10;

[0046] A voltage bias circuit 30 and a first clamp circuit 40;

[0047] The first end of the voltage bias circuit 30 is electrically connected to the input end of the first switch circuit 10, the first end of the first clamp circuit 40 is electrically connected to the second end of the voltage bias circuit 30, and the second end of the first clamp circuit 40 is electrically connected to the output end of the first switch circuit 10;

[0048] The first clamping circuit 40 is used to clamp the voltage of the output end of the first switch circuit 10 to be equal to the voltage difference between the power input end and the voltage bias circuit 30, so that the voltage difference between the input end and the output end of the first switch circuit 10 is equal to the voltage of the voltage bias circuit 30;

[0049] a second clamping circuit 50, wherein a first end of the second clamping circuit 50 is electrically connected to a second end of the first clamping circuit 40, and a second end of the second clamping circuit 50 is electrically connected to an output end of the second switch circuit 20;

[0050] The second clamping circuit 50 is used to clamp the voltage of the output end of the second switch circuit 20 to be equal to the voltage difference between the power input end and the voltage bias circuit 30, so that the voltage difference between the input end and the output end of the second switch circuit 20 is equal to the voltage of the voltage bias circuit 30;

[0051] A first voltage divider circuit 60 and a voltage output end, wherein the first end of the first voltage divider circuit 60 is electrically connected to the output end of the second switch circuit 20 and the voltage output end respectively, the second end of the first voltage divider circuit 60 is grounded, and the voltage output end is used to output a voltage that is proportional to the current flowing through the first switch circuit 10.

[0052] In this embodiment, the first switch circuit 10 and the second switch circuit 20 can be implemented by using at least one switch tube, such as a MOS tube, an IGBT tube, a thyristor, a triode, a power tube, etc.

[0053] In this embodiment, the ratio of the on-impedance of the first switch circuit 10 to the on-impedance of the second switch circuit 20 is 1:10000. Since the on-impedance of the second switch circuit 20 is much larger than the on-impedance of the first switch circuit 10, the second switch circuit 20 will hardly have any effect on the main circuit when sampling the current at the power input end, so that the current detection circuit of the present invention will not interfere with or change the normal operation of the main circuit when measuring the current.

[0054] In this embodiment, the first voltage divider circuit 60 is composed of at least one resistor, for example Figure 2 The first resistor R1 in.

[0055] In this embodiment, specifically, the technical solution of the present invention clamps the voltage of the output end of the first switch circuit 10 to be equal to the voltage difference between the power input end and the voltage bias circuit 30 through the clamping effect of the first clamping circuit 40, so that the voltage difference between the input end and the output end of the first switch circuit 10 is equal to the voltage of the voltage bias circuit 30, and also clamps the voltage of the output end of the second switch circuit 20 to be equal to the voltage of the first clamping circuit 40, that is, the voltage difference between the power input end and the voltage bias circuit 30 through the clamping effect of the second clamping circuit 50, so that the voltage difference between the input end and the output end of the second switch circuit 20 is equal to the voltage of the voltage bias circuit 30, and because the controlled end of the first switch circuit 10 is connected to the controlled end of the second switch circuit 20, the voltage difference between the controlled end and the output end of the first switch circuit 10 is equal to the voltage difference between the controlled end and the output end of the second switch circuit 20, and further, the on-resistance of the first switch circuit 10 and the on-resistance of the second switch circuit 20 are always kept in equal proportion. The second switch circuit 20 is used to collect the current at the power input terminal, and the collected current flows to the first voltage divider circuit 60. The main control or host computer can obtain the voltage that is proportional to the current flowing through the first switch circuit 10 through the voltage output terminal, that is, the voltage of the first voltage divider circuit 60. The current at the power input terminal can be obtained by analyzing the ratio of the equivalent impedance between the first switch circuit 10 and the second switch circuit 20 and the impedance of the first voltage divider circuit 60. In this way, it is only necessary to set the voltage of the voltage bias circuit 30 to a larger value, such as 200 millivolts. When the current detection circuit of the present invention detects a current of the milliampere level, even if the operational amplifier in the clamp circuit has an offset voltage or a lower loop gain to generate an error, it will not have a significant impact on the clamping voltage of the clamp circuit, thereby solving the problem that the current detection circuit has a large detection error when detecting a current of the milliampere level.

[0056] In practical applications, the present invention can be applied to battery-using devices such as electric vehicles and smart phones. The battery management system (BMS) needs to detect the charging and discharging current of the battery in real time to ensure the safe and efficient use of the battery, and the current detection circuit of the present invention can accurately measure the current from milliampere level to ampere level, and provide accurate current data for the BMS. During the charging process, it can detect whether the charging current is too large to avoid overheating or damage to the battery; during the discharging process, the discharge current of the battery can be monitored, the remaining power can be estimated, and an accurate power display can be provided. The present invention can also be applied to industrial automation production lines, robot control and other systems to monitor the operating status and current consumption of the motor in real time. The current of the motor will change greatly during the start, operation and stop process. The current detection circuit of the present invention can simultaneously detect large currents and milliampere-level small currents, and provide accurate current data for the control system. When the motor has faults such as overload and short circuit, the current detected by the current detection circuit of the present invention can be discovered and alarmed in time to avoid equipment damage or accidents.

[0057] refer to Figure 2 In one embodiment of the present invention, the first clamping circuit 40 comprises:

[0058] A first operational amplifier circuit U1, wherein the in-phase terminal of the first operational amplifier circuit U1 is electrically connected to the second terminal of the voltage bias circuit 30, the inverting terminal of the first operational amplifier circuit U1 is electrically connected to the output terminal of the first switch circuit 10, and the output terminal of the first operational amplifier circuit U1 is electrically connected to the controlled terminal of the first switch circuit 10.

[0059] In the present embodiment, the first operational amplifier circuit U1 uses at least one operational amplifier, and the voltage difference between the voltage at the power input terminal and the voltage bias circuit 30 is clamped to the output terminal of the first switch circuit 10 through the negative feedback formed by the first operational amplifier circuit U1 and the first switch circuit 10, so that the voltage difference between the input terminal and the output terminal of the first switch circuit 10 is equal to the voltage bias circuit 30. The first operational amplifier circuit U1 outputs a corresponding control signal according to the voltage at the in-phase terminal and the voltage at the inverting terminal to control the first switch circuit 10 to be turned on. For example, when the first switch circuit 10 and the second switch circuit 20 are both NMOS tubes, the first operational amplifier circuit U1 outputs a high level to turn on the first switch circuit 10 and the second switch circuit 20, so that the first switch circuit 10 and the second switch circuit 20 are both turned on.

[0060] refer to Figure 2 In one embodiment of the present invention, the second clamping circuit 50 comprises:

[0061] A second operational amplifier circuit and a third switch tube, wherein the in-phase end of the second operational amplifier circuit is electrically connected to the second end of the first clamp circuit 40, the inverting end of the second operational amplifier circuit is electrically connected to the output end of the second switch circuit 20, the input end of the third switch tube is electrically connected to the output end of the second switch circuit 20, the output end of the third switch tube is electrically connected to the first end of the first voltage divider circuit 60, and the controlled end of the third switch tube is electrically connected to the output end of the second operational amplifier circuit.

[0062] In this embodiment, the second operational amplifier circuit uses at least one operational amplifier, the third switch tube is a PMOS tube, and the negative feedback of the second operational amplifier circuit and the third switch tube clamps the voltage of the first clamp circuit 40, that is, the voltage difference between the power input terminal and the voltage bias circuit 30, to the output terminal of the second switch circuit 20, so that the voltage difference between the input terminal and the output terminal of the second switch circuit 20 is equal to the voltage difference between the input terminal and the output terminal of the first switch circuit 10, and the voltage difference is equal to the voltage of the voltage bias circuit 30. In this way, by setting the voltage of the voltage bias circuit 30 to a larger value, such as 200 millivolts, when the current detection circuit of the present invention detects a current of the milliampere level, even if the second operational amplifier circuit has an offset voltage or a lower loop gain to generate an error, it will not have a great impact on the clamping voltage of the clamp circuit, thereby solving the problem that the current detection circuit will have a large detection error when detecting a current of the milliampere level.

[0063] In this embodiment, the first operational amplifier circuit U1 outputs a low level signal according to the voltage at the inverting terminal and the voltage at the non-inverting terminal to control the third switch tube to turn on, so that the current collected by the second switch circuit 20 flows to the first voltage divider circuit 60 through the third switch tube.

[0064] refer to Figure 2 In one embodiment of the present invention, the voltage bias circuit 30 comprises:

[0065] A second voltage divider circuit and a current source, wherein the first end of the second voltage divider circuit is electrically connected to the input end of the first switch circuit 10, the second end of the second voltage divider circuit is electrically connected to the first end of the first clamp circuit 40 and the first end of the current source respectively, and the second end of the current source is grounded.

[0066] In this embodiment, the second voltage divider circuit is composed of at least one resistor, for example Figure 2The second resistor R2 in the circuit, the voltage of the second voltage divider circuit is equal to the current of the current source multiplied by the equivalent impedance of the second voltage divider circuit. Since the first end of the first clamp circuit 40 is electrically connected to the first end of the second voltage divider circuit, the voltage of the first end of the first clamp circuit 40 is equal to the voltage difference between the power input end and the second voltage divider circuit. Assuming that the equivalent impedance of the second voltage divider circuit is 200K ohms, the current of the current source is 1 microampere, and the voltage of the power input end is V1, the voltage value of the second voltage divider circuit is 200mV, and the voltage of the first end of the first clamp circuit 40 is V1-200mV. Through the clamping action of the first clamp circuit 40 and the second clamp circuit 50, the voltage at the output end of the first switch circuit 10 is V1-200mV. The voltage at the output end of the first switch circuit 10 and the output end of the second switch circuit 20 are both V1-200mV. Since the input end voltage of the first switch circuit 10 and the input end voltage of the second switch circuit 20 are both equal to the voltage of the power input end, the voltage difference between the input end and the output end of the first switch circuit 10 and the voltage difference between the input end and the output end of the second switch circuit 20 are both 200mV. With such a configuration, when the current detection circuit of the present invention detects a current in the milliampere level, even if the operational amplifier in the clamping circuit has an offset voltage or a lower loop gain that produces an error, it will not have a significant impact on the clamping voltage of the clamping circuit, thereby solving the problem of a large detection error when the current detection circuit detects a current in the milliampere level.

[0067] refer to Figure 2 In one embodiment of the present invention, the first switch circuit 10 includes:

[0068] A first switch tube Q1, wherein an input end of the first switch tube Q1 is electrically connected to the power input end, and an output end of the first switch tube Q1 is electrically connected to a load;

[0069] The second switch circuit 20 comprises:

[0070] A second switch tube Q2, wherein the input end of the second switch tube Q2 is electrically connected to the power input end, the output end of the second switch tube Q2 is electrically connected to the first end of the first voltage divider circuit 60, and the controlled end of the second switch tube Q2 is electrically connected to the controlled end of the first switch tube Q1.

[0071] In the present embodiment, the first switch tube Q1 and the second switch tube Q2 are both NMOS tubes. Through the clamping action of the first clamping circuit 40 and the second clamping circuit 50, the voltage difference between the source and the drain of the first switch tube Q1 is equal to the voltage difference between the source and the drain of the second switch tube Q2. Moreover, since the gate of the first switch tube Q1 is connected to the gate of the second switch tube Q2, the voltage difference between the gate and the source of the first switch tube Q1 is equal to the voltage difference between the gate and the source of the second switch tube Q2. With such a configuration, in the process of detecting the current, the current detection circuit of the present invention has the first The on-resistance of the switch tube Q1 and the on-resistance of the second switch tube Q2 always maintain an equal proportional relationship, so that the current flowing through the first switch tube Q1 and the current flowing through the second switch tube Q2 always maintain an equal proportional relationship. It is only necessary to set the voltage of the voltage bias circuit 30 to a larger value, such as 200 millivolts. Even if the operational amplifier in the clamping circuit has an offset voltage or a lower loop gain that produces an error, it will not have a significant impact on the clamping voltage of the clamping circuit, thereby solving the problem of a large detection error in the current detection circuit when detecting a milliampere current.

[0072] The present invention also provides a current detection chip, comprising the current detection circuit as described above.

[0073] It is worth noting that since the current detection chip of the present invention is based on the above-mentioned current detection circuit, the embodiments of the current detection chip of the present invention include all technical solutions of all embodiments of the above-mentioned current detection circuit, and the technical effects achieved are also exactly the same, which will not be repeated here.

[0074] The above description is only an exemplary embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the technical concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.

Claims

1. A current detection circuit, characterized in that: include: Power input terminal; a first switch circuit, wherein an input end of the first switch circuit is electrically connected to the power input end, and an output end of the first switch circuit is electrically connected to a load; a second switch circuit, wherein an input terminal of the second switch circuit is electrically connected to the power input terminal, and a controlled terminal of the second switch circuit is electrically connected to a controlled terminal of the first switch circuit; a voltage bias circuit and a first clamp circuit; The first end of the voltage bias circuit is electrically connected to the input end of the first switch circuit, the first end of the first clamp circuit is electrically connected to the second end of the voltage bias circuit, and the second end of the first clamp circuit is electrically connected to the output end of the first switch circuit; The first clamping circuit is used to clamp the voltage of the output terminal of the first switch circuit to be equal to the voltage difference between the power input terminal and the voltage bias circuit, so that the voltage difference between the input terminal and the output terminal of the first switch circuit is equal to the voltage of the voltage bias circuit; a second clamping circuit, wherein a first end of the second clamping circuit is electrically connected to a second end of the first clamping circuit, and a second end of the second clamping circuit is electrically connected to an output end of the second switch circuit; The second clamping circuit is used to clamp the voltage of the output terminal of the second switch circuit to be equal to the voltage difference between the power input terminal and the voltage bias circuit, so that the voltage difference between the input terminal and the output terminal of the second switch circuit is equal to the voltage of the voltage bias circuit; A first voltage divider circuit and a voltage output end, wherein the first end of the first voltage divider circuit is electrically connected to the output end of the second switch circuit and the voltage output end respectively, the second end of the first voltage divider circuit is grounded, and the voltage output end is used to output a voltage that is proportional to the current flowing through the first switch circuit.

2. The current detection circuit according to claim 1, characterized in that: The first clamping circuit comprises: A first operational amplifier circuit, wherein the non-inverting end of the first operational amplifier circuit is electrically connected to the second end of the voltage bias circuit, the inverting end of the first operational amplifier circuit is electrically connected to the output end of the first switch circuit, and the output end of the first operational amplifier circuit is electrically connected to the controlled end of the first switch circuit.

3. The current detection circuit according to claim 1, characterized in that: The second clamping circuit comprises: A second operational amplifier circuit and a third switch tube, wherein the in-phase end of the second operational amplifier circuit is electrically connected to the second end of the first clamp circuit, the inverting end of the second operational amplifier circuit is electrically connected to the output end of the second switch circuit, the input end of the third switch tube is electrically connected to the output end of the second switch circuit, the output end of the third switch tube is electrically connected to the first end of the first voltage divider circuit, and the controlled end of the third switch tube is electrically connected to the output end of the second operational amplifier circuit.

4. The current detection circuit according to claim 1, characterized in that: The voltage bias circuit comprises: A second voltage divider circuit and a current source, wherein the first end of the second voltage divider circuit is electrically connected to the input end of the first switch circuit, the second end of the second voltage divider circuit is electrically connected to the first end of the first clamp circuit and the first end of the current source respectively, and the second end of the current source is grounded.

5. The current detection circuit according to claim 1, characterized in that: The first switch circuit comprises: A first switch tube, wherein an input end of the first switch tube is electrically connected to the power input end, and an output end of the first switch tube is electrically connected to a load; The second switch circuit comprises: A second switch tube, wherein the input end of the second switch tube is electrically connected to the power input end, the output end of the second switch tube is electrically connected to the first end of the first voltage divider circuit, and the controlled end of the second switch tube is electrically connected to the controlled end of the first switch tube.

6. The current detection circuit according to claim 5, characterized in that: The first switch tube and the second switch tube are both NMOS tubes.

7. The current detection circuit according to claim 3, characterized in that: The third switch tube is a PMOS tube.

8. The current detection circuit according to any one of claims 1 to 7, characterized in that: The ratio of the on-resistance of the first switch circuit to the on-resistance of the second switch circuit is 1:10000.

9. A current detection chip, characterized in that: The method comprises a current detection circuit as claimed in any one of claims 1 to 8.