CN116400120A - Current sampling circuit, chip and control method of current sampling circuit - Google Patents

Current sampling circuit, chip and control method of current sampling circuit Download PDF

Info

Publication number
CN116400120A
CN116400120A CN202310429277.5A CN202310429277A CN116400120A CN 116400120 A CN116400120 A CN 116400120A CN 202310429277 A CN202310429277 A CN 202310429277A CN 116400120 A CN116400120 A CN 116400120A
Authority
CN
China
Prior art keywords
current sampling
module
voltage
unit
switching element
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.)
Pending
Application number
CN202310429277.5A
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.)
Xiamen Yingmaikexin Integrated Technology Co ltd
Original Assignee
Xiamen Yingmaikexin Integrated Technology Co ltd
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 Xiamen Yingmaikexin Integrated Technology Co ltd filed Critical Xiamen Yingmaikexin Integrated Technology Co ltd
Priority to CN202310429277.5A priority Critical patent/CN116400120A/en
Publication of CN116400120A publication Critical patent/CN116400120A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/0092Arrangements for measuring currents or voltages or for indicating presence or sign thereof measuring current only
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

The application discloses a current sampling circuit, a chip and a control method of the current sampling circuit, wherein the current sampling circuit comprises a current sampling module, an amplifying module and a comparison control module; the current sampling module is connected with a loop formed by a power supply and a load; the amplifying module is connected with the current sampling module and is used for amplifying the voltage signal of the current sampling module and outputting corresponding sampling voltage; the comparison control module is connected with the amplifying module and the current sampling module, and is used for comparing the sampling voltage with the reference voltage and generating corresponding control signals, and controlling the resistance value of the current sampling module in the access loop according to the control signals. The design can effectively improve the sampling precision of the current sampling circuit.

Description

