Circuit to implement a diode function

09892877 ยท 2018-02-13

Assignee

Inventors

Cpc classification

International classification

Abstract

A circuit including: a plurality of first switches connected in parallel between a first terminal and a second terminal; and a control circuit capable of implementing the following steps at each period of a clock signal: comparing the voltage between the first and second terminals with a reference voltage; if the voltage between the first and second terminals is greater than the reference voltage, turning on one of the first switches without modifying the state of the other switches; and if the voltage between the first and second terminals is smaller than the reference voltage, turning off one of the first switches without modifying the state of the other switches.

Claims

1. A circuit, comprising: a first terminal and a second terminal; a plurality of first switches coupled in parallel between the first terminal and the second terminal; and a control circuit that is configured at each period of a clock signal to: compare a voltage between the first and second terminals with a reference voltage; if the voltage between the first and second terminals is greater than the reference voltage, turn on one of the first switches and maintain a state of other ones of the first switches; and if the voltage between the first and second terminals is smaller than the reference voltage, turn off one of the first switches and maintain the state of the other ones of the switches; and a first comparator having a first input coupled to the first terminal, and a second input coupled to the second terminal, the first comparator being configured to output a control signal to the control circuit.

2. The circuit of claim 1 wherein the control circuit includes a second comparator and a control unit configured to control the first switches.

3. The circuit of claim 2 wherein the second comparator has a negative input coupled to a node of application of the reference voltage, a positive input coupled to the first terminal, and an output coupled to an input of the control unit.

4. The circuit of claim 2 wherein the control circuit includes a second switch series-coupled with a current source between the first terminal and a node of application of a reference potential, and wherein the second comparator has a positive input coupled to the first terminal, a negative input coupled to a junction point of the second switch and of the current source, and an output coupled to an input of the control unit.

5. The circuit of claim 4 wherein the second switch is of the same type as the first switches.

6. The circuit of claim 4 wherein the second switch is at a decreased scale of one of the first switches.

7. The circuit of claim 2 wherein the second input of the first comparator is a negative input coupled to the second terminal, and the first input of the first comparator is a positive input coupled to the first terminal, the first comparator further having an output coupled to an activation input of the control circuit.

8. The circuit of claim 7 wherein each of the first comparator and the second comparator comprises an operational amplifier.

9. The circuit of claim 1 wherein each first switch comprises a MOS transistor.

10. The circuit of claim 1 wherein each first switch comprises two series-coupled MOS transistors having their gates coupled together.

11. A method, comprising: generating a first control signal by a first comparator having a first input coupled to a first terminal and a second input coupled to a second terminal; receiving, by a control circuit, the control signal; and controlling a plurality of first switches that are coupled in parallel between the first terminal and the second terminal, at each period of a clock signal the controlling including: comparing a voltage between the first and second terminals with a reference voltage; if the voltage between the first and second terminals is greater than the reference voltage, turning on one of the first switches and maintaining a current state of other ones of the first switches; and if the voltage between the first and second terminals is smaller than the reference voltage, turning off one of the first switches maintaining the state of the other ones of the switches.

12. The method of claim 11 wherein the controlling includes: comparing the reference voltage with a voltage on the first terminal; and providing second control signals to the first switches based on the comparing of the reference voltage with the voltage on the first terminal.

13. The method of claim 12 wherein the controlling further includes: providing the second control signals based additionally on the first control signal.

14. The method of claim 11, further comprising: activating the control circuit based on the first control signal.

15. The method of claim 11 wherein generating the first control signal includes generating the first control signal based on whether a voltage between the first and second terminals is greater than an offset voltage of the first comparator.

16. A device, comprising: a first terminal; a second terminal; a first plurality of switches coupled between the first terminal and the second terminal; a control circuit coupled to each one of the first plurality of switches and configured to provide a control signal to each one of the first plurality of switches; and a first comparator having a first input coupled to a reference voltage and a second input coupled to the first terminal, and an output coupled to a first input of the control circuit; and a second comparator having a first input coupled to the first terminal, a second input coupled to the second terminal, and an output coupled to a second input of the control circuit.

17. The device of claim 16, further comprising a second switch and a current source, the second switch coupled between the current source and the first terminal.

18. The device of claim 17 wherein the reference voltage is provided by a node between the current source and the second switch.

