CN210427666U - Current detection circuit - Google Patents

Current detection circuit Download PDF

Info

Publication number
CN210427666U
CN210427666U CN201920658413.7U CN201920658413U CN210427666U CN 210427666 U CN210427666 U CN 210427666U CN 201920658413 U CN201920658413 U CN 201920658413U CN 210427666 U CN210427666 U CN 210427666U
Authority
CN
China
Prior art keywords
current
conversion module
temperature coefficient
current detection
analog
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201920658413.7U
Other languages
Chinese (zh)
Inventor
姜梅
张楷彬
陈浩鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen University
Original Assignee
Shenzhen University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen University filed Critical Shenzhen University
Priority to CN201920658413.7U priority Critical patent/CN210427666U/en
Application granted granted Critical
Publication of CN210427666U publication Critical patent/CN210427666U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measurement Of Current Or Voltage (AREA)

Abstract

A current detection circuit, wherein the current detection circuit comprises: the device comprises a current-voltage conversion module, an analog-digital conversion module and a logic control module; one input end of the current-voltage conversion module is a current input end, the current to be detected is input, and the other input end of the current-voltage conversion module is connected with the logic control module; the output end of the current-voltage conversion module is connected with the analog-digital conversion module; the output end of the analog-to-digital conversion module is connected with the logic control module; the current-voltage conversion module is used for sampling and reducing the current to be measured, selecting a resistor according to a signal transmitted by the logic control module, converting the current into voltage and transmitting the voltage to the analog-to-digital conversion module; the analog-to-digital conversion module is used for converting the input voltage into a digital signal; the logic control module is used for generating a corresponding control signal according to an analog-to-digital conversion result of the analog-to-digital conversion module and controlling the current-voltage conversion module.

Description