Current sampling circuit, chip and control method of current sampling circuit
Technical Field
The present disclosure relates to integrated circuit technology, and more particularly, to a current sampling circuit, a chip, and a control method of the current sampling circuit.
Background
In the related art, the current sampling circuit includes a differential amplifier and a current sampling resistor, the current sampling resistor is connected to a loop formed by a power supply and a load, and the differential amplifier is connected to the current sampling resistor to amplify a voltage drop across the current sampling resistor. However, the current sampling circuit in the related art has lower sampling precision, and particularly when small current is sampled, the sampling error of the current sampling circuit is larger due to the influence of offset voltage of the differential amplifier.
Disclosure of Invention
The application provides a current sampling circuit, a chip and a control method of the current sampling circuit, which can solve the problem that the current sampling circuit has larger sampling error in the process of small current sampling in the related technology.
In a first aspect, the present application provides a current sampling circuit; the current sampling circuit comprises a current sampling module, an amplifying module and a comparison control module, wherein the current sampling module is connected with a loop formed by a power supply and a load, the amplifying module is connected with the current sampling module and is used for amplifying a voltage signal of the current sampling module and outputting a corresponding sampling voltage, the comparison control module is connected with the amplifying module and the current sampling module and is used for comparing the sampling voltage with a reference voltage and generating a corresponding control signal, and the current sampling module is controlled to be connected with a resistance value in the loop according to the control signal.
Based on the current sampling circuit, the comparison control module compares the sampling voltage of the current sampling module with the reference voltage, and generates different control signals according to different comparison results, and the comparison control module controls the resistance value of the current sampling module in the access loop according to the generated control signals so as to sample the current flowing through the load, so that the sampling precision can be effectively improved. And particularly, when the small current is sampled, the current flowing through the load is determined to be the small current by comparing the sampled voltage with the reference voltage, and the resistance value of a loop formed by the power supply and the load connected with the current sampling module is adjusted so as to increase the sampled voltage and reduce the influence of the offset voltage of the amplifying module on the sampling precision, thereby effectively improving the current sampling precision.
In a second aspect, the present application provides a chip comprising the current sampling circuit described above.
Based on the chip in this application, have above-mentioned current sampling circuit's chip, comparison control module compares the sampling voltage of current sampling module with reference voltage to according to different comparison result generation different control signals, comparison control module is according to the resistance in the control module access return circuit of control signal control current sampling module that generates, in order to sample the electric current that flows the load, can effectively improve the precision of sampling. And particularly, when the small current is sampled, the current flowing through the load is determined to be the small current by comparing the sampled voltage with the reference voltage, and the resistance value of a loop formed by the power supply and the load connected with the current sampling module is adjusted so as to increase the sampled voltage and reduce the influence of the offset voltage of the amplifying module on the sampling precision, thereby effectively improving the current sampling precision.
In a third aspect, the present application provides a control method of a current sampling circuit, where the control method is applied to the current sampling circuit in any implementation manner of the first aspect and any implementation manner of the first aspect, and the control method includes:
the current sampling module converts a current signal flowing through the load into a voltage signal;
the amplifying module amplifies the voltage signal and outputs a corresponding sampling voltage;
the comparison control module compares the sampling voltage with the reference voltage and generates a corresponding control signal, and controls the current sampling module to be connected with a resistance value in a loop formed by the power supply and the load according to the control signal.
Based on the control method of the current sampling circuit, the comparison control module compares the sampling voltage of the current sampling module with the reference voltage, and generates different control signals according to different comparison results, and the comparison control module controls the resistance value of the current sampling module in the access loop according to the generated control signals so as to sample the current flowing through the load, so that the sampling precision can be effectively improved. And particularly, when the small current is sampled, the current flowing through the load is determined to be the small current by comparing the sampled voltage with the reference voltage, and the resistance value of a loop formed by the power supply and the load connected with the current sampling module is adjusted so as to increase the sampled voltage and reduce the influence of the offset voltage of the amplifying module on the sampling precision, thereby effectively improving the current sampling precision.
In a fourth aspect, the present application provides an electronic device, including a housing and the chip described above, where the chip is mounted on the housing.
Based on the electronic equipment in the embodiment of the application, the electronic equipment with the chip has high-precision current sampling performance.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram of a current sampling circuit in one embodiment of the present application;
FIG. 2 is a schematic circuit diagram of a current sampling circuit according to an embodiment of the present application;
FIG. 3 is a schematic circuit diagram of a current sampling circuit according to another embodiment of the present application;
FIG. 4 is a flow chart of a control method of the current sampling circuit according to an embodiment of the present application;
fig. 5 is a flow chart of a control method of the current sampling circuit in another embodiment of the present application.
Reference numerals: 10. a current sampling module; 11. a resistor unit; r is R CS1 A first resistor unit; r is R CS2 A second resistor unit; 12. a switching unit; NM1, a first switching element; NM2, a second switching element; NM3, a third switching element; 20. an amplifying module; OP1, amplifier; b1, a first amplifying input end; b2, a second amplifying input end; VO, sampling voltage; 30. a comparison control module; CMP1, first comparator; CMP2, a second comparator; 31. a trigger unit; v (V) REF A reference voltage; v (V) REF1 A first threshold voltage; v (V) REF2 A second threshold voltage; 40. a power supply; 50. a load; i O Current through the load.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In the related art, the current sampling circuit comprises a differential amplifier and a current sampling resistor, the current sampling resistor is connected in a loop formed by a power supply and a load, the differential amplifier is connected with the current sampling resistor to amplify the voltage drop at two ends of the current sampling resistor, however, when the current sampling circuit in the related art performs current sampling, the following disadvantages exist, but the current sampling circuit is not limited to:
(1) If a low-cost differential amplifier is used, when a small current is sampled, the voltage drop formed at two ends of the current sampling resistor after the small current passes through the current sampling resistor is smaller, and even the voltage drop is far lower than the input offset voltage of the low-cost differential amplifier, so that the current sampling is inaccurate or even fails.
(2) If the high-precision differential amplifier is used, the input offset voltage of the high-precision differential amplifier is small, so that the accuracy of small current sampling can be ensured, but the cost of the high-precision differential amplifier is very high.
(3) When a low-cost differential amplifier is used and the resistance value of the current sampling resistor is designed to be large, the voltage drop formed at both ends of the current sampling resistor after the small current passes through the large current sampling resistor is large when the small current is sampled, so that the current sampling precision can be improved to a certain extent.
In order to solve the above-mentioned technical problems, please refer to fig. 1, a first aspect of the present application proposes a current sampling circuit, which can effectively improve its sampling accuracy.
The current sampling circuit includes a current sampling module 10, an amplifying module 20, and a comparison control module 30. The current sampling module 10 is connected into a loop formed by the power supply 40 and the load 50; the amplifying module 20 is connected with the current sampling module 10, and the amplifying module 20 is used for amplifying the voltage signal of the current sampling module 10 and outputting a corresponding sampling voltage V O The method comprises the steps of carrying out a first treatment on the surface of the The comparison control module 30 is connected with the amplifying module 20 and the current sampling module 10, and the comparison control module 30 is used for sampling the voltage V O With reference voltage V REF The comparison control module 30 controls the resistance value of the current sampling module 10 connected into the loop according to the control signal.
The specific circuit configuration of the current sampling circuit is described below in conjunction with fig. 1-3.
As shown in fig. 1, the current sampling circuit includes a current sampling module 10, an amplifying module 20, and a comparison control module 30.
The current sampling module 10 is connected to a circuit formed by the power supply 40 and the load 50, that is, the current sampling module 10 is connected between the power supply 40 and the load 50. The current sampling module 10 is used for sampling a current signal I flowing through a load 50 O Converted into a corresponding voltage signal. The specific circuit configuration of the current sampling module 10 will be described below.
It should be noted that the above-mentioned loop can be connected to different loads 50, and when the loads 50 connected in the loop are different, the current signal I flowing through the different loads 50 O Also differently, the current sampling module 10 is capable of providing different current signals I flowing through the load 50 O Converted into a different voltage signal.
The amplifying module 20 is connected with the current sampling module 10 to receive the voltage signal from the current sampling module 10, and the amplifying module 20 amplifies the voltage signal and outputs a corresponding sampling voltage V O That is, the voltage signal outputted from the current sampling module 10 is amplified by the amplifying module 20 and converted into the sampling voltage V O And the sampling voltage V O Is output by the amplification module 20. With respect toThe specific circuit configuration of the amplifying module 20 will be described below.
Note that, for the current signal I flowing through the different loads 50 O The different voltage signals converted by the current sampling module 10 are amplified by the amplifying module 20 in equal proportion and output different sampling voltages V O
The comparison control module 30 is connected with the amplifying module 20 to receive the sampling voltage V from the amplifying module 20 O The comparison control module 30 compares the sampled voltage V O With reference voltage V REF And comparing, and generating different control signals according to different comparison results. Here for reference voltage V REF The specific value of (2) is not limited, and the designer can make reference voltage V according to actual requirement REF Is reasonably designed. The specific circuit configuration of the comparison control module 30 will be described below.
The comparison control module 30 is connected with the current sampling module 10, and the comparison control module 30 controls the resistance value of the current sampling module 10 in the access loop according to the generated control signal. That is, the comparison control module 30 has the function of comparing the sampling voltage V O With reference voltage V REF In addition to the signal comparison function of comparing and generating different control signals according to different comparison results, the comparison control module 30 also has a control function of controlling the resistance value of the current sampling module 10 in the access loop according to the generated control signals.
By directly increasing the resistance of the current sampling resistor or by using a high-precision differential amplifier in the related art, the voltage V is sampled O With reference voltage V REF A comparison is made to determine the current signal I flowing through the load 50 O Generates a corresponding control signal according to the comparison result, and adjusts the resistance value of the current sampling module 10 in the access loop through the control signal so that when the current signal I flows through the load 50 O When the current is small, the resistance value of the access loop of the current sampling module 10 is larger, so that the accuracy of current sampling is effectively improved, and when the current signal I flows through the load 50 O Is of great electricityWhen flowing, the resistance value of the access loop of the current sampling module 10 is smaller, so that the power consumption of the current sampling resistor is reduced. On the other hand, the differential amplifier with low cost can be used for current sampling, and the cost is effectively reduced while the current sampling precision is improved.
As shown in fig. 2, it is considered that the current sampling module 10 is capable of changing the magnitude of the resistance in its own access loop according to the control signal generated by the comparison control module 30. So designed, in some embodiments, the current sampling module 10 includes a resistor unit 11 and a switch unit 12; the resistor unit 11 is connected into a loop formed by the power supply 40 and the load 50, and the resistor unit 11 is connected with the amplifying module 20; the switch unit 12 is connected with the resistor unit 11, the amplifying module 20 and the comparison control module 30; the comparison control module 30 is specifically configured to control the on-off state of the switch unit 12 according to the control signal, so as to control the resistance value of the resistor unit 11 in the access loop.
The resistor unit 11 is connected to the circuit formed by the power source 40 and the load 50, and the current signal I flowing through the load 50 O The voltage signal is formed at both ends of the resistor unit 11 through the resistor unit 11. The "on-off state" includes an "on state" and an "off state", for example, when the concrete expression form of the switch unit 12 is a single-pole single-throw switch, the "on state" of the single-pole single-throw switch is a state when the movable end of the single-pole single-throw switch is closed, whereas the "off state" of the single-pole single-throw switch is a state when the movable end of the single-pole single-throw switch is open; when the switching unit 12 is embodied as a triode, the "on state" of the triode is the state when the collector and the emitter of the triode are on, whereas the "off state" of the triode is the state when the collector and the emitter of the triode are off.
In the design, by designing the resistor unit 11 and the switch unit 12, the comparison control module 30 controls the on-off state of the switch unit 12 according to the control signal, thereby controlling the resistance value of the resistor unit 11 in the access loop so as to enable the current signal I flowing through the load 50 O Smaller, can make smaller the current signal I O After flowing through the resistor unit 1111, a larger voltage signal is formed at two ends of the voltage signal, and the larger voltage signal is amplified by the amplifying module 20 to form a sampling voltage V O Can effectively ensure the current signal I flowing through the load 50 O Is used for the sampling accuracy of the (c).
As shown in fig. 2, the resistance values of the resistor unit 11 connected to the circuit are different in consideration of the difference of the on-off states of the switch units 12. It is contemplated that in some embodiments, the amplification module 20 has a first amplification input b1 and a second amplification input b2; the resistor unit 11 includes a first resistor unit R CS1 And a second resistance unit R CS2 The method comprises the steps of carrying out a first treatment on the surface of the First resistor unit R CS1 Is connected to the first amplification input terminal b1 and the power supply 40; second resistor unit R CS2 And a first resistor unit R CS1 A second resistor unit R connected to the second end of the first resistor unit CS2 A second resistor unit R connected to the second amplified input b2 and the load 50 CS2 And also to the switching unit 12.
In some embodiments, the first resistor unit R may be determined in advance according to design requirements of the current sampling circuit CS1 And a second resistance unit R CS2 Is a resistance value of (a). Exemplary, typically the first resistance element R CS1 The resistance value of the second resistor unit R is smaller CS2 The conditional expression is satisfied: k is R CS1 ≤R CS2 ≤△V/I O -R CS1 . Where K is a ratio of an actual precision of the operational amplifier of the amplifying module 20 to a required precision of the current sampling circuit, for example, when the actual precision of the operational amplifier is 100 and the required precision of the current sampling circuit is 10, the value of K is 10.R is R CS1 Is a first resistance unit R CS1 DeltaV is the voltage drop (i.e. the voltage signal) formed across the current sampling module 10, I O Is a small current signal flowing through the load 50, and I O The value of (2) is preset by the designer, e.g. a small current threshold I as described below L . During design, a designer can apply the first resistor unit R according to actual requirements CS1 The resistance value of the resistor is reasonably designed, and the second resistor unit R is obtained through the conditions CS2 Is of a size of (a) and (b).
The first resistor unit R CS1 Or a second resistance unit R CS2 May include one resistor or a plurality of resistors, when the first resistor unit R CS1 Or a second resistance unit R CS2 When a plurality of resistors are included, the plurality of resistors may be connected in series, parallel, or mixed. First resistor unit R CS1 And a second resistance unit R CS2 Connected in series between the power source 40 and the load 50.
It is worth mentioning that from the second resistance unit R CS2 And the first resistance unit R CS1 The ratio of the total resistance of the second resistor unit R can be obtained CS2 Is far greater than the first resistance unit R CS1 Is a total resistance of (a). In addition, here, for the first resistance unit R CS1 Resistance value of (and) second resistance unit R CS2 The specific value of the resistance value is not limited, and a designer can reasonably design according to actual needs.
When the comparison control module 30 controls the on-off state of the switch unit 12 according to the control signal to control the second resistor unit R CS2 Whether or not to be connected into the loop, for the first resistor unit R CS1 In other words, the first resistor unit R CS1 The resistance of the first resistor unit R is not affected by the on-off state of the switch unit 12 CS1 The resistance value in the loop formed by the power supply 40 and the load 50 is actually a fixed value (i.e. the first resistance unit R CS1 The magnitude of the resistance itself). For the second resistance unit R CS2 In other words, the second resistor unit R CS2 The resistance of the second resistor unit R is influenced by the on-off state of the switch unit 12 CS2 The resistance value in the loop formed by the power supply 40 and the load 50 is not a fixed value, and the second resistance unit R CS2 The resistance in the actual access loop is related to the control signal generated by the comparison control module 30. In addition, it can be appreciated that the second resistance unit R CS2 The maximum value of the resistance values in the access loop is the total resistance value obtained by calculating all the included resistances in the access loop in series and/or parallel, and the second resistance unit R CS2 Resistance value in the access loopThe minimum value is zero, and the comparison control module 30 controls the switch unit 12 to be in different on-off states according to different control signals, so as to control the second resistor unit R CS2 The resistance value in the access loop is larger than or equal to the minimum value and smaller than or equal to the maximum value.
Considering that the comparison control module 30 can control the switch unit 12 to be in different on-off states according to different control signals, and the switch unit 12 in different on-off states can enable the second resistor unit R CS2 The resistance values in the access loops are different. The concrete form of the switch unit 12 may be, but is not limited to, the following several embodiments.
In a first embodiment, as shown in fig. 2, the comparison control module 30 has a first control output and a second control output. The switching unit 12 includes a first switching element NM1, a second switching element NM2, and a third switching element NM3; the first connection end of the first switching element NM1 and the second resistance unit R CS2 A second connection terminal of the first switching element NM1 is connected with the second resistance unit R CS2 A second terminal of the first switching element NM1 is connected to the first control output terminal; the first connection end of the second switching element NM2 is connected with the second amplifying input end b2, and the second connection end of the second switching element NM2 is connected with the second resistor unit R CS2 A second terminal of the second switching element NM2 is connected to the second control output terminal; the first connection end of the third switching element NM3 is connected with the second amplifying input end b2, and the second connection end of the third switching element NM3 is connected with the second resistor unit R CS2 Is connected to the first terminal of the third switching element NM3, and the controlled terminal is connected to the first control output terminal.
It should be noted that, the first connection terminal of the first switching element NM1 and the second resistor unit R CS2 A second connection terminal of the first switching element NM1 is connected with the second resistance unit R CS2 A second terminal of the first switching element NM1 is connected with the second resistor unit R CS2 Connected in parallel. When the first switching element NM1 is in the on state, the second resistance unit R CS2 The whole is short-circuited, at this time, the second resistance unit R CS2 The resistance in the access loop is the minimum value (i.e., zero) described above. Conversely, when the first switching element NM1 is in the off state, the second resistance unit R CS2 The whole is not shorted, at this time, the second resistance unit R CS2 The resistance value in the access loop is the maximum value. So designed, the comparison control module 30 controls the second resistance unit R by controlling the on-off states of the first, second and third switching elements NM1, NM2 and NM3 CS2 Whether to access the loop.
It is understood that the first switching element NM1, the second switching element NM2, and the third switching element NM3 are one type of switching device having an on state and an off state, and the first switching element NM1, the second switching element NM2, and the third switching element NM3 may be embodied in many forms, for example, at least one of the first switching element NM1, the second switching element NM2, and the third switching element NM3 may be a single pole single throw switch (electric control type), a triode, or a field effect transistor. The triode can be NPN triode or PNP triode, and the field effect transistor can be NMOS field effect transistor or PMOS field effect transistor.
Specifically, in the embodiment of the present application, the first switching element NM1 is a first NMOS field-effect transistor, the second switching element NM2 is a second NMOS field-effect transistor, and the third switching element NM3 is a third NMOS field-effect transistor. The source electrode of the first NMOS field effect transistor is used as a first connecting end and a second resistor unit R CS2 The drain electrode of the first NMOS field effect transistor is used as a second connection end to be connected with the second resistor unit R CS2 The gate of the first NMOS field effect transistor is connected with the first control output end as a controlled end. The source electrode of the second NMOS tube is used as a first connecting end to be connected with the second amplifying input end b2, and the drain electrode of the second NMOS field effect tube is used as a second connecting end to be connected with the second resistor unit R CS2 The gate of the second NMOS field effect transistor is connected with the second control output end as a controlled end. The source electrode of the third NMOS field effect transistor is used as a first connecting end to be connected with the second amplifying input end b2, and the drain electrode of the third NMOS field effect transistor is used as a second connecting end to be connected with the second resistor unit R CS2 Is connected with the first end of (a)And the grid electrode of the third NMOS field effect transistor is connected with the first control output end as a controlled end.
As shown in fig. 3, in the second embodiment, the comparison control module 30 has a first control output terminal, and the switching unit 12 includes a first switching element NM1. The first connection end of the first switching element NM1 and the second resistance unit R CS2 A second connection terminal of the first switching element NM1 is connected with the second resistance unit R CS2 The controlled terminal of the first switching element NM1 is connected to the first control output terminal. It is to be understood that the specific description of the first switching element NM1 included in the switching unit 12 in fig. 3 may refer to the foregoing description of the first switching element NM1 shown in fig. 2, and will not be repeated herein.
As shown in fig. 2 and 3, in some embodiments, the reference voltage V REF Includes a first threshold voltage V REF1 And a second threshold voltage V REF2 And a first threshold voltage V REF1 Greater than the second threshold voltage V REF2 . The comparison control module 30 includes a first comparator CMP1, a second comparator CMP2, and a trigger unit 31. The non-inverting input terminal of the first comparator CMP1 is connected with the amplifying module 20 to access the sampling voltage V O The inverting input terminal of the first comparator CMP1 is connected with the first threshold voltage V REF1 The first comparator CMP1 is used for sampling the voltage V O And a first threshold voltage V REF1 A comparison is made and a first comparison signal is generated. The inverting input terminal of the second comparator CMP2 is connected with the amplifying module 20 to access the sampling voltage V O The non-inverting input terminal of the second comparator CMP2 is connected with the second threshold voltage V REF2 The second comparator CMP2 is used for sampling the voltage V O And a second threshold voltage V REF2 A comparison is made and a second comparison signal is generated. The first receiving end of the trigger unit 31 is connected with the output end of the first comparator CMP1, the second receiving end of the trigger unit 31 is connected with the output end of the second comparator CMP2, the trigger end of the trigger unit 31 is connected with the current sampling module 10, and the trigger unit 31 is used for generating a control signal according to the first comparison signal and the second comparison signal and controlling the resistance value of the current sampling module 10 connected into the loop according to the control signal.
In one possible implementation, when designing the current sampling circuit, the values of the large current signal and the small current signal flowing through the load 50 may be preset, and according to the set values, the first resistance unit R CS1 And a second resistance unit R CS2 The resistance value of (a) determines the first threshold voltage V REF1 And a second threshold voltage V REF2
For example, the high current signal flowing through the load 50 is a high current threshold I H The small current signal flowing through the load 50 is the small current threshold I L The amplification Gain of the amplification module 20 (specifically, the amplifier OP1 described below) is Gain, and the first threshold voltage V REF1 And a second threshold voltage V REF2 The following formula is used for determination.
V REF1 =I H ×(R CS1 +R CS2 ) XGain- -equation 1
V REF2 =I L ×R CS1 XGain- -equation 2
As can be seen from the above equation 1, when the voltage V is sampled O >V REF1 When indicating a current signal I flowing through the load 50 O Greater than I H . As can be seen from the above "equation 2", when the voltage V is sampled O <V REF2 When the current signal flowing through the load 50 at this time is less than I L
Note that when the switching unit 12 includes the first switching element NM1, the second switching element NM2, and the third switching element NM3; the trigger terminal comprises the first control output terminal and the second control output terminal. When the switching unit 12 includes only the first switching element NM1, the trigger terminal is the above-described first control output terminal.
Further, in some embodiments, the triggering unit 31 includes an RS flip-flop, an S pin of the RS flip-flop is connected as a first receiving end to the output end of the first comparator CMP1, an R pin of the RS flip-flop is connected as a second receiving end to the output end of the second comparator CMP2, and at least a Q pin of the RS flip-flop is connected as a triggering end to the current sampling module 10. It should be noted that, as shown in fig. 3, when the switch unit 12 includes only the first switch element NM1, the Q pin of the RS flip-flop is connected to the controlled end of the first switch element NM1 as the trigger end, and the Q-pin of the RS flip-flop is suspended. As shown in fig. 2, when the switching unit 12 includes the first switching element NM1, the second switching element NM2, and the third switching element NM3, the Q pin of the RS flip-flop is connected as a trigger terminal to the controlled terminal of the first switching element NM1 and the controlled terminal of the third switching element NM3; the Q-pin of the RS flip-flop is also connected as a trigger terminal to the controlled terminal of the second switching element NM 2.
As shown in fig. 2 and 3, it is considered that the amplifying module 20 has a function of amplifying the voltage signal output from the current sampling module 10. It is contemplated that in some embodiments, the amplifying module 20 includes an amplifier OP1, wherein an inverting input terminal and a non-inverting input terminal of the amplifier OP1 are connected to the current sampling module 10, and an output terminal of the amplifier OP1 is connected to a non-inverting input terminal of the first comparator CMP1 and an inverting input terminal of the second comparator CMP 2.
Specifically, in the embodiment of the present application, the inverting input terminal of the amplifier OP1 serves as the first amplifying input terminal b1 and the first resistor unit R CS1 Is connected to the first terminal of the amplifier OP1 as the second amplifying input terminal b2 and the second resistor unit R CS2 Is connected to the second end of the first connector.
The specific value of the amplification gain of the amplifier OP1 is not limited herein, and a designer may select the amplifier OP1 with a suitable amplification gain according to actual needs.
The working principle of the current sampling circuit is briefly described below with reference to fig. 2:
when the current sampling circuit is powered on, the Q pin of the default RS trigger is set to output a low level (namely Q=0), and the Q-pin of the RS trigger is set to output a high level (namely Q to=1). At this time, the first switching element NM1 and the third switching element NM3 are turned off, and the second switching element NM2 is turned on. Sampling voltage V O The relation with the current signal Io flowing through the load 50 is the following equation 3.
Vo=Io×(R CS1 +R CS2 ) XGain- -equation 3
When a current signal I flows through the load 50 O ' greater than the high current thresholdI H At this time, the output end of the amplifier OP1 outputs the sampling voltage V O Greater than a first threshold voltage V REF1 The output terminal of the first comparator CMP1 outputs a high level (i.e., the first comparison signal) to the S pin of the RS flip-flop. The output terminal of the second comparator CMP2 outputs a low level (i.e., the second comparison signal) to the R pin of the RS flip-flop. At this time, the Q pin of the RS flip-flop outputs a high level to control the first switching element NM1 and the third switching element NM3 to be turned on, and the Q pin of the RS flip-flop outputs a low level to control the second switching element NM2 to be turned off. At this time, the second resistance unit R CS2 Is short-circuited with only the first resistor unit R CS1 In the access loop, due to the first resistor unit R CS1 The resistance value of (a) is far smaller than that of the second resistance unit R CS2 The total resistance in the switching loop is small, and the current signal I flowing through the load 50 is high O ' sampling, first resistance unit R CS1 After being amplified by the amplifier OP1, the voltage signal DeltaV' of (a) forms a sampling voltage V at the output end of the amplifier OP1 O '. Sampling voltage V O The relationship of 'and the large current signal Io' flowing through the load 50 is:
Vo’=Io’×R CS1 XGain- -equation 4
In addition, due to the first resistance unit R CS1 The resistance value of (2) is smaller, so that when the current signal I is larger O ' flow through the first resistance element R CS1 At the time of the first resistance unit R CS1 The power consumed is small so that the power of the current sampling circuit is not greatly affected.
When a current signal I flows through the load 50 O "less than small current threshold I L At this time, the output end of the amplifier OP1 outputs the sampling voltage V O Less than the second threshold voltage V REF2 The output terminal of the second comparator CMP2 outputs a high level (i.e., the second comparison signal) to the R pin of the RS flip-flop. The output terminal of the first comparator CMP1 outputs a low level (i.e., the first comparison signal) to the S pin of the RS flip-flop. At this time, the Q pin of the RS trigger outputs low level to control the first switching element NM1 and the third switching element NM3 to be turned off, and the Q pin of the RS trigger outputs highThe level control second switching element NM2 is turned on. At this time, the second resistance unit R CS2 Not short-circuited, the first resistance unit R CS1 Second resistor unit R CS2 Are all connected into the loop, due to the second resistance unit R CS2 The resistance value of (a) is far greater than that of the first resistance unit R CS1 The total resistance in the switching loop is relatively large, and the small current signal I flowing through the load 50 is O Sampling, first resistance unit R CS1 And a second resistance unit R CS2 The voltage signal DeltaV' at two ends is amplified by the amplifier OP1 to form a sampling voltage V at the output end of the amplifier OP1 O ”,V O The relationship of "and the small current signal Io flowing through the load 50" is:
Vo”=Io”×(R CS1 +R CS2 ) XGain- -equation 5
In this case, until the current flowing through the load 50 is again greater than the large current threshold I H And when the output of the RS trigger is triggered to change, the RS trigger is circularly reciprocated.
In addition, due to the current signal I flowing through the load 50 O Smaller, thus when the current signal I is smaller O "flow through first resistance element R CS1 Second resistor unit R CS2 In this case, the sampling voltage is increased, and the influence of the offset voltage of the amplifying module 20 on the sampling accuracy is reduced, so that the current sampling accuracy is effectively improved. And at the first resistor unit R CS1 Second resistor unit R CS2 The power consumed is small so that the power of the current sampling circuit is not greatly affected.
A second aspect of the present application proposes a chip (not shown in the figures) comprising the current sampling circuit described above and shown in fig. 1-3. In this design, the comparison control module 30 compares the sampling voltage V of the current sampling module 10 with the chip having the current sampling circuit O With reference voltage V REF Comparing, and generating different control signals according to different comparison results, the comparison control module 30 controls the resistance value of the current sampling module 10 in the access loop according to the generated control signals so as to sample the current signal Io flowing through the load 50, so thatThe sampling precision is effectively improved. Especially when sampling the small current signal Io, by sampling the voltage V O With reference voltage V REF A comparison is made to determine that the current signal Io currently flowing through the load 50 is a small current, and the resistance value of the loop formed by the current sampling module 10 connected to the power supply 40 and the load 50 is adjusted to increase the sampling voltage V O The influence of the offset voltage of the amplifying module 20 on the sampling precision is reduced, so that the current sampling precision is effectively improved.
Referring to fig. 4, a third aspect of the present application proposes a control method of a current sampling circuit, which is applied to the current sampling circuits shown in fig. 1-3, and includes:
step S201: the current sampling module 10 samples a current signal I flowing through the load 50 O Converted into a voltage signal.
Step S202: the amplifying module 20 amplifies the voltage signal and outputs a corresponding sampling voltage V O
Step S203: the comparison control module 30 samples the voltage V O With reference voltage V REF The comparison is performed and a corresponding control signal is generated, and the current sampling module 10 is controlled to access the resistance value in the loop formed by the power supply 40 and the load 50 according to the control signal.
Based on the control method of the current sampling circuit in the embodiment of the application, the comparison control module 30 compares the sampling voltage V of the current sampling module 10 O With reference voltage V REF The comparison control module 30 controls the resistance value of the current sampling module 10 in the access loop according to the generated control signals to sample the current signal Io flowing through the load 50, so that the sampling precision can be effectively improved. Especially when sampling the small current signal Io, by sampling the voltage V O With reference voltage V REF A comparison is made to determine that the current signal Io currently flowing through the load 50 is a small current, and the resistance value of the loop formed by the current sampling module 10 connected to the power supply 40 and the load 50 is adjusted to increase the sampling voltage V O The influence of the offset voltage of the amplifying module 20 on the sampling precision is reduced, thereby effectively improvingCurrent sampling accuracy.
Further, in step S203: the comparison control module 30 controls the resistance value of the current sampling module 10 in the access loop according to the control signal, and specifically may include: the comparison control module 30 controls the on-off state of the switch unit 12 according to the control signal to control the resistance value of the resistor unit 11 in the access loop.
In this design, the comparison control module 30 controls the on-off state of the switch unit 12 according to the control signal, thereby controlling the resistance value of the resistor unit 11 in the access loop so as to enable the current signal I flowing through the load 50 O Smaller, can make smaller the current signal I O After flowing through the resistor unit 11, a larger voltage signal is formed at two ends of the resistor unit 11, and the larger voltage signal is amplified by the amplifying module 20 to form a sampling voltage V O Can effectively ensure the current signal I flowing through the load 50 O Is used for the sampling accuracy of the (c).
Referring to fig. 5, further, step S203: the comparison control module 30 is used for comparing the sampled voltage V O With reference voltage V REF The comparison is performed, a corresponding control signal is generated, and the resistance value of the current sampling module 10 connected into the loop is controlled according to the control signal, which comprises the following steps:
step S301: the first comparator CMP1 samples the voltage V O And a first threshold voltage V REF1 A comparison is made and a first comparison signal is generated.
Step S302: the second comparator CMP2 samples the voltage V O And a second threshold voltage V REF2 A comparison is made and a second comparison signal is generated.
Step S303: the triggering unit 31 generates a control signal according to the first comparison signal and the second comparison signal, and controls the resistance value of the current sampling module 10 in the access loop according to the control signal.
In this design, the first comparator CMP1 will sample the voltage V O And a first threshold voltage V REF1 The second comparator CMP2 compares the sampled voltage V to generate a first comparison signal O And a second threshold voltage V REF2 The trigger unit 31 compares the first and second comparison signals to generate a second comparison signalThe two comparison signals generate control signals, and control the resistance value in the access loop of the current sampling module 10 according to the control signals so as to flow the current signal I of the load O The sampling is carried out, so that the accuracy of the sampling can be effectively improved, and the cost can be effectively reduced.
A fourth aspect of the present application proposes an electronic device (not shown in the drawings) including a housing and the above-described chip mounted to the housing. The electronic device may be a device requiring current sampling, for example, but not limited to, a mobile power supply. In the design, the electronic equipment with the chip has high-precision current sampling performance.
The same or similar reference numerals in the drawings of the present embodiment correspond to the same or similar components; in the description of the present application, it should be understood that, if there is an azimuth or positional relationship indicated by terms such as "upper", "lower", "left", "right", etc., based on the azimuth or positional relationship shown in the drawings, this is for convenience of description and simplification of the description, but does not indicate or imply that the apparatus or element to be referred must have a specific azimuth, be constructed and operated in a specific azimuth, and thus terms describing the positional relationship in the drawings are merely used for illustration and are not to be construed as limitations of the present patent, and that the specific meaning of the terms described above may be understood by those of ordinary skill in the art according to the specific circumstances.
The foregoing description of the preferred embodiments of the present application is not intended to be limiting, but is intended to cover any and all modifications, equivalents, and alternatives falling within the spirit and principles of the present application.

