Background of the Invention
1. Field of the Invention
This invention relates to a logic circuit and more particularly to a three-level input logic circuit for receiving at its input terminal and processing a logic input having three different levels.
2. Description of the Prior Art
In an ordinary digital circuit, logic operation is carried out by using the combinations of binary quantities (e.g. high level and low level). Accordingly, if the external input applied to an input terminal is of analog quantity, the level of the input is forced to be processed by an analog-digital converter which converts an analog quantity to a binary quantity. This means that N input terminals can receive only 2.sup.N different combinations of the levels. A variety of such circuits as to provide multiple levels have already been proposed in the field of the art under consideration. For example, the specification of the U.S. Pat. No. 3,939,676 to Minoru Fujita, discloses a multi-level voltage circuit for liquid cell display device. In all the prior art propositions, however, only two levels are derived from an individual input. This also leads to the fact that N input terminals can only receive 2.sup.N different combinations of levels. Consequently, all the circuits hitherto proposed have a drawback from the standpoint of reducing the number of electrodes or contacts in a semiconductor integrated circuit.
In case the external input is derived from, for example, a mechanical switch, three states (i.e. a power source level, an open level and a ground level) can be easily realized. It is therefore required to provide an input circuit for conducting the three levels into a logic system.
Summary of the Invention
The object of this invention is to provide a three-level input logic circuit which can deliver three logic outputs corresponding to the three input levels received through a single input terminal.
According to this invention, a first level, a second level and an open level are used as three input levels through a single input terminal. Three logic levels can be detected as outputs corresponding to the first, second and open levels by detecting the open level as an output logic state.
According to this invention, N input terminals can produce 3.sup.N different combinations of levels. If this invention is applied to IC's, the number of outerleads or input/output terminals to be used can be decreased with a considerable merit of improvement in integration density.
Brief Description of the Drawing
FIG. 1 shows a logic circuit as an embodiment of this invention;
FIG. 2 is a timing chart useful in explaining the operation of the logic circuit in FIG. 1.
FIG. 3 shows an example of a logic combination circuit.
FIG. 4 is a timing chart useful in explaining the operation of the circuit in FIG. 3.
FIG. 5 shows an example of a temporary storage circuit.
Description of the Preferred Embodiment
FIG. 1 shows a logic circuit as an embodiment of this invention, the configuration of which is as follows. A dash-line rectangular box 1 indicates means for generating an external input V.sub.in having three levels, in which a mechanical switch SW is provided between a power source V.sub.DD and the ground GND so that V.sub.DD level, GND level or OPEN level may be produced according as the movable contact of the switch SW is on the stationary contact S.sub.1, S.sub.3 or S.sub.2 of the switch SW. Between the power source V.sub.DD and the ground GND are connected in series an insulated gate field effect transistor (hereafter referred to simply as FET) M.sub.1 which turns conductive on the arrival of a first clock pulse signal .phi..sub.1 and a FET M.sub.2 which has the same conductivity type of channel as FET M.sub.1 and turns conductive on the arrival of a second clock pulse signal .phi..sub.2 out of phase from the first clock pulse signal .phi..sub.1. The external input V.sub.in is applied to the junction point of the FET's M.sub.1 and M.sub.2. Moreover, to the junction point are coupled two temporary storage circuits 2 and 3 which perform its storage operation in synchronism with the clock pulse signals .phi..sub.1 and .phi..sub.2. The temporary storage circuit 2(3) consists of three inverters L.sub.1, L.sub.2 and L.sub.3 (L'.sub.1, L'.sub.2 and L'.sub.3), FET M.sub.3 (M'.sub.3) which turns conductive when receiving the clock pulse .phi..sub.1 (.phi..sub.2) and FET M.sub.4 (M'.sub.4) which turns conductive when receiving a clock pulse .phi..sub.1 (.phi..sub.2) opposite in phase to the clock pulse .phi..sub.1 (.phi..sub.2).
The operation of the temporary storage circuit is as follows.
On the arrival of the clock pulse .phi..sub.1 (.phi..sub.2), the output of the inverter L.sub.3 (L'.sub.3) is interrupted so that the input is directly taken out as an input through the inverters L.sub.1 (L'.sub.1) and L.sub.2 (L'.sub.2). On the other hand, on the arrival of the clock pulse .phi..sub.1 (.phi..sub.2), the output of the inverter L.sub.1 (L'.sub.1) serving as an input gate is interrupted so that the content of the storage circuit is held.
According to this invention, the temporary storage circuits 2 and 3 are so designed as to deliver outputs Q.sub.1 and Q.sub.2 each having two levels. The following description of operation will make clear how the object of this invention is attained.
FIG. 2 is a timing chart for explaining the circuit shown in FIG. 1 and the operation of the logic circuit will be explained below with the aid of FIGS. 1 and 2. In the following description, it is assumed that the V.sub.DD level of the power source is "1" while the ground GND level is "0" (positive logic is employed throughout the specification). It is also assumed that the levels GND, V.sub.DD and OPEN of the input V.sub.in are applied by changing over the switch SW in the order mentioned above, as seen from the timing chart in FIG. 2, that the clock pulse signals .phi..sub.1 and .phi..sub.2 are applied in such a manner that each pulse of the signal .phi..sub.1 never occurs simultaneously with each pulse of the signal .phi..sub.2, and that the impedances of the FET's M.sub.1 and M.sub.2 are so high as not to affect the applied level of the input V.sub.in.
(1) When V.sub.in is at GND level, the level "0" appears at point E irrespective of whether the clock pulse .phi..sub.1 or .phi..sub.2 is applied or not since the impedances of the FET's M.sub.1 and M.sub.2 are very high. Accordingly, the outputs Q.sub.1 and Q.sub.2 of the temporary storage circuits 2 and 3 are both "0".
(2) When V.sub.in is at V.sub.DD level, the application of the clock pulse .phi..sub.1 or .phi..sub.2 has no influence upon the level of the input V.sub.in. Accordingly, the level "1" appears at the point E and therefore at the output terminals Q.sub.1 and Q.sub.2 of the temporary storage circuits 2 and 3.
(3) When V.sub.in is at OPEN level, the logic circuit according to this invention exhibits an especially remarkable feature. Namely, in this case, the operation of the FET M.sub.1 or M.sub.2 is decisive of the outputs of the logic circuit, that is, the level "1" appears at the point E when the clock pulse .phi..sub.1 is applied to the gate of the FET M.sub.1 while the level "0" appears at the point E when the clock pulse .phi..sub.2 is applied to the gate of the FET M.sub.2. As a result of the operation of the temporary storage circuits, the level "1" appears as the output Q.sub.1 of the circuit 2, on the application of the clock pulse .phi..sub.1 while the level "0" appears as the output Q.sub.2 of the circuit 3, on the application of the clock pulse .phi..sub.2.
As apparent from the above description of the operation, according to this invention, three different combinations of the outputs Q.sub.1 and Q.sub.2 can be produced in accordance with the three levels of the input.
FIG. 3 shows an example of a circuit for obtaining three outputs by logically combining the three combinations. The logic combination circuit in FIG. 3 consists of an exclusive-OR circuit L.sub.4 receiving as its two inputs the outputs Q.sub.1 and Q.sub.2 of the temporary circuits, an AND circuit L.sub.5 receiving as its two inputs the outputs Q.sub.1 and Q.sub.2, and a NOR circuit L.sub.6 receiving as its two inputs the outputs of the exclusive-OR circuit L.sub.4 and the AND circuit L.sub.5. The outputs of the logic circuits L.sub.4, L.sub.6 and L.sub.5 are used as the three outputs A, B and C above mentioned.
FIG. 4 is a timing chart for explaining the operation of the circuit shown in FIG. 3. Namely, as seen from the timing chart, when the external input V.sub.in is at GND level, only the output B of the NOR circuit L.sub.6 is "1" and the outputs A and C of the circuits L.sub.4 and L.sub.5 are "0". When V.sub.in is at V.sub.DD level, only the output C of the AND circuit L.sub.5 is "1" and the other outputs A and B are "0". When V.sub.in is at OPEN level, only the output A of the exclusive-OR circuit L.sub.4 is "1" and the other outputs B and C are "0".
As apparent from the above description, according to this invention, three different digital signals can be generated by the provision of a single input terminal so that three states can be controlled by the single input terminal. This means that N input terminals will produce 3.sup.N different outputs and therefore that if this invention is applied to an IC, the integration density can be improved since the number of outerleads or terminal conductors can be decreased in comparison with the conventional circuit configuration in which N input terminals produces 2.sup.N different outputs.
This invention is by no means limited to the above described embodiments but permits of numerous variations.
For example, the temporary storage circuits 2 and 3 are not limited to those configurations shown in FIG. 1, but may be replaced by any circuit means that perform the same function. A latch circuit may be used as such a temporary storage circuit, in which the inverter L.sub.1 is complementary type clock inverter consisting of p-channel FET's M.sub.p1 and M.sub.p2 and n-channel FET's M.sub.n1 and M.sub.n2 connected in series between the power source and the ground, the FET's M.sub.p1 and M.sub.n2 receiving in common the input E, the FET's M.sub.p2 and M.sub.n1 receiving clock pulses .phi..sub.1 and .phi..sub.1, respectively, and the junction point of the FET's M.sub.p2 and M.sub.n1 serving as an output terminal, while the inverter L.sub.3 is a complementary type clock inverter having the same structure (M.sub.p3, M.sub.p4, M.sub.n3 and M.sub.n4), as shown in FIG. 5. It should be here noted that clock pulses .phi..sub.1 and .phi..sub.1 are applied to FET's M.sub.n3 and M.sub.p4, respectively. The latch circuit has an advantage of smaller power consumption in addition to the effect enjoyed by the circuit 2 or 3 in FIG. 1.
Moreover, in the above description of the embodiment of this invention, a mechanical switch is used as the means for producing the external input having three levels, but the mechanical switch may also be replaced by any means having the same function.
Furthermore, the logic combination circuit for obtaining three outputs, shown in FIG. 3 is nothing but an embodiment and may be replaced by any equivalent circuit.
In the above embodiments, FET's are used as switching means, but bipolar transistors may equally be used as such. Moreover, the conductivity of the element may be changed with the polarity of the power source changed (e.g. for a negative power source).
This invention can thus be used widely as a three-level input logic circuit .