Module 13 - Introduction to Number Systems and Logic
Navy Electricity and Electronics Training Series (NEETS)
Chapter 2:  Pages 2-11 through 2-20

Module 13 − Introduction to Number Systems and Logic

Pages i, 1−1, 1−11, 1−21, 1−31, 1−41, 1−51, 1−61, 2−12−11, 2−21, 2−31, 3−1, 3−11, 3−21, 3−31, 3−41, Index

 

 

also goes High and remains High until both inputs are again Low. At T5, both X and Y go High causing f to go High.

 

OR gate input and output signals - RF Cafe

Figure 2-8. - OR gate input and output signals.

 

TRUTH TABLE

 

Using the inputs X and Y, let's construct a Truth Table for the OR gate. You can see from the discussion of figure 2-8 that there are four combinations of inputs. List each of these combinations of inputs and the respective outputs and you have the Truth Table for the OR gate.

 

Truth Table - RF Cafe

 

When writing or stating the Boolean expression for an OR gate with more than two inputs, simply place the OR sign (+) between each input and read or state the sign as OR. For example, the Boolean expression for an OR gate with the inputs of A, B, C, and D would be:

 

    f = A+B+C+D

 

This expression is spoken "f equals a OR B OR C OR D."

 

You can substitute the complements for the original statements as we did with the and gate or use negative logic; but for an output from an OR gate, at least one of the inputs must be TRUE.

 

 

2-11

Q10.   Write the Boolean expression for an OR gate having G, K, and L as inputs.

 

Q11.   How many input combinations are possible using G, K, and L?

 

Q12.   How many of those combinations will produce a High output?

 

The INVERTER

 

The INVERTER, often referred to as a NOT gate, is a logic device that has an output opposite of the input. It is sometimes called a NEGATOR. It may be used alone or in combination with other logic devices to fulfill equipment requirements.

 

When an inverter is used alone, it is represented by the symbol shown in figure 2-9 (view A). It will more often be seen in conjunction with the symbol for an amplifier (view B). Symbols for inverters used in combination with other devices will be shown later in the chapter.

 

Inverter: A. Symbol for inverter used alone; B. Symbol for an amplifier/inverter - RF Cafe

Figure 2-9. - Inverter: A. Symbol for inverter used alone; B. Symbol for an amplifier/inverter.

 

Let's go back to the statement "Today is payday." We stated that P represents the TRUE state. If we apply P to the input of the inverter as shown in figure 2-10, then the output will be the opposite of the input. The output, in this case, is P . At times T0  through T2, P is Low. Consequently, the output ( P ) is High. At T2, P goes High and as a result P goes Low. P remains Low as long as P is High and vice versa. The Boolean expression for the output of this gate is f = P.

 

 

2-12

 

 

Inverter input and resultant output - RF Cafe

Figure 2-10. - Inverter input and resultant output.

 

You will recall that P is the complement of P. The Truth Table for an inverter is shown below.

 

Truth Table for an inverter - RF Cafe

 

The output of an inverter will be the complement of the input. The following examples show various inputs to inverters and the resulting outputs:

 

Various inputs to inverters and the resulting outputs - RF Cafe

 

The vinculum, or NOT sign, is placed over the entire output or removed from the output, depending on the input.  If we applied a B C to an inverter, the output would be Equation - RF Cafe . And if we ran that output through another inverter, the output would be a B C

 

 

2-13

Q13.   What is the complement of XYZ?

 

Q14.   The input to an inverter is Equation - RF Cafe.  What is the output

 

Q15.   In a properly functioning circuit, can both the input and output of an inverter be High at the same time?

 

The Nand GATE

 

The Nand gate is another logic device commonly found in digital equipment. This gate is simply an and gate with an inverter (NOT gate) at the output.

 

LOGIC SYMBOL

 

The logic symbol for the Nand gate is shown in figure 2-11.

 

NAND gate - RF Cafe

Figure 2-11. - Nand gate.

 

The Nand gate can have two or more inputs. The output will be Low only when all the inputs are High. Conversely, the output will be High when any or all of the inputs are Low.

 

The Nand gate performs two functions, and and NOT. Separating the Nand symbol to show these two functions would reveal the equivalent circuits depicted in figure 2-12. This should help you better understand how the Nand gate functions.

 