19. The device of claim 16 wherein the output of the second comparator is configured to activate the control circuit when an offset voltage of the second comparator is less than a voltage between the first and second terminals, and the output of the second comparator is configured to deactivate the control circuit when the offset voltage of the second comparator is greater than the voltage between the first and second terminals.

20. The device of claim 16 wherein the second input of the control signal is an activation input of the control circuit, and the second comparator outputs a control signal that controls activation and deactivation of the control circuit.

21. A circuit, comprising: a first terminal and a second terminal; a plurality of first switches coupled in parallel between the first terminal and the second terminal; and a control circuit that is configured at each period of a clock signal to: compare a voltage between the first and second terminals with a reference voltage; if the voltage between the first and second terminals is greater than the reference voltage, turn on one of the first switches and maintain a state of other ones of the first switches; and if the voltage between the first and second terminals is smaller than the reference voltage, turn off one of the first switches and maintain the state of the other ones of the switches, wherein the control circuit includes a first comparator and a control unit configured to control the first switches, and a second switch series-coupled with a current source between the first terminal and a node of application of a reference potential, and wherein the first comparator has a positive input coupled to the first terminal, a negative input coupled to a junction point of the second switch and of the current source, and an output coupled to an input of the control unit.

22. The circuit of claim 21 wherein each first switch comprises a MOS transistor.

23. The circuit of claim 21 wherein the second switch is of the same type as the first switches.

24. A device, comprising: a first terminal; a second terminal; a first plurality of switches coupled between the first terminal and the second terminal; a control circuit coupled to each one of the first plurality of switches and configured to provide a control signal to each one of the first plurality of switches; a first comparator having a first input coupled to a reference voltage and a second input coupled to the first terminal, and an output coupled to a first input of the control circuit; a current source; and a second switch coupled between the current source and the first terminal.

25. The device of claim 24 wherein each first switch comprises two series-coupled MOS transistors having their gates coupled together.

Description

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

(1) FIG. 1, previously described, is an electric diagram of an example of a circuit capable of implementing a diode function;

(2) FIG. 2, previously described, is a diagram showing the ideal targeted current-to-voltage characteristic of the circuit of FIG. 1;

(3) FIG. 3, previously described, is a diagram showing the real current-to-voltage characteristic of the circuit of FIG. 1;

(4) FIG. 4 is an electric diagram of an embodiment of a circuit capable of implementing a diode function; and

(5) FIG. 5 is an electric diagram illustrating in further detail an embodiment of the circuit of FIG. 4.

DETAILED DESCRIPTION

(6) For clarity, the same elements have been designated with the same reference numerals in the various drawings and, further, the various drawings are not to scale. Further, only those elements which are useful to the understanding of the described embodiments have been detailed. In particular, the applications where the diode circuits described in the present application may be used have not been detailed, the described embodiments being compatible with usual applications of a circuit capable of implementing a diode function.

(7) FIG. 4 is an electric diagram of an embodiment of a circuit 7 capable of implementing a diode function, that is, capable of conducting a current between a first terminal (or node) A of the circuit and a second terminal (or node) K of the circuit when voltage V between terminals A and K is positive, and of blocking the current flow between terminals A and K when voltage V between terminals A and K is negative.

(8) Circuit 7 comprises a plurality of switches SW.sub.i connected in parallel between terminals A and K, where i is an integer in the range from 1 to n and n is an integer greater than or equal to 2, for example, in the range from 2 to 30. Switches SW.sub.i are for example all substantially identical. Each switch SW.sub.i has an internal resistance R.sub.on in the on state. As an example, each switch SW, may be formed of a MOS transistor connected between terminals A and K. As a variation, to do away with unwanted effects due to the parasitic diodes of the MOS transistors, each switch SW.sub.i may comprise two MOS transistors of the same type series-connected between terminals A and K, having their gates capable of receiving a same control signal. Other types of switches may however be used.

(9) Circuit 7 of FIG. 4 further comprises a circuit 9 for controlling switches SW.sub.i, comprising a comparator 11 and a switch control unit 13 (CTRL). Comparator 11, for example, an operational amplifier assembled as a comparator, has a positive input connected to terminal A and a negative input capable of receiving a reference voltage V.sub.ref. In this example, voltage V.sub.ref is defined with respect to a terminal or a node of application of a reference potential GND, for example, the ground, and terminal K is connected to terminal GND. Control unit 13 comprises a plurality of outputs S.sub.i, each output S.sub.i of circuit 13 being connected to a control node of switch SW.sub.i of same rank. Control unit 13 further comprises an input connected to the output of comparator 11, and an input capable of receiving a clock signal CLK.