Claims (10)

1. A current sampling circuit, comprising:
the current sampling module is connected into a loop formed by a power supply and a load;
the amplifying module is connected with the current sampling module and is used for amplifying the voltage signal of the current sampling module and outputting a corresponding sampling voltage;
and the comparison control module is connected with the amplifying module and the current sampling module and is used for comparing the sampling voltage with a reference voltage and generating a corresponding control signal, and controlling the current sampling module to be connected with the resistance value in the loop according to the control signal.
2. The current sampling circuit of claim 1 wherein said current sampling module comprises:
the resistor unit is connected into the loop and connected with the amplifying module;
the switch unit is connected with the resistor unit, the amplifying module and the comparison control module;
the comparison control module is specifically configured to control the on-off state of the switch unit according to the control signal, so as to control the resistance value of the resistor unit connected to the loop.
3. The current sampling circuit of claim 2 wherein said amplification module has a first amplification input and a second amplification input, said resistive element comprising:
the first end of the first resistor unit is connected with the first amplifying input end and the power supply;
the first end of the second resistor unit is connected with the second end of the first resistor unit, and the second end of the second resistor unit is connected with the second amplifying input end and the load;
the second resistor unit is also connected with the switch unit.
4. A current sampling circuit according to claim 3, wherein the comparison control module has a first control output and a second control output, the switching unit comprising:
the first connecting end of the first switching element is connected with the first end of the second resistance unit, the second connecting end of the first switching element is connected with the second end of the second resistance unit, and the controlled end of the first switching element is connected with the first control output end;
the first connecting end of the second switching element is connected with the second amplifying input end, the second connecting end of the second switching element is connected with the second end of the second resistance unit, and the controlled end of the second switching element is connected with the second control output end;
the first connecting end of the third switching element is connected with the second amplifying input end, the second connecting end of the third switching element is connected with the first end of the second resistor unit, and the controlled end of the third switching element is connected with the first control output end.
5. A current sampling circuit according to claim 3, wherein the comparison control module has a first control output, the switching unit comprising:
the first connecting end of the first switching element is connected with the first end of the second resistance unit, the second connecting end of the first switching element is connected with the second end of the second resistance unit, and the controlled end of the first switching element is connected with the first control output end.
6. The current sampling circuit of any one of claims 1-5, wherein the reference voltage comprises a first threshold voltage and a second threshold voltage, and wherein the first threshold voltage is greater than the second threshold voltage; the comparison control module includes:
the non-inverting input end of the first comparator is connected with the amplifying module to be connected with the sampling voltage, and the inverting input end of the first comparator is connected with the first threshold voltage;
the inverting input end of the second comparator is connected with the amplifying module to be connected with the sampling voltage, and the non-inverting input end of the second comparator is connected with the second threshold voltage;
the first receiving end of the triggering unit is connected with the output end of the first comparator, the second receiving end of the triggering unit is connected with the output end of the second comparator, and the triggering end of the triggering unit is connected with the current sampling module.
7. The current sampling circuit of claim 6, wherein said trigger unit comprises:
the S pin of the RS trigger is used as the first receiving end to be connected with the output end of the first comparator, the R pin of the RS trigger is used as the second receiving end to be connected with the output end of the second comparator, and at least the Q pin of the RS trigger is used as the triggering end to be connected with the current sampling module.
8. The current sampling circuit of claim 6 wherein said amplification module comprises:
and the inverting input end and the non-inverting input end of the amplifier are connected with the current sampling module, and the output end of the amplifier is connected with the non-inverting input end of the first comparator and the inverting input end of the second comparator.
9. A chip, comprising:
a current sampling circuit according to any one of claims 1 to 8.
10. A control method of a current sampling circuit, characterized in that the control method is applied to the current sampling circuit according to any one of claims 1 to 8, the control method comprising:
the current sampling module converts a current signal flowing through the load into a voltage signal;
the amplifying module amplifies the voltage signal and outputs a corresponding sampling voltage;
and the comparison control module compares the sampling voltage with a reference voltage and generates a corresponding control signal, and controls the resistance value of a loop formed by the current sampling module connected to a power supply and the load according to the control signal.
CN202310429277.5A 2023-04-20 2023-04-20 Current sampling circuit, chip and control method of current sampling circuit Pending CN116400120A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310429277.5A CN116400120A (en) 2023-04-20 2023-04-20 Current sampling circuit, chip and control method of current sampling circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310429277.5A CN116400120A (en) 2023-04-20 2023-04-20 Current sampling circuit, chip and control method of current sampling circuit

