一个挖ital system is basically a binary world. One where the language is restricted to 1s and 0s. Therefore, to make the best of these 1s and Os, logic gates form the foundation to build a digital system that we know today. Hence, if you are keen on understanding digital electronics, you must be clear with the basicboolean logic.

This article is all about logic gates and their types. It aims to be a stepping stone for all the digital electronics enthusiasts who are embarking on their learning journey. Some of the common examples of the application of digital logic gates arehalf adder, full adder, 和flip flops.

What are digital logic gates?

Digital logic gates are simply a string of transistors working together to solve basic boolean functions. A logic gate is considered as a device that has the ability to produce one output level with the combinations of input levels. Logic 1 represents high, and logic 0 represents low.Here various combinations of binary mathematical functions are applied to show the true state of a digital system.

Working of Logic Gates

The reason for which the computers are capable of performing complex operations is due to the interconnection of these logic gates. Logic gates are implemented by using transistors, diodes,relays, optics, and molecules or even by several mechanical elements. Due to this reason, the logic gates can also be considered electronic circuits. The logic gates can be built up in a wide variety of forms such as large-scale integrated circuits (LSI), very large-scale integrated circuits (VLSI), and also in small-scale integrated circuits (SSI). Here the inputs and output of all the gates of integrated devices can be accessed and also the external connections are made available to them just like discrete logic gates.

两个逻辑级别

逻辑门的输入和输出分为两个级别,称为高和低,或true和fals,或开和关,或简单的1和1。一个表列出了输入变量的组合和相应的输出变量,称为“真相表”。它解释了逻辑电路输出如何响应输入处逻辑级别的各种组合。在这里,我们遵循级别的逻辑,其中电压级别表示为逻辑1和逻辑0。级别逻辑分为两种类型,例如正逻辑或负逻辑。

In the positive logic system, the higher of the two voltage levels are represented as 1, and the lower of the two voltage levels are represented as 0. But in the negative logic system, the higher of the two voltage levels are represented as 0 and the lower of the two voltage levels are represented as 1. While considering the transistor-transistor logic (TTL), the lower state is assumed to be zero volts (0V), and the higher state is considered as five volts positive (+5V).

数字逻辑门的类型是什么?

There are mainly 7 types of logic gates that are used in expressions. By combining them in different ways, you will be able to implement all types of digital components. Let’s dig deep into each of the basic logic gates and their operation.

There are seven basic types of logic gates:

和门

An AND gate requires two or more inputs and produces only one output. The AND gate produces an output of logic 1 state when each of the inputs are at logic 1 state and also produces an output of logic 0 state even if any of its inputs are at logic 0 state. The symbol for AND operation is ‘.’, or we use no symbol for representing. If the inputs are of X and Y, then the output can be expressed as Z=XY. The AND gate is so named because, if 0 is called “false” and 1 is called “true,” the gate performs in the same way as the logical “and” operator. The AND gate is also named as all or nothing gate. The logic symbols and truth tables of two-input and three-input AND gates are given below.

2 Input AND Gate - Truth Table
2输入与门,真值表
3 Input AND Gate -Truth Table
3 Input AND Gate – Truth Table

Discrete AND gates may be realized by using diodes or transistors. The inputs represented as X and Y may be either 0V or +5V correspondingly. The output is represented by Z . In the diode of AND gate, when both the inputs are of same value, X=+5V and Y= +5V, then the diodes are in OFF condition. As a result, no current flows through the resistor and there will not be any voltage drop across the resistor. Here the output will be Z=+5V. Similarly, when both the inputs such as X and Y are equal to 0V, then the corresponding diodes such as either D1 or D2 or both the diodes are at ON state and act as short circuits. Here the output will be Z corresponds to 0V. In practical cases the output z corresponds to 0.6V or 0.7V, which is treated as logic 0 state.

2 Input Diode AND Gate
2 Input Diode AND Gate
2-Input Transistor AND Gate
2-Input Transistor AND Gate

在晶体管和栅极的情况下,当输入x,y = 0v或x = 0v和y = +5v或x = +5v和y = 0v时,晶体管q1和q2均处于OFF状态。同时,晶体管Q3通过电阻R3从供应中获得足够的基本驱动,因此晶体管Q3将开始。从而输出电压z = vCE(星期六)对应于0V。When both the inputs are equal to +5V, the transistors Q1 and Q2 will be ON and therefore the voltage at the collector of transistor Q1 will drop. Due to this the transistor Q3 doesn’t get enough base drive and turns OFF. As a result no current flows through the collector resistor of Q3 and , thereby no voltage drop across it. So the final output voltage corresponds to +5V. The truth table for this gate circuit is shown below:

Discrete AND Gate Truth Table
Discrete AND Gate Truth Table

Applications of AND gate

One of the most commonapplications of AND gate是作为电路中的启用门。作为一个启用门,栅极允许数据通过通道进行处理,例如在频率测量脉冲波形的电路中。在这里,已知频率的门控脉冲充当输入和门的输入,而第二个输入对应于已知的频率脉冲。比较它们两个,仅允许未知的频率通过门。输出充当频率计数器电路的时钟输入。

OR GATE

Similar to AND gate, an OR gate may also have two or more inputs but produce only one output. The OR gate produces an output of logic 1 state even if any of its inputs is in logic 1 state and also produces an output of logic 0 state if any of its inputs is in logic 0 state. The symbol for OR operation is ‘+’. If the inputs are of X and Y, then the output can be represented as Z=X+Y. An OR gate may also be defined as a device whose output is 1, even if one of its input is 1. OR gate is also called as any or all gate. It is also called as an inclusive OR gate because it consists of the condition of ‘both the inputs can be present’. The logic symbols and truth table for two-input and three-input OR gates are given below.

2 Input OR Gate - Truth Table
2 Input OR Gate – Truth Table
3输入或门 - 真相表
3 Input OR Gate – Truth Table

Discrete OR gates may be realized by using diodes or transistors. The inputs represented as X and Y may be either 0V or +5V correspondingly. The output is represented by Z . In the diode of OR gate, when both the inputs are of same value, X=0V and Y= 0V, then both the diodes are in OFF condition. As a result, no current flows through the resistor and there will not be any voltage drop across the resistor. Here the output will be Z=0V. Similarly, when both the inputs or either the inputs such as X and Y are equal to +5V, then the corresponding diodes either D1 or D2 or both the diodes are at ON state and act as short circuits. Here the output will be Z corresponds to +5V. In practical cases the output Z corresponds to +5V-diode drop = +5V – 0.7V = +4.3V, which is regarded as Logic 1 state.

2 Input Diode OR Gate
2 Input Diode OR Gate
2-Input Transistor OR Gate
2-Input Transistor OR Gate

In the case of transistor OR gate, when the inputs X=0V and Y = 0V both the transistors Q1 and Q2 are at OFF state. At the same time, Transistor Q3 gets enough base drive from the supply +5V through Resistor R3 and so transistor Q3 will be ON. Thereby the output voltage Z= VCE(星期六)对应于0V。When either the inputs X and Y or both the inputs are equal to +5V, then the corresponding transistors either Q1 or Q2 will be ON or both the transistors Q1 and Q2 will be ON and therefore the voltage at the collector of transistor Q1 is VCE(sat)对应于0V。由于这个原因,晶体管Q3并没有将基本发射极连接点偏置并关闭。因此,最终输出电压对应于 +5V(逻辑1状态)。该门电路的真实表如下:

Discrete OR Gate Truth Table
Discrete OR Gate Truth Table

Applications of OR GATE

OR gate is used in circuits in which the occurrence of one or more than one event is to be detected. One common example of this can be a temperature detector in an industrial unit.

NOT GATE

The NOT gate is also called an inverter, simply because it changes the input to its opposite. The NOT gate is having only one input and one corresponding output. It is a device whose output is always the complement of the given input. That means the NOT gate produces an output of logic 1 state when the input is of logic 0 state and also produces the output of logic 0 states when the input is of logic 1 state. The NOT operation is denoted by ’-‘(bar). When the input variable to the NOT gate is represented by ‘X’ and the output is represented by ‘Z’. In the NOT operation it can be read as ‘Z is equal to X bar’. The logic symbol and truth table are given below:

不是门 - 真相表
NOT Gate – Truth Table

Discrete NOT gate may be realized by using transistors. The inputs represented as X may be either 0V or +5V correspondingly. The output is represented by Z. When the input X = 0V, then the transistor Q1 will be reverse biased and therefore it remains OFF. As a result no current flows through the resistor and thereby there will not be any voltage drop across the resistor. As a result, the output voltage Z corresponds to +5V. When the input X= +5V, transistor Q1 is ON and the output voltage Z=VCE(星期六)对应于0V。The truth table for the NOT gate is given below:

晶体管逆变器而不是门
晶体管逆变器而不是门
晶体管逆变器而不是门- Truth Table
晶体管逆变器而不是门– Truth Table

非门的应用

Since NOT gates invert the input signal, and consume low power, these are used as an inverter within certain circuits. One common application of this kind of inverter is in square wave oscillators that usually produce clock input.

NAND GATE