(10) In this example, circuit 7 further comprises a comparator 15, for example, an operational amplifier assembled as a comparator, having a positive input connected to terminal A, a negative input connected to terminal K, and an output connected to an activation/deactivation input of control unit 13. Comparator 15 may have an offset voltage V.sub.os.

(11) Circuit 7 operates as follows. When voltage V between terminals A and K is greater than offset voltage V.sub.os of comparator 15, the output of comparator 15 is at a level such that control unit 13 is activated. When voltage V between terminals A and K is smaller than offset voltage V.sub.os, the output of comparator 15 is at a level such that control unit 13 is deactivated.

(12) Just after an activation, unit 13 is in a state such that switch SW.sub.1 is controlled to be in the on (conductive) state, and all switches SW.sub.i are controlled to be in the off (blocked) state.

(13) When unit 13 is active, unit 13 examines the output of comparator 11 and, at each period of clock signal CLK, accordingly controls switches SW.sub.i as follows:

(14) if only switch SW.sub.1 is in the on state, if the output signal of comparator 11 indicates that voltage V is greater than voltage V.sub.ref, unit 13 controls the turning-on of switch SW.sub.2 and maintains the control of the other switches unchanged, otherwise, unit 13 does not modify the switch control;

(15) if switches SW.sub.1 and SW.sub.2 are in the on state and at least one of the other switches SW.sub.i is in the off state, if the output signal of comparator 11 indicates that voltage V is greater than voltage V.sub.ref, unit 13 controls the turning-on of switch SW.sub.j+1, where j is the rank of the last switch SW.sub.i to have been turned on by unit 13, and maintains unchanged the control of the other switches, and if the output signal of comparator 11 indicates that voltage V is smaller than voltage V.sub.ref, unit 13 controls the turning-off of switch SW.sub.j, and maintains unchanged the control of the other switches; and

(16) if all switches SW.sub.i are on, if the output signal of comparator 11 indicates that voltage V is greater than voltage V.sub.ref, no action is performed by unit 13, and if the output signal of comparator 11 indicates that voltage V is smaller than voltage V.sub.ref, unit 13 controls the turning-off of switch SW.sub.n and maintains switches SW.sub.1 and SW.sub.n1 in the on state.

(17) Thus, control circuit 9 controls switches SW.sub.i so that voltage V between terminals A and K always remains as close as possible to reference voltage V.sub.ref. The number of switches SW.sub.i which are turned on automatically adjusts, at the rate of clock signal CLK, when the current flowing between terminals A and K varies, to maintain voltage V between terminals A and K close to voltage V.sub.ref.

(18) As an example, control unit 13 may comprise a microcontroller, a shift register, or any other element capable of implementing the above-described operation.

(19) For a given application, internal resistance R.sub.on of each switch SW.sub.i of circuit 7 is greater than internal resistance r.sub.on of switch 3 of circuit 1 of FIG. 1. As an example, switches SW.sub.i are sized so that, when all switches SW.sub.i are on, the value of the resistance between terminals A and K is substantially equal to the value of resistance r.sub.on of circuit 1 of FIG. 1.

(20) An advantage of circuit 7 is that on switching of the circuit, the resistance between nodes A and K is equal to the internal resistance of switch SW.sub.1. The inaccuracy of the circuit in terms of current is then defined by I.sub.os=V.sub.os/R.sub.on, where V.sub.os is the offset voltage (in absolute value) of comparator 11 and/or 15. As a non-limiting illustration, for a resistance R.sub.on of 1 and for an offset voltage of 5 mV, the inaccuracy of circuit 7 in terms of current is 5 mA, which is quite acceptable for many applications.

(21) Another advantage of circuit 7 of FIG. 4 is that at the turning-on of the circuit, switches SW.sub.i are sequentially turned on one after the other. Each switch SW.sub.i having a relatively high resistance R.sub.on with respect to resistance r.sub.on of a circuit of the type described in relation with FIG. 1, the current peak, of amplitude V/R.sub.on, occurring during the switching when V is different from 0 V, is much smaller than the current peak, of amplitude V/r.sub.on, which would occur with a circuit of the type described in relation with FIG. 1. Further, the progressive switching of switches SW.sub.i avoids a number of disadvantages due to charge injection phenomena.

