Circuit for measuring a derivative
The derivative measurement circuit addresses inefficiencies in existing technologies by using capacitive elements and a control circuit to calculate the derivative of an input voltage over a wide frequency range, offering improved efficiency and response time.
Patent Information
- Application Number
- FR2023002835
- Authority / Receiving Office
- FR · FR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2043-03-24
AI Technical Summary
Existing derivative measurement circuits face limitations such as unsuitability for large frequency ranges, requirement of high-bandwidth operational amplifiers, and complexity involving digital analog converters and microprocessors, which result in inefficiencies and long response times.
A derivative measurement circuit utilizing three capacitive elements and a control circuit to implement successive cycles, where switches are controlled to store voltages on different capacitors and feed them into a differential amplifier to calculate the derivative of the input voltage.
The proposed circuit effectively measures the derivative of a voltage over a wide frequency range without the need for high-bandwidth operational amplifiers or complex digital processing, providing a more efficient and responsive solution.
Smart Images

Figure 00000026_0000 
Figure 00000026_0001 
Figure 00000027_0000
Abstract
Description
Title of the invention: Circuit for measuring a derivative Technical field
[0001] The present description relates generally to electronic circuits, for example integrated circuits, and, more particularly, to a circuit for measuring a derivative and a device comprising such a measuring circuit. Prior art
[0002] Many known applications and known devices implement a measurement (or calculation) of a derivative, for example of the derivative of a voltage indicating a value of a physical quantity such as a current or a temperature.
[0003] To obtain a measurement of the derivative of a voltage, that is to say a value of the derivative of the voltage, one solution consists of using an operational amplifier mounted as a voltage derivative. However, this solution has various drawbacks. In particular, this solution is not suitable for wide frequency ranges of the input signal of the operational amplifier. Furthermore, this solution requires an operational amplifier having a bandwidth greater than the frequency range of the input signal.
[0004] Another solution is to use an analog to digital converter (ADC) to digitize the voltage on which the derivative will be calculated, and a microprocessor that reads the output of the ADC and calculates the derivative of the ADC input voltage. However, this solution is complex because it requires an ADC and a microprocessor. In addition, the conversion time of the ADC plus the calculation time of the microprocessor can be too long, for example when countermeasures must be implemented as soon as the derivative exceeds a threshold.
[0005] There are still other known solutions for measuring, that is to say calculating, the derivative of a voltage, but these known solutions also suffer from drawbacks.
[0006] There is therefore a need to overcome all or part of the drawbacks of known circuits for measuring a derivative. Summary of the invention
[0007] One embodiment overcomes all or part of the drawbacks of known circuits for measuring a derivative.
[0008] One embodiment provides a circuit for measuring a derivative comprising: first, second, and third capacitive elements each having a first terminal connected to a first input of the measurement circuit configured to receive a reference potential; first switches coupling a second terminal of each of said elements to a first node configured to receive a first voltage determined by a second voltage on a second input of the measurement circuit to which the first node is coupled; a first circuit configured to provide, at a first output of the measuring circuit, a third voltage indicating a value of a voltage difference between first and second inputs of the first circuit; second switches coupling the second terminal of each of said elements to the inputs of the first circuit; and a control circuit configured to: - receive a first clock signal available on a third input of the measuring circuit; - implementing successive cycles each corresponding to a succession of first, second and third periods of a second clock signal determined by the first clock signal; and - control the switches so that: at each first period, the first voltage is stored on the first element and the first and second inputs of the first circuit receive voltages from the third and second elements respectively, at each second period, the first voltage is stored on the second element and the first and second inputs of the first circuit receive voltages from the first and third elements respectively, and at every third period, the first voltage is stored on the third element and the first and second inputs of the first circuit receive voltages from the second and first elements respectively.
[0009] According to one embodiment, a device is provided comprising an integrated circuit chip comprising the above measurement circuit, a controllable resistor external to the chip and having a control input configured to receive a control signal determined at least in part by the first output of the measurement circuit, and a second circuit connected to the controllable resistor and configured to supply, at the second input of the measurement circuit, the second voltage indicating a value of the current in the controllable resistor, the second circuit being for example part of the chip.
[0010] According to one embodiment, the first switches comprise a first first switch coupling the second terminal of the first element to the first node, a second first switch coupling the second terminal of the second element to the first node and a third first switch coupling the second terminal of the third element to the first node.
[0011] According to one embodiment, the control circuit is configured to: at each first period, keep the second and third first switches open and switch the first first switch to the on state; at each second period, keep the third and first switches open and switch the second first switch to the on state; and at every third period, keep the second and first switches open and switch the third first switch to the on state.
[0012] According to one embodiment, each storage of the first voltage on a capacitive element has the same duration, for example less than or equal to a period of the second clock signal, preferably equal to a half-period of the second clock signal.
[0013] According to one embodiment, said same duration is the duration of the passing state of the first, second and third first switches during each of the first, second and third periods respectively.
[0014] According to one embodiment, the second switches comprise: first and second second switches coupling the second terminal of the first element respectively to the first and second inputs of the first circuit; third and fourth second switches coupling the second terminal of the second element respectively to the first and second inputs of the first circuit; and fifth and sixth second switches coupling the second terminal of the third element respectively to the first and second inputs of the first circuit.
[0015] According to one embodiment, the control circuit is configured to: at each first period, switch the fifth and fourth second switches to the on state and keep the other second switches open; at each second period, switching the first and sixth second switches to the on state and keeping the other second switches open; and at each third period, switching the third and second second switches to the on state and keeping the other second switches open.
[0016] According to one embodiment, the measurement circuit comprises a capacitive smoothing element connected between the first input of the first circuit and the first input of the measurement circuit and a capacitive smoothing element connected between the second input of the first circuit and the first input of the measurement circuit.
[0017] According to one embodiment, the measurement circuit further comprises a third circuit coupling the second input of the measurement circuit to the first node, the third circuit being a buffer circuit configured to receive the second voltage and supply the first voltage.
[0018] According to one embodiment, the measuring circuit further comprises a fourth circuit coupled, preferably connected, to the first and second inputs of the first circuit, the fourth circuit being configured to provide, at a second output of the measuring circuit, a signal indicating which of the voltages of the first and second inputs of the first circuit is greater than the other.
[0019] According to one embodiment, the measuring circuit further comprises a fifth circuit configured to compare the third voltage to a first threshold and to provide, at a third output of the measuring circuit, a signal indicating a result of the comparison.
[0020] According to one embodiment: the controllable resistor comprises several first resistors in series and switches controlled by the control signal of the controllable resistor and each configured to short-circuit a given number of the first resistors; the second circuit is configured to compare, for each of the first resistors, a voltage across this first resistor to at least one corresponding threshold; and the device further comprises a sixth circuit configured to provide the resistance control signal from the results of said comparisons and the second output of the measuring circuit, the sixth circuit being, for example, part of the chip.
[0021] According to one embodiment, the device comprises a processing circuit, for example a microprocessor, coupled to the first and third outputs of the measuring circuit and configured to receive the second voltage.
[0022] According to one embodiment, the device comprises a fourth capacitive element connected in parallel with the first capacitive element, a fifth capacitive element connected in parallel with the second capacitive element, a sixth capacitive element connected in parallel with the third capacitive element, the fourth, fifth and sixth capacitive elements being external to the chip comprising the measurement circuit. Brief description of the drawings
[0023] These characteristics and advantages, as well as others, will be explained in detail in the following description of particular embodiments given without limitation in relation to the attached figures among which:
[0024] [Fig.l] represents, in the form of blocks, an example of a device for measuring a current;
[0025] [Fig.2] represents an exemplary embodiment of a circuit for measuring a derivative; and
[0026] [Fig. 3] represents, in the form of blocks, an exemplary embodiment of a device for measuring a current comprising a circuit for measuring a derivative such as described in relation to [Fig.2]. Description of the embodiments
[0027] The same elements have been designated by the same references in the different figures. In particular, the structural and / or functional elements common to the different embodiments may have the same references and may have identical structural, dimensional and material properties.
[0028] For the sake of clarity, only the steps and elements useful for understanding the embodiments described have been shown and are detailed. In particular, although the interest of the embodiments and variants of the derivative measuring circuit described here is illustrated for a device for measuring a current, these embodiments and variants are compatible with the usual applications and devices in which a derivative of a voltage is calculated, in particular, even when this voltage is not representative of a current but of another physical quantity such as for example the temperature.
[0029] Unless otherwise specified, when referring to two elements connected to each other, this means directly connected without intermediate elements other than conductors, and when referring to two elements connected (in English "coupled") to each other, this means that these two elements can be connected or be connected by means of one or more other elements.
[0030] In the following description, when reference is made to absolute position qualifiers, such as the terms "front", "back", "top", "bottom", "left", "right", etc., or relative position qualifiers, such as the terms "above", "below", "upper", "lower", etc., or to orientation qualifiers, such as the terms "horizontal", "vertical", etc., reference is made unless otherwise specified to the orientation of the figures.
[0031] Unless otherwise specified, the expressions "about", "approximately", "substantially", and "of the order of" mean to within 10%, preferably to within 5%.
[0032] [Fig.l] represents, in block form, an example of a device 1 for measuring a current I.
[0033] The device 1 comprises a circuit CS and a controllable resistor R. The resistor R comprises an input 100 for receiving a control signal sig. The signal sig controls the value of the resistor R. The resistor R comprises two terminals 102 and 104 connected to respective inputs 106 and 108 of the circuit CS.
[0034] The circuit CS is configured to provide a voltage V2, for example available on an output 110 of the circuit CS, indicating the value of the current I flowing in the resistor R.
[0035] By way of example, the device 1 comprises a processing circuit pC, for example a microcontroller, configured to receive the voltage V2, for example on an input 112 of the pc circuit.
[0036] By way of example, the device 1 further comprises a battery BAT having an upper terminal 114 configured to provide a voltage Vbat, and a lower terminal 115 connected to a node 116 set to a reference potential GND, for example ground.
[0037] By way of example, the device 1 further comprises a power source 118. The power source 118 has a high terminal 120 delivering a supply voltage Vcc, and a low terminal 122.
[0038] For example, resistor R is connected between node 116 and low terminal 122 of voltage source 118.
[0039] As an example, the circuit pC receives the potential GND, for example on an input 124 of the circuit pC connected to the node 116. As an example, the circuit pC receives the voltage Vcc, for example on an input 126 of the circuit pC.
[0040] As an example, the circuit CS receives the potential GND, for example on an input 128 of the circuit CS connected to the node 116. As an example, the circuit CS receives the voltage Vcc, for example on an input 130 of the circuit CS.
[0041] The resistor R comprises N resistors Ri in series, with i an integer index ranging from 1 to N and N an integer greater than or equal to 2, for example equal to three in [Fig.l] (RI, R2 and R3) between the terminals 102 and 104 of the resistor R. The resistors Ri are connected in order of increasing index i from one of the terminals 102 and 104, for example terminal 104 in [Fig.l]. For example, the resistor RI is connected between terminal 104 and a node 132, the resistor R2 is connected between node 132 and a node 134, and the resistor R3 is connected between node 134 and the terminal 102.
[0042] The resistor R further comprises Nl switches ITi, with i integer index ranging from 1 to NL In the example of [Fig.l], the resistor R therefore comprises two switches ITI and IT2. Each switch ITi is configured to short-circuit, when it is on, the resistors Ri of index i ranging from 1 to i. Thus, in the example of [Fig.l], the switch ITI is configured to short-circuit, when it is on, the resistor RI and the switch IT2 is configured to short-circuit, when it is on, the resistors RI and R2.
[0043] The circuit CS is configured to compare, for each resistance Ri of the resistance R, a voltage across this resistance Ri to at least one corresponding threshold.
[0044] For example, the circuit CS comprises, in addition to its inputs 108 and 106 connected to the respective terminals 104 and 102, and for each node 132, 134 of connection of two internal resistors RI to R3 of the resistor R, a corresponding input connected to this node. For example, the circuit CS comprises an input 136 connected to the node 132, and an input 138 connected to the node 134.
[0045] The CS circuit is configured to adapt, or control, the value of the resistor controllable R depending on the value of the current I flowing through it. Indeed, when the current I in the resistor R increases, for example during a transient current peak or overcurrent ("Over Current" in English), if the value of the resistor R is not modified, preferably reduced, the power dissipated in the resistor R can reach values leading to destruction of the resistor R. The circuit CS determines how to control each switch ITi of the resistor R from the comparisons of the voltages across each resistor Ri to at least one threshold corresponding to this resistance.
[0046] For example, when the voltage across a resistor Ri reaches or exceeds a first threshold which corresponds to it, the circuit CS controls the controllable resistor so that this resistor is short-circuited, that is to say controls the closing of the switch ITi associated with this resistor Ri, which makes it possible to reduce the value of the resistor R, and therefore the power which it dissipates.
[0047] For example, for each switch ITi, once the switch ITi has been switched to the on state, this switch switches to the off state if the voltage across the resistor Ri+1 falls below a second threshold associated with this resistor.
[0048] Taking the example of [Fig.l], if the current I increases and the voltage across the resistor RI exceeds the first threshold associated with this resistor RI, the circuit CS controls the closing of the switch ITI. If the current I continues to increase and the voltage across the resistor R2 exceeds the first threshold associated with this resistor R2, the circuit CS controls the closing of the switch IT2. If, while the two switches ITI and IT2 are conducting, the current I decreases and the voltage across the resistor R3 falls below the second threshold associated with this resistor R3, the circuit CS controls the opening of the switch IT2. If the current then if the current I continues to decrease and the voltage across the resistor R2 falls below the second threshold associated with this resistor R2, the circuit CS controls the closing of the switch ITI.
[0049] Thus, in the operating example above, each resistor Ri with the exception of resistor RI and resistor RN is associated with a first threshold for controlling the closing of the switch ITi associated with it, and with a second threshold for controlling the opening of the switch ITi-1. Resistor RI is associated only with a first threshold for controlling the closing of the associated switch ITI, resistor RN being associated only with a second threshold for controlling the opening of the switch RN-1.
[0050] Of course, other methods of controlling the resistor R to adapt its resistance value according to the current I flowing therein can be envisaged, as can the positioning of the switches allowing resistors to be short-circuited. internal resistance R can be changed.
[0051] The circuit CS provides a control signal sig to the control input 100 of the resistor R, this signal sig being, for example, available on an output 140 of the circuit CS. The signal sig is determined by the results of the comparisons of the voltages across the internal resistors RI to R3 of the resistor R at corresponding thresholds. The signal sig controls the switches IT1, IT2 of the resistor R.
[0052] In this example, the signal sig consists of a signal OCP1 and a signal OCP2. The signal OCP1 indicates whether the voltage across the resistor RI is greater or not than the threshold corresponding to it and controls the switch IT1, the signal OCP2 indicating whether the voltage across the resistor R2 is greater or not than the threshold corresponding to it and controlling the switch IT2.
[0053] For example, the circuit pC receives the signal sig on an input 142 of the circuit pC. For example, the signal sig comprises the signal OCP1 and the signal OCP2.
[0054] The device 1 comprises protection against overcurrents of the current I. However, the comparisons of the voltages across the respective resistors RI and R2 at corresponding thresholds are implemented by comparators having unaffected propagation times. As a result, when the current I increases, the reduction in the value of the resistor R may occur too late, i.e. when the current I has already reached values for which the power dissipated in the resistor R is too high and leads to destruction of the resistor R.
[0055] In order to avoid this, it would be desirable for the device 1 to include a circuit for measuring the derivative of the voltage V2, therefore the derivative of the current I, and for protection against overcurrents of the current I to be implemented when this derivative reaches a threshold. In other words, it would be desirable to measure the derivative of the voltage V2 to reduce the value of the resistance R before the voltage across the resistor RI or the voltage across the resistor R2 reaches its corresponding threshold when the current I increases rapidly, i.e. when the derivative of the voltage V2 reaches a threshold.
[0056] An embodiment of a circuit for measuring a derivative, for example a derivative of a voltage representative of a physical quantity, will now be described in relation to [Fig. 2]. Although this circuit can be used in a device 3 similar to the device 1, as will be described in relation to [Fig. 3], this measuring circuit makes it possible to measure the derivative of any voltage representative of a physical quantity, for example the temperature, this measured derivative not necessarily being used to implement protections against overcurrents of a current.
[0057] [Fig.2] represents an example of an embodiment of a DER circuit for measuring a derivative, for example a derivative of a voltage representative of a quantity physical.
[0058] The DER circuit comprises three capacitive elements C1, C2 and C3, preferably identical. Each of the elements C1, C2 and C3 has a first terminal connected to an input 200 of the DER circuit, the input 200 being configured to receive a reference potential GND.
[0059] The DER circuit further comprises an input 220 configured to receive a supply voltage from the DER circuit and the circuits it comprises.
[0060] The DER circuit further comprises first switches IT11, IT12 and IT13 coupling a second terminal of each of the respective elements C1, C2 and C3 to a node 202 of the DER circuit.
[0061] For example, switch IT11 is connected between the second terminal of element C1 and node 202, switch IT12 is connected between the second terminal of capacitive element C2 and node 202, and switch IT13 is connected between the second terminal of element C3 and node 202.
[0062] The node 202 is configured to receive a voltage VL. The voltage V1 is determined by a voltage available on an input 204 of the DER circuit, the node 202 being coupled to the input 204. In this example, the DER circuit receives the voltage V2 described in relation to [Fig.l], or, in other words, a voltage V2 indicating the value of a current.
[0063] According to one embodiment, the DER circuit comprises an AMP circuit coupling the input 204 to the node 202. For example, the AMP circuit has an input connected to the input 204 to receive the voltage V2, and an output connected to the node 202 to provide the voltage VL. The AMP circuit is a buffer circuit, i.e. the voltage VI is equal to the voltage V2. The AMP circuit makes it possible to transfer charge calls from the capacitive elements C1 to C3 to the power supply of the DER circuit rather than to the voltage V2.
[0064] Alternatively, node 202 is connected to input 204 and voltage V1 is equal to voltage V2.
[0065] The DER circuit is configured to measure, or calculate, the derivative of the voltage V2, i.e. to provide a voltage V3 indicating a value, to within a multiplicative factor, of the derivative of the voltage V2.
[0066] For this, the DER circuit comprises a DIFF circuit. The DIFF circuit comprises two inputs 208 and 210 and an output configured to provide the voltage V3. The output of the DIFF circuit is, for example, connected to the output 206 of the DER circuit. The DIFF circuit is configured so that the voltage V3 indicates a value of a voltage difference between the inputs 210 and 208, for example a value of the voltage on the input 208 minus the voltage on the input 210. By way of example, the DIFF circuit comprises an operational amplifier, for example mounted as a differential amplifier. example, although not shown in [Fig.2], the DIFF circuit is connected to inputs 200 and 220 to be powered.
[0067] Furthermore, the DER circuit comprises second switches IT21, T22, IT23, IT24, IT25, IT26 coupling the second terminal of each of the elements C1 to C3 to the inputs 208 and 210 of the DIFF circuit. For example, each of the elements C1 to C3 has its second terminal coupled to the input by one of the second switches and to the input 210 by another of the second switches.
[0068] For example, switch IT21 is connected between the second terminal of element C1 and input 208 of the DIFF circuit, switch IT22 is connected between the second terminal of element C1 and input 210 of the DIFF circuit, switch IT23 is connected between the second terminal of element C2 and input 208 of the DIFF circuit, switch IT24 is connected between the second terminal of element C2 and input 210 of the DIFF circuit, switch IT25 is connected between the second terminal of element C3 and input 208 of the DIFF circuit and switch IT26 is connected between the second terminal of element C3 and input 210 of the DIFF circuit.
[0069] The DER circuit comprises a CTRL circuit. The CTRL circuit is a control circuit for the first switches (IT11 to IT13) and the second switches (IT21 to IT26). As an example, although not illustrated in [Fig.2], the CTRL circuit is connected to inputs 200 and 220 to be powered.
[0070] The CTRL circuit provides the control signals for the first and second switches, for example on an output 222 of the CTRL circuit. In [Fig.2], these control signals are not shown so as not to overload [Fig.2]. For example, the CTRL circuit provides a control signal comprising a separate control bit for each of the first and second switches.
[0071] The CTRL circuit is configured to implement successive operating cycles, each operating cycle corresponding to a succession of three periods of an internal clock signal of the device. Thus, each operating cycle comprises a first period of the internal clock signal, followed by a second period of the internal clock signal, itself followed by a third period of the internal clock signal. The successive operating cycles do not overlap, or, in other words, none of the three periods of an operating cycle corresponds to one of the three periods of another operating cycle. The internal clock signal is determined by a clock signal clk. The CTRL circuit receives the clk signal on an input 218 of the CTRL circuit. The clk signal is received by the DER circuit on an input 212 of the DER circuit. For example, the CTRL circuit has its input 218 connected to the input 212.
[0072] According to one embodiment, the internal clock signal is identical to the clock signal clk.
[0073] Alternatively, the internal clock signal is obtained from the clk signal, for example by dividing the frequency of the clk signal.
[0074] Preferably, the control signals of the first and second switches are synchronized with the internal clock signal, for example with the rising and falling edges of the internal clock signal.
[0075] The circuit CTRL controls the first and second switches so that, at each first period of an operating cycle, the voltage V1 is stored on the capacitive element C1, and, in addition, the inputs 208 and 210 of the circuit DIFF receive the voltages of the respective elements C3 and C2.
[0076] More particularly, at each first period, the circuit CTRL controls the first switches so that the voltage V1 is stored between the terminals of the capacitive element C1, and the second switches so that the second terminal of the element C3 is coupled to the input 208 of the circuit DIFF and the second terminal of the element C2 is coupled to the input 210.
[0077] In other words, at each first period, the circuit CTRL keeps the switches IT12 and IT13 open and switches, for all or part of this first period, for example during the first half of this first period, the switch IT11 to the on state. While the switch IT11 is on, the capacitive element C1 charges (or discharges) so that the voltage on the second terminal of the element C1 becomes equal to the voltage VL. When the switch IT11 is again switched to the off state, this memorizes, on the capacitive element C1, the voltage present between its terminals, this voltage being equal to the voltage V1 at the time of switching to the off state of the switch IT11.Furthermore, in each first period, the circuit CTRL switches, for all or part of the first period, for example during the first half of the first period, the switches IT24 and IT25 to the on state while the other second switches are kept open. In this way, the second terminal of the element C3 is coupled to the input 208 of the DIFF circuit by the switch IT25 in the on state, the input 208 therefore receiving the voltage across the terminals of the element C3, and the second terminal of the element C2 is coupled to the input 210 of the DIFF circuit by the switch IT24 in the on state, the input 210 therefore receiving the voltage across the terminals of the element C2.
[0078] The time window during which, for each first period, the circuit CTRL couples with the switches IT24 and IT25 the elements C2 and C3 to the respective inputs 210 and 208 can begin during the third period preceding this first period. For example, this time window can begin at the half of the third preceding period and end at the half of the first current period.
[0079] The CTRL circuit controls the first and second switches so that, at every second period of an operating cycle, the voltage V1 is stored on the capacitive element C2, and, in addition, the inputs 208 and 210 of the DIFF circuit receive the voltages of the respective elements Cl and C3.
[0080] More particularly, at each second period, the circuit CTRL controls the first switches so that the voltage V1 is stored between the terminals of the capacitive element C2, and the second switches so that the second terminal of the element C1 is coupled to the input 208 of the circuit DIFF and the second terminal of the element C3 is coupled to the input 210.
[0081] In other words, at each second period, the circuit CTRL keeps the switches IT11 and IT13 open and switches, during all or part of this second period, for example during the first half of this second period, the switch IT12 to the on state. While the switch IT12 is on, the capacitive element C2 charges (or discharges) so that the voltage on the second terminal of the element C2 becomes equal to the voltage VL. When the switch IT12 is again switched to the off state, this memorizes, on the capacitive element C2, the voltage present between its terminals, this voltage being equal to the voltage VI at the time of switching to the off state of the switch IT12.Furthermore, in each second period, the circuit CTRL switches, for all or part of the second period, for example during the first half of the second period, the switches IT21 and IT26 to the on state while the other second switches are kept open. In this way, the second terminal of the element C1 is coupled to the input 208 of the circuit DIFF by the switch IT25 in the on state, the input 208 therefore receiving the voltage across the terminals of the element C1, and the second terminal of the element C3 is coupled to the input 210 of the circuit DIFF by the switch IT24 in the on state, the input 210 therefore receiving the voltage across the terminals of the element C3.
[0082] The time window during which, for each second period, the circuit CTRL couples with the switches IT21 and IT26 the elements C1 and C3 to the respective inputs 208 and 210 can begin during the first period preceding this second period. For example, this time window can begin at the half of the first preceding period and end at the half of the second current period.
[0083] The CTRL circuit controls the first and second switches so that, at each third period of an operating cycle, the voltage V3 is stored on the capacitive element C3, and, in addition, the inputs 208 and 210 of the DIFF circuit receive the voltages of the respective elements C2 and CL
[0084] More particularly, at each third period, the circuit CTRL controls the first switches so that the voltage V1 is stored between the terminals of the capacitive element C3, and the second switches so that the second terminal of element C2 is coupled to input 208 of the DIFF circuit and that the second terminal of element Cl is coupled to input 210.
[0085] In other words, at each third period, the circuit CTRL keeps the switches IT11 and IT12 open and switches, during all or part of this third period, for example during the first half of this third period, the switch IT13 to the on state. While the switch IT13 is on, the capacitive element C3 charges (or discharges) so that the voltage on the second terminal of the capacitive element C3 becomes equal to the voltage VI. When the switch IT13 is again switched to the off state, this memorizes, on the capacitive element C3, the voltage present between its terminals, this voltage being equal to the voltage VI at the time of switching to the off state of the switch IT13.Furthermore, in each third period, the circuit CTRL switches, for all or part of the third period, for example during the first half of the third period, the switches IT22 and IT23 to the on state while the other second switches are kept open. In this way, the second terminal of the element C2 is coupled to the input 208 of the circuit DIFF by the switch IT23 in the on state, the input 208 therefore receiving the voltage across the terminals of the element C2, and the second terminal of the element Cl is coupled to the input 210 of the circuit DIFF by the switch IT22 in the on state, the input 210 therefore receiving the voltage across the terminals of the element CL.
[0086] The time window during which, for each third period, the circuit CTRL couples with the switches IT22 and IT23 the elements C1 and C2 to the respective inputs 210 and 208 can begin during the second preceding this third period. For example, this time window can begin at the half of the second preceding period and end at the half of the third current period.
[0087] According to one embodiment, each storage of the voltage V1 on a capacitive element C1, C2, C3 has the same duration, that is to say that the time window during which the corresponding first switch IT11, IT12, IT13 is on to implement this storage has the same duration for each of the first, second and third periods of the internal clock signal. This duration is, for example, less than or equal to the duration of a period of the internal clock signal, for example equal to half a period of the internal clock signal.
[0088] Furthermore, the duration Ton separating two successive memorizations, that is to say the duration Ton separating the end of two successive memorizations, or, in other words, the duration Ton between the setting to the off state of the switch IT11 and that of the switch IT12, between the setting to the off state of the switch IT12 and that of the switch IT13, and between the setting to the off state of the switch IT13 and that of the switch IT11, is constant and is equal to one period of the internal clock signal.
[0089] To illustrate the operation of the DER circuit described above, we consider a first cycle and a second successive operating cycle in which: the voltage V1 is stored on the element Cl at an instant t0 of the first period of the first cycle, from which it results that, at the end of the storage, a voltage Vcl at the terminals of the element Cl is equal to Vl(t0) (the voltage VI at the instant t0); the voltage V1 is stored on the element C2 at an instant t0 + Ton of the second period of the first cycle, from which it results that, at the end of the storage, a voltage Vc2 at the terminals of the element C2 is equal to VI(t0+Ton); the voltage V1 is stored on the element C3 at an instant tO + 2.Ton of the third period of the first cycle, from which it results that, at the end of the storage, a voltage Vc3 at the terminals of the element C3 is equal to Vl(tO+2.Ton); the voltage VI is stored on the element Cl at an instant t0 + 3.Ton of the first period of the second cycle, from which it results that, at the end of the storage, the voltage Vcl at the terminals of the element Cl is equal to Vl(t0+3.Ton); the voltage V1 is stored on the element C2 at an instant tO + 4.Ton of the second period of the second cycle, from which it results that, at the end of the storage, the voltage Vc2 at the terminals of the element C2 is equal to Vl(tO+4.Ton); and the voltage VI is stored on the element C3 at an instant t0 + 5.Ton of the third period of the second cycle, from which it results that, at the end of the storage, a voltage Vc3 at the terminals of the element C3 is equal to Vl(t0+5.Ton).
[0090] Thus, in this example, during the first period of the second cycle, when the elements C3 and C2 are coupled to the inputs of the DIFF circuit, the voltage V3 is then at a value determined by the difference between the voltage Vc3 at the terminals of the element C3 which is equal to Vl(tO+2.Ton) and the voltage Vc2 at the terminals of the element C2 which is equal to Vl(t0+Ton), the voltage V3 then being for example equal to A.(Vl(tO+2.Ton)-Vl(tO+Ton)), therefore to A.(Vl(tl+Ton)-Vl(tl)), with tl equal to tO+Ton and A a multiplicative factor determined at least in part by the gain of the DIFF circuit. Since voltage V1 is equal to voltage V2, it follows that voltage V3 is equal to K.(V2(tl+Ton)-V2(tl)) / Ton, therefore to K times the derivative of voltage V2 at time tl, with K equal to A. Ton.
[0091] Similarly, during the second period of the second cycle, when the elements C1 and C3 are coupled to the inputs of the DIFF circuit, the voltage V3 is then at a value determined by the difference between the voltage Vcl at the terminals of the element C3 which is equal to Vl(t0+3.Ton) and the voltage Vc2 at the terminals of the element C2 which is equal to Vl(tO+2.Ton), the voltage V3 then being for example equal to A.(Vl(tO+3.Ton)-Vl(tO+2.Ton)), therefore to A.(Vl(t2+Ton)-Vl(t2)), with t2 equal to tO+2.Ton. As previously, the voltage V3 is equal to K.(V2(t2+Ton)-V2(t2)) / Ton, therefore to K times the derivative of the voltage V2 at time t2.
[0092] Furthermore, during the third period of the second operating cycle, when the elements C1 and C2 are coupled to the inputs of the DIFF circuit, the voltage V3 is then at a value determined by the difference between the voltage Vc2 across the terminals of the element C2 which is equal to Vl(tO+4.Ton) and the voltage Vcl across the terminals of the element C3 which is equal to Vl(t0+3.Ton), the voltage V3 then being for example equal to A.(Vl(tO+4.Ton)-Vl(tO+3.Ton)), therefore to A.(Vl(t3+Ton)-Vl(t3)), with t3 equal to t0+3.Ton. As previously, the voltage V3 is equal to K.(V2(t3+Ton)-V2(t3)) / Ton, therefore to K times the derivative of the voltage V2 at time t3.
[0093] The above DER circuit therefore makes it possible to provide, at each period of the clock signal, a voltage V3 indicating the value of the derivative of the voltage V2, the value of this voltage V3 being updated at each period of the internal clock signal. More particularly, the above DER circuit makes it possible, at each period of the internal clock signal, to sample a value of the voltage VI on one of the capacitive elements C1 to C3, and, in the same cycle, to provide a value of the derivative of the voltage VI using the values of voltage V1 sampled on the other two capacitive elements. Thus, there is no cycle where no value of the voltage V1 is sampled, nor any cycle where no derivative value is provided.
[0094] Advantageously, the DER circuit does not include an operational amplifier mounted as a shunt, nor an analog-digital converter and a microprocessor.
[0095] According to one embodiment, the CTRL circuit is configured to modify the frequency of the internal clock signal, and therefore the duration Ton. For example, when the DER circuit is in a low-power operating mode, the frequency of the internal clock signal can be reduced to reduce power consumption. As a complementary or alternative example, the frequency of the internal clock signal can be chosen according to the application in which the DER circuit is implemented.
[0096] In practice, the value of the capacitive elements C1 to C3 is determined by the frequency of the internal clock signal, so that the voltage across each of these elements does not change, or only in a negligible manner compared to a targeted measurement accuracy, between an instant when the voltage V1 is stored on this capacitive element and the instants when this stored voltage is supplied at the input of the DIFF circuit. For example, the lower the frequency, the greater the capacitance value of the elements C1 to C3.
[0097] However, this frequency may differ from one application to another in which the DER circuit is implemented, and it is then desirable not to size the capacitance values of the elements differently for each of these applications. This is particularly the case when the DER circuit is part of an integrated circuit chip.
[0098] Further, when the DER circuit is an integrated circuit of an integrated circuit chip, it It is desirable to have low capacitance values for elements Cl to C3, so as to limit the surface area occupied by the DER circuit.
[0099] Thus, according to one embodiment, when the DER circuit is an integrated circuit of an integrated circuit chip, a device comprising the DER circuit further comprises, as illustrated in [Fig.2], capacitive elements C1', C2', C3' connected in parallel with the respective capacitive elements C1, C2 and C3, and these elements C1', C2' and C3' are arranged outside the chip comprising the DER circuit. In this way, the capacitance value between the switch IT11 and the node 200, between the switch IT12 and the node 200 and between the switch IT13 and the node 200 can be increased and / or adjusted without changing the capacitance value of the elements C1 to C3. Preferably, the elements C1' to C3' all have the same capacitance value.
[0100] For example, element C1' has a first terminal connected to input 200 of circuit DER which is itself connected to the first terminal of element C1, and a second terminal connected to an input 224 of circuit DER which is itself connected to the second terminal of element C1. For example, element C2' has a first terminal connected to input 200 of circuit DER which is itself connected to the first terminal of element C2, and a second terminal connected to an input 226 of circuit DER which is itself connected to the second terminal of element C2. For example, element C3' has a first terminal connected to input 200 of circuit DER which is itself connected to the first terminal of element C3, and a second terminal connected to an input 228 of circuit DER which is itself connected to the second terminal of element C3.
[0101] According to one embodiment, the CTRL circuit is configured to control the gain of the DIFF circuit, i.e. the value of the coefficient A described above.
[0102] According to one embodiment, as illustrated in [Fig.2], the DER circuit comprises a capacitive element Cp connected between the input 208 of the DIFF circuit and the input 200 of the DER circuit, and a capacitive element Cm connected between the input 210 of the DIFF circuit and the input 200 of the DER circuit. These elements Cp and Cm have the same capacitance value. These elements Cp and Cm are capacitive smoothing (or low-pass filtering) elements. In other words, the elements Cp and Cm make it possible to soften the effects of charge injections on the inputs of the DER circuit during switching of the switches IT21 to IT26.
[0103] In an alternative embodiment, these elements Cp and Cm are however omitted.
[0104] According to one embodiment, it may be desirable for the DER circuit to indicate when the derivative of the voltage V2 exceeds a threshold Th, for example when the DER circuit is intended for use in a device of the type of device 1 described in relation to [Fig.l]. In this case, the DER circuit comprises a circuit, or comparator, COMP2, for example an operational amplifier mounted, or configured, in voltage comparator. The circuit C0MP2 is configured to compare the output voltage V3 of the DIFF circuit with a voltage Vref, the voltage V3 indicating a value of the derivative of the voltage V2 and the voltage Vref indicating a value of the threshold Th, and to provide a signal ODP indicating the result of this comparison. The signal ODP indicating the result of the comparison of the voltage V3 with the voltage Vref, that is to say of the comparison of the derivative of the voltage V2 with the threshold Vth, is provided by the circuit C0MP2, for example by an output of the circuit C0MP2, to an output 216 of the circuit DER.
[0105] For example, the circuit COMP2 has an input connected to the output of the circuit DIFF to receive the voltage V3, and an input configured to receive the voltage Vref, and its output connected to the output 216 of the circuit DER.
[0106] For example, the voltage Vref is provided by the CTRL circuit.
[0107] For example, when the CTRL circuit is configured to modify the frequency of the internal clock signal (therefore the duration Ton) and / or the gain of the DIFF circuit, for a given threshold value Th, the CTRL circuit is configured to adapt the value of the voltage Vref to take into account variations in the frequency of the internal clock signal and / or the gain of the DIFF circuit.
[0108] According to one embodiment, it is desirable for the DER circuit to also provide an indication of the direction of variation of the value of the voltage V2, i.e. of the sign of the derivative. In this case, the DER circuit comprises a circuit, or comparator, COMP1, for example an operational amplifier mounted, or configured, as a voltage comparator. The COMP1 circuit is configured to compare the voltages applied to the inputs of the DIFF circuit with each other, and to provide a signal FD indicating the result of this comparison. The FD signal indicating the result of the comparison is provided by the COMP1 circuit, for example by an output of the COMP1 circuit, to an output 214 of the DER circuit.
[0109] For example, circuit COMP1 has an input connected to input 208 of circuit DIFF, an input connected to input 210 of circuit DIFF, and its output connected to output 214 of circuit DER.
[0110] [Fig. 3] represents, in the form of blocks, an exemplary embodiment of a device for measuring a current comprising a DER circuit for measuring a derivative as described in relation to [Fig. 2]. Device 3 is similar to device 1 and only the differences between these two devices are detailed here.
[0111] The device 3 of [Fig.3] comprises, like the device 1 of [Fig.l], the circuit CS and the controllable resistor R. However, in this example, the signal sig for controlling the resistor R is not provided by the circuit CS. On the other hand, the output 140 of the circuit CS provides a signal sig' determined by the results of the comparisons of the voltages across the internal resistors RI to R3 of the resistor R at thresholds correspondents.
[0112] More particularly, the signal sig' is, for example, identical to the signal sig described in relation to [Fig.l]. Thus, the signal sig' is, for example, made up of a signal OCP1 and a signal OCP2. The signal OCP1 controls the switch IT1, the signal OCP2 controlling the switch IT2.
[0113] By way of example, the device 3 further comprises, like the device 1, the power source 118.
[0114] By way of example, the device 3 comprises, like the device 1, the battery BAT.
[0115] As an example, the device 3 comprises, like the device 1, the circuit of pC processing, this pC circuit being for example a microprocessor. For example, the pC circuit receives the signal sig' on its input 142.
[0116] The device 3 further comprises the DER circuit and a control circuit for the CMD switches.
[0117] The DER circuit is preferably implemented on an integrated circuit chip.
[0118] The DER circuit has its input 220 which is for example connected to terminal 120 of the voltage source 118 for receiving the voltage Vcc, and its input 200 which is connected to the node 116 for receiving the reference potential GND.
[0119] The DER circuit has its input 204 connected to the output 110 of the CS circuit to receive the voltage V2.
[0120] The DER circuit receives the signal clk on its input 212, this signal clk being, for example, supplied by the circuit pC, for example by an output 310 of the circuit pC.
[0121] For example, the voltage V3 indicating the value of the derivative of the voltage V2, therefore the value of the derivative of the current I, is supplied by the circuit DER to the circuit pC. For example, the circuit pC has an input 306 coupled, preferably connected, to the output 206 of the circuit DER to receive the voltage V3.
[0122] The signal CMD is configured to provide the signal sig for controlling the resistor R, this signal sig being different here from that described in relation to [Fig.l]. Indeed, in this embodiment, the signal sig is at least partly determined by the comparison of the voltage V3 with the threshold Th which is implemented in the circuit DER, and, therefore, more broadly, the signal sig is at least partly determined by the voltage V3 of the output 206 of the circuit DER.
[0123] In this embodiment, the DER circuit comprises the COMP2 circuit (not shown in [Fig.3]) and the output 216. The output 216 of the DER circuit is coupled, preferably connected, to the CMD circuit, for example to an input 300 of the CMD circuit. For example, the ODP signal is also supplied to the pC circuit, for example to an input 308 of the pC circuit.
[0124] More specifically, the CMD circuit also receives, from the CS circuit, the signal sig' indicating the set value of the resistance R as a function of the evolution of the current I in the latter, for example on an input 302 of the CMD circuit.
[0125] The signal sig is then determined from the signal ODP and the signal sig', that is to say from the signal ODP and the signals OCP1 and OCP2 in this example. For example, the signal sig is a signal on a number of bits equal to the number of switches of the resistor R, for example two bits bl and b2 in this example, each bit of the signal sig controlling a different switch of the resistor R. For example, the bit bl controls the switch IT1 and the bit b2 controls the switch IT2.
[0126] The CMD circuit therefore receives not only the signal sig' indicating what value the resistance R should take in view of the current I flowing there, but also the signal ODP indicating when the derivative of the voltage V2 exceeds the threshold Th.
[0127] Thus, the CMD circuit provides a resistance control signal sig which, for example, forces the resistance to a lower value than that indicated by the signal sig' when the derivative of the voltage V2 exceeds the threshold Th, i.e. when the current I varies rapidly which could lead to destruction of the resistance R before the signal sig indicates to the CMD circuit that the value of the resistance R must be reduced.
[0128] For example, the signal sig indicates, by its bit bl, that the switch IT1 must be switched to the on state if the signal OCP1 indicates that this switch IT1 must be switched to the on state and / or if the signal ODP indicates that the derivative of the voltage V2 has exceeded the threshold, the signal sig further indicating, by its bit b2, that the switch IT2 must be switched to the on state if the signal OCP2 indicates that this switch IT2 must be switched to the on state and / or if the signal ODP indicates that the derivative of the voltage V2 has exceeded the threshold.
[0129] For example, the DER circuit includes the output 214 and the COMP1 circuit (not shown in [Fig.3]) which provides the I / D signal to this output 214. For example, this I / D signal is provided to the pC circuit. For example, the pC circuit has an input 312 coupled, preferably connected, to the output 214 of the DER circuit.
[0130] Although in this example the device 3 does not include the capacitive elements C1', C2' and C3', this may be the case in other examples not illustrated.
[0131] In the device 3 above, the DER circuit and the CMD circuit are represented as circuits external to the CS circuit. However, in other examples not illustrated, the CS, DER and CMD circuits can be implemented in the same overall circuit, for example a circuit of an integrated circuit chip. In this case, the connection of the CMD, DER and CS circuits within this overall circuit is similar to what has been described previously. Furthermore, each input, respectively output, of the CMD, CS and DER circuits coupled or connected to an element external to this overall circuit then also constitutes an input, respectively an output, of the circuit global, it being understood that when at least two of the circuits CMD, DER and CS have inputs, respectively outputs, coupled or connected to the same element external to the global circuit, the latter only comprises one corresponding input, respectively output. As an example, taking the example of device 3 as illustrated in [Fig.3], and considering that the circuits CMD, DER and CS are part of the same global circuit, this global circuit will have inputs corresponding to inputs 106, 108, 136, 118 and 130 of the circuit CS and to input 212 of the circuit DER, and outputs corresponding to outputs 206, 214, 216 of the circuit DER, to output 304 of the circuit CMD, and to outputs 110 and 140 of the circuit CS.
[0132] In the example device 3 described above, the resistor R comprises three resistors in series. However, the person skilled in the art will be able to adapt the description given above to the case where the resistor R comprises only two resistors in series, or, conversely, four or more resistors in series.
[0133] Various embodiments and variants have been described. Those skilled in the art will understand that certain features of these various embodiments and variants could be combined, and other variants will appear to those skilled in the art. In particular, as already indicated previously, the use of the DER circuit is not limited to an implementation in the device 3, and, more broadly, to the measurement of the derivative of a voltage V3 representative of the value of a current I.
[0134] Finally, the practical implementation of the embodiments and variants described is within the reach of those skilled in the art from the functional indications given above.
Claims
1. Claims Circuit (DER) for measuring a derivative comprising: first, second and third capacitive elements (Cl, C2, C3) each having a first terminal connected to a first input (200) of the measurement circuit configured to receive a reference potential (GND); first switches (IT11, IT12, IT13) coupling a second terminal of each of said elements to a first node (202) configured to receive a first voltage (VI) determined by a second voltage (V2) on a second input (204) of the measuring circuit to which the first node is coupled; a first circuit (DIFF) configured to provide, at a first output (206) of the measuring circuit, a third voltage (V3) indicating a value of a voltage difference between first and second inputs (208, 210) of the first circuit; second switches (IT21, IT22, IT23, IT24, IT25, IT26) coupling the second terminal of each of said elements to the inputs of the first circuit; and a control circuit (CTRL) configured to: - receive a first clock signal (clk) available on a third input (212) of the measuring circuit; - implement successive cycles each corresponding to a succession of first, second and third periods of a second clock signal determined by the first clock signal; and - control the switches so that: at each first period, the first voltage (VI) is stored on the first element (Cl) and the first and second inputs (208, 210) of the first circuit receive voltages from the third and second elements (C3, C2) respectively, at each second period, the first voltage (VI) is stored on the second element (C2) and the first and second inputs (208, 210) of the first circuit receive voltages from the first and third elements (Cl, C3) respectively, and at each third period, the first voltage (VI) is stored on the third element (C3) and the first and second inputs (208, 210) of the first circuit receive voltages from the second and first elements (C2, Cl) respectively.
2. Device (3) comprising: an integrated circuit chip comprising the measuring circuit according to claim 1; a controllable resistor (R) external to the chip and having a control input (100) configured to receive a control signal (sig) determined at least in part by the first output (206) of the measuring circuit (DER); and a second circuit (CS) connected to the controllable resistor (R) and configured to supply, at the second input of the measuring circuit (204), the second voltage (V2) indicating a value of the current (I) in the controllable resistor, the second circuit being for example part of the chip.
3. A circuit according to claim 1 or a device according to claim 2, wherein the first switches comprise a first first switch (IT11) coupling the second terminal of the first element (Cl) to the first node (202), a second first switch (IT12) coupling the second terminal of the second element (C2) to the first node (202) and a third first switch (IT13) coupling the second terminal of the third element (C3) to the first node (202).
4. A circuit according to claim 1 or 3 or a device according to claim 2 or 3, wherein the control circuit is configured to: at each first period, hold open the second and third first switches (IT12, IT13) and switch the first first switch (IT11) to the on state; at each second period, hold open the third and first first switches (IT11, IT13) and switch the second first switch (IT12) to the on state; and at each third period, hold open the second and first first switches (IT12, IT11) and switch the third first switch (IT13) to the on state.
5. Circuit according to any one of claims 1, 3 and 4 or device according to any one of claims 2 to 4, in which each storage of the first voltage (VI) on a capacitive element has the same duration, for example less than or equal to a period of the second clock signal, preferably equal to half a period of the second clock signal.
6. A circuit or device according to claim 5 taken in its dependence on claim 4, wherein said same duration is the state duration passing from the first, second and third first switches (IT11, IT12, IT13) during each of the first, second and third periods respectively.
7. A circuit according to any one of claims 1 and 3 to 6 or a device according to any one of claims 2 to 6, wherein the second switches comprise: first and second second switches (IT21, IT22) coupling the second terminal of the first element (C1) respectively to the first and second inputs (208, 210) of the first circuit (DIFF); third and fourth second switches (IT23, IT24) coupling the second terminal of the second element (C2) respectively to the first and second inputs (208, 210) of the first circuit (DIFF); and fifth and sixth second switches (IT25, IT26) coupling the second terminal of the third element (C3) respectively to the first and second inputs (208, 210) of the first circuit.
8. The circuit or device of claim 7, wherein the control circuit (CTRL) is configured to: at each first period, switch the fifth and fourth second switches (IT25, IT24) to the on state and keep the other second switches open; at each second period, switch the first and sixth second switches (IT21, IT26) to the on state and keep the other second switches open; and at each third period, switch the third and second second switches (IT23, IT22) to the on state and keep the other second switches open.
9. Circuit according to any one of claims 1 and 3 to 8 or device according to any one of claims 2 to 8, wherein the measuring circuit comprises a capacitive smoothing element (Cp) connected between the first input (208) of the first circuit (DIFF) and the first input (200) of the measuring circuit (DER) and a capacitive smoothing element (Cm) connected between the second input (210) of the first circuit (DIFF) and the first input (200) of the measuring circuit (DER).
10. A circuit according to any one of claims 1 and 3 to 9 or a device according to any one of claims 2 to 9, wherein the measuring circuit (DER) further comprises a third circuit (AMP) coupling the second input (204) of the measuring circuit (DER) to the first node (202), the third circuit (AMP) being a buffer circuit configured to provide receive the second voltage (V2) and provide the first voltage (VI).
11. A circuit according to any one of claims 1 and 3 to 10 or a device according to any one of claims 2 to 10, wherein the measuring circuit (DER) further comprises a fourth circuit (COMP1) coupled, preferably connected, to the first and second inputs (208, 210) of the first circuit (DIFF), the fourth circuit being configured to provide, at a second output (214) of the measuring circuit, a signal (I / D) indicating which of the voltages of the first and second inputs of the first circuit (DIFF) is greater than the other.
12. Circuit according to any one of claims 1 and 3 to 11 or device according to any one of claims 2 to 11, wherein the measuring circuit (DER) further comprises a fifth circuit (COMP2) configured to compare the third voltage (V3) with a first threshold (Vref) and to provide, at a third output (216) of the measuring circuit (DER), a signal (ODP) indicating a result of the comparison.
13. Device according to claim 12 taken in its dependence on claim 11, in which: the controllable resistor (R) comprises several first resistors (RI, R2, R3) in series and switches (IT1, IT2) controlled by the control signal of the controllable resistor and each configured to short-circuit a given number of the first resistors; the second circuit (CS) is configured to compare, for each of the first resistors, a voltage across this first resistor to at least one corresponding threshold; and the device (3) further comprises a sixth circuit (CMD) configured to provide the control signal (sig1) of the resistor from the results (OCP1, OCP2) of said comparisons and from the second output (214) of the measurement circuit (DER), the sixth circuit being, for example, part of the chip.
14. Device according to any one of claims 11 to 13, wherein the device (3) comprises a processing circuit (pC), for example a microprocessor, coupled to the first and third outputs (206, 214) of the measuring circuit (DER) and configured to receive the second voltage (V2).
15. Device according to any one of claims 2 to 14, wherein the device (3) comprises a fourth capacitive element (C4) connected in parallel with the first capacitive element (Cl), a fifth capacitive element (C5) connected in parallel with the second capacitive element (C2), a sixth capacitive element (C6) connected in parallel with the third capacitive element (C3), the fourth, fifth and sixth capacitive elements being external to the chip comprising the measurement circuit (DER).