CURRENT AND VOLTAGE SENSING

Abstract: An integrated circuit (1) comprises a voltage sensing circuit (2) and a current mirror (3) for sensing both a voltage (Vi) and a current (Ii) at one input terminal (T) of the integrated circuit. The voltage sensing circuit (2) comprises an input connected to the input terminal (T) and an output supplying a voltage level indication (Vu). The current mirror (3) has an input also connected to the input terminal (T), a reference terminal connected to a reference potential, and an output supplying an output current (Iu). The input of the current mirror has a high impedance as long as the voltage level (Vi) is below a threshold voltage (Vth) of the current mirror (3). Within a voltage range determined by this threshold voltage (Vth), the voltage level indication (vu) is a measure of the voltage level (Vi). The current mirror (3) becomes active and the output current (Iu) is a mirrored input current (Ii) if the voltage level (Vi) exceeds the threshold voltage (Vth). The threshold voltage may be determined by an input transistor (T1) of the current mirror (3). This input transistor (T1), which is arranged as a diode, starts conducting if the voltage level (Vi) reaches the threshold voltage (Vth) of this diode.

Description: Current and voltage sensing. The invention relates to a circuit for sensing both a current and a voltage. It is known to sense a voltage and a current by using different circuits. One of the circuits receives the voltage, the other circuit receives the current. An integrated circuit which comprises both circuits needs two terminals to be able to sense the voltage and a current, separately. As the cost of the integrated circuit depends on the amount of terminals needed, it is a drawback of the known integrated circuit that two terminals have to be used. It is an object of the invention to perform both an accurate current and voltage sensing at a same terminal of an integrated circuit. A first aspect of the invention as defined in claim 1 provides a circuit for sensing both a current and a voltage level at one input terminal of an integrated circuit. A second aspect of the invention as defined in claim 4 provides a power supply comprising such a circuit for sensing both a current and a voltage at one input terminal of an integrated circuit. A current mirror input and a voltage sense circuit are both coupled to the same input terminal. The input of the current mirror has a threshold voltage which in case of a conventional two transistor current mirror is caused by the input transistor. The threshold voltage is the base emitter voltage of a bipolar input transistor, or the gate source threshold voltage of a field effect input transistor. The threshold voltage may be enlarged by using more than one input transistor arranged in series, or by supplying a reference voltage to the emitter or source of the input transistor. The threshold voltage may be defined with respect to a ground terminal (in case of a npn input transistor) or with respect to another supply terminal (in case of a pnp input transistor). The current mirror will be inactive if the voltage at the input terminal does not exceed the threshold voltage of the input of the current mirror. In this situation, the current mirror has a very high input impedance and the voltage at the input terminal is free to vary. The voltage sense circuit supplies a voltage level indication which has a value corresponding to the voltage at the input terminal. The current mirror will be active if the voltage at the input terminal exceeds the threshold voltage. Now, the voltage at the input of the current mirror will be substantially constant and consequently the voltage sense circuit cannot sense any voltage variations. The active current mirror mirrors the input current supplied to the input terminal to obtain an output current which has a fixed relation with the input current. EP-A-0585789 discloses a three terminal switched mode power supply integrated circuit with one terminal which accepts a combination of a feedback signal and a supply voltage to operate the chip. Inside the chip, a feedback extraction circuit separates the feedback signal from the power supply voltage by sensing the excess current flowing through a shunt regulator. The IC comprises an error amplifier which compares a tapped voltage on the terminal with a bandgap reference voltage. The output of the error amplifier drives a shunt transistor. As long as there is sufficient supply current being input to the terminal, the voltage on the terminal will be stabilized and any excess current will be shunted to ground. This excess current is mirrored and converted into an extracted feedback voltage. The error amplifier of the prior art senses the voltage at the terminal to stabilize this voltage at a desired value such that it can be used as a supply voltage for the IC. The value of the stabilized voltage has to be chosen above the threshold of the input of the current mirror to be able to measure an excess current at this stabilized voltage. So, the error amplifier is sensing the voltage at the terminal in a voltage range in which the current mirror is drawing current. Thus, in this voltage range, the current mirror has not a high input impedance. Consequently, the prior art circuit does not sense the voltage at the terminal within a certain range in which the current mirror is inactive (and the current mirror has a high input impedance) to supply a voltage level indication dependent on the sensed voltage in this range. To further elaborate on the difference between the prior art and the invention a practical application in a power supply will be described below. The prior art uses the same terminal of the IC to receive both the power supply voltage of the IC and a feedback information for regulating the power supply. The invention uses a same terminal to receive an input voltage from a winding of the power supply transformer via an impedance. As long as the input voltage at the input terminal is below the threshold voltage of the current mirror, the circuit according to the invention can detect whether the input voltage crosses a predetermined voltage level. This detection can be used to generate a demagnetization protection signal. Above the threshold value of the current mirror, the current mirror is active and supplies the output current which is a mirrored input current. The input current represents the feedback information. These and other aspects of the invention will be described and elucidated with reference to the accompanying drawings. In the drawings: Fig. 1 shows an integrated circuit comprising a voltage sensing circuit and a current mirror for sensing both a voltage and a current at one input terminal of the integrated circuit, Fig. 2 shows a power supply comprising an integrated circuit having one terminal to which a voltage sensing circuit and a current sensing circuit are coupled according to the invention, and Fig. 3 A - 3D show waveforms explaining the operation of the voltage and current sensing circuits. Fig. 1 shows an integrated circuit which comprises a voltage sensing circuit 2 and a current mirror 3 for sensing both a voltage level Vi and a current li at one input terminal T of the integrated circuit. The voltage sense circuit 2 has an input connected to the input terminal T and an output supplying a voltage level indication Vu. The current mirror 3 has an input connected to the input terminal T, a reference terminal connected to ground potential and an output supplying an output current Iu. The current mirror comprises an input transistor Tl with a drain connected to the input terminal T, a source connected to the reference terminal, and a gate connected to the drain of the input transistor Tl and to a gate of an output transistor T2. The output transistor T2 has an source connected to the reference terminal and a drain connected to the output of the current mirror. The input transistor Tl has a high impedance as long as the voltage on its drain and gate with respect to the source is lower than the threshold voltage Vth of the input transistor Tl . In this case, the current mirror 3 is inactive. Within this voltage range the voltage at the input terminal T can be measured with the voltage sense circuit 2. The voltage level indication Vu is a measure of the voltage on the input terminal T. The input transistor Tl of the current mirror starts conducting when the voltage on the input terminal reaches the threshold voltage Vth. The current mirror 3 becomes active and the output current Iu is a mirrored version of the input current li flowing into the input terminal T, because the voltage sensing circuit 2 has a high input impedance. The conductive input transistor Tl, which is arranged as a diode, stabilizes the input voltage Vi at the input terminal T on the value of the threshold voltage Vth. The voltage range in which the current mirror 3 is inactive and thus the voltage sense circuit 2 is able to sense the voltage Vi on the input terminal without being influence by the current mirror 3 , can be adapted by selecting the appropriate threshold voltage Vth of the input transistor Tl. This is easy if the transistor T3, T2 are field effect transistors as is shown in Fig. 1. It is also possible to connect the sources of the transistors Tl and T2 to a desired reference voltage. Although a current mirror 3 is shown with n-channel field effect transistors Tl , T2 and with a reference terminal connected to ground, it is also possible to use p-channel field effect transistors with their sources connected to a supply terminal. Also bipolar transistors can be used. Fig. 2 shows a switched mode power supply comprising an integrated circuit 1. The integrated circuit 1 comprises a voltage sense circuit 2. The voltage sense circuit 2 has a first input connected to an input terminal T of the integrated circuit 1 , a second input receiving a reference voltage Vref and an output supplying an output voltage Vu to a first input of a drive circuit 4. The integrated circuit 1 further comprises a current mirror 3 which has an input connected to the input terminal T, a reference terminal connected to ground, and an output supplying an output current Iu to a second input of the drive circuit 4. The current mirror 3 comprises an input transistor Tl with a collector connected to the input terminal T, an emitter connected to the reference terminal and a base connected to the collector of the input transistor Tl and to a base of an output transistor T2. The output transistor T2 has an emitter connected to the reference terminal and a collector connected to the second input the drive circuit 4. The drive circuit 4 has an output to supply control pulses Dr to a controllable switching device S which is arranged in series with a primary winding Wp of a transformer Tr. The series arrangement of the primary winding Wp and the controllable switching S device receives a DC input voltage Vdc. The DC input voltage Vdc may be a rectified mains voltage. The control pulses Dr periodically cause the controllable switching device S to have a low impedance and a high impedance. During the low impedance period a current through the primary winding Wp increases, during the high impedance period the energy in the primary winding Wp is transferred to a secondary winding Ws of the transformer Tr in order to supply power to a load Z. A series arrangement of a rectifying diode D2 and an smoothing capacitor C is connected across the secondary winding Ws to supply a rectified voltage Vo to the load Z which is connected in parallel to the smoothing capacitor C. Transformer Tr has a further winding Wf which supplies a feedback voltage Vf and which is connected via a resistor R to the terminal T of the integrated circuit 1. A diode Dl is connected between the terminal T and the reference terminal to prevent a too large negative voltage across the circuits in the integrated circuit 1. This diode D 1 is not relevant to the invention and need not be positioned in the integrated circuit 1. The drive circuit 4 comprises a control circuit 41 which receives the output current Iu to supply a drive signal to the controllable switching device S for alternatively switching on and off the controllable switching device S. The control circuit 41 controls a duty cycle or frequency of the drive signal in response to the output current Iu for stabilizing the feedback voltage Vf. The drive circuit 4 further comprises a demagnetization protection circuit 40 which receives the output voltage Vu to supply a demagnetization protection signal to the control circuit 41 for preventing switch on of the controllable switching device S as long as energy is transferred to the secondary winding Ws. A demagnetization protection per se is known from the Motorola Semiconductor technical data "High Flexibility Green SMPS Controller" MC44603. The operation of the switched mode power supply will be elucidated below with reference to the waveforms shown in Figs. 3 A - 3D. Fig. 3 A shows the feedback voltage Vf supplied by the further winding Wf. Fig. 3B shows the input voltage Vi on the input terminal T. Fig. 3C shows the output voltage Vu of the voltage sense circuit 2. Fig. 3D shows the output current Iu of the current mirror 3. At tO the controllable switching device S is conductive, the feedback voltage Vf and the input voltage Vi are negative. The input voltage Vi is limited at a value Vneg by a voltage limiting circuit which in this case is the diode Dl. At instant tl the controllable switching device S is controlled to become non-conductive, so that the feedback voltage Vf and the input voltage Vi increase in order to become positive. The input voltage Vi equals the threshold voltage Vth due to a conductive input transistor Tl of the current mirror 3 as long as the feedback voltage Vf exceeds this threshold voltage Vth. The output voltage Vu has a high level during the period t3-t4 that the input voltage Vi is higher than the reference voltage Vref. In an embodiment of the invention, the output voltage Vu is used to obtain the well known demagnetization protection for preventing activation of the controllable switching element S as long as energy is transferred to the secondary winding Ws. The output current Iu represents the current flowing through the resistor R in series with the further winding Wg during the period that the feedback voltage Vf is above the threshold voltage Vth. In an embodiment of the invention the output current Iu is used to stabilize the feedback voltage Vf and the therewith coupled rectified voltage Vo. The resistor R may be replaced by a suitable impedance. If transistors Tl and T2 are p-channel FETs, a value of the reference voltage Vref has to be selected below the threshold voltage Vth occurring at the input terminal T when the current mirror 3 is active. The reference terminal to which the emitters of the transistors Tl and T2 are connected may also be connected to a negative or positive reference voltage. In this way it is possible to select a desired threshold voltage Vth for determining when the current mirror 3 is inactive. According to the above, the invention can advantageously be used in an integrated controller IC of a switched mode power supply, whereby only a single terminal of the controller IC is needed to be able to detect a voltage information for the demagnetization protection and a current information to control the controllable switching device to stabilize output voltages. It may be clear that the voltage sense circuit 2 and the current mirror 3 according to the invention may also be used in other application where it is important to use one and the same terminal to measure a voltage and a current. While the invention has been described in connection with preferred embodiments, it will be understood that modifications thereof within the principles outlined above will be evident to those skilled in the art and thus the invention is not limited to the preferred embodiments but is intended to encompass such modifications. Any reference signs in the following claims shall not be construed as limiting the claims.