Current detection circuit
Technical Field
The application relates to the technical field of electronics, especially, relate to a current detection circuit.
Background
In a conventional current detection circuit, a direct sampling manner of a series resistor is mainly adopted. The current I to be measured generates a voltage drop V through a resistor R and is converted by an Analog-to-Digital Converter (ADC).
In the prior art, under the condition that the ADC digit is determined, the range overflow can be caused when the current to be measured is too large; when the resistance value of the resistor is reduced, the measurement accuracy is lowered, and when the temperature change is large, the measurement accuracy is also lowered.
SUMMERY OF THE UTILITY MODEL
The embodiment of the application provides a current detection circuit, which is used for detecting on-chip working current and outputting a detection result in a form of a digital code.
A first aspect of an embodiment of the present application provides a current detection circuit, including:
a current-voltage conversion module 110, an analog-to-digital conversion module 120 and a logic control module 130;
one input end of the current-voltage conversion module 110 is a current input end, the input end is a current to be measured, and the other input end is connected with the logic control module 130;
the output end of the current-voltage conversion module 110 is connected to the analog-to-digital conversion module 120;
the output end of the analog-to-digital conversion module 120 is connected with the logic control module 130;
the current-voltage conversion module 110 is configured to sample and reduce a current to be measured, select a resistor according to a signal transmitted from the logic control module 130, convert the current into a voltage, and transmit the voltage to the analog-to-digital conversion module 120;
the analog-to-digital conversion module 120 is configured to convert an input voltage into a digital signal;
the logic control module 130 is configured to generate a corresponding control signal according to an analog-to-digital conversion result of the analog-to-digital conversion module 120, and control the current-voltage conversion module 110.
Further, the current-voltage conversion module 110 includes:
a current detection tube M1, a power tube M2, a transistor M3, an operational amplifier and a resistance unit;
the width-length ratio of the current detection tube M1 is 499: 1;
the transistor M3, the operational amplifier and the resistance unit form a negative feedback regulation loop, so that the drain voltages of the current detection tube M1 and the power tube M2 are equal.
Further, the ratio of the current of the power tube M2 to the current detecting tube M1 is the width-to-length ratio of the current detecting tube M1.
Further, the current detecting tube M1 is a PMOS tube, a source end of the current detecting tube M1 is connected to the current input end and a source end of the power tube M2, a drain end of the current detecting tube M1 is connected to a non-inverting end of the operational amplifier and a drain end of the power tube M2, and a gate of the current detecting tube M1 is connected to a power supply end;
the power tube M2 is a PMOS tube, the source end of the power tube M2 is connected to the current input end and the source end of the current detection tube M1, the drain end of the power tube M2 is connected to the inverting end and the output of the operational amplifier, and the gate end of the power tube M2 is connected to the power end;
the source end of the transistor M3 is connected to the input end of the analog-to-digital conversion module 120, and the gate of the transistor M3 is connected to the output end of the operational amplifier.
Further, the resistance unit includes:
negative temperature coefficient resistors R1, R3, and R5;
positive temperature coefficient resistors R2, R4, and R6;
the negative temperature coefficient resistor R1 is connected with the positive temperature coefficient resistor R2 in series, the negative temperature coefficient resistor R3 is connected with the positive temperature coefficient resistor R4 in series, and the negative temperature coefficient resistor R5 is connected with the temperature coefficient resistor R6 in series;
the temperature sensor comprises a negative temperature coefficient resistor R1, a positive temperature coefficient resistor R2, a negative temperature coefficient resistor R3, a positive temperature coefficient resistor R4, a negative temperature coefficient resistor R5 and a temperature coefficient resistor R6 which are connected in parallel.
Therefore, compared with the traditional current detection circuit, the current to be detected is sampled and reduced firstly, the minimum range resistor in the current-voltage conversion module is conducted, the current is converted into voltage, the voltage is transmitted to the analog-digital conversion module to be converted into a digital signal, the control logic can judge the output of the analog-digital conversion module and generate a control signal of the resistance access switch. And if the measuring range is exceeded, switching to the next measuring range and then measuring. And the steps are carried out again, so that the accurate measurement of the current is realized, and the requirement of wide range and high precision is met. Because the current to be measured is subjected to reduced sampling, the power consumption is low, and the current to be measured can normally work under most temperature conditions.
Drawings
In order to illustrate the embodiments of the present invention or the technical solutions in the prior art more clearly, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a current detection circuit according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a current-voltage conversion module according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of a current detection method according to an embodiment of the present application.
Detailed Description
In order to make the objects, features and advantages of the present invention more apparent and understandable, the embodiments of the present invention will be described in detail and completely with reference to the accompanying drawings, and it is to be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Suffixes such as "module", "part", or "unit" used to denote elements herein are used only for the convenience of description of the present invention, and have no specific meaning in themselves.
Example one
The embodiment of the application provides a current detection circuit, which is used for detecting on-chip working current and outputting a detection result in a form of a digital code.
Referring to fig. 1, the current detection circuit mainly includes the following modules:
a current-voltage conversion module 110, an analog-to-digital conversion module 120 and a logic control module 130;
one input end of the current-voltage conversion module 110 is a current input end, the input end is a current to be measured, and the other input end is connected with the logic control module 130;
the output end of the current-voltage conversion module 110 is connected to the analog-to-digital conversion module 120;
the output end of the analog-to-digital conversion module 120 is connected with the logic control module 130;
the current-voltage conversion module 110 is configured to sample and reduce a current to be measured, select a resistor according to a signal transmitted from the logic control module 130, convert the current into a voltage, and transmit the voltage to the analog-to-digital conversion module 120;
the analog-to-digital conversion module 120 is configured to convert an input voltage into a digital signal;
the logic control module 130 is configured to generate a corresponding control signal according to an analog-to-digital conversion result of the analog-to-digital conversion module 120, and control the current-voltage conversion module 110.
Further, referring to fig. 2, the current-voltage conversion module 110 includes:
a current detection tube M1, a power tube M2, a transistor M3, an operational amplifier and a resistance unit.
As shown in fig. 2, the current detecting tube M1 is a PMOS tube, a source end of the current detecting tube M1 is connected to the current input end and a source end of the power tube M2, a drain end of the current detecting tube M1 is connected to a non-inverting end of the operational amplifier and a drain end of the power tube M2, and a gate of the current detecting tube M1 is connected to a power supply end; the power tube M2 is a PMOS tube, the source end of the power tube M2 is connected to the current input end and the source end of the current detection tube M1, the drain end of the power tube M2 is connected to the inverting end and the output of the operational amplifier, and the gate end of the power tube M2 is connected to the power end; the source end of the transistor M3 is connected to the input end of the analog-to-digital conversion module 120, and the gate of the transistor M3 is connected to the output end of the operational amplifier.
The width-to-length ratio of the current detection tube M1 is 499: 1.
The transistor M3, the operational amplifier and the resistance unit form a negative feedback regulation loop, so that the drain voltages of the current detection tube M1 and the power tube M2 are equal, the voltages of the gate, the source and the drain of the current detection tube M1 and the power tube M2 are all kept equal, and the drain-source voltage formula is adopted
Figure BDA0002051659520000051
The ratio of the currents of the power tube M2 and the current detection tube M1 is the width-to-length ratio of the current detection tube M1, i.e., 499: 1. The current flowing through the power tube M2 is 500 times I. The current of the current detecting tube M1 is converted into voltage through a resistance unit. The resistance unit consists of a positive temperature coefficient resistance and a negative temperature coefficient resistance.
The ratio of the currents of the power tube M2 and the current detection tube M1 is the width-length ratio of the current detection tube M1.
The resistance unit includes:
negative temperature coefficient resistors R1, R3, and R5;
positive temperature coefficient resistors R2, R4, and R6;
as shown in fig. 2, the negative temperature coefficient resistor R1 is connected in series with the positive temperature coefficient resistor R2, the negative temperature coefficient resistor R3 is connected in series with the positive temperature coefficient resistor R4, and the negative temperature coefficient resistor R5 is connected in series with the temperature coefficient resistor R6;
the temperature sensor comprises a negative temperature coefficient resistor R1, a positive temperature coefficient resistor R2, a negative temperature coefficient resistor R3, a positive temperature coefficient resistor R4, a negative temperature coefficient resistor R5 and a temperature coefficient resistor R6 which are connected in parallel.
Therefore, compared with the traditional current detection circuit, the current to be detected is sampled and reduced firstly, the minimum range resistor in the current-voltage conversion module is conducted, the current is converted into voltage, the voltage is transmitted to the analog-digital conversion module to be converted into a digital signal, the control logic can judge the output of the analog-digital conversion module and generate a control signal of the resistance access switch. And if the measuring range is exceeded, switching to the next measuring range and then measuring. And the steps are carried out again, so that the accurate measurement of the current is realized, and the requirement of wide range and high precision is met. Because the current to be measured is subjected to reduced sampling, the power consumption is low, and the resistance with positive and negative temperature coefficients enables the current to be measured to work normally under most temperature conditions.
Example two
Referring to fig. 3, a current detection method is provided according to an embodiment of the present application. As shown in fig. 3, the specific process includes:
301. the current-voltage conversion module samples and reduces the current to be measured, and then performs voltage conversion on the current to be measured according to the minimum measuring range to obtain induction voltage;
specifically, in the current detection method in the embodiment of the present application, the current detection is performed by a current detection circuit, where the current detection circuit includes: the device comprises a current-voltage conversion module, an analog-digital conversion module and a logic control module.
The current-voltage conversion module is used for sampling and reducing the current to be measured, selecting a resistor according to a signal transmitted by the logic control module, converting the current into voltage and transmitting the voltage to the analog-digital conversion module.
302. The analog-to-digital conversion module performs digital signal conversion on the induction voltage to obtain a digital signal conversion result;
the analog-to-digital conversion module is used for converting the input voltage into a digital signal.
303. The logic control module judges whether the digital signal conversion result exceeds a measuring range;
if the measurement range is exceeded, go to step 304; if the measurement range is not exceeded, step 305 is executed.
Illustratively, the measurement range may be three measurement ranges, 5mA, 20mA, and 100mA, respectively.
Specifically, the logic control module may measure the induced voltage after the digital signal conversion, and if the measurement result is not all one, it is determined that the range is exceeded without the range.
304. Controlling a resistance switch of the current-voltage conversion module;
and if the current does not exceed the range, controlling a resistance switch of the current-voltage conversion module, selecting a resistance path of the next range, and returning to execute the steps 301 to 303.
305. The current sensing is completed.
And if the current does not exceed the measuring range, finishing the current detection.
Therefore, compared with the traditional current detection circuit, the current to be detected is sampled and reduced firstly, the minimum range resistor in the current-voltage conversion module is conducted, the current is converted into voltage, the voltage is transmitted to the analog-digital conversion module to be converted into a digital signal, the control logic can judge the output of the analog-digital conversion module and generate a control signal of the resistance access switch. And if the measuring range is exceeded, switching to the next measuring range and then measuring. And the steps are carried out again, so that the accurate measurement of the current is realized, and the requirement of wide range and high precision is met. Because the current to be measured is subjected to reduced sampling, the power consumption is low, and the resistance with positive and negative temperature coefficients enables the current to be measured to work normally under most temperature conditions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware form.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a readable storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned readable storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In view of the above description of the readable storage medium of the current detection circuit provided in the present application, those skilled in the art will recognize that changes may be made in the embodiments and applications of the invention, and in view of the above description, the disclosure should not be interpreted as limiting the scope of the invention.