NAND gate equivalent circuit: A. Either X or Y or both are Low; B. Both X and Y are High - RF Cafe

Figure 2-12. - Nand gate equivalent circuit: A. Either X or Y or both are Low; B. Both X and Y are High.

 

 

2-14

Inputs X and Y are applied to the and gate. If either X or Y or both are Low (view A), then the output of the and gate is Low. a Low (logic 0) on the input of the inverter results in a High (logic 1) output. When both X and Y are High (view B), the output of the and gate is High; thus the output of the inverter is Low. The Boolean expression for the output of a Nand gate with these inputs is f = XY . The expression is spoken "X and Y quantity NOT." The output of any Nand gate is the negation of the input. For example, if our inputs are X and Y , the output will be  - RF Cafe.

 

Nand GATE Operation

 

Now, let's observe the logic level inputs and corresponding outputs as shown in figure 2-13. At time T0, X and Y are both Low. The output is High; the opposite of an and gate with the same inputs. At T1, X goes High and Y remains Low. As a result, the output remains High. At T2, X goes Low and Y

goes High. Again, the output remains High. When both X and Y are High at T4, the output goes Low. The output will remain Low only as long as both X and Y are High.

 

NAND gate input and output signals - RF Cafe

 Figure 2-13. - Nand gate input and output signals.

 

TRUTH TABLE

 

The Truth Table for a Nand gate with X and Y as inputs is shown below.

 

Truth Table for a NAND gate with X and Y as inputs - RF Cafe

 

Q16.   a Nand gate has Z and X as inputs. What will be the output logic level if Z is High and X is Low?

 

Q17.   What must be the state of the inputs to a Nand gate in order to produce a Low output?

 

 

2-15

Q18.   What is the output Boolean expression for a Nand gate with inputs A, B , and C?

 

Q19.   a Nand gate has inputs labeled as A, B , and C. If a and B  are High, C must be at what logic level to produce a High output?

 

The NOR GATE

 

As you might expect, the NOR gate is an OR gate with an inverter on the output.

 

LOGIC SYMBOL

 

The standard logic symbol for this gate is shown in figure 2-14. More than just the two inputs may be shown.

 

NOR gate - RF Cafe

Figure 2-14. - NOR gate.

 

The NOR gate will have a High output only when all the inputs are Low.

 

When broken down, the two functions performed by the NOR gate can be represented by the equivalent circuit depicted in figure 2-15. When both inputs to the OR gate are Low, the output is Low. a Low applied to an inverter gives a High output. If either or both of the inputs to the OR gate are High, the output will be High. When this High output is applied to the inverter, the resulting output is Low. The Boolean expression for the output of this NOR gate is f = K + L . The expression is spoken, "K OR L quantity NOT."

 

NOR gate equivalent circuit - RF Cafe

Figure 2-15. - NOR gate equivalent circuit.

 

 NOR GATE Operation

 

The logic level inputs and corresponding outputs for a NOR gate are shown in figure 2-16. At time T0, both K and L are Low; as a result, f is High. At T1, K goes High, L remains Low, and f goes Low. At T2, K goes Low, L goes High, and the output remains Low. The output goes High again at T3 when both inputs are Low. At T4 when both inputs are High, the output goes Low and remains Low until T5 when both inputs go Low. Remember the output is just opposite of what it would be for an

OR gate.

 

 

2-16

 

 

NOR gate input and output signals - RF Cafe

Figure 2-16. - NOR gate input and output signals.

 

TRUTH TABLE

 

The Truth Table for a NOR gate with K and L as inputs is shown below.

 

Truth Table for a NOR gate with K and L as inputs - RF Cafe

 

Q20.   How does a NOR gate differ from an OR gate?

 

Q21.   What will be the output of a NOR gate when both inputs are High?

 

Q22.   What is the output Boolean expression for a NOR gate with R and T as inputs?

 

Q23.   In what state must the inputs to a NOR gate be in order to produce a logic 1 output?

 

VARIATIONS of FUNDAMENTAL GATES

 

Now that you are familiar with fundamental logic gates, let's look at some variations of these gates that you may encounter.

 

 

2-17