Claims: Claims: 1. A circuit for sensing both an input current (li) and an input voltage (Vi) at one input terminal (T) of an integrated circuit (1), the integrated circuit (1) comprising a voltage sense circuit (2) having an input coupled to the input terminal (T) to supply a voltage level indication (Vu), and a current mirror (3) having an input coupled to said input terminal (T) for receiving the input current (li), and an output for supplying an output current (Iu), the current mirror (3) being active if the input voltage (Vi) exceeds a threshold voltage (Vth), the voltage level indication (Vu) having a value corresponding to the voltage (Vi) at the input terminal (T) when the voltage (Vi) at the input terminal (T) does not exceed the threshold voltage (Vth). 2. A circuit for sensing both an input current (li) and an input voltage (Vi) at one input terminal (T) as claimed in claim 1 , characterized in that the voltage sense circuit (2) comprises a voltage comparator having an input coupled to the input terminal (T) for comparing the voltage (Vi) on the input terminal (T) with a reference value (Vref) to supply the voltage level indication (Vu) for indicating whether the voltage (Vi) on the input terminal (T) falls below or exceeds the reference level (Vref), wherein the reference value (Vref) is selected within a range determined by the threshold voltage (Vth) to compare the voltage (Vi) at the input terminal (T) when the voltage (Vi) at the input terminal (T) does not exceed the threshold voltage (Vth). 3. A circuit for sensing both an input current (li) and an input voltage (Vi) at one input terminal (T) as claimed in claim 1 , characterized in that the current mirror (3) comprises an input transistor (Tl) and an output transistor (T2), the input transistor (Tl) having a base and a collector being interconnected, and an emitter being coupled to a reference terminal, the base emitter junction providing the threshold voltage (Vth), the output transistor (T2) having a base being coupled to the base of the input transistor (Tl), an emitter being coupled to the reference terminal and a collector for supplying the mirrored output current (Iu). 4. A power supply comprising: a transformer (Tr) having a primary winding (Wp) and a further winding (Wf), a series arrangement of the primary winding (Wp) and a controllable switching device (S) being coupled to receive a DC input voltage (Vdc), an integrated controller circuit (1) having an output for supplying drive pulses to the controllable switching device (S), the integrated controller circuit (1) having an input terminal (T) being coupled to the further winding (Wf) via an impedance (R), the integrated circuit (1) comprising a voltage sense circuit (2) having an input coupled to the input terminal (T) to supply a voltage level indication (Vu), and a current mirror (3) having an input coupled to said input terminal (T) for receiving the input current (Ii), and an output for supplying an output current (Iu), the current mirror (3) being active if the input voltage (Vi) exceeds a threshold voltage (Vth), the voltage level indication (Vu) having a value corresponding to the voltage (Vi) at the input terminal (T) when the voltage (Vi) at the input terminal (T) does not exceed the threshold voltage (Vth). 5. A power supply as claimed in claim 4, characterized in that the integrated controller circuit (1) further comprises a control circuit (41) coupled to receive the output current (Iu) to control the drive pulses for stabilizing a feedback voltage (Vf) supplied by the further winding (Wf). 6. A power supply as claimed in claim 5, characterized in that the integrated controller circuit (1) further comprises a demagnetization protection circuit (40) coupled to receive the voltage level indication (Vu) for supplying a demagnetization protection signal to the control circuit (41) for preventing switch on of the controllable switching device (S) as long as energy is transferred from the primary winding (Wp) to the secondary winding Ws.

Inventors: BUTHKER HENRICUS CORNELIS JOHA, MARINUS ANTONIUS ADRIANUS MARI, PANSIER FRANS, BUTHKER, HENRICUS, CORNELIS, JOHANNES, MARINUS, ANTONIUS, ADRIANUS, MARIA, PANSIER, FRANS
Applicants: KONINKL PHILIPS ELECTRONICS NV, PHILIPS NORDEN AB, KONINKLIJKE PHILIPS ELECTRONICS N.V.
Application year: 1998
Main classification: G01R19
IPC codes: G01R19, G05F3