Claims (5)

1. A current sensing circuit, comprising:
the device comprises a current-voltage conversion module (110), an analog-digital conversion module (120) and a logic control module (130);
one input end of the current-voltage conversion module (110) is a current input end, the input end is a current to be detected, and the other input end is connected with the logic control module (130);
the output end of the current-voltage conversion module (110) is connected with the analog-to-digital conversion module (120);
the output end of the analog-to-digital conversion module (120) is connected with the logic control module (130);
the current-voltage conversion module (110) is used for sampling and reducing the current to be measured, selecting a resistor according to a signal transmitted by the logic control module (130), converting the current into voltage and transmitting the voltage to the analog-to-digital conversion module (120);
the analog-to-digital conversion module (120) is used for converting the input voltage into a digital signal;
the logic control module (130) is configured to generate a corresponding control signal according to an analog-to-digital conversion result of the analog-to-digital conversion module (120) to control the current-voltage conversion module (110).
2. The current detection circuit according to claim 1, wherein the current-to-voltage conversion module (110) comprises:
a current detection tube (M1), a power tube (M2), a transistor (M3), an operational amplifier and a resistance unit;
the width-to-length ratio of the current detection tube (M1) is 499: 1;
the transistor (M3), the operational amplifier and the resistance unit form a negative feedback regulation loop, and drain voltages of the current detection tube (M1) and the power tube (M2) are equal.
3. The current detection circuit according to claim 2, wherein the ratio of the currents of the power transistor (M2) and the current detection transistor (M1) is the width-to-length ratio of the current detection transistor (M1).
4. The current detection circuit of claim 2,
the current detection tube (M1) is a PMOS tube, the source end of the current detection tube (M1) is connected with the current input end and the source end of the power tube (M2), the drain end of the current detection tube (M1) is connected with the in-phase end of the operational amplifier and the drain end of the power tube (M2), and the grid electrode of the current detection tube (M1) is connected with the power supply end;
the power tube (M2) is a PMOS tube, the source end of the power tube (M2) is connected with the current input end and the source end of the current detection tube (M1), the drain end of the power tube (M2) is connected with the inverting end and the output of the operational amplifier, and the gate end of the power tube (M2) is connected with the power supply end;
the source end of the transistor (M3) is connected with the input end of the analog-to-digital conversion module (120), and the grid of the transistor (M3) is connected with the output end of the operational amplifier.
5. The current detection circuit according to claim 2, wherein the resistance unit includes:
a first negative temperature coefficient resistance (R1), a second negative temperature coefficient resistance (R3), and a third negative temperature coefficient resistance (R5);
a first positive temperature coefficient resistor (R2), a second positive temperature coefficient resistor (R4), and a third positive temperature coefficient resistor (R6);
the first negative temperature coefficient resistor (R1) is connected with the first positive temperature coefficient resistor (R2) in series, the second negative temperature coefficient resistor (R3) is connected with the second positive temperature coefficient resistor (R4) in series, and the third negative temperature coefficient resistor (R5) is connected with the third positive temperature coefficient resistor (R6) in series;
the resistor comprises a first negative temperature coefficient resistor (R1), a first positive temperature coefficient resistor (R2), a second negative temperature coefficient resistor (R3), a second positive temperature coefficient resistor (R4), a third negative temperature coefficient resistor (R5) and a third positive temperature coefficient resistor (R6), which are connected in parallel.
CN201920658413.7U 2019-05-07 2019-05-07 Current detection circuit Expired - Fee Related CN210427666U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201920658413.7U CN210427666U (en) 2019-05-07 2019-05-07 Current detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201920658413.7U CN210427666U (en) 2019-05-07 2019-05-07 Current detection circuit

Publications (1)

Publication Number Publication Date
CN210427666U true CN210427666U (en) 2020-04-28

Family

ID=70371145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201920658413.7U Expired - Fee Related CN210427666U (en) 2019-05-07 2019-05-07 Current detection circuit

Country Status (1)

Country Link
CN (1) CN210427666U (en)

Similar Documents

Publication Publication Date Title
CN108106747B (en) Temperature sensor based on capacitance-to-digital converter
US11255930B2 (en) Hall sensor trim circuit
KR101560051B1 (en) Analog-to-digital converting circuit with temperature sensing and electronic device thereof
CN105606239A (en) Temperature measurement circuit
CN109375291B (en) Temperature, air pressure and humidity measuring device and method suitable for sonde
CN108760060A (en) A kind of resistance for distal end CMOS temperature measuring circuits eliminates circuit
CN113758606A (en) Temperature sensor and temperature measuring equipment
CN112816088A (en) Self-adaptive range switching temperature sensor
CN114499521A (en) Signal calibration method and device, computer equipment and storage medium
CN210427666U (en) Current detection circuit
CN105277292A (en) Temperature measurement device
US9692438B2 (en) Signal processing, amplification module, an analog to digital converter module
Buschhoff et al. MIMOSA, a highly sensitive and accurate power measurement technique for low-power systems
CN104483033A (en) CMOS (complementary metal-oxide-semiconductor transistor) temperature sensor circuit with wide temperature range
US11340272B2 (en) Apparatus and method for determining a power value of a target
CN103235175A (en) Power consumption detecting circuit
CN207515923U (en) A kind of programmable high precision temperature compensation system
JP6291224B2 (en) Magnetic sensor
CN116087607A (en) Current detection device and method thereof, low-dropout linear voltage regulator and electronic equipment
CN113017588B (en) Blood pressure measuring method, system, device and sphygmomanometer
Wang et al. Design of PT100 high-precision temperature measurement systems based on third-order model
CN110967548B (en) Program-controlled variable resistor device with current detection function and working method
CN107192742A (en) A kind of metal-oxide gas transducer temperature drift compensation device and method
Bondar et al. Increasing Temperature Measurement Accuracy: Method of Two-Wire Connection of a Resistance Thermometer
CN108809419B (en) Optical power monitoring circuit and optical power monitoring method

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200428

Termination date: 20210507