Field of the Invention
The present invention relates to a comparator circuit which is applied to, for example, a photo detector of an optical remote controller and used for obtaining a pulse output through comparison of an input voltage with a threshold voltage.
Background of the Invention
In a photo detector of an optical remote controller, a comparator circuit is used for reproducing an original pulse signal from an analog signal made by demodulating an output from a photo detector element.
An example of a conventional type of comparator circuit equipped with a differential amplifier is shown in FIG. 4.
The differential amplifier 1 is composed of a pair of n-p-n transistors Q.sub.1, Q.sub.2 identical in properties and a first constant current source 2 connected to the emitters of both thereof.
The base of the aforementioned n-p-n transistor Q.sub.1 has applied thereto a reference voltage Va for comparison. It is so arranged that this reference voltage Va is determined by the sum of the voltage across a resistor R.sub.1 and the voltage across a second constant current source 3. The voltage across the aforementioned second constant current source 3 is kept constant and equal to the sum of another reference voltage V.sub.ref and the base-to-emitter voltage V.sub.BE3 of an n-p-n transistor Q.sub.3.
Meanwhile, the voltage across the resistor R.sub.1 varies according to the current I.sub.3 equal in amperage to the collector current I.sub.3 which flows via a current mirror circuit 4.
That is, the reference voltage Va applied to the base of the n-p-n transistor Q.sub.1 is varied according to the operating status of the differential amplifier 1 so that the comparator circuit has a hysteresis property.
An input terminal 5 is connected to the base of the n-p-n transistor Q.sub.2 so that an input voltage VIN is applied thereto. The collector of the n-p-n transistor Q.sub.2 is connected to the comparator's output terminal 6 via a p-n-p transistor Q.sub.6 and an n-p-n transistor Q.sub.7 so that an output voltage V.sub.OUT is obtained.
Hence, by the use of this comparator circuit, it is possible to obtain from the comparator's output terminal 6 an output voltage V.sub.OUT corresponding to the original pulse signal by applying the analog signal of the demodulated output from the photo detector element to the input terminal 5 as the input voltage V.sub.IN.
Such a conventional comparator circuit, however, has a problem in that the input impedance of the input terminal is not sufficiently high.
That is, although the input impedance can be raised if the current I.sub.1 is reduced, it is, however, impossible to sizably reduce the current I.sub.1. For, if the current I.sub.1 is reduced, a collector current I.sub.3 of the n-p-n transistor Q.sub.1 for setting the reference voltage Va is also reduced. Also, if the current I.sub.1 is reduced, a collector current I.sub.4 of the n-p-n transistor Q.sub.2 to drive the n-p-n transistor Q.sub.7 of the output circuit is reduced. Hence, actually, it is difficult to sizably raise the input impedance only by reducing the current amperage I.sub.1 of the first constant current source 2.
Summary of the Invention
It is a primary object of the present invention to provide a comparator circuit which enables the direct inputting of an input voltage, without the use a buffer or the like, by raising an input impedance to thereby simplify the circuit as a whole and widen the scope of application therefor.
Another object of the present invention is to provide a comparator circuit capable of preventing occurrence of impulses in the output pulses by precluding operation of the output circuit alone before any change of the threshold voltage has taken place for a hysteresis property to be imparted to the comparator circuit.
In order to accomplish the above objects, the present invention provides for obtaining a pulse output from the output terminal of a differential amplifier through a transistor in its output circuit by applying a threshold voltage to either input terminal of a differential amplifier composed of a pair of transistors and then comparing an input voltage applied to the other input terminal therewith, wherein the aforementioned pair of transistors of the differential amplifier are composed of two transistors connected in a complex manner, and the output terminal of the differential amplifier connected to the transistor in the aforementioned output circuit and the power source are connected through a resistor.
The complex-connected transistors constituting the aforementioned differential amplifier may be configured wherein the base of a p-n-p transistor and the collector of an n-p-n transistor, and the collector of the p-n-p transistor and the emitter of the n-p-n transistor are connected respectively.
The complex-connected transistors may also be configured wherein two transistors are darlington-connected.
Brief Description of the Drawings
The present invention will become more fully understood from the detailed description given hereinbelow and the accompanying drawings which are given by way of illustration only, and thus, are not limitative of the present invention, and wherein:
FIG. 1 is circuit diagram showing a comparator circuit of the present invention;
FIG. 2 is a graph showing the hysteresis property of the comparator circuit;
FIG. 3(a) is a time chart showing a normal hysteresis behavior;
FIG. 3(b) is a time chart showing an erroneous operation which may occur when a resistor for current supply is not connected to the output terminal of a differential amplifier;
FIG. 3(c) is a time chart showing the operation when a resistor for power supply is connected to the output terminal of the differential amplifier for preventing erroneous operation; and
FIG. 4 is a circuit diagram showing a conventional comparator circuit; and
FIG. 5 is a circuit diagram of a standard darlington configured transistor pair connectable in the circuit diagram of FIG. 1 in an alternate embodiment of the present invention.
Description of the Embodiments
An embodiment of the present invention is described below with reference being made to FIGS. 1 through 3. In these figures, parts and components having like functions to those shown in the prior art described above are referred to by like symbols.
A differential amplifier 11 used in a comparator circuit is composed of a pair of transistors and the first constant current source 2.
A first pair of transistors constitute a p-n-p transistor Q.sub.11 and an n-p-n transistor Q.sub.12 complex-connected. That is, the collector of the n-p-n transistor Q.sub.12 is directly connected with the base of the p-n-p transistor Q.sub.11, while the emitter of the n-p-n transistor Q.sub.12 is connected with the collector of the p-n-p transistor Q.sub.11. When the p-n-p transistor Q.sub.11 and the n-p-n transistor Q.sub.12 are thus complex-connected, the resulting complex-connected circuit as a whole acts like a single n-p-n transistor.
The other pair of transistors constitute likewise a p-n-p transistor Q.sub.21 and an n-p-n transistor Q.sub.22 complex-connected. With the aforementioned each pair of transistors, the paired p-n-p transistors Q.sub.11, Q.sub.21 and n-p-n transistors Q.sub.12 Q.sub.22 are of similar properties respectively.
In the aforementioned pair of transistors, the emitters of the n-p-n transistors Q.sub.12, Q.sub.22 and the collectors of the p-n-p transistors Q.sub.11, Q.sub.21 are mutually connected, in common to the first constant current source 2.
The base of the n-p-n transistor Q.sub.12 in one pair of transistors is connected to one end of the resistor R.sub.1 and the collector of the p-n-p transistor Q.sub.4. The other end of the aforementioned resistor R.sub.1 is connected with the second constant current source 3 and the emitter of the n-p-n transistor Q.sub.3. The collector of the n-p-n transistor Q.sub.3 is connected to a power source Vcc, while its base is connected to a reference power source V.sub.ref.
The aforementioned p-n-p transistor Q.sub.4 constitutes a current mirror circuit 4 with the p-n-p transistor Q.sub.5, and the emitters thereof are connected to the power source Vcc through resistors R.sub.2, R.sub.3 respectively. The common base of the current mirror circuit 4 and the collector of the p-n-p transistor Q.sub.5 are connected to the emitter of the p-n-p transistor Q.sub.11.
The base of the n-p-n transistor Q.sub.22 of the other pair has the input terminal 5 connected thereto and the input voltage V.sub.IN can be applied thereto.
The emitter of the p-n-p transistor Q.sub.21 of the other pair serves as the output terminal of the differential amplifier 11. The emitter of this p-n-p transistor Q.sub.21 is connected to the base of the p-n-p transistor Q.sub.6, which constitutes the output circuit, and also to the power source Vcc through a resistor for current supply R.sub.11. This resistor for current supply R.sub.11 is for directly supplying the output current from the power source Vcc to the emitter of the p-n-p transistor Q.sub.21.
The p-n-p transistor Q.sub.6 has its emitter connected to the power source Vcc, while its collector is grounded (GND) through resistors R.sub.4, R.sub.5 connected in series. The juncture between these resistors R.sub.4 and R.sub.5 is connected to the base of the n-p-n transistor Q.sub.7.
The n-p-n transistor Q.sub.7 has its collector connected to the power source Vcc through a resistor R.sub.6 and its emitter grounded (GND). Between the collector of the n-p-n transistor Q.sub.7 and the resistor R.sub.6 there is connected the comparator's output terminal 6 for outputting the output voltage V.sub.OUT.
Now, the mode of operation of the comparator circuit of the composition described above is explained, and first described are the individual pairs of transistors complex-connected in the differential amplifier 11.
As mentioned above, each pair of transistors is designed to act as a single n-p-n transistor. Assuming, therefore, that the current amplification factor of the p-n-p transistor Q.sub.11 is h.sub.fe (pnp) and that of the n-p-n transistor Q.sub.12 is h.sub.fe (npn), the current amplification factor h.sub.fe (npn-pnp) for these transistors assumed as a single n-p-n transistor is represented by the following equation (1).
That is, this pair of transistors is, compared with the conventional individual n-p-n transistor Q.sub.1, Q.sub.2 shown in FIG. 4, multiplied by [h.sub.fe (pnp)-1] times in current amplification factor. This means that the input impedance of this pair of transistors is also [h.sub.fe (pnp)-1] times higher than that of the conventional counterpart.
The same is true with other pair of transistors. Hence, this embodiment can provide a comparator circuit of a high input impedance with the input impedance of the differential amplifier 11 increased.
Since, however, the mode of operation of each pair of transistors itself can be deemed as that of a single n-p-n transistor, the comparator circuit of this embodiment acts in exactly the same manner as the conventional comparator circuit shown in FIG. 4, except that it is subject to the influence of the resistor for current supply R.sub.11 connected to the emitter of the p-n-p transistor Q.sub.21.
Then, the mode of operation of the comparator circuit except for that under the influence of the resistor for power supply R.sub.11 is described below.
The reference voltage Va applied to the base of the n-p-n transistor Q.sub.12 is as represented by the following equation (2), when the base-to-emitter voltage of the n-p-n transistor Q.sub.3 is taken as V.sub.BE3 and the current supplied from the current mirror circuit 4 as I.sub.3.
When the input voltage V.sub.IN applied to the input terminal 5 is lower than this reference voltage Va, the current I.sub.3 becomes substantially equal in magnitude to the current I.sub.1 of the first constant current source 2 due to the operation of the differential amplifier 11. Hence, the reference voltage Va.sub.H is represented by the following equation (3).
When the input voltage V.sub.IN is higher than than the reference voltage Va, the output current I.sub.4 flowing to the emitter of the p-n-p transistor Q.sub.21 becomes to be substantially equal in magnitude to the current I.sub.1 due to the operation of the differential amplifier 11 and the current I.sub.3 almost ceases to flow. Hence, the reference voltage Va.sub.L is here represented by the following equation (4).
Thus, the reference voltage Va shifts between the high-level reference voltage Va.sub.H and the low-level reference voltage Va.sub.L according to the output status of the differential amplifier 11.
The hysteresis property of the output current I.sub.4 versus the input voltage V.sub.IN in the differential amplifier 11 is described below with reference being made to FIG. 2.
First, in the state of the output current I.sub.4 scarcely flowing, the p-n-p transistor Q.sub.6 and the n-p-n transistor Q.sub.7 are both made OFF, hence the output voltage V.sub.OUT of the comparator's output terminal 6 goes to the high-level equal to the voltage level of the power source Vcc.
When, in this state, the input voltage V.sub.IN is raised, the output current I.sub.4 remains scarcely flowing while the input voltage V.sub.IN remains in a low range (See A in FIG. 2). Then, as the input voltage V.sub.IN approaches the high-level reference voltage Va.sub.H, the output current I.sub.4 starts increasing gradually due to the so-called linear behavior of the differential amplifier 11.
As the input voltage V.sub.IN is further raised, when it has reached the high-level threshold voltage V.sub.THL a little below the reference voltage Va.sub.H, this reference voltage Va.sub.H is changed to the low-level reference voltage Va.sub.L with simultaneous sudden increase of the output current I.sub.4 (See B in FIG. 2). The output current I.sub.4 is saturated when it has become substantially equal in magnitude to the current I.sub.1 of the first constant current source 2.
In this state, the p-n-p transistor Q.sub.6 and n-p-n transistor Q.sub.7 both switch ON and the output voltage V.sub.OUT comes down to the low level equal to the voltage level of GND (grounding).
Then, from this state the input voltage V.sub.IN is lowered (See C in FIG. 2). As this input voltage V.sub.IN approaches the low-level reference voltage Va.sub.L, the current I.sub.3 flowing to the emitter of the p-n-p transistor Q.sub.11 starts increasing gradually in magnitude due to the linear behavior of the differential amplifier 11 and the output current I.sub.4 decreases gradually and accordingly. As the input voltage V.sub.IN is lowered further still, this reference voltage Va.sub.L changes to the high-level reference voltage Va.sub.H when the input voltage V.sub.IN has reached the low-level threshold voltage V.sub.TLH a little above the reference voltage Va.sub.L, and the output current I.sub.4 is decreased simultaneously and suddenly in magnitude (See D in FIG. 2.). The output current I.sub.4 is decreased to the zero-level.
In this status, the p-n-p transistor Q.sub.6 and n-p-n transistor Q.sub.7 of the output circuit are both OFF with the output voltage V.sub.OUT restored to the high-level equal to the voltage level of the power source Vcc.
This hysteresis property is shown in FIG. 3(a) in terms of relationship between the input and output voltages V.sub.IN and V.sub.OUT.
First, when the input voltage V.sub.IN is low, the output voltage V.sub.OUT is at the high-level equal to the voltage level of the power source Vcc. When the input voltage V.sub.IN increases to be in excess of the high-level threshold voltage V.sub.THL, the output voltage V.sub.OUT turns down to the low GND level. Then, even if the input voltage V.sub.IN should somewhat drop below the high-level threshold voltage V.sub.THL, the output voltage V.sub.OUT is kept in the low range unless the input voltage V.sub.IN should drop below the low-level threshold voltage V.sub.TLH. When the input voltage V.sub.IN continues lowering to be below the low-level threshold voltage V.sub.TLH, the output voltage V.sub.OUT turns up to be restored to the high level equal to the voltage level of the power source Vcc.
This hysteresis property prevents the output voltage V.sub.OUT from being affected by the delicate fluctuation of the input voltage V.sub.IN in the vicinity of the threshold voltage V.sub.T.
Now, the mode of operation enabled by the use of the resistor for current supply R.sub.11 is described.
When the resistor for current supply R.sub.11 is not connected between the emitter of the p-n-p transistor Q.sub.21 and the power source Vcc and these are left "open", impulses are caused in the pulses of the output voltage V.sub.OUT.
That is, as the input voltage V.sub.IN rises to approach the high-level threshold voltage V.sub.THL, the output current I.sub.4 starts flowing gradually due to the linear behavior, within a narrow range in the vicinity of the high-level threshold voltage V.sub.THL. When the resistor for current supply R.sub.11 is not utilized, however, this output current I.sub.4 is supplied from the base of the p-n-p transistor Q.sub.6.
Therefore, the p-n-p transistor Q.sub.6 and the n-p-n transistor Q.sub.7 are both made active before the high level reference voltage Va.sub.H, that is, the threshold voltage V.sub.THL is changed, the output voltage V.sub.OUT turns to the low level and resultant malfunction of the output circuit is caused. If, in this state, the input voltage V.sub.IN should begin turning down without exceeding the threshold voltage V.sub.THL, the output voltage V.sub.OUT immediately switches and is restored to the high-level.
Such malfunction of the output circuit can occur also when the input voltage V.sub.IN, is having once exceeded the high-level threshold voltage V.sub.THL, is again turned down to be in the vicinity of the low-level threshold voltage V.sub.TLH. Moreover, when, as in this embodiment, the differential amplifier 11 is composed of complex-connected pairs of transistors, the current amplification factor is increased, and the possibility of occurrence of such malfunctions can be quite high. In such cases, impulses are bound to take place in the pulses of the output voltage V.sub.OUT each time the input voltage V.sub.IN undergoes changes as described above.
In the comparator circuit of this embodiment, however, the emitter of the p-n-p transistor Q.sub.21 and the power source Vcc are connected via the resistor for current supply R.sub.11, hence, as is apparent from FIG. 3(c), there is no risk of impulses occurring in the pulses of the output voltage V.sub.OUT. That is, even if the input voltage V.sub.IN should rise to be in the vicinity of the high-level threshold voltage V.sub.THL, the output current I.sub.4, having started flowing gradually, can be supplied through this resistor R.sub.11.
Hence, until the input voltage V.sub.IN has exceeded the high-level threshold voltage V.sub.THL and this threshold voltage V.sub.THL has changed to the low-level counterpart V.sub.TLH, there is no risk of the p-n-p transistor Q.sub.6 being made active. Malfunction of the output circuit can, therefore, be prevented without fail even if the input voltage V.sub.IN should undergo a change similar to what is shown in FIG. 3(b) and there is no risk of impulses occurring in the pulses of the output voltage V.sub.OUT as shown in FIG. 3(c).
It is noted that between the threshold voltage applied to either input terminal of the differential amplifier and the threshold voltage at which the differential amplifier responds there actually exists some difference.
As described above in detail, the present invention is for obtaining a pulse output from the output terminal of a differential amplifier through a transistor in its output circuit by applying a threshold voltage to either input terminal of a differential amplifier composed of a pair of transistors and then comparing an input voltage applied to the other input terminal therewith, wherein the aforementioned pair of transistors of the differential amplifier are composed of each two transistors connected in a complex manner, and the output terminal of the differential amplifier connected to the transistor in the aforementioned output circuit and the power source are connected through a resistor.
The complex-connected transistors may also be configured wherein two transistors are darlington-connected. A standard darlington configured transistor pair is shown in FIG. 5 with the corresponding leads a, b, and c connectable in the circuit of FIG. 1 as shown. Two sets of the darlington configured transistor pairs would be connectable in the circuit of FIG. 1 for transistors Q.sub.11, Q.sub.12 and Q.sub.21, Q.sub.22.
By any of the methods described above it is possible to obtain a comparator circuit which enables direct input of an input voltage, without the use of a buffer or the like to thereby simplify the circuit as a whole and to widen its scope of application, and to furthermore prevent occurrence of impulses in the output pulses by ensuring against operation of the output circuit alone before change of the threshold voltage has taken place for a hysteresis property to be imparted to the comparator circuit.