Method and apparatus for sensing current and voltage in circuits with voltage across an LED
Methods and apparatuses to sense current and voltage in circuits with voltage drop. In one aspect of the invention, a circuit includes a transistor coupled to a voltage reference. A light emitting diode (LED) is coupled to be driven by the transistor in response to a voltage across an output of the circuit. A first diode is coupled to the LED. A first resistor coupled to the first diode and the LED. The LED is coupled to be driven in response to a voltage drop across the first diode and the first resistor to sense a first current directed through the first diode and the first resistor.
This application is a continuation of U.S. application Ser. No. 11/317,498, filed Dec. 23, 2005, now pending, which is a continuation of U.S. application Ser. No. 10/922,056, filed Aug. 19, 2004, now U.S. Pat. No. 7,005,914, which is a continuation of U.S. application Ser. No. 10/188,583, filed Jul. 3, 2002, now U.S. Pat. No. 6,795,321, which claims the benefit of and claims priority to U.S. provisional application Ser. No. 60/306,719 filed Jul. 20, 2001, entitled “Method And Apparatus For Low Cost Current And Voltage Sense Circuits With Voltage Drop.”
BACKGROUND OF THE INVENTION1. Field of the Invention
present invention relates generally to circuits with voltage and current sensing and, more specifically, the present invention relates to current and voltage sensing in circuits with voltage drop.
2. Background Information
Most battery operated portable electronic products such as cell phones, personal digital assistants (PDAs), etc. require a low power alternating current (AC) to direct current (DC) charger power supply with a constant voltage and constant current (CC/CV) characteristics for charging batteries. Most of these chargers require relatively accurate and expensive circuitry to meet the specified current and voltage tolerances over temperature.
In a known circuit, voltage is sensed by using an accurate programmable reference IC such as a TL431, which drives an opto-coupler feedback circuit to control the output voltage at a programmed value set by external resistors. A relatively high level of accuracy is needed at the output of the charger circuit in order to meet a lower accuracy at the load due to voltage drop in the output cable that connects the charger to the load (the electronic product). The voltage drop in the output cable reduces the output voltage as load increases degrading the overall voltage tolerance at the load. A required level of voltage accuracy at the charger output can be achieved by choosing a TL431 IC that has been trimmed to the appropriate accuracy level. TL431s with 3%, 2% and 1% accuracy are widely available. TL431 voltage reference is generally more expensive than a simple Zener reference. However, Zeners are generally difficult to get at tolerance below 2% and the Zener voltage varies with the current through it, resulting in a poorer load regulation in circuits that have Zener currents that vary with output load due to low gain of the feedback loop. In addition, they are only available in certain standard voltage values, which makes it difficult to center the output voltage at the optimum point for the best tolerance.
For low cost, the current sensing in low power applications (e.g. <5 W) is usually done by using a voltage drop across a current sense resistor to turn on a bipolar a transistor. This circuit uses the base emitter voltage, VBE of the transistor as a reference. The transistor in turn drives an optocoupler feedback circuit to control the output current at a constant value. The constant current limit set by such a circuit, however, has a large temperature variation due to the high temperature coefficient of VBE (−2 mV/° C.). This can be compensated to the first order by using a thermister based resistor network which add to the component count and cost.
SUMMARY OF THE INVENTIONMethods and apparatuses for sensing current and voltage in circuits with voltage drop are disclosed. In one aspect of the invention, a current sense circuit is described including a series combination of a diode and a resistor in the path of the current to be sensed, the voltage across this series combination coupled to drive an light emitting diode (LED). In one embodiment, the LED is part of an optocoupler and the optocoupler is part of a feedback circuit of a switched mode power supply. In one embodiment, the diode is a PN junction diode.
In another aspect of the invention, a current and voltage sense circuit is described including a current sense circuit having a series combination of a diode and a resistor in the path of a load current supplied from an output and the voltage across this series combination is coupled to drive an LED. The current and voltage sense circuit also includes a voltage sense circuit coupled to the output. The voltage sense circuit includes a voltage reference coupled to the base of a bipolar transistor. The bipolar transistor drives the LED when the voltage at the output exceeds a sense voltage of the voltage sense circuit. The voltage reference is a Zener and the sense voltage of the voltage sense circuit is the sum of the voltage across the Zener and the forward base emitter voltage (VBE) of the bipolar transistor. In one embodiment, the LED is part of an optocoupler and the optocoupler is part of a feedback circuit of switched mode power supply. In one embodiment, the diode is a PN junction diode.
In yet another aspect of the invention, a voltage drop compensation circuit is described including a voltage sense circuit coupled across a voltage output. The voltage sense circuit includes a voltage reference coupled to drive the base of the bipolar transistor when the voltage at the voltage output exceeds a sense voltage of the voltage sense circuit. A compensation resistor is coupled to the voltage output to carry a current that substantially represents the current that flows from the voltage output to a load that is coupled to the output. The sum of the voltage across the compensation resistor and the forward base emitter voltage of the bipolar transistor is applied across a series combination of a second resistor and a diode. The current through the second resistor is used to alter the sense voltage of the voltage sense circuit. In one embodiment, the sense voltage is increased as the current to the load increases. In one embodiment, the diode is replaced by a short circuit. In one embodiment, the voltage reference is a Zener and the sense voltage of the voltage sense circuit is the sum of the voltage across the Zener and the forward base emitter voltage (VBE) of the bipolar transistor and, the current through the second resistor is passed through the Zener. In one embodiment, the voltage sense circuit further includes a third resistor and the sense voltage is the sum of the voltage across the voltage reference, the voltage across the third resistor and the forward emitter bias voltage of the bipolar transistor and, the current through the second resistor is passed through the third resistor. In one embodiment, the diode is a PN junction diode. In one embodiment, the bipolar transistor drives an LED of an optocoupler and the optocoupler is part of a feedback circuit of switched mode power supply.
In still another aspect of the present invention, a voltage drop compensation circuit is described, which includes a voltage sense circuit coupled across a voltage output. The voltage sense circuit includes a first resistor coupled to a Zener, which is coupled to drive an LED of an optocoupler when the voltage at the voltage output exceeds a sense voltage of the voltage sense circuit. The sense voltage of the voltage sense circuit is the sum of the voltage across the Zener and the forward voltage of the optocoupler LED and the voltage across the first resistor. The voltage sense circuit also includes a current sense circuit, which provides a voltage representative of current delivered to a load coupled to the voltage output. The voltage sense circuit also includes a voltage compensation circuit coupled to change the voltage across the first resistor of the voltage sense circuit responsive to the voltage provided by the current sense circuit. In one embodiment, the voltage across the first resistor is increased as the current supplied to the load increases. In one embodiment, the current sense circuit includes a series combination of a second resistor and a diode. In one embodiment, the voltage compensation circuit includes a third resistor coupled to the emitter of a bipolar transistor and a series combination of the third resistor and a base emitter junction of the bipolar transistor is coupled across the current sense circuit, such that the collector current of the transistor is proportional to the voltage across the second resistor. In one embodiment, the bipolar transistor collector is coupled to the first resistor such that the voltage drop across the first resistor is responsive to the voltage across the second resistor. In one embodiment, the optocoupler is part of a feedback circuit of switched mode power supply. Additional features and benefits of the present invention will become apparent from the detailed description and figures set forth below.
BRIEF DESCRIPTION OF THE DRAWINGSThe present invention detailed is illustrated by way of example and not limitation in the accompanying figures.
Embodiments of methods and apparatuses for providing current sensing, voltage sensing and voltage drop compensation in circuits, such as for example but not limited to power supply circuits, are disclosed. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one having ordinary skill in the art that the specific detail need not be employed to practice the present invention. In other instances, well-known materials or methods have not been described in detail in order to avoid obscuring the present invention.
Reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases “in one embodiment” or “in an embodiment” in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments.
As an overview, embodiments of the present invention provide a very low cost, constant voltage, constant current sensing circuit that is relatively temperature independent. A cable resistance compensation circuit in accordance with one embodiment increases accuracy of the voltage at the load by compensating for the cable voltage drop. This also allows a lower cost voltage sense circuit to be used. A current sense circuit according to one embodiment can also be used for detecting the sensed current crossing a threshold for monitoring and protection purposes. One embodiment the present invention can be used to provide a relatively accurate, temperature compensated constant voltage and current characteristic for battery chargers.
One of the described embodiments of the present invention uses Zener based voltage sense for low cost. The reduced accuracy of the Zener sensing is compensated for by a novel voltage drop compensation technique. This technique increases the sense voltage as a function of load to compensate for cable voltage drop and any change in Zener voltage due to load related change in Zener current. The net effective voltage accuracy measured at the load with this circuit is comparable to more expensive TL431 based circuits. Alternatively, the voltage drop compensation circuit could also be used in combination with more accurate voltage sense circuits such as the ones based on TL431 IC, to compensate for resistive drops in the conductors (wires, cables, printed circuit board traces, etc.) that connect the load to the voltage sense point, to further improve regulation accuracy at the load.
In one embodiment, the current sensing is done by using the forward voltage of the Light Emitting Diode (LED) as a voltage reference. The current is sensed by a series combination of a PN junction diode and a resistor and the voltage developed by this series combination is applied across the LED. This circuit takes advantage of the fact that the LED forward voltage has a temperature coefficient that is similar to that of the PN junction diode, but its absolute value is approximately 300 mV higher than that of the PN junction diode; i.e. a forward voltage of approximately 1 V for LED vs. 0.7V for the PN junction diode. Thus, the voltage across the sense resistor in one embodiment is 300 mV and is relatively independent of temperature. In this embodiment, this current sense circuit provides a relatively temperature independent constant current output using LED of an optocoupler in a closed loop feedback circuit. An added advantage of this circuit is that it provides constant current all the way down to a short circuit at the output. This is because the optocoupler LED is always driven in the constant current mode, independent of the output voltage.
In other embodiments, the simple low cost current sense circuit disclosed can also be used in an open loop fashion to detect a current crossing a threshold for monitoring and protection purposes, such as, over-current or overload detection, under-current or light load detection, over current shutdown, etc. In these applications, the crossing of current threshold can be detected by the turn on (when current cross above the threshold) and turn off (when current crosses below the threshold) of the output transistor of the optocoupler. Alternatively, a stand alone LED can be used to visually indicate a current crossing a threshold. For example, the LED on a power supply could light up to indicate that a power supply is loaded or over loaded.
Thus, embodiments of the presently described current sense circuit, a relatively temperature independent current threshold is obtained with a circuit that is very simple and low cost. It is appreciated that although embodiments of the present invention are described herein with a switched mode power supply, it is noted that other embodiments of the present invention are not limited in use to switched mode power supplies or even to power supplies in general. For example, the embodiments of the present invention can be used for sensing voltage and current in linear power supplies, instrumentation systems that have remote sensors, monitoring of current or voltage crossing a set threshold, etc. Embodiments of the present invention can be used in a open loop system for monitoring voltage or current or in a closed loop system for regulation of voltage or current.
In one embodiment, R1 113 is a fusible resistor that acts like a fuse for protecting the power supply 101 from component shorts and overloads. RV1 115 is a metal oxide varistor (MOV) used to clamp AC line transient from damaging the power supply. Diodes D1-D4 form a rectifier bridge 117 to convert AC to DC and the capacitors C1 119 and C2 121 smooth the DC voltage. C1 119 and C2 121 in combination with inductor L1 123 also provide electromagnetic interference (EMI) filtering for high frequency noise that is generated by the switching power supply 101 to limit conducted emission transmitted on to the AC line. U1 125 is a switched mode power supply controller with an integrated high voltage switch. In one embodiment, U1 125 is a TNY264 device, which is a member of TINYSwitch II family of switched mode power supply ICs manufactured by Power Integrations of San Jose, Calif. Power supply controller 125 converts the high voltage DC across C2 121 into high frequency AC across the primary winding 127 (terminals 1 and 4) of the transformer T1 111. The amount of power delivered to the secondary terminals 129 (8 & 10) of T1 111 is controlled in closed loop through the EN/UV pin of the power supply controller 125. An optocoupler U2 131 is used to provide the feedback with isolation from the secondary side 129 of transformer 111 for closed loop control. In one embodiment, elements R1 133, R2 135, D5 137 and C3 139 clamp leakage inductance spikes across the primary winding 127 of transformer T1 111. C4 141 is a bypass capacitor for the power supply controller 125 internal supply pin. D6 143 provides rectification and C5 145 provide filtering on the secondary 129 to deliver a DC voltage across C5 145. The circuit enclosed by the dotted line box in
In one embodiment, R5 153, R6 155, D7 157 and optocoupler LED 159 constitute the current sense circuit. The voltage sense circuit includes PNP transistor Q1 161, R8 163, R9 165 and Zener D8 167. In one embodiment, Zener D8 167 provides a voltage reference for the voltage sense circuit. The voltage drop compensation for the voltage sense circuit is performed by R3 169, R4 171, D9 173 in conjunction with R8 163.
In the embodiment shown, R6 155 and D7 157 are the current sensing components in return path of the current on the negative rail coupled to the DC output. The current through R6 155 and D7 157 is substantially equal to the load 103 current IL, which is supplied from the DC output and flows through the load 103 coupled to the DC output. The voltage dropped across R6 155 and D7 157 is applied across the LED 159 of the optocoupler 131 through the resistor R5 153, which limits the LED 159 current during the constant current mode of operation. R5 also limits the current that would flow through R6 155 and D7 157 when in the constant voltage mode of operation. When the output current exceeds the current sense threshold that is set by the difference between the forward voltages of the LED 159 and the PN junction diode D7 157, which in one embodiment is approximately 300 mV, divided by the value of the resistance R6 155, the LED 159 of the optocoupler 131 conducts. This in turn reduces the power delivered by the power supply controller 125 to the transformer 111 to maintain the output current in regulation at the current sense threshold. In the example shown in
In one embodiment, R3 169 is the compensation resistor that is on the positive rail coupled to the DC output and has a current that is substantially equal to load 103 current IL. The voltage developed across R3 169 is substantially equal to the voltage across the resistor R4 171 independent of temperature because the forward voltage drop of diode D9 173 and the VBE of the transistor Q1 161 and their temperature coefficients are substantially the same in one embodiment. This is because both are PN junctions. Therefore, the current generated by R4 171 is proportional to the load current IL and flows through R8 163. The base current of Q1 161 by design is negligible compared to the current through R4 171. Therefore, the voltage drop across R8 163 is proportional to the load 103 current IL. As load 103 current IL increases, the voltage drop across R8 163 increases, increasing the reference voltage and therefore the output voltage of the power supply 101 to compensate for the cable 105 resistance drop to maintain a substantially constant voltage VL at the load 103 that is independent of the load 103 current IL.
In the example shown in
In the example shown, the collector current of Q1 161 is the sum of LED 159 current, which in one embodiment is approximately 250 uA for driving power supply controller 125 devices independent of loading, and the current through R5 153. The current though R5 153 is maximum at no load and it can be estimated by dividing the voltage difference between the forward drop of the LED 159 of the optocoupler 131 and the PN junction diode D7 157 by the resistor value of R5 153, which is: 300 mV/100 ohms, which equals 3 mA. This is because the drop across the resistor R6 155 is negligible at no load. The total maximum Q1 161 current in one embodiment is 3.25 mA. Assuming a beta for Q1 161 of 100, the base current of Q1 161 is approximately 33 uA which translates to 33 uA×330 ohms, which equals 10 mV across R8 163 at no load. This is negligible compared to the output voltage of 5.7V. A standard 4.7V Zener diode D8 167 is biased close to 5V by the current through R9 165 of 0.7V/180 ohms, which equals 3.9 mA to center the output voltage at 5V+VR8(0V)+VBE (0.7V), which equals 5.7V at no load.
In another embodiment, it is possible to eliminate the resistor R8 163 by using Zener diode D8 167 internal impedance to perform the function of R8 163. In this embodiment, the value of R4 171 can be adjusted to provide the required change in Zener D8 167 current to provide the change in sense voltage at full load.
In another embodiment, it is also possible to eliminate D9 173 and use a correspondingly larger value of R4 171 to save cost. The voltage across R4 171 will then be equal to the drop across R3 169 plus a VBE (approximately 0.7V at room temperature) and the value of R4 171 can be chosen to provide the desired amount of voltage compensation at room temperature. The voltage across R4 171 will vary with temperature due to the VBE temperature coefficient of approximately +2 mV/° C. This will change the voltage compensation as a function of temperature that may be acceptable in some cases and desirable in some others.
In the constant voltage mode of operation of one embodiment, the output voltage is regulated at a sense voltage that is the sum of the voltage across Zener D2 585, the optocoupler LED 581 forward voltage drop and the voltage across R3 583 minus the voltage across R1 575 and D1 579 forward voltage drop. R2 577 limits the current through the optocoupler LED 581 when it is being driven by the current sense circuit (constant current mode). R2 577 also provides bias current for Zener D2 585 when the circuit is in a voltage sensing mode or constant voltage mode.
The voltage drop compensation is achieved by increasing the current through R3 583 in response to increased output load 103 current IL. This function is achieved through the coupling of the base emitter junction of Q1 587 in series with R4 589, in parallel to R1 575 and D1 579. The voltage drop across R1 575 is representative of the output load 103 current IL. The voltage drop across D1 579 is substantially equal to the base emitter drop of Q1 587 and has the same temperature coefficient providing temperature compensation. The voltage across R1 575 is therefore substantially equal to the voltage across R4 589 independent of temperature. The value of R4 589 therefore determines the Q 587 collector current for a given output load 103 current IL and hence the relationship between the voltage drop across R3 583 and the output load 103 current IL. R4 589 is chosen to compensate for both the voltage drop across R1 575 and the voltage drop due to cable 105 resistance, RC1 107 and RC2 109, of
In another embodiment, a complimentary version of the circuit shown in
In the foregoing detailed description, the method and apparatus of the present invention has been described with reference to specific exemplary embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the present invention. The present specification and figures are accordingly to be regarded as illustrative rather than restrictive.
Claims
1. A circuit, comprising:
- a transistor coupled to a voltage reference;
- a light emitting diode (LED) coupled to be driven by the transistor in response to a voltage across an output of the circuit;
- a first diode coupled to the LED; and
- a first resistor coupled to the first diode and the LED such that the LED coupled to be driven in response to a voltage drop across the first diode and the first resistor to sense a first current directed through the first diode and the first resistor.
2. The circuit of claim 1 wherein the transistor is coupled to drive the LED in response to the voltage across the output of the circuit exceeding a sense voltage.
3. The circuit of claim 1 wherein the transistor comprises a bipolar transistor having a base coupled to the voltage reference, the bipolar transistor to drive the LED when the voltage across the output exceeds a sense voltage.
4. The circuit of claim 1 wherein the voltage reference is provided by a Zener diode coupled to the output of the circuit.
5. The circuit of claim 1 wherein a sense voltage includes a sum of the voltage reference provided by a Zener diode coupled to the output of the circuit and a forward base emitter voltage of bipolar transistor having a base coupled to the voltage reference.
6. The circuit of claim 1 wherein the LED is included in an optocoupler.
7. The circuit of claim 1 wherein an optocoupler including the LED is coupled to provide feedback from an output of a power supply, the optocoupler coupled to provide the feedback to a power supply controller included in the power supply.
8. The circuit of claim 7 wherein the power supply is a switched mode power supply.
9. The circuit of claim 1 wherein the first diode comprises a PN junction diode.
Type: Application
Filed: Jan 29, 2007
Publication Date: May 31, 2007
Inventors: Balu Balakrishnan (Saratoga, CA), Arthur Odell (Cupertino, CA)
Application Number: 11/699,658
International Classification: H02M 3/07 (20060101);