Up to now you have seen inverters used alone or on the output of and and OR gates. Inverters may also be used on one or more of the inputs to the logic gates. Take a look at the examples as discussed in the following paragraphs.

 

and/Nand GATE VARIATIONS

 

If we place an inverter on one input of a two-input and gate, the output will be quite different from that of the standard and gate.

 

In figure 2-17, we have placed an inverter on the a input. When a is High, the inverter makes it a Low going into the and gate. In order for the output to be High, a would have to be Low while B is High, as shown in the Truth Table. If the inverter were on the B input, the output expression would then be f = a B.

 

AND gate with one inverted input - RF Cafe

Figure 2-17. - and gate with one inverted input.

 

Now let's compare a Nand gate to an and gate with an inverter on each input. Figure 2-18 shows these gates and the associated Truth Tables. With the Nand gate (view A), the output is High when either or both inputs is/are Low. The and gate with inverters on each input (view B), produces a High output only when both inputs are Low. This comparison also points out the differences between the expressions f = a B (A and B quantity NOT) and f = A   B  (NOT a and NOT B).

 

Now, look over the Truth Tables for figures 2-17, 2-18, and 2-19; look at how the outputs vary with inverters in different positions.

 

 

2-18

 

 

Comparison of NAND gate and AND gate with inverted inputs: A. NAND gate; B. AND gate with inverters on each input - RF Cafe

Figure 2-18. - Comparison of Nand gate and and gate with inverted inputs: A. Nand gate; B. and gate with inverters on each input.

 

NAND gate with one inverted input - RF Cafe

Figure 2-19. - Nand gate with one inverted input.

 

OR/NOR GATE VARIATIONS

 

The outputs of OR and NOR gates may also be changed with the use of inverters.

 

An OR gate with one input inverted is shown in figure 2-20. The output of this OR gate requires that a be Low, B be High, or both of these conditions existing at the same time in order to have a High output. Since the a input is inverted, it must be Low if B is Low in order to produce a High output. Therefore the output is f = A +B.

 

 

2-19

 

 

OR gate with one inverted input - RF Cafe

Figure 2-20. - OR gate with one inverted input.

 

Figure 2-21compares a NOR gate (view A), to an OR gate with inverters on both inputs (view B), and shows the respective Truth Tables. The NOR gate will produce a High output only when both inputs are Low. The OR gate with inverted inputs produces a High output with all input combinations EXCEPT when both inputs are High. This figure also illustrates the differences between the expressions f =  A + B (A OR B quantity NOT) and f =  A  +  B  (NOT a OR NOT B).

 

Comparison of NOR gate and OR gate with inverted inputs: A. NOR gate; B. OR gate with inverters on both inputs - RF Cafe

Figure 2-21. - Comparison of NOR gate and OR gate with inverted inputs: A. NOR gate; B. OR gate with inverters on both inputs.

 

As with the Nand gate, one or more inputs to NOR gates may be inverted. Figure 2-22 shows the result of inverting a NOR gate input. In this case, because of the inversion of the B input and the inversion of the output, the only time this gate will produce a High output is when a is Low and B is High. The output Boolean expression for this gate is f = Equation - RF Cafe , spoken "A OR NOT B quantity NOT."

 

 

2-20

NEETS Modules
- Matter, Energy, and Direct Current
- Alternating Current and Transformers
- Circuit Protection, Control, and Measurement
- Electrical Conductors, Wiring Techniques, and Schematic Reading
- Generators and Motors
- Electronic Emission, Tubes, and Power Supplies
- Solid-State Devices and Power Supplies
- Amplifiers
- Wave-Generation and Wave-Shaping Circuits
- Wave Propagation, Transmission Lines, and Antennas
- Microwave Principles
- Modulation Principles
- Introduction to Number Systems and Logic Circuits
- - Introduction to Microelectronics
- Principles of Synchros, Servos, and Gyros
- Introduction to Test Equipment
- Radio-Frequency Communications Principles
- Radar Principles
- The Technician's Handbook, Master Glossary
- Test Methods and Practices
- Introduction to Digital Computers
- Magnetic Recording
- Introduction to Fiber Optics
Note: Navy Electricity and Electronics Training Series (NEETS) content is U.S. Navy property in the public domain.