Technical Field of Invention
The present invention relates generally to electronic circuits and more particularly to a threshold detector circuit and method wherein the circuit is powered by the input signal to the circuit.
Background Art
Circuits for detecting when a signal has reached a predetermined threshold are well known in the art. Typically, a reference voltage is produced which is compared with the input signal by a comparator circuit. When the input signal increases to a value equal to the magnitude of the reference voltage, the output of the comparator circuit changes state.
In many applications, especially when the principal source of power is a battery, it is desirable to reduce current consumption to a minimum. A principal disadvantage of prior art threshold detector circuits is that a large amount of power is typically consumed. In addition, circuitry for producing a voltage reference which is stable over temperature, together with a separate comparator circuit, is relatively complex.
The present invention overcomes the above-noted limitations of the prior art circuits. Power consumption is very low and is almost negligible when the input signal, typically a digital signal, is in a low state. Moreover, the entire circuit may be powered by the input signal, even though such signal may be produced by a source having limited current drive capabilities, such as the output of a logic gate. In addition, many of the functions provided by a separate voltage reference and comparator can be combined so as to minimize parts count yet provide threshold voltage stability over temperature. The subject invention is further advantageous in that it can be readily implemented in integrated circuit form.
These and other advantages of the present invention will become apparent to those skilled in the art upon a reading of the following Best Mode for Carrying Out the Invention together with the drawings.
Disclosure of the Invention
A threshold detector circuit and method for providing an output signal indicative of the relative magnitude of an input signal with respect to a predetermined threshold value as disclosed. The circuit includes a reference stage switchable from a first to a second state when an input to the stage exceeds a predetermined reference value. The reference stage, and preferably the entire circuit, is powered substantially exclusively by the detector input signal and does not require a separate power source.
The detector further includes an input stage for coupling the detector input to the reference stage. The input stage preferably provides a signal path which includes the collector and emitter conduction path of a transistor which is saturated when the input signal approaches the predetermined threshold.
A sensing circuit is provided for determining the state of the reference circuit and for producing the detector output signal indicative of such state. In one embodiment, the sensing circuit is a PNP transistor, with the emitter coupled to the input signal and the base coupled to the reference circuit stage.
The reference stage is preferably implemented to provide a reference value having a low temperature coefficient. A pair of transistors are configured to provide a reference value which is equal to the sum of two approximately equal voltages, with the first voltage having a positive temperature coefficient and the second voltage having a negative temperature coefficient. The transistors are operated at differing current densities so that the first voltage can be derived from the difference between the base-to-emitter voltages of the two transistors, with such difference voltage having a positive temperature coefficient. The base-to-emitter voltage of the high current density transistor, which has a negative temperature coefficient, is used as the second voltage.
Brief Description of the Drawings
The drawings depict a schematic circuit diagram of a preferred embodiment of the subject invention.
Best Mode for Carrying Out the Invention
Referring now to the drawings, a schematic circuit diagram of a preferred embodiment of the subject invention may be seen. The circuit can be implemented in integrated form using well known manufacturing processes. The input terminal 10 of the threshold detector is connected to the emitter of a multiple-collector PNP transistor Q.sub.1. The collector regions of Q.sub.1 are such that the total collector current is split equally between the collectors.
One collector of Q.sub.1 is connected to the base of the transistor and also to the drain of an N channel JFET F.sub.1. The source and gate of transistor F.sub.1 are connected to a circuit common 12. Under normal operating voltages, the drain voltage is less than the pinchoff voltage so that transistor F.sub.1 can be considered equivalent to a resistor of approximately 10 megohms.
The remaining collector of Q.sub.1 is connected to the base of a transistor Q.sub.2 through a resistor R.sub.1. The collector of Q.sub.2 is connected to the junction between Q.sub.1 and F.sub.1 and the emitter is connected to common terminal 12 by way of a Zener diode Z.sub.1. At normal operating voltages, Z.sub.1 never is in an avalanche mode and can be considered equivalent to a small capacitor C.sub.1 having a capacitance of 50 pF.
The base of transistor Q.sub.2 is also connected to the collector of a second NPN transistor Q.sub.3, with the emitter of Q.sub.3 being connected to common terminal 12. The base of transistor Q.sub.3 is connected to the base of another NPN transistor Q.sub.4. The emitter of Q.sub.4 is connected to the circuit common and the collector is connected to the base of the transistor. Transistors Q.sub.3 and Q.sub.4 function together as a current mirror. The geometry of the devices is the same so that collector current flow through the transistors will be substantially equal when in the active state.
The collector of Q.sub.4 is also connected to the collector of a PNP transistor Q.sub.5, with the emitter of Q.sub.5 being connected to input terminal 10. The base of Q.sub.5 is connected to the base of an output PNP transistor Q.sub.10. The emitter of output transistor Q.sub.10 is connected to the input terminal 10 and the collector is connected to the circuit output terminal 14. The collector is also coupled to the common terminal 12 by way of a series-connected load resistors R.sub.5 and R.sub.6. Transistors Q.sub.5 and Q.sub.10 function together as a current mirror.
A pair of NPN transistors Q.sub.8 and Q.sub.9 are included, having their respective bases connected together and to the base of transistor Q.sub.2. The emitter of transistor Q.sub.8 is connected to common terminal 12 through series-connected resistors R.sub.2 and R.sub.4 and to the emitter of Q.sub.2. The emitter of transistor Q.sub.9 is connected to the emitter of Q.sub.8 through a resistor R.sub.3. As will be described late in greater detail, transistor Q.sub.9 has four times the emitter area of transistor Q.sub.8 so that the two transistors will operate at different predetermined current densities.
The collector of transistor Q.sub.8 is connected to the collector of a PNP transistor Q.sub.6 and to the bases of transistors Q.sub.5 an Q.sub.10. The emitter of transistor Q.sub.6 is connected to input terminal 10 and the base is connected to the base of another PNP transistor Q.sub.7. The emitter of Q.sub.7 is also connected to input terminal 10 and the base and collector of Q.sub.7 are both connected to the collector of Q.sub.9.
Transistors Q.sub.6 and Q.sub.7 are configured to operate as a current mirror and have equal emitter areas. For reasons to be subsequently explained, the emitter areas are relatively large in comparison to the other PNP transistors of the circuit so that the base-to-emitter voltage of transistor Q.sub.7 will be minimized.
Another NPN transistor Q.sub.11 is included having its emitter connected to circuit common 12 and the collector connected to the junction of resistors R.sub.2 and R.sub.4. The base of Q.sub.11 is connected to the junction of output resistors R.sub.5 and R.sub.6. Transistor Q.sub.11 provides a threshold hysteresis, as will be subsequently described.
Having described the construction of the subject detector, a description will now be given of the operation of the circuit. The input V.sub.in applied to terminal 10 is typically the output of a gate or other circuit having limited drive capability and is switchable between a low voltage state of approximately +0.10 volts and a high voltage state of approximately +4.5-5.5 volts. The subject detector is implemented to detect the point at which V.sub.in reaches a predetermined threshold voltage for positive-going transistions. No power source other than the input signal V.sub.in is required.
When V.sub.in is a few tenths of a volt, none of the various transistors of the subject circuit are conducting; therefore, the circuit draws a negligible amount of current in the this state. As the input voltage increases, transistor Q.sub.1 begins to turn on. FET F.sub.1, which acts as a very high impedance resistor, sets up a current flow through one collector of Q.sub.1, with the current being mirrored in the remaining collector.
Transistor Q.sub.1 provides base drive to transistor Q.sub.2 through resistor R.sub.1, with the resistor having a resistance of 24 kohm. Ignoring, for the time being, the capacitive effect of Zener Z.sub.1 (capacitor C.sub.1), the current flowing out of the emitter of Q.sub.2 will flow through resistors R.sub.2 and R.sub.4. The collector current through Q.sub.2 is drawn from one of the collectors of Q.sub.1, thereby causing the other collector of Q.sub.1 to provide further base drive current for Q.sub.2. Accordingly, transistors Q.sub.1 and Q.sub.2 form a positive feedback current loop which decreases the turn-on time of the circuit.
The base-emitter voltage of Q.sub.2 is applied to the base-emitter junction of transistor Q.sub.8 so that the two devices form a current mirror. Transistor Q.sub.8 thus proceeds to turn on, as does transistor Q.sub.9. Collector current of Q.sub.9 is drawn through the base-emitter diode formed from transistor Q.sub.7. The voltage developed across the base-emitter junction of transistor Q.sub.7 causes equal current flow through Q.sub.6.
Base drive to transistors Q.sub.2, Q.sub.8 and Q.sub.9 is provided by signal V.sub.in by way of transistor Q.sub.1 and resistor R.sub.1. Transistor Q.sub.1 is saturated; therefore the voltage applied to the bases of Q.sub.2, Q.sub.8 and Q.sub.9 is equal to the V.sub.in, less the saturation voltage of Q.sub.1 and the small voltage drop across R.sub.1 which totals roughly 130 millivolts.
When V.sub.in is less than the threshold voltage, the collector current of transistor Q.sub.8 is less than the current which transistor Q.sub.6 is capable of providing. Accordingly, transistor Q.sub.6 is saturated and the collector of transistor Q.sub.8 is pulled up to almost at V.sub.in, thereby causing transistors Q.sub.5 and Q.sub.10 to remain turned off.
As V.sub.in increases, the base voltages of Q.sub.8 and Q.sub.9 increases and the collector currents through the two transistors approach equality. As V.sub.in approaches the threshold voltage, transistor Q.sub.8 is capable of sinking all of the current provided by Q.sub.6 so that Q.sub.6 will go out of saturation. Current flow through transistors Q.sub.2, Q.sub.8 and Q.sub.9 will then be substantially equal.
Transistor Q.sub.9 has four times the emitter area of transistor Q.sub.8 ; therefore, the current density through transistor Q.sub.8 will be four times that of Q.sub.9. As is well known, such a difference in current density will produce a difference base-emitter voltage, .DELTA.V.sub.BE, which is dropped across resistor R.sub.3. At 300.degree. K., .DELTA.V.sub.BE is equal to 36 millivolts for a current density ratio of four-to-one.
The value of resistor R.sub.3 determines the equilibrium current flow through the various transistors of the subject circuit when input signal V.sub.in is near or above the threshold voltage. Assuming that R.sub.3 has a value of 12 Kohm, the collector current I of Q.sub.9 will be 3 .mu.A, ignoring base current. The collector current of Q.sub.8 will also be equal to I because of the current mirror configuration of transistors Q.sub.6 and Q.sub.7. The collector current of transistor Q.sub.2 will also be equal to I since transistors Q.sub.2 and Q.sub.8 are configured as a current mirror.
The collector currents of Q.sub.2, Q.sub.8 and Q.sub.9 flow through series-connected resistors R.sub.2 and R.sub.4. Thus, the total current through the resistors is 3I and, assuming the total resistance of R.sub.2 and R.sub.4 is 84 Kohm, the voltage at the emitter of Q.sub.8 is [3(R.sub.2 +R.sub.4)/R.sub.3 ].DELTA.V.sub.BE or 756 millivolts. The bases of transistors Q.sub.8 and Q.sub.9 are equal to 756 millivolts plus V.sub.BE of transistor Q.sub.8, or approximately 1.40 volts. The voltage developed across resistors R.sub.2 and R.sub.4 is proportional to the .DELTA.V.sub.BE which, as is well known, has a temperature coefficient opposite to that of V.sub.BE. When the total voltage is equal to the band gap voltage of silicon (about 1.2 volts), the temperature coefficient of the two components are equal and opposite so that a reference voltage will be produced at the bases of Q.sub.8 and Q.sub.9 which is relatively independent of temperature.
As V.sub.in slightly increases further, transistor Q.sub.8 will be capable of sinking more current than transistor Q.sub.6 can provide. As a result, the collector voltage of Q.sub.8 will drop causing transistors Q.sub.5 and Q.sub.10 to begin to turn on. As transistor Q.sub.10 turns on, the output V.sub.0 of the threshold detector at terminal 14 goes high. Transistors Q.sub.8 and Q.sub.9 form part of a voltage reference stage, with the stage being in a first state when transistor Q.sub.5 and Q.sub.10 are on and a second state when the transistors are off. Collector current of Q.sub.5 will produce a voltage across the base-emitter diode of Q.sub.4 causing Q.sub.3 to turn on. Transistor Q.sub.3 will turn on until it is conducting the same amount of collector current as transistor Q.sub.2, namely I, because of the current mirror function provided by transistor Q.sub.1. Accordingly, at equilibrium, the current flow through transistors Q.sub.2, Q.sub.3, Q.sub.4, Q.sub.8, Q.sub.9 and Q.sub.10 will all be equal to I, giving a total current consumption of 6I or about 18 .mu.A, independent of V.sub.in. It can be seen that a negative feedback loop is formed from collector to base of transistor Q.sub.8. The collector of transistor Q.sub.8 directly drives the base of transistor Q.sub.5, which will conduct a current equal to that flowing in transistor Q.sub.10, and the current in transistor Q.sub.5 will flow in transistor Q.sub.4. This current is mirrored in transistor Q.sub.3 which is directly connected to the base of transistor Q.sub.8. This negative feedback loop will stabilize the operation of transistor Q.sub.8 and is operative when V.sub.in is above the threshold level.
When transistor Q.sub.10 has turned on, a voltage is developed across resistor R.sub.6 which turns on transistor Q.sub.11. Q.sub.11 reduces the voltage across resistor R.sub.4 to the saturation voltage of the transistor, thereby lowering the reference voltage and, therefore, the circuit input threshold voltage. This hysteresis prevents the output V.sub.0 from toggling as a result of noise superimposed on input V.sub.in when the input is near the threshold voltage. Resistor R.sub.4 will typically have a value of 22 Kohm and R.sub.2 a value of 62 Kohm so that the threshold voltage will be reduced by approximately 200 millivolts once output V.sub.0 goes high.
Capacitor C.sub.1 appears as a short circuit during initial turn on, thereby providing a low impedance current path for the emitter current of Q.sub.2. This serves to increase the response time of the subject circuit. The same results could be achieved by reducing the values of resistors R.sub.2, R.sub.3 and R.sub.4, but the result would be substantially increased power consumption.
The threshold voltage of the circuit is equal to the reference voltage at the input to the voltage reference stage (the bases of transistors Q.sub.2, Q.sub.8 and Q.sub.9) when the reference stage is in the second state, plus the saturation voltage of transistor Q.sub.1, together with the drop across resistor R.sub.1. As previously noted, the reference voltage is essentially independent of temperature. The voltage drop across resistor R.sub.1 is approximately 70 millivolts and the saturation voltage of Q.sub.1 is approximately 50 millivolts. Although the Q.sub.1 saturation voltage has a non-zero temperature coefficient, the total contribution to the threshold voltage is sufficiently small such that variations in the threshold with temperature are not significant for most applications.
As input V.sub.in increases further, the total circuit current consumption will remain relatively constant. Transistor Q.sub.1 will go out of saturation, with the difference between V.sub.in and the threshold voltage being dropped across the transistor. As previously noted, transistor Q.sub.7, and thus transistor Q.sub.6, have a relatively large emitter area so as to reduce the voltage drop across Q.sub.7. This ensures that the drop across transistor Q.sub.1 and resistor R.sub.1 will be sufficiently large in comparison to the drop across transistor Q.sub.7 such that the transistor Q.sub.9 will never become saturated.
Thus, a novel threshold detector circuit powered by the input signal and method have been disclosed. Although a preferred embodiment has been described in some detail, it is to be understood that various changes can be made by persons skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.