The NAND and NOR gates are the universal gates. Each of these gates can realize the logic circuits single-handedly. The NAND and NOR are also called universal building blocks. Both NAND and NOR have the ability to perform three basic logic functions like AND, OR, and NOT. NAND gate is a combination of an AND gate and a NOT gate. The expression for the NAND gate is ‘—‘whole bar. The output of the NAND gate is at logic 0 level only when each of the inputs assumes a logic 1 level. The truth table of the two-input NAND gate is given below:

2 Input NAND Gate -Truth Table
2 Input NAND Gate -Truth Table

A Discrete two-input NAND gate is as shown in the figure. The two inputs are represented by X and Y. The output is represented by Z . When the input X and Y= +5V, then both the diodes D1 and D2 are OFF. The transistor Q1 gets enough base drive from the supply through resistor and therefore transistor Q1 is ON and the output Z=VCE(星期六)对应于0V。Similarly when inputs either x=0V or Y=0V or when both inputs are equal to 0V, at that time the transistor Q1 is OFF and therefore, output voltage Z= +5V. The truth table is given below:

离散的NAND门
离散的NAND门
离散的NAND门-Truth表
离散的NAND门-Truth表

Applications of NAND Gate

与非门被称为通用门,可以found in many circuits. Most common of the lot are burglar alarms, and alarms.

也不是门

也不意味着没有或。这意味着,或非门combination of an OR gate and a NOT gate. The output is logic 1 level, only when each of its inputs assumes a logic 0 level. For any other combination of inputs, the output is a logic 0 level. The truth table of two-input NOR gate is given below:

2 Input NOR Gate - Truth Table
2 Input NOR Gate – Truth Table
3输入和门-Truth表
3输入和门-Truth表

离散的两输入和门如图所示。表示为X和Y的输入可能相应地为0V。结果,晶体管Q1和Q2关闭,因此没有电流流过电阻,因此在电阻器上不会有任何电压降。在这里,输出电压z对应于 +5V。当输入x = +5V或y = +5V或两个输入对应于 +5V时,相应的晶体管q1or q2或q1和q2都打开。因此,输出电压z = vCE(星期六)corresponds to ground and equal to 0V. The truth table for the NOR gate is given below:

Discrete NOR Gate
Discrete NOR Gate
Discrete NOR Gate - Truth Table
Discrete NOR Gate – Truth Table

Applications of NOR Gate

就像Nand Gate一样,也可以使用门来构建其他所有逻辑门,因此这两个被称为Universal Gate。常见应用之一是在加法器和减法器电路等组合电路中。

EXCLUSIVE-OR GATE (X-OR) GATE

An X-OR gate is a two-input, one output logic circuit. X-OR gate assumes a logic 1 state when any of its two inputs assumes a logic 1 state. When both the inputs assume the logic 0 state or when both the inputs assume the logic 1 state, the output assumes a logic 0 state. The output of the X-OR gate will be the sum of the modulo sum of its inputs. X-OR gate is also termed an anti-coincidence gate or inequality detector. An X-OR gate can also be used as an inverter by connecting one of the two input terminals to logic1 and also by inputting the sequence to be inverted to the other terminal.

X-OR Gate - Truth Table
X-or Gate - 真相表

Applications of X-OR gate

The simplest application of X-OR gate is to create arithmetic operations circuit or as a parity checker. They can also be used in controlled inverter circuits as well.

独家 - 诺(X-NOR)门

An X-NOR gate is a combination of an X-OR gate and a NOT gate. The X-NOR gate is also a two-input, one output concept. The output of the X-NOR gate will be logic 1 state when both the inputs assume a 0 state or when both the inputs assume a 1 state. The output of the X-NOR gate will be logic 0 state when one of the inputs assumes a 0 state and the other a 1 state. It is also named a coincidence gate, because its output will be 1 only when the inputs coincide. X-NOR gate can also be used as an inverter by connecting one of the two input terminals to logic 0 and also by inputting the sequence to be inverted to the other terminal.

X-NOR Gate - Truth-Table
X-NOR Gate – Truth-Table

Applications Of X NOR Logic Gates

Similar to X-OR logic gates, the X-NOR gates can also be seen in even and odd parity detector circuits and encryption circuits.

In a Nutshell

现在,您已经熟悉逻辑门的概念并了解它们的基本功能和真相表,您必须能够在各种数字系统中识别它们。每个逻辑门为数字电路添加了一个特定值。

Author

12评论

  1. 阿桑

    A’BC+B’CD+C’AD+(AB xor D)
    could u give me the circuit design & and truth table as soon as possible plz……

  2. chowdesh

    respected,
    sir,
    我想在我的家中构建新的太阳能产品以供家用电器,然后我要求用静态电路图向我发送产品材料评级,我将等待您的答案。

    ur’s
    website visitor.

Baidu