Professional Documents
Culture Documents
Module 05-05a
Digital Techniques-Electronic Instrument Systems
Logic Circuits
05 – 05a - 1
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
Table of contents
05 – 05a - 2
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
1. LOGIC GATES:
Logic gates are the basic components in digital electronics. Logic Gates are circuits made up of diodes of transistors and resistors.
Terms used for the true and false states are shown in the table.
Logic gates are the basic components in digital electronics. Logic Gates are circuits made up of diodes of transistors and resistors.
LOGIC STATES
1 0
+ Vs 0
True False
On Off
Yes No
05 – 05a - 3
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
Note: We have seen three ways of describing a Boolean function: logic circuits, truth tables, and Boolean expressions. Moreover, we have
seen systematic ways to convert between the three techniques, diagrammed below.
The five common logic gates used in wiring diagrams are the: NOT, AND, NAND, OR and NOR gates. Gates have two or more inputs, except a NOT
gate which has only one input.
As the name implies, inverter will invert the number entered. If you enter “0”, you will get a “1” on its output, and if you enter a “1”, you will get a “0” on
its output.
All gates have only one output. Usually the letters A, B, C and so on are used to label inputs, and Q is used to label the output.
The traditional symbols have distinctive shapes making them easy to recognise so they are widely used in industry and education.
05 – 05a - 4
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
Q=A×B
Another way to understand AND logic gate: its output will only be at “1” when all its inputs are also at “1”. Otherwise its output will be “0”.
You can see its symbol on figure and its truth table below.
05 – 05a - 5
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
If you need more than two inputs, the same idea applies.
If you are projecting a circuit and need an AND logic gate with more inputs, you can go ahead and simple draw an AND logic gate like the one on
Figure.
05 – 05a - 6
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
The 7408 IC contains four independent positive logic AND GATES. Pins 14 and 7 provide power for all four logic gates.
05 – 05a - 7
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
Example:
Outputs of one gate can be connected to inputs of another within the same chip or to another chip as long as they share the same ground. The figure
illustrates a basic circuit showing how to wire inputs and using LEDs to display outputs.
AND gate logic rules: the output is HIGH when both inputs are HIGH, otherwise output is LOW.
Its symbol is the same of AND but with a “o” on its output, meaning that the output is inverted. You can build yourself a NAND gate by connecting an
AND gate to an inverter.
05 – 05a - 8
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
Q=A×B
Another way to understand NAND logic gate: its output will only be at “0” when all its inputs are also at “1”. Otherwise its output will be “1”.
Exercise:
However, if you want to create more inputs using gates with fewer inputs, you cannot connect them using the same idea shown on Figure.
05 – 05a - 9
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
Example:
The 7400 IC contains four independent positive logic NAND GATES. Pins 14 and 7 provide power for all four logic gates. Outputs of one gate can be
connected to inputs of another within the same chip or to another chip as long as they share the same ground.
The figure illustrates a basic circuit showing how to wire inputs and using LEDs to display outputs.
NAND gate logic rules: If one input is LOW then the output will be HIGH, otherwise output will be LOW.
05 – 05a - 10
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
05 – 05a - 11
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
1.4. OR logic gate:
As its name implies, an OR logic gate performs an “OR” logic operation, which is an addition. It has at least two inputs. So, if A and B are its inputs, at
the output we will find A + B. So, OR logic gate can be summarized by the formula Q = A + B.
Q=A+B
You can see its symbol on Figure and its truth table right below it.
Exercise:
However, if you want to create more inputs using gates with fewer inputs, you cannot connect them using the same idea shown on Figure.
05 – 05a - 12
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
If you need more than two inputs, the same idea applies. If you are projecting a circuit and need an OR logic gate with more inputs, you can
go ahead and simple draw an OR logic gate like the one on figure and put more inputs on it.
05 – 05a - 13
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
The 7432 IC contains four independent positive logic OR GATES. Pins 14 and 7 provide power for all four logic gates.
05 – 05a - 14
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
Example:
Outputs of one gate can be connected to inputs of another within the same chip or to another chip as long as they share the same ground. The figure
illustrates a basic circuit showing how to wire inputs and using LEDs to display outputs.
OR gate logic rules: If one or both inputs are HIGH, then the output will be HIGH. Otherwise, output will be LOW.
05 – 05a - 15
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
1.5. NOR logic gate:
The “N” letter on NOR stands for NOT, meaning that NOR logic gate is an OR gate with an inverter attached. So, its output is the opposite from OR. Its
symbol is the same of OR but with a “o” on its output, meaning that the output is inverted.
Q=A+B
You can build yourself a NOR gate by connecting an OR gate to an inverter.
Another way to understand NOR logic gate: its output will only be at “1” when all its inputs are at “0”. Otherwise its output will be “0”.
If you need more inputs, just draw them on the symbol shown on figure.
Exercise:
However, if you want to create more inputs using gates with fewer inputs, you cannot connect them using the same idea shown on Figure.
05 – 05a - 16
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
NOR gate logic rules: If one or both inputs are HIGH, then the output will be LOW. Otherwise, output will be HIGH.
Example:
05 – 05a - 17
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
Outputs of one gate can be connected to inputs of another within the same chip or to another chip as long as they share the same ground. The figure
illustrates a basic circuit showing how to wire inputs and using LEDs to display outputs.
05 – 05a - 18
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
The 7402 IC contains four independent positive logic NOR GATES. Pins 14 and 7 provide power for all four logic gates.
05 – 05a - 19
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
Boolean algebra has its own unique identities based on the bivalent states of Boolean variables.
Addition:
OR LOGIC TRUTH TABLE
A input B input Q output
1 1 1
1 0 1
0 1 1
0 0 0
05 – 05a - 20
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
A × B = A +B
See the results on the logic truth table.
1 0 1 0 1 0 0
0 1 1 0 0 1 1
1 0 0 1 0 1 1
0 1 0 1 0 1 1
A+B=A B
05 – 05a - 21
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
See the results on the logic truth table.
1 0 1 0 1 0 0
0 1 1 0 1 0 0
1 0 0 1 1 0 0
0 1 0 1 0 1 1
the longest (uppermost) bar first. To illustrate, let's take the expression A + BC and reduce it using DeMorgan's Theorems:
Following the advice of breaking the longest (uppermost) bar first, I'll begin by breaking the bar covering the entire expression as a first step:
05 – 05a - 22
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
A + BC = A × BC = A × BC
As a result, the original circuit is reduced to a three-input AND gate with the A input inverted:
05 – 05a - 23
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
Applying De Morgan theorems, we can break the logic bars:
3. FUNDAMENTAL LAWS:
3.1. Commutativity:
Commutativity is the property of a binary operation or operator such that the result of one term operating on a second is equal to the result of the
second term operating on the first.
Example:
The operation * is commutative if:
A*B=B*A
Where: A and B are the two terms,
* is the operator
a) AND logic gate is commutative:
A×B=B×A
05 – 05a - 24
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
Another way to understand AND logic gate: its output will only be at “1” when all its inputs are also at “1”. Otherwise its output will be “0”.
You can verify this property in the truth table below:
Q = A+B= B + A
05 – 05a - 25
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
0 0 0 0
1 0 1 1
0 1 1 1
1 1 1 1
Q = A xB = B x A
Q= A+B=B+A
05 – 05a - 26
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
3.2. Associativity:
Formally, considering tree numbers A, B, C an a binary operation * , this operation is called associative if it satisfies the associative law:
(A * B) * C = A * (B * C) = A * B * C
a) AND logic gate is associative:
(A x B) x C = A x (B x C)
05 – 05a - 27
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
(A + B) + C = A + (B + C)
05 – 05a - 28
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
05 – 05a - 29
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
(A x B) x C = A x (B x C)
05 – 05a - 30
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
05 – 05a - 31
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
3.3. Distributivity:
Consider three numbers: A, B, C and two operations: *#. In symbols, it is stated: A * ( B # C) = A#B * A#C. The result of first adding several numbers
and then multiplying the sum by some number is the same as first multiplying each separately by the number and then adding the products.
A (B + C) = (A B) + (A C)
AND DISTRIBUTIVE ON OR
A input B input C input A (B + C) = (A B) + (A C)
05 – 05a - 32
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 1
05 – 05a - 33
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
AND DISTRIBUTIVE ON OR
A input B input C input A+(B C) = (A+B) (A+C)
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1
3.4. Idempotence:
Idempotence is the property of certain operations that they can be applied multiple times without changing the result beyond the initial application.
A A=A
05 – 05a - 34
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
b) OR is an idempotent operation:
A A=A
05 – 05a - 35
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
1 1 1
05 – 05a - 36
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
5.2. De Morgan’s theorem:
A mathematician named De Morgan has developed a pair of important rules regarding group complementation in Boolean algebra.
By group complementation, I'm referring to the complement of a group of terms, represented by a long bar over more than one variable.
DeMorgan's theorems state the same equivalence in "backward" form: that inverting the output of any gate results in the same function as the opposite
type of gate (AND vs. OR) with inverted inputs:
A × B = A +B
See the results on the logic truth table.
1 0 1 0 1 0 0
0 1 1 0 0 1 1
1 0 0 1 0 1 1
0 1 0 1 0 1 1
05 – 05a - 37
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
A+B=A B
See the results on the logic truth table.
1 0 1 0 1 0 0
0 1 1 0 1 0 0
1 0 0 1 1 0 0
0 1 0 1 0 1 1
breaking the longest (uppermost) bar first. To illustrate, let's take the expression A + BC and reduce it using DeMorgan's Theorems:
05 – 05a - 38
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
Following the advice of breaking the longest (uppermost) bar first, I'll begin by breaking the bar covering the entire expression as a first step:
A + BC = A BC = A BC
As a result, the original circuit is reduced to a three-input AND gate with the A input inverted:
v
5.4. Exercise - Simplification of a gate linear circuit:
Let's apply the principles of De Morgan's theorems to the simplification of a gate linear circuit:
05 – 05a - 39
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
AB + A + BC AB A + BC
AB (A + BC)
= AAB ABBC
= AB + AC = A B
05 – 05a - 40
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
6. AIRCRAFT APPLICATIONS:
There are multiple systems using digital functions, for example an automatic pilot system that requires several conditions to be put into operation
(logical function AND) but only one is enough to disengage it (logical function OR):
6.1. Automatic pilot engagement:
05 – 05a - 41
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
Course selection knob to neutral, and
Yaw damper operational.
We will see some examples where we use the logic operations in the flight navigation of an Airbus A 310. To engage the automatic pilot, there are
a certain number of conditions summarized on the previous indications.
The automatic pilot is automatically disconnected if at least one of the following conditions occurs:
Power supplies defective, or
Hydraulic power defective, or
Failure of the vertical gyroscope, or
05 – 05a - 42
AeroGATES: PART 66 courseware 05 – Digital techniques
Category A B1 B2 B3 05a – Logic circuits
Level 1 2 3
Aircraft attitude higher than the threshold, or
Load factor higher than the threshold, or
Yaw damper inoperative.
05 – 05a - 43