(22) FIG. 5 is an electric diagram illustrating in further detail an alternative embodiment of circuit 7 of FIG. 4. The circuit of FIG. 5 shows elements in common with the circuit of FIG. 4. These elements will not be described again hereafter. In the following, only the differences between the circuits of FIGS. 4 and 5 will be detailed.

(23) The circuit of FIG. 5 comprises a switch SW.sub.ref in series with a D.C. current source 19 between terminal A and node GND. The negative input of comparator 11 is connected to a node B forming the junction point of switch SW.sub.ref and of current source 19. Switch SW.sub.ref is connected to be constantly on. Switch SW.sub.ref has an internal resistance R.sub.ref in the on state. Switch SW.sub.ref is preferably similar or identical to switches SW.sub.i. As an example, switch SW.sub.ref is of the same type and substantially has the same dimensions and thus the same internal resistance R.sub.ref as each of switches SW.sub.i. As a variation, switch SW.sub.ref is at a decreased scale of switches SW.sub.i, and has an internal resistance *R.sub.on, where is a coefficient greater than 1 and preferably much greater than 1. Current source 19 is capable of delivering a constant reference current I.sub.ref. A reference voltage V.sub.ref is then defined across switch SW.sub.ref by relation V.sub.ref=I.sub.ref*R.sub.ref=I.sub.ref**R.sub.on, and comparator 11 switches when voltage VV.sub.ref changes sign.

(24) An advantage of circuit 7 of FIG. 5 is that the current thresholds causing the switching of the different switches SW.sub.i are little temperature-dependent, and are determined by value I.sub.ref of the current generated by source 19. In particular, when switches SW.sub.i and SW.sub.ref are of the same type, the temperature variations of their internal resistances are substantially of the same order. Thus, for a given number of switches SW.sub.i in the on state, the ratio of the internal resistance of circuit 7 between terminals A and K to internal resistance R.sub.ref of switch SW.sub.ref remains substantially constant whatever the operating temperature of the circuit.

(25) As a non-limiting example, current I.sub.ref delivered by source 19 has an intensity in the range from 100 nA to 10 A, for example, equal to 1 A, and reference voltage V.sub.ref is smaller than 100 mV, for example, equal to 25 mV.

(26) An advantage of the described embodiments is that they enable to significantly decrease the inaccuracy in terms of current with no additional accuracy constraint for comparators as compared with a circuit of the type described in relation with FIG. 1. Further, the smooth and progressive switching of the circuit significantly decreases current surges, and thus risks of electromagnetic disturbances with respect to a circuit of the type described in relation with FIG. 1.

(27) Specific embodiments have been described. Various alterations, modifications, and improvements will readily occur to those skilled in the art.

(28) It should in particular be noted that comparator 15 of the examples of FIGS. 4 and 5 is optional. In the absence of comparator 15, control unit 13 may be permanently activated, and may decide alone or not to allow the flowing of a current between terminals A and K. However, the presence of comparator 15 has the advantage of enabling to deactivate circuit 13 when voltage V is smaller than voltage V.sub.os, and thus to spare power when circuit 7 is in the off state.

(29) Further, although, in the embodiments of FIGS. 4 and 5, the voltage comparators are operational amplifiers assembled as comparators, other types of comparators may be used.

(30) Further, the described embodiments are not limited to the specific example of circuit of generation of reference voltage V.sub.ref of FIG. 5. More generally, other reference voltage generation circuits may be used.

(31) Such alterations, modifications, and improvements are intended to be part of this disclosure, and are intended to be within the spirit and the scope of the present disclosure. Accordingly, the foregoing description is by way of example only and is not intended to be limiting. The present disclosure is limited only as defined in the following claims and the equivalents thereto.

(32) The various embodiments described above can be combined to provide further embodiments. These and other changes can be made to the embodiments in light of the above-detailed description. In general, in the following claims, the terms used should not be construed to limit the claims to the specific embodiments disclosed in the specification and the claims, but should be construed to include all possible embodiments along with the full scope of equivalents to which such claims are entitled. Accordingly, the claims are not limited by the disclosure.