The invention relates generally to the field of analog to digital converters and particularly to an input circuitry for an analog to digital converter arranged to receive a wide range of currents.
In many applications an electronic chip is provided to perform one or more functions, including the control of current provided to an external device, or load. In order to ensure proper powering of the external device, or load, the provided current should be measured. For example, Power over Ethernet (PoE), in accordance with both IEEE 802.3af-2003 and IEEE 802.3at-2009, each published by the Institute of Electrical and Electronics Engineers, Inc., New York, the entire contents of each of which is incorporated herein by reference, defines delivery of power over a set of 2 twisted wire pairs without disturbing data communication. The aforementioned standards particularly provide for a power sourcing equipment (PSE) and one or more powered devices (PD). In a first stage of operation, the PSE is arranged to output to each PD a class current, typically ranging from 0-50 mA, in order to determine the class of the PD. In the operating stage of operation, the PSE is arranged to output an operating current, typically ranging from 350 mA-1 A. In both stages, the current output by the PSE should be measured in order to determine if there is enough power for all of the PDs.
Unfortunately, analog to digital converters (ADCs) capable of properly converting such a wide range of currents add additional costs. There is thus a long felt need for an arrangement allowing for the conversion of a wide range of input currents by a standard ADC.
Accordingly, it is a principal object of the present invention to overcome the disadvantages of prior art ADC input circuitries. In one embodiment, a wide range input current circuitry for an analog to digital converter (ADC) is provided, the wide range input current circuitry comprising: a first resistor coupled to an input of the ADC; a first electronically controlled switch coupled to the first resistor; a second resistor coupled to the input of the ADC and arranged to provide a current path for an input current; a control circuitry in communication with the first electronically controlled switch and arranged to alternately open and close the first electronically controlled switch, wherein the control circuitry is arranged to operate in a high current mode in the event that the input current exhibits an intensity within a first predetermined range and is arranged to operate in a low current mode in the event that the input current exhibits an intensity within a second predetermined range, lower than the first predetermined range, wherein, in the high current mode, the control circuitry is arranged to close the first electronically controlled switch, the first electronically controlled switch arranged when closed to provide a current path for the input current through the first resistor, and wherein, in the low current mode, the control circuitry is arranged to open the first electronically controlled switch, the first electronically controlled switch arranged when opened to prevent the flow of the input current through the first resistor.
In one further embodiment, the circuitry further comprises a second electronically controlled switch coupled to the second resistor, wherein responsive to both the high current mode and low current mode of the control circuitry, the second electronically controlled switch is arranged to be closed, and wherein the ratio between the area of the first electronically controlled switch and the area of the second electronically controlled switch is equal to the ratio between the resistance of the second resistor and the resistance of the first resistor.
Additional features and advantages of the invention will become apparent from the following drawings and description.
For a better understanding of the invention and to show how the same may be carried into effect, reference will now be made, purely by way of example, to the accompanying drawings in which like numerals designate corresponding elements or sections throughout.
With specific reference now to the drawings in detail, it is stressed that the particulars shown are by way of example and for purposes of illustrative discussion of the preferred embodiments of the present invention only, and are presented in the cause of providing what is believed to be the most useful and readily understood description of the principles and conceptual aspects of the invention. In this regard, no attempt is made to show structural details of the invention in more detail than is necessary for a fundamental understanding of the invention, the description taken with the drawings making apparent to those skilled in the art how the several forms of the invention may be embodied in practice. In the accompanying drawings:
Before explaining at least one embodiment of the invention in detail, it is to be understood that the invention is not limited in its application to the details of construction and the arrangement of the components set forth in the following description or illustrated in the drawings. The invention is applicable to other embodiments or of being practiced or carried out in various ways. Also, it is to be understood that the phraseology and terminology employed herein is for the purpose of description and should not be regarded as limiting. The term resistor as used herein refers to an element defined in an integrated circuit arranged to present resistance to a current flow there through.
Reference resistor RREF is illustrated as being a single resistor in series with variable reference current source 20, however this is not meant to be limiting in any way. In another embodiment, as will be described further below in relation to
An input of reference current source 20 is coupled to a port 25 of integrated circuit 15 and port 25 is coupled to an external source voltage, denoted V. The amount of current generated by reference current source 20 is preferably controlled by input ISELECT. The output of reference current source 20, denoted ILIMIT, is coupled to a first end of reference resistor RREF and to the non-inverting input of differential amplifier 40 and a second end of reference resistor RREF is coupled to a common potential. The inverting input of differential amplifier 40 is coupled to a first end of sense resistor RSENSE and to the source of electronically controlled switch 50 and a second end of sense resistor RSENSE is coupled to the common potential. The output of differential amplifier 40 is coupled to the gate of electronically controlled switch 50 and the drain of electronically controlled switch 50 is coupled to a port 55 of integrated circuit 15. Port 55 carries the port current, i.e. the current to be measured and/or controlled.
In one non-limiting embodiment, port 55 is the negative leg of a PoE system, as described above in relation to IEEE 802.3 of or IEEE 802.3 at. In such an embodiment, the common potential is a return to a DC power source, typically at about −48V DC in relation to ground potential.
In operation, reference current source 20 is arranged to generate limit reference current ILIMIT, of a predetermined value. Limit reference current ILIMIT flows through reference resistor RREF and produces a limit voltage there across, the voltage denoted VLIMIT, which is received at the non-inverting input of differential amplifier 40. Port 55 is arranged to receive a port current, denoted IPORT. Current IPORT flows through electronically controlled switch 50 and sense resistor RSENSE to the common potential and produces a sensed voltage across sense resistor RSENSE, the sensed voltage denoted VSENSE. The difference between limit voltage VLIMIT and sensed voltage VSENSE is amplified by differential amplifier 40 and current IPORT is limited responsive to the output of differential amplifier 40. In particular, in the event that sensed voltage VSENSE is greater than limit voltage VLIMIT, the resistance of electronically controlled switch 50, i.e. the RDSon of electronically controlled switch 50 is increased thereby reducing port current IPORT. In the event that sensed voltage VSENSE is less than limit voltage VLIMIT, the RDSon of electronically controlled switch 50 is decreased thereby allowing for an increase in port current IPORT. The operation of current control circuitry 30 is thus arranged to cause sensed voltage VSENSE to be less than or equal to limit voltage VLIMIT, as known in the art. In certain embodiments sensed voltage VSENSE may be less than VLIMIT, such as when the circuitry attached to port 55 only passes a current less than A*ILIMIT. In such a case, electronically controlled switch 50 is fully on, i.e. RDSon is at its minimum responsive to the output of differential amplifier 40, however IPORT is limited by a load circuitry connected to port 55. Thus current control circuitry 30 acts as a current governor, wherein IPORT can not exceed A*ILIMIT, but in certain circumstances may be less than A*ILIMIT.
As will be described below, port current IPORT can thus be accurately controlled to not exceed a predetermined limit by selecting an appropriate limit reference current ILIMIT. In particular, EQ. 1 shows the relationship between port current IPORT and sense voltage VSENSE for a case wherein current is being limited by current control circuitry 30:
IPORT=VSENSE/R EQ. 1
where R is the resistance of sense resistor RSENSE, which as described above is unknown.
As described above, current control circuitry 30 is arranged to cause sense voltage VSENSE to be equal to reference voltage VLIMIT. Therefore, EQ. 1 can be rewritten as:
IPORT=VLIMIT/R EQ. 2
The relationship between reference voltage VLIMIT and limit reference current ILIMIT is given as:
VLIMIT=ILIMIT*A*R EQ. 3
where, as described above, R is the resistance of sense resistor RSENSE and A is a predetermined constant, A*R being the resistance of reference resistor RREF.
The combination of EQ. 2 and EQ. 3 provides the relationship between current port IPORT and limit reference current ILIMIT, which is independent of the unknown value R, as:
IPORT=ILIMIT*A EQ. 4
Thus, on-chip port current control arrangement 10 limits port current IPORT as a known function of limit reference current ILIMIT. Port current IPORT can thus be limited to a predetermined value by setting the value of limit reference current ILIMIT, without requiring precise knowledge of the value of RSENSE.
In operation, input SELECT determines the resistance experienced by ILIMIT, and thus VLIMIT. Port current IPORT is again limited responsive to A, which may be a linear combination of A1, A2, A3 as selected by multiplexer 80 responsive to input select. Thus, with a single fixed reference current source 70 a plurality of values for VLIMIT may be generated of a fixed ratio between them, responsive to the ratio of the constituent resistors forming reference resistor RREF, thus allowing for a plurality of current limits to be set for current control circuitry 30.
The above is illustrated in an embodiment wherein reference resistors A1*R, A2*R and A3*R are serially connected, however this is not meant to be limiting in any way, and parallel connections may implemented without exceeding the scope.
ADC 130 is shown integrated within current measuring circuitry control 140, however this is not meant to be limiting in any way. ADC 130 may be provided within multiplexer 120, separate ADC units may be provided ahead of multiplexer 120 for each of the inputs, or ADC 130 may not be provided at all, without exceeding the scope.
An input of reference current source 20 is coupled to a port 25 of integrated circuit 105 and port 25 is coupled to an external source voltage, denoted V. The output of reference current source 20 is coupled to a first end of reference resistor RREF, to a first input of multiplexer 120 and to the non-inverting input of differential amplifier 40 of current control circuitry 30. A second end of reference resistor RREF is coupled to a common potential. A first end of sense resistor RSENSE is coupled to port 55 of integrated circuit 105, to a second input of multiplexer 120 and to the inverting input of differential amplifier 40. A second end of sense resistor RSENSE is coupled to the common potential. An output of multiplexer 120 is coupled to an input of current measuring circuitry control 140, particularly to an input of ADC 130. A first output of current measuring circuitry control 140 is coupled to a control input of multiplexer 120 and a second output of current measuring circuitry control 140 is coupled to a port 150 of integrated circuit 105. Input ISELECT is connected to each of a control input of reference current source 20 and measuring circuitry control 140. Additionally, a fixed multiplier may be provided between multiplexer 120 and ADC 130 without exceeding the scope.
Utilizing EQ. 3 above, current measuring circuitry control 140 optionally determines R, i.e. the actual resistance of RSENSE, as:
R=VLIMIT/(ILIMIT*A) EQ. 5
There is no requirement that R be actually determined, as will be explained further below.
In stage 1010 current measuring circuitry control 140 is arranged to control multiplexer 120 to pass sense voltage VSENSE to ADC 130. ADC 130 is arranged to convert sense voltage VSENSE to a digital signal and pass the digital signal to current measuring circuitry control 140.
In stage 1020, current measuring circuitry control 140 is arranged to determine port current IPORT responsive to the sense voltage VSENSE of stage 1010 and the determined R of stage 1000 as:
IPORT=VSENSE/R EQ. 6
Thus, responsive to the measurement of VLIMIT, an accurate measure of IPORT is determined by current measuring circuitry control 140. Alternately, by combining EQ. 6 with EQ. 5, IPORT may be determined without determination of R as:
IPORT=VSENSE*ILIMIT*A/VLIMIT EQ. 7
In stage 1030, the measured value of port current IPORT is output via port 150 of integrated circuit 105.
In one embodiment, stage 1000 is run periodically so as to update the value of R to take into account temperature effects. In another embodiment, stage 1000 is run responsive to a detected change in the temperature of integrated circuit 105. Stages 1010-1030 are run continuously so as to provide accurate measurement of IPORT.
Thus, the circuitry and method of
In operation, PoE system 200 provides power from power supply 210 to PD 200 over a twisted wire pair connection, as described in the above mentioned standards. The return current, denoted IPORT, as described above, is received at port 55, and is controlled, and particularly limited to a value, by the value of the current output by reference current source 20. Accurate reporting of the current through port 55 is accomplished by port current measuring circuitry 110. Optionally, an additional port 50 is provided (not shown) to provide information regarding the determined port current to other circuitry.
Limit voltage VLIMIT, which as described above may be set responsive to an output of PoE control 230, is coupled to the non-inverting input of differential amplifier 40. The output of differential amplifier 40 is coupled to a first terminal of first electronically controlled switch SA and to a first terminal of second electronically controlled switch SB. A second terminal of first electronically controlled switch SA is coupled to the gate of first NMOSFET 50A and a second terminal of second electronically controlled switch SB is coupled to the gate of second NMOSFET 50B. The drains of each of first and second NMOSFETs 50A, 50B are commonly coupled to port 55, and current IPORT flows through port 55.
The source of first NMOSFET 50A is coupled to a first end of first sense resistor RSENSE-A. The source of second NMOSFET 50B is coupled to a first end of second sense resistor RSENSE-B, to the input of ADC 130 and to the inverting input of differential amplifier 40. A second end of each of first sense resistor RSENSE-A and second sense resistor RSENSE-B is coupled to a common potential, which in the embodiment of
The ratio of the resistance of second sense resistor RSENSE-B to the resistance of first sense resistor RSENSE-A is set to a predetermined value, denoted RATIO, which is greater than 1. Thus, the resistance of first sense resistor RSENSE-A is less than the resistance of second resistor RSENSE-B. In one particular embodiment, which will be used for illustration purposes, the resistance of first sense resistor RSENSE-A is 0.114 ohms, and the resistance of second sense resistor RSENSE-B is 0.8 ohms, and thus RATIO is equal to 7. First NMOSFET 50A is constituted of an NMSOFET with a first area, denoted AREA-A and second NMOSFET 50B is constituted of an NMSOFET with a second area, denoted AREA-B. The relationship between AREA-B and AREA-A is set to 1/RATIO, in the illustrative example AREA-B is thus 1/7 of AREA-A. Thus, the relationship between the combined on-resistance of first NMOSFET 50A and first sense resistor RSENSE-A to the combined on-resistance of second NMOSFET 50B and second sense resistor RSENSE-B is determined by RATIO, and is independent of temperature factors.
In stage 2010, in order to control operating currents, which in the illustrative example of PoE, may range from 350 mA-1 A, PoE control circuitry 230 operates in a high current mode. In the high current mode PoE control circuitry 230 closes first and second electronically controlled switches SA and SB. First sense resistor RSENSE-A is thus in parallel with second sense resistor RSENSE-B. A first portion of current IPORT flows through a parallel current path presented by the serial combination of first NMOSFET 50A and first sense resistor RSENSE-A and a second portion of current IPORT flows through the serial combination of second NMOSFET 50B and second sense resistor RSENSE-B as described above in relation to the low current mode. Since the ratio of the area of second NMOSFET 50B to first NMOSFET 50A is inversely proportional to the ratio of second sense resistor RSENSE-B to first sense resistor RSENSE-A, i.e. RATIO, the current flow through the legs are similarly responsive to RATIO. First sense resistor RSENSE-A and second sense resistor RSENSE-B are effectively in parallel, and current IPORT flows through first sense resistor RSENSE-A and second sense resistor RSENSE-B in an amount responsive to RATIO. In particular, the current through second sense resistor RSENSE-B, which develops VSENSE is IPORT/(RATIO+1). By utilizing RATIO to determine both the areas of first NMOSFET 50A and second NMOSFET 50 as well as the resistances of first sense resistor RSENSE-A and second sense resistor RSENSE-B, the current is properly divided between the legs irrespective of temperature, since the resistance, and on-resistances, are at fixed ratios.
For the illustrative example of PoE, where RATIO=7, and RSENSE-A=0.8 ohms, and the current through IPORT is in the range of 350 mA to 1 A, VSENSE ranges from 35 mV to 100 mV, which is easily achievable by a standard ADC with a multiplier as part of the front end of the ADC (multiplier not shown).
Limit voltage VLIMIT, which as described above may be set responsive to an output of PoE control 230, is coupled to the non-inverting input of differential amplifier 40. The output of differential amplifier 40 is coupled to the gate of electronically controlled switch 50. The inverting input of differential amplifier 40 is coupled to a first terminal of electronically controlled switch SS, to the source of electronically controlled switch 50, to a first end of second sense resistor RSENSE-B and to the input of ADC 130. A second terminal of electronically controlled switch SS is coupled to a first end of first sense resistor RSENSE-A and a control terminal of electronically controlled switch SS is coupled to an output of PoE control circuitry 230. A second end of first sense resistor RSENSE-A and second sense resistor RSENSE-B are each coupled to a common potential point. The drain of electronically controlled switch 50 is coupled to port 55 (not shown), and IPORT flows through port 55.
As described above, the ratio of the resistance of second sense resistor RSENSE-B to the resistance of first sense resistor RSENSE-A is set to a predetermined value, denoted RATIO2, which is greater than 1. Thus, the resistance of second sense resistor RSENSE-B is greater than the resistance of first resistor RSENSE-A. The on-resistance of electronically controlled switch SS is assumed to be negligible, and thus does not affect current flow.
In stage 2110, in order to control operating currents, which in the illustrative example of PoE, may range from 350 mA-1 A, PoE control circuitry 230 operates in a high current mode. In the high current mode PoE control circuitry 230 closes electronically controlled switch SS. First sense resistor RSENSE-A is thus in parallel with second sense resistor RSENSE-B, and a first portion of current IPORT flows through a parallel current path presented by first sense resistor RSENSE-A and a second potion flows through the current path presented by second sense resistor RSENSE-B as described above in relation to the low current mode. Since first sense resistor RSENSE-A and second sense resistor RSENSE-B are coupled in parallel, VSENSE is thus smaller than if electronically controlled switch SS is open and first sense resistor RSENSE-A is not coupled to second sense resistor RSENSE-B. Therefore, as described above in relation to
It is appreciated that certain features of the invention, which are, for clarity, described in the context of separate embodiments, may also be provided in combination in a single embodiment. Conversely, various features of the invention which are, for brevity, described in the context of a single embodiment, may also be provided separately or in any suitable sub-combination.
Unless otherwise defined, all technical and scientific terms used herein have the same meanings as are commonly understood by one of ordinary skill in the art to which this invention belongs. Although methods similar or equivalent to those described herein can be used in the practice or testing of the present invention, suitable methods are described herein.
All publications, patent applications, patents, and other references mentioned herein are incorporated by reference in their entirety. In case of conflict, the patent specification, including definitions, will prevail. In addition, the materials, methods, and examples are illustrative only and not intended to be limiting.
The terms “include”, “comprise” and “have” and their conjugates as used herein mean “including but not necessarily limited to”.
It will be appreciated by persons skilled in the art that the present invention is not limited to what has been particularly shown and described hereinabove. Rather the scope of the present invention is defined by the appended claims and includes both combinations and sub-combinations of the various features described hereinabove as well as variations and modifications thereof, which would occur to persons skilled in the art upon reading the foregoing description.
Number | Date | Country | |
---|---|---|---|
61753453 | Jan 2013 | US |