Publications (1)

Publication Number Publication Date
CN116400120A true CN116400120A (en) 2023-07-07

Family

ID=87007294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310429277.5A Pending CN116400120A (en) 2023-04-20 2023-04-20 Current sampling circuit, chip and control method of current sampling circuit

Country Status (1)

Country Link
CN (1) CN116400120A (en)

Similar Documents

Publication Publication Date Title
US7268523B2 (en) Constant voltage power supply circuit and method of testing the same
US7282894B2 (en) Method and apparatus for performing lossless sensing and negative inductor currents in a high side switch
US9651980B2 (en) Bandgap voltage generation
US9136807B2 (en) Apparatus and methods for electronic amplification
CN109813455B (en) CMOS temperature sensor
CN112106286A (en) Methods, apparatus, and systems to facilitate current sensing of power converters for valley current control
US9018934B2 (en) Low voltage bandgap reference circuit
US11914412B2 (en) Low noise bandgap reference architecture
CN115622534B (en) Structure and method for improving impedance of operational amplifier
CN110661501B (en) Automatic locking circuit for setting quiescent point of power amplifier
KR20030055758A (en) Variable gain amplifier circuitry in automatic gain control
CN219997167U (en) Current sampling circuit and chip
CN110673680B (en) Linear voltage stabilizer circuit
CN116400120A (en) Current sampling circuit, chip and control method of current sampling circuit
JP2011254408A (en) Power amplifier module and portable information terminal
CN103683929A (en) Self-adaptive loop compensating method, compensating circuit and switching power supply with compensating circuit
CN112787505A (en) DC-DC converter and control circuit and control method thereof
CN112187267A (en) Current sampling circuit and control method thereof
CN114584082B (en) Bandwidth adjusting circuit and bandwidth adjusting method of operational amplifier
US6734746B1 (en) Mute circuit
CN104569548B (en) Line voltage detection circuit of switching power supply
CN112242823B (en) Differential input circuit, control method thereof and differential amplifier
US20020089346A1 (en) Power supply for individually controlling discharge current and absorbing current as output current supplied to load
JP5092792B2 (en) Regulator circuit
CN115291664B (en) Low dropout regulator circuit with automatically adjustable static power consumption

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination