Comparator

Abstract: A comparator comprises transistors to turn on/off an input terminal and a control circuit to enable the transistors in a high impedance input state. The high impedance input state can be detected by the above construction without additionally providing any wire and connector.

Description: BACKGROUND OF THE INVENTION Field of the Invention The invention relates to a comparator. Related Background Art Fig. 3 shows an example of a circuit of a conventional comparator. V 3 denotes a reference voltage source; I 7 indicates a constant current source; Q 21 to Q 25 transistors; and R 1 and R 2 resistors. A circuit which is constructed by the constant current source I 7 and the transistors Q 21 to Q 24 is a simple comparator. An input terminal IN and the resistor R 2 are connected to a base of the transistor Q 21 and a base of the transistor Q 25 through wires and connectors from another electronic circuit board, respectively. The operation of the comparator of Fig. 3 will now be described hereinbelow. In the case where the input terminal IN and the resistor R 2 are respectively connected to the above transistors Q 21 and Q 25 , the transistor Q 25 is turned off and the circuit operates as an ordinary comparator. When the terminal IN and the resistor R 2 are not connected, an output of the comparator is an output in a state in which a high level signal has been applied to an input. In this state, if a problem logically occurs, the transistor Q 25 connected by the resistor R 1 is set into a saturation state by a power source V cc , thereby fixing a base potential of the transistor Q 21 to a low level and satisfying the logic. The conventional comparator, however, has the following technical problems to be solved. (1) Since the wires or connectors must be added to know the coupling state, the costs rise. (2) Since the wires or connectors are needed to know the coupling state in addition to a purpose of the input of the comparator, it is impossible to know the coupling states of both of them. If then a disconnection to each wire or a damage of the connector occurs, the normal operation cannot be performed and there is a fear of malfunction. SUMMARY OF THE INVENTION It is an object of the invention to provide a comparator which can solve the foregoing problems. According to the present invention this object is achieved by a comparator for turning on/off an input terminal, comprising a first constant current source; a differential amplifier connected to said first constant current source; a first current mirror circuit connected to said differential amplifier; second and third current mirror circuits connected to both sides of said differential amplifier and said first current mirror circuit, respectively; said first, second and third current mirror circuits comprising transistors; and second and third constant current sources connected to both sides of said second and third current mirror circuits, respectively; said second current mirror circuit and said second constant current source constituting a control circuit to enable the transistor of said second current mirror circuit connected to said differential amplifier in a high impedance input state. According to the invention, the high impedance input state can be detected by the above construction without additionally providing any wire and connector. The advantages of the invention will become apparent and obvious to those skilled in the pertinent art upon referring to the following description provided in connection with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a circuit diagram of a comparator according to an embodiment of the invention; Fig. 2 is a circuit diagram of a comparator according to another embodiment of the invention; and Fig. 3 is a circuit diagram of a conventional comparator. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Fig. 1 is a circuit constructional diagram showing most preferably a feature of the invention. In Fig. 1, V 1 denotes a reference voltage source; I 1 to I 3 indicate constant current sources; and Q 1 to Q 10 indicate transistors. A circuit which is constructed by the constant current source I 2 and the transistors Q 4 to Q 7 is a comparator. Current mirror circuits are constructed by the transistors Q 2 and Q 3 and the transistors Q 8 and Q 9 . The constant current source I 1 and the transistor Q 1 supply a constant current to the current mirror circuit. The constant current source I 3 and the transistor Q 10 supply a constant current to the current mirror circuit. It is now assumed that the transistors Q 1 , Q 4 , Q 5 , and Q 10 are equal PNP transistors and that the transistors Q 2 , Q 3 , Q 8 , and Q 9 are equal NPN transistors. There are the relations of I 1 = I 3 and I 1 > I 2 among the constant current sources I 1 to I 3 . The operation of the comparator of Fig. 1 will now be described hereinbelow. In the case where some input exists at the input terminal IN which is connected to a base of the transistor Q 4 , a collector of the transistor Q 3 pulls in a current which is equivalent to a base current of the transistor Q 1 from the base of the transistor Q 4 and the terminal IN. At this time, the circuit operates as an ordinary comparator. The operation in a disconnected state of the input terminal IN, which is a problem in the conventional comparator, in the case of the embodiment will now be described. When no input exists at the input terminal IN, the collector of the transistor Q 3 tries to pull in all of the currents which are equivalent to the base current of the transistor Q 1 , from the base of the transistor Q 4 . Since the relation between the constant current sources I 1 and I 2 is now set to I 1 > I 2 , the base current of the transistor Q 1 = the collector current of the transistor Q 3 and the collector current of the transistor Q 3 > the base current of the transistor Q 4 , so that the transistor Q 3 is set into the saturating state. A base potential of the transistor Q 4 , therefore, is determined by a voltage between the collector and the emitter of the transistor Q 3 and is fixed to a low level. Fig. 2 is a circuit constructional diagram showing another embodiment of the invention. In Fig. 2, V 2 denotes a reference voltage source; I 4 to I 6 constant current sources; and Q 11 to Q 20 transistors. A circuit which is constructed by the constant current source I 5 and the transistors Q 14 to Q 17 is a comparator. Current mirror circuits are constructed by the transistors Q 12 and Q 13 and the transistors Q 18 and Q 19 . The constant current source I 4 and the transistor Q 11 function as a constant current source which is supplied to the current mirror circuit. The constant current source I 6 and the transistor Q 20 function as a constant current source which is supplied to the current mirror circuit. It is now assumed that the transistors Q 11 , Q 14 , Q 15 , and Q 20 are equal NPN transistors and that the transistors Q 12 , Q 13 , Q 18 , and Q 19 are equal PNP transistors. There are the relations of I 4 = I 6 and I 4 > I 5 among the constant current sources I 4 to I 6 . The operation of the comparator of Fig. 2 will now be described hereinbelow. In the case where some input exists at the input terminal IN which is connected to a base of the transistor Q 14 , a collector of the transistor Q 13 supplies a current which is equivalent to a base current of the transistor Q 11 to the base of the transistor Q 14 and the terminal IN. At this time, the circuit operates as an ordinary comparator. In the case where no input exists at the input terminal IN, which becomes a problem in the conventional comparator, the collector of the transistor Q 13 tries to supply all of the currents equivalent of the base current of the transistor Q 11 to the base of the transistor Q 14 . Since the relation between the constant current sources I 4 and I 5 is set to I 4 > I 5 , the base current of the transistor Q 11 = the collector current of the transistor Q 3 and the collector current of the transistor Q 3 the base current of the transistor Q 14 , so that the transistor Q 13 is set into the saturating state. Therefore, the base potential of the transistor Q 14 is determined by the voltage between the collector and the emitter of the transistor Q 13 and is fixed to a high level. As described above, according to the embodiments, since none of the wires and connectors is additionally needed, the input disconnection state can be certainly known without increasing the costs.

Claims: A comparator for turning on/off an input terminal (IN), comprising a first constant current source (I 2 ; I 5 ); a differential amplifier (Q 4 , Q 5 ; Q 14 , Q 15 ) connected to said first constant current source (I 2 ; I 5 ); a first current mirror circuit (Q 6 , Q 7 ; Q 16 , Q 17 ) connected to said differential amplifier (Q 4 , Q 5 ; Q 14 , Q 15 ); second and third current mirror circuits (Q 2 , Q 3 , Q 8 , Q 9 ; Q 12 , Q 13 , Q 18 , Q 19 ) connected to both sides of said differential amplifier (Q 4 , Q 5 ; Q 14 , Q 15 ) and said first current mirror circuit (Q 6 , Q 7 ; Q 16 , Q 17 ), respectively; said first, second and third current mirror circuits (Q 6 , Q 7 , Q 2 , Q 3 , Q 8 , Q 9 ;Q 16 , Q 17 , Q 12 , Q 13 , Q 18 , Q 19 ) comprising transistors; and second and third constant current sources (I 1 , Q 1 , I 3 , Q 10 ; I 4 , Q 11 , I 6 , Q 20 ) connected to both sides of said second and third current mirror circuits (Q 2 , Q 3 , Q 8 , Q 9 ; Q 12 , Q 13 , Q 18 , Q 19 ), respectively; said second current mirror circuit (Q 2 , Q 3 ; Q 12 , Q 13 ), and said second constant current source (I 1 , Q 1 ; I 4 , Q 11 ) constituting a control circuit (Q 1 , Q 2 , Q 3 , I 1 ; Q 11 , Q 12 , Q 13 , I 4 ) to enable the transistor of said second current mirror circuit (Q 2 , Q 3 , Q 12 , Q 13 ) connected to said differential amplifier (Q 4 , Q 5 ; Q 14 , Q 15 ) in a high impedance input state. A comparator according to claim 1, wherein said differential amplifier (Q 4 , Q 5 ; Q 14 , Q 15 ) comprises a pair of transistors (Q 4 , Q 5 ; Q 14 , Q 15 ) connected to said input terminal (IN) to which an input signal is supplied and to an output terminal (OUT) for supplying an output signal, a base of one (Q 4 ; Q 14 ) of said pair of transistors (Q 4 , Q 5 ; Q 14 , Q 15 ) being connected to said input terminal IN and a collector of the other (Q 5 ; Q 15 ) of said pair of transistors (Q 4 , Q 5 ; Q 14 , Q 15 ) being connected to said output terminal (OUT); and said control circuit (Q 1 , Q 2 , Q 3 , I 1 ; Q 11 , Q 12 , Q 13 , I 4 ) is connected to said input terminal (IN) for controlling a potential of said input terminal (IN) responsive to a high impedance condition of said input terminal (IN); said third current mirror circuit (Q 8 , Q 9 ; Q 18 , Q 19 ), and said third constant current source (I 3 , Q 10 ; I 6 , Q 20 ) constituting a further control circuit (Q 8 , Q 9 , Q 10 , I 3 ; Q 18 , Q 19 , Q 20 , I 6 ) being identical with said control circuit (Q 1 , Q 2 , Q 3 , I 1 ; Q 11 , Q 12 , Q 13 , I 4 ), and being connected to said other (Q 5 ; Q 15 ) of said pair of transistors (Q 4 , Q 5 ; Q 14 , Q 15 ) connected to said output terminal (OUT). A comparator according to claim 1 or 2, wherein each of said second and third constant current sources (I 1 , Q 1 , I 3 , Q 10 ; I 4 , Q 11 , I 6 , Q 20 ) comprises a current source (I 1 , I 3 ; I 4 , I 6 ) and a further transistor (Q 1 , Q 10 ; Q 11 , Q 20 ) for supplying a current to said second and third current mirror circuit (Q 2 , Q 3 , Q 8 , Q 9 ; Q 12 , Q 13 , Q 18 , Q 19) , respectively.

Inventors: MATSUNO YASUSHI, MATSUNO, YASUSHI, Matsuno, Yasushi, c/o Canon Kabushiki Kaisha
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1991
Main classification: G01R19
IPC codes: H03K5, G01R19