Electrics · Chapter 18
Logic Gates How aircraft computers make decisions from ones and zeros: truth tables, the AND, OR, NOT, NAND, NOR and exclusive gates, and how to read them in switch and relay circuits.
1 0 1 0 0 0 1 0 0 0 0 1 1 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 0 1 0 0 0 0 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 1 0 1 0 1 1 0 0 1 1 1 1 1 0 0 1 1 0 0 1 1 1 1 1 0 1 1 0 0 1 0 0 1 0 0 1 1 1 0 0 1 1 1 0 1 1 1 1 1 0 0 0 0 0 0 0 0 1 0 1 1 0 0 1 1 1 0 0 1 1 1 1 1 0 1 1 0 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 1 1 1 0 0 1 1 1 1 1 0 0 0 1 1 1 0 0 0 1 0 0 1 0 1 1 0 1 0 1 0 0 0 1 0 0 1 1 0 0 1 1 1 0 1 1 1 1 0 0 0 0 1 0 1 0 1 0 1 1 0 0 1 0 1 0 1 1 0 1 1 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 1 0 0 0 1 0 1 0 1 1 1 0 0 1 1 1 0 0 0 1 0 0 0 0 0 1 0 0 1 1 0 0 0 0 1 0 0 1 0 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 0 1 0 0 1 0 0 1 0 1 0 1 0 0 1 1 0 0 0 1 1 1 1 0 1 1 0 1 0 1 1 1 0 1 1 1 0 0 0 0 0 1 1 0 0 1 0 1 1 1 0 1 1 0 1 0 0 1 0 1 0 0 1 0 0 0 1 0 1 0 1 1 1 0 0 0 0 0 1 0 0 0 1 1 0 1 1 0 1 1 0 1 A B C 1 AND 1 = 1 · NOT 1 = 0 · 1 OR 0 = 1 © 2026 eatpl.in. For the personal study of eatpl.in students only. Do not copy or distribute.
e-books by eatpl.in · © 2026 · Do not copy or distribute
Chapter eighteen is about logic gates, the tiny decision makers inside every aircraft computer. A gate looks at one or more inputs, each of which is simply a one or a zero, and produces a single output by a fixed rule. With only six common rules, AND, OR, NOT, NAND, NOR and exclusive OR, designers build warning systems, autopilot interlocks and whole computers. In the exam you will be shown symbols, truth tables and switch or relay circuits, and asked which gate they represent, or what the output will be. By the end of this lesson you will read all of them with confidence.
Roadmap
Logic gates: the plan for this lesson Every digital system on the aircraft, from a warning light to the flight management computer, is built from a few simple gates.
1 · The language Logic 1 and 0, positive and negative logic, truth tables and the gate symbols.
2 · Basic gates AND, OR and NOT, with their switch and relay equivalents.
3 · Inverted and exclusive NAND, NOR, exclusive OR and exclusive NOR, and the meaning of the bubble.
4 · Using gates Tracing networks, a take-off warning, transistor gates and exam traps.
Chapter 18 · Logic Gates
2
e-books by eatpl.in · © 2026 · Do not copy or distribute
Here is our plan. Logic gates are the building blocks of every digital system on the aircraft, from a simple warning light to the flight management computer. In part one we learn the language: what a logic one and a logic zero mean, the difference between positive and negative logic, how a truth table is laid out, and how the gate symbols are drawn. In part two we meet the three basic gates, AND, OR and NOT, and build each one from ordinary switches and relays, because the exam loves to show you a switch circuit and ask which gate it is. Part three adds the inverted gates, NAND and NOR, plus the exclusive OR and exclusive NOR. In part four we put gates together, trace a small network step by step, look at a take-off configuration warning, and see how transistors make gates inside a chip.
Part 1 · The language
What a logic gate is A logic gate is a circuit that makes a fixed decision from binary inputs Each gate may have several inputs but has only one output One integrated circuit (IC) contains several gates, built from transistors Six common gates: AND, OR, NOT (invert), NAND, NOR, exclusive OR The name of each gate tells you its rule One integrated circuit (IC) holds several gates A B C Q inputs: one or more output: always ONE
Chapter 18 · Logic Gates
3
e-books by eatpl.in · © 2026 · Do not copy or distribute
A logic gate is a small electronic circuit that makes one fixed decision. It looks at its inputs, each of which is either a one or a zero, and produces an output that is also a one or a zero. A gate may have several inputs, two, three, eight or more, but it must have only one output. That single output is a favourite exam point. Inside a computer, gates are not separate parts: one integrated circuit, like the chip in the drawing, contains several gate circuits made from transistors. There are six gates in common use: AND, OR, the INVERT or NOT gate, NAND, NOR and the exclusive OR. The good news is that the name of each gate describes exactly what it does, so if you understand the words, you understand the gates.
Part 1 · The language
Two states: logic 1 and logic 0 Gates are binary : every input and output is in one of two states. Many words are used for the same two states.
Way of describing it Logic 1 Logic 0 Binary digit 1 0 Power ON OFF Statement TRUE FALSE Voltage level HIGH (H) LOW (L) Switch or contact CLOSED OPEN Relay or clutch ENGAGED DISENGAGED Typical voltage (positive logic) +5 V (or +28 V) 0 V (earth)
A closed switch is a 1: it passes current. Do not confuse this with "open" meaning on, as for a valve.
Chapter 18 · Logic Gates
4
e-books by eatpl.in · © 2026 · Do not copy or distribute
Logic gates are binary. Every input and every output is in one of only two states, and we write them as one and zero. Because gates are used to describe switches, relays and statements, many other words are used for the same two states. A one may be called on, true, high, closed or engaged. A zero may be called off, false, low, open or disengaged. Watch the switch row carefully. A closed switch is a one, because it passes current. Students sometimes think of open as on, the way a valve that is open lets fluid through, but in electrics an open switch breaks the circuit, so it is a zero. In a typical circuit a one is a positive voltage, five volts in a computer or twenty-eight volts in an aircraft circuit, and a zero is zero volts, the circuit earth.
Part 1 · The language
Positive and negative logic Positive logic : logic 1 is the more positive voltage, logic 0 the less positiveThe voltages need not be 0 and +5: both may be positive, both negative, or one of each So 1 = 0 V with 0 = −5 V is still positive logic Negative logic : logic 1 is the lower voltage, 0 the higher oneMost systems use positive logic; negative logic is used in some designs Positive logic 1 = +5 V, 0 = 0 V +5 V 0 V 1 0 1 1 0 1 0 0 Still positive logic 1 = 0 V, 0 = −5 V 0 V −5 V 1 0 1 1 0 1 0 0 Negative logic 1 = +5 V, 0 = +10 V +10 V +5 V 1 0 1 1 0 1 0 0 Same bits 1 0 1 1 0 1 0 0 in each trace
Chapter 18 · Logic Gates
5
e-books by eatpl.in · © 2026 · Do not copy or distribute
The actual voltages that stand for one and zero vary from circuit to circuit, so we need a rule. In positive logic, a one is the more positive of the two voltages and a zero is the less positive. The top trace is the familiar case: one is five volts, zero is zero volts. But look at the middle trace. Here one is zero volts and zero is minus five volts. It is still positive logic, because the one is more positive than the zero. The levels may both be positive, both negative, or one of each; all that matters is which is higher. In negative logic it is the other way round: a one is the lower voltage and a zero the higher, so in the bottom trace a one is five volts and a zero is ten volts. Most digital systems use positive logic throughout, while negative logic appears in some designs.
Part 1 · The language
Truth tables A truth table lists every combination of inputs and the output for each It shows the relationship between a gate's inputs and outputs Rows needed = 2n for n inputs: 2 inputs give 4 rows, 3 give 8 Fill the inputs by counting in binary : 000, 001, 010 … 111 Used in design and in troubleshooting : the correct output for given inputs Three-input AND A B C Q 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 Rows = 2ⁿ 1 input → 2 rows 2 inputs → 4 rows 3 inputs → 8 rows 4 inputs → 16 rows Fill the inputs by counting in binary: 000, 001, 010 … 111 then work out the output row by row
Chapter 18 · Logic Gates
6
e-books by eatpl.in · © 2026 · Do not copy or distribute
A truth table is a tidy way of showing what a gate does. It lists every possible combination of the inputs, and next to each one, the output. In other words, it shows the relationship between the inputs and the output. How many rows do you need? Each input can be a one or a zero, so every extra input doubles the number of combinations. One input gives two rows, two inputs give four, three inputs give eight and four inputs give sixteen; that is two to the power of the number of inputs. The neat way to fill in the input columns is to count in binary down the rows, from zero zero zero to one one one, so you never miss a combination. The table on the right is for a three input AND gate, whose output is one only on the very last row. Technicians use truth tables when troubleshooting, to check the correct output for a given set of inputs.
Part 1 · The language
The gate symbols at a glance AND A B Q all 1 → 1 A B Q 0 0 0 0 1 0 1 0 0 1 1 1 OR A B Q any 1 → 1 A B Q 0 0 0 0 1 1 1 0 1 1 1 1 NOT A Q inverts A Q 0 1 1 0 NAND A B Q all 1 → 0 A B Q 0 0 1 0 1 1 1 0 1 1 1 0 NOR A B Q any 1 → 0 A B Q 0 0 1 0 1 0 1 0 0 1 1 0 XOR A B Q different → 1 A B Q 0 0 0 0 1 1 1 0 1 1 1 0 XNOR A B Q same → 1 A B Q 0 0 1 0 1 0 1 0 0 1 1 1 Inputs on the left , output on the right . A bubble at the output means "inverted"; an extra curved line at the input means "exclusive".
Chapter 18 · Logic Gates
7
e-books by eatpl.in · © 2026 · Do not copy or distribute
Each gate has a symbol with a specific shape, and every symbol points the same way: inputs on the left, the output on the right. Learn the shapes as a family. The AND gate has a flat back and a round, D shaped front. The OR gate has a curved back and a pointed front, like a shield. The NOT gate is a triangle with a small circle, called a bubble. That bubble always means invert, so a NAND is an AND shape with a bubble on the output, and a NOR is an OR shape with a bubble. The exclusive gates have an extra curved line just in front of the inputs: the exclusive OR has the line, and the exclusive NOR has the line and a bubble. Under each symbol is its rule in three words and its truth table. We will now take them one at a time.
Part 2 · Basic gates
The AND gate Output is 1 only if ALL inputs are 1 If any input is 0, the output is 0 Input 1 and input 2 and input 3 … must all be 1 Nicknamed the "all or nothing" gate Symbol: flat back, D-shaped front A B Q Q = A · B A B Q 0 0 0 0 1 0 1 0 0 1 1 1 ALL or NOTHING one row of four gives a 1: the row where A = B = 1
Chapter 18 · Logic Gates
8
e-books by eatpl.in · © 2026 · Do not copy or distribute
The AND gate gives an output of one only when all of its inputs are one. If any input is a zero, the output is zero. Read the name literally: input one and input two and input three, and so on, must all be one to get a one out. Look at the truth table. Of the four rows, only the last one, where A is one and B is one, gives a one at the output; the other three rows all give zero. That is why the AND gate is sometimes called the all or nothing gate. In Boolean shorthand the output is written as A dot B, and the dot is spoken as and. The symbol has a flat back and a round, D shaped front. Aircraft use AND logic whenever several conditions must all be true together, for example, a system that may operate only when the aircraft is on the ground and the engines are running.
Part 2 · Basic gates
AND = switches in series Two switches in series with a lamp behave as an AND gate Switch closed = 1; lamp lit = 1 One closed switch is not enough: the path is still broken Both closed: the circuit is complete and the lamp lights Exam: a picture of series switches means AND + 28 V A B A and B in series: the lamp lights only if A AND B are closed closed = 1, open = 0, lamp lit = 1
Chapter 18 · Logic Gates
9
e-books by eatpl.in · © 2026 · Do not copy or distribute
A simple AND circuit is two switches in series feeding a lamp. A closed switch is a one, and a lit lamp is a one. The supply is on the left. Watch the scene. The first switch, A, closes on its own. Nothing happens, because the path is still broken at switch B, so no current flows and the lamp stays dark. That is the row A equals one, B equals zero, output zero. Now switch B closes too. The circuit is complete, current flows round the loop and the lamp lights: one and one gives one. Now reopen switch A, and the lamp goes out at once, because either open switch breaks the series path. So whenever an exam question shows switches in series feeding a light or a relay, the answer is an AND gate.
Part 2 · Basic gates
The OR gate Output is 1 if ANY input is 1 (one, some or all) Output is 0 only if all inputs are 0 Input 1 or input 2 or input 3 … gives a 1 Nicknamed the "any or all" gate Symbol: curved back, pointed front A B Q Q = A + B A B Q 0 0 0 0 1 1 1 0 1 1 1 1 ANY or ALL three rows of four give a 1: only 0 and 0 gives 0
Chapter 18 · Logic Gates
10
e-books by eatpl.in · © 2026 · Do not copy or distribute
The OR gate gives a one at its output if any input is a one. It does not matter whether one input, several inputs or all of them are at one; the output is one. The only way to get a zero out of an OR gate is for every input to be zero. Read the name: input one or input two or input three gives a one. In the truth table three rows out of four give a one; only zero and zero gives zero. Because one, some or all of the inputs will do, it is nicknamed the any or all gate. In Boolean shorthand the output is written A plus B, and the plus sign is spoken as or, not as addition. The symbol has a curved back and a pointed front. Aircraft use OR logic wherever any one of several faults should trigger the same warning.
Part 2 · Basic gates
OR = switches in parallel Two switches in parallel feeding a lamp behave as an OR gate Either switch on its own completes a path Both closed: the lamp simply stays on Lamp off only when both switches are open Exam: a picture of parallel switches means OR + 28 V A B A and B in parallel: either one completes the circuit lamp off only when both are open
Chapter 18 · Logic Gates
11
e-books by eatpl.in · © 2026 · Do not copy or distribute
An OR circuit is two switches in parallel, side by side, each able to complete the path from the supply to the lamp on its own. Switch A is the upper switch and switch B the lower one. Watch the scene. Close switch A alone, and the lamp lights straight away through the upper branch. Open A again, and the lamp goes out. Now close switch B instead, and the lamp lights through the lower branch. Finally, close A as well. With both closed the lamp simply stays on; the current now has two paths. The only way to put the lamp out is to have both switches open, which is the single row of the OR truth table with a zero output. So whenever an exam question shows switches in parallel feeding a light or a relay, the answer is an OR gate.
Part 2 · Basic gates
The NOT (INVERT) gate Reverses its input: 1 in gives 0 out, 0 in gives 1 outHas only one input and one output Also called the INVERT gate or inverter Symbol: triangle with a bubble ; the bubble means "invert" Mostly used with other gates , to make NAND and NOR A Q Q = Ā (A bar) A Q 0 1 1 0 INVERTER one input, one output, output = opposite
Chapter 18 · Logic Gates
12
e-books by eatpl.in · © 2026 · Do not copy or distribute
The NOT gate, also called the INVERT gate or simply the inverter, reverses whatever is at its input. A one in gives a zero out, and a zero in gives a one out. It is the only common gate with just one input and one output, so if an exam question asks which gate has only one input, the answer is the NOT gate. Its truth table has just two rows. In Boolean shorthand the output is written as A with a bar over it, spoken as A bar or not A. The symbol is a triangle, which on its own would just pass the signal through, with a small circle on the output. That circle, the bubble, is what does the inverting, and you will see it again on NAND and NOR gates. The NOT gate is rarely used alone; it is most often used together with other gates.
Part 2 · Basic gates
NOT with a relay: normally closed contacts The input switch energises a relay coil The lamp is fed through the relay's normally closed (NC) contacts Switch open (0): coil dead, contacts closed, lamp lit (1) Switch closed (1): coil pulls, contacts open, lamp out (0) Exam: an NC relay contact in the output path means an inversion + A relay coil NC A = 1 energises the coil, NC contacts open, lamp = 0 normally closed (NC) = closed when the coil is NOT energised
Chapter 18 · Logic Gates
13
e-books by eatpl.in · © 2026 · Do not copy or distribute
You cannot make an inverter with a plain switch and a lamp, but a relay with normally closed contacts does it neatly. Normally closed means the contacts are closed when the relay coil is not energised. The supply is on the left. At the start the input switch is open, which is a zero. The coil is dead, the spring holds the contacts closed, and the lamp is lit, a one. Now close the input switch. Current flows into the coil, which pulls the armature down and opens the contacts, so the lamp goes out. A one in has given a zero out. Release the switch again and the lamp comes back on. Remember this picture: whenever an exam circuit feeds its output through normally closed relay contacts, the answer involves an inversion, a NOT, a NAND or a NOR.
Part 3 · Inverted and exclusive
The NAND gate NAND = NOT-AND : an AND gate with its output invertedOutput is 0 only when ALL inputs are 1 Output is 1 if any input is 0 : the exact opposite of AND Symbol: the AND shape with a bubble on the output Relay version: series switches driving a relay with NC contacts A B Q is the same as A B Q A B AND NAND 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 NOT-AND Q = 0 only when ALL inputs are 1 any 0 in → 1 out
Chapter 18 · Logic Gates
14
e-books by eatpl.in · © 2026 · Do not copy or distribute
The NAND gate is short for NOT AND. It is simply an AND gate with its output inverted, as the top of the drawing shows: an AND followed by a NOT is the same as one NAND. So its truth table is the AND table turned upside down. The output is zero only when all the inputs are one, and if any input is a zero the output is one. Compare the two columns: wherever AND gives zero, NAND gives one, and the single row where AND gives one is the only row where NAND gives zero. The symbol is the AND shape with a bubble on the output. A relay version would be two switches in series driving a relay coil, with the lamp fed through normally closed contacts: only when both switches are closed does the coil pull and the lamp go out.
Part 3 · Inverted and exclusive
The NOR gate NOR = NOT-OR : an OR gate with its output invertedOutput is 1 only when ALL inputs are 0 Any input at 1 gives an output of 0Symbol: the OR shape with a bubble on the output Relay version: parallel switches driving a relay with NC contacts + A B relay coil NC A OR B energises the coil, the NC contacts open: NOR normally closed (NC) = closed when the coil is NOT energised
Chapter 18 · Logic Gates
15
e-books by eatpl.in · © 2026 · Do not copy or distribute
The NOR gate is short for NOT OR: an OR gate with its output inverted. So the output is one only when all the inputs are zero, and any input at one gives an output of zero. Its truth table is the OR table turned upside down. The symbol is the OR shape with a bubble on the output. The scene shows a relay version. Two switches in parallel feed the relay coil, and the lamp is fed from the supply through normally closed contacts. With both switches open the lamp is lit. Close either switch, here switch A, and the coil pulls, the contacts open and the lamp goes dark. Reopen it and the lamp returns. Now close the lower switch, B, and the lamp goes out again. Any input at one gives zero out: that is NOR.
Part 3 · Inverted and exclusive
Exclusive OR and exclusive NOR Exclusive OR (XOR) : output 1 when the inputs are different Inputs alike (0 0 or 1 1) give 0 : "one or the other, but not both" Compares a maximum of two inputs Exclusive NOR (XNOR) : XOR with a bubble, 1 when the inputs are the same Symbol: OR shape with an extra curved line at the inputs A B Q A B Q EXCLUSIVE OR EXCLUSIVE NOR A B Q 0 0 0 0 1 1 1 0 1 1 1 0 A B Q 0 0 1 0 1 0 1 0 0 1 1 1 Q = 1 when inputs DIFFER Q = 1 when inputs are the SAME Extra curved line at the inputs = exclusive
Chapter 18 · Logic Gates
16
e-books by eatpl.in · © 2026 · Do not copy or distribute
The exclusive OR gate gives a one at its output whenever its two inputs are different, and a zero when they are alike. Compare it with the ordinary OR gate. The plain OR gives a one for one or the other or both. The exclusive OR excludes the both case: one or the other, but not both. So zero zero gives zero, one one gives zero, and only the mixed rows give one. It compares a maximum of two input signals, which makes it a natural comparator, for example to flag a disagreement between two sensors. Its symbol is the OR shape with an extra curved line in front of the inputs. Add a bubble on the output and you have the exclusive NOR, which gives a one when the inputs are the same. Exam options sometimes include the exclusive NOR as a distractor, so know both.
Part 3 · Inverted and exclusive
All the two-input gates in one table Learn this table and you can answer almost any gate question. The inverted gates are the mirror image of their partners.
A B AND OR NAND NOR XOR XNOR 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 0 1 0 0 1 1 0 1 0 1 1 1 1 0 0 0 1 Rule all 1 any 1 not all 1 none 1 differ same
NOT (one input): 0 → 1, 1 → 0. AND/NAND, OR/NOR and XOR/XNOR are pairs: each column is its partner inverted.
Chapter 18 · Logic Gates
17
e-books by eatpl.in · © 2026 · Do not copy or distribute
Here are all the two input gates side by side. The two input columns count in binary, zero zero, zero one, one zero, one one. Read across any row and you can see each gate's decision for the same inputs. Notice the pairs. The NAND column is the AND column inverted, the NOR column is the OR column inverted, and the exclusive NOR column is the exclusive OR column inverted. So you only need to learn three columns and flip them. The bottom row gives each rule in a word or two. AND needs all ones. OR needs any one. NAND gives one unless all inputs are one. NOR gives one only if no input is one. Exclusive OR needs the inputs to differ, and exclusive NOR needs them to be the same. The NOT gate, with its single input, simply turns zero into one and one into zero.
Part 3 · Inverted and exclusive
Reading the bubble: equivalent gates AND then NOT = NAND NAND, inputs joined = NOT NAND = OR with inverted inputs NOR = AND with inverted inputs A B = A B Q the bubble means "invert" Q A = A Q A = 1 → both inputs 1 → Q = 0 NAND alone can build any gate A B Q ≡ A B Q invert the inputs and swap AND ↔ OR (De Morgan) A B Q ≡ A B Q invert the inputs and swap AND ↔ OR (De Morgan) A bubble on an input or output always means invert that signal . Equivalent drawings are a favourite way to disguise a gate in the exam.
Chapter 18 · Logic Gates
18
e-books by eatpl.in · © 2026 · Do not copy or distribute
The bubble is worth a closer look, because exam diagrams sometimes disguise a gate by drawing an equivalent. First panel: an AND gate followed by a NOT gate behaves exactly like one NAND gate, because the bubble simply inverts the AND output. Second panel: join the two inputs of a NAND gate together. Now both inputs are always the same, so a one in gives one and one, and the output is zero. A zero in gives a one. That is a NOT gate, which shows that NAND gates alone can build any other gate. The last two panels show a rule called De Morgan's theorem. A NAND gate behaves exactly like an OR gate with bubbles on both inputs, and a NOR gate behaves like an AND gate with bubbles on both inputs. Invert the inputs, swap AND for OR, and you have the same gate.
Part 4 · Using gates
Worked example: tracing a gate network A B C Q 1 1 1 1 0 1 X = A AND B Y = NOT C Q = X OR Y. Work from the inputs to the output, one gate at a time. A B C X Y Q 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 0 1 1 0 1 1 0 0 0 1 0 0 0 1 1 1 0 1 0 0 0 1 1 0 1 1 1 1 1 1 1 0 1 Label each intermediate wire (X, Y), work out one gate at a time, then build the full table if you need it.
Chapter 18 · Logic Gates
19
e-books by eatpl.in · © 2026 · Do not copy or distribute
Real logic uses several gates together, and the exam may ask for the output of a small network. The method is always the same: start at the inputs and work forwards one gate at a time, writing down the value on every wire. In this network, A and B feed an AND gate, whose output we call X. C feeds a NOT gate, whose output we call Y. Then X and Y feed an OR gate to give Q. Try A, B and C all at one. A and B are both one, so X is one. C is one, so Y, its inverse, is zero. One or zero gives one, so Q is one. On the right is the full table for all eight combinations, built the same way, with X and Y as helper columns. Notice that Q is one whenever C is zero, or whenever A and B are both one.
Part 4 · Using gates
Aircraft example: the take-off configuration warning Flaps NOT in take-off range 1 Speed brakes NOT stowed 0 Pitch trim NOT in take-off band 0 OR any fault Thrust levers advanced to take-off 1 Aircraft on the ground 1 AND CONFIG WARNING aural + master warning Typical take-off configuration warning (details differ by type). Here the flaps are not set, so the warning sounds. OR collects any one of several faults ; AND makes the warning sound only in the right phase (on the ground, thrust levers advanced).
Chapter 18 · Logic Gates
20
e-books by eatpl.in · © 2026 · Do not copy or distribute
Here is how gates turn into a real aircraft warning. A take-off configuration warning must sound if the crew start the take-off with the aircraft wrongly set up. The details differ from type to type, but the logic is typical. On the left, three fault signals each mean something is not ready: the flaps are not in the take-off range, the speed brakes are not stowed, or the pitch trim is outside the take-off band. Any one of these is enough, so they feed an OR gate. But we only want the warning during a take-off, so the OR output goes into an AND gate together with two more conditions: the thrust levers are advanced, and the aircraft is on the ground. In the example the flaps have been forgotten, so the OR gives one, both phase inputs are one, the AND gives one, and the warning sounds.
Part 4 · Using gates
How transistors make gates A transistor is a semiconductor used as an automatic switch or an amplifier Layers: emitter, base, collector ; a small base current switches a large collector current One transistor with a collector resistor is an inverter : 1 in turns it on and pulls Q to 0 Two in series make a NAND ; two in parallel make a NOR Thousands of these are etched on one silicon chip +5 V R Q A NPN A transistor Q 0 OFF 1 1 ON 0 2 in series → NAND 2 in parallel → NOR one → NOT
Chapter 18 · Logic Gates
21
e-books by eatpl.in · © 2026 · Do not copy or distribute
Inside a chip there are no mechanical switches; the gates are made from transistors. A transistor is a semiconductor device that can act as an automatic switch or as an amplifier. Its three layers are the emitter, the base and the collector, with the base in the middle, and a small current into the base switches a much larger current between collector and emitter. Here is the simplest gate. The output Q is taken from the collector, which is fed from five volts through a resistor. When the input A is zero, the transistor is off, no current flows through the resistor, and Q sits at five volts, a one. When A is one, the transistor turns on, connects Q to earth, and Q falls to zero. One in, zero out: an inverter. Put two transistors in series and both must be on to pull Q low, giving NAND; put them in parallel and either will do, giving NOR.
Part 4 · Using gates
Recognising a gate in a switch or relay circuit AND OR NC NOT NC NAND NC NOR A B Q 0 0 0 0 1 1 1 0 1 1 1 0 XOR Series → AND Every switch must be closed for the output to be energised.
Parallel → OR Any one closed switch completes the circuit.
NC relay contacts → inverted One switch: NOT. Series switches: NAND. Parallel switches: NOR.
Chapter 18 · Logic Gates
22
e-books by eatpl.in · © 2026 · Do not copy or distribute
Here is a quick guide to recognising gates in the switch and relay circuits that appear in exam questions. First, look at how the input switches are connected. Switches in series mean all must be closed: AND. Switches in parallel mean any one will do: OR. Second, look at how the output is fed. If the lamp or the next circuit is fed directly, the gate is AND or OR. If it is fed through normally closed relay contacts, the result is inverted. One switch driving such a relay is a NOT gate. Series switches driving it make a NAND, and parallel switches driving it make a NOR. Finally, if a circuit energises its output only when the two inputs are different, it is an exclusive OR. Write out the four rows of the truth table if in doubt; it takes seconds and settles the question.
Exam traps
Common traps with logic gates One output only A gate may have several inputs but always has exactly one output.
Closed = 1 A closed switch or engaged relay is logic 1. An open switch is 0.
Positive logic 1 is the more positive level, even if both levels are negative (1 = 0 V, 0 = −5 V).
OR includes both Plain OR gives 1 when both inputs are 1; only exclusive OR gives 0 there.
Bubble = invert AND with a bubble is NAND, OR with a bubble is NOR. Bubbled inputs flip AND and OR.
Read the question "Output 0 when both are 1" is NAND (or XOR). "Needs all inputs high" is AND.
Chapter 18 · Logic Gates
23
e-books by eatpl.in · © 2026 · Do not copy or distribute
Here are the traps that catch students most often. One: a gate may have many inputs, but always exactly one output. Two: a closed switch or engaged relay is a logic one, and an open switch is a zero. Three: positive logic just means the one is the more positive level. One at zero volts and zero at minus five volts is still positive logic. Four: the ordinary OR gate gives a one when both inputs are one; it is only the exclusive OR that gives zero for that row. Five: the bubble always inverts. An AND with a bubble is a NAND and an OR with a bubble is a NOR; bubbles on the inputs swap AND and OR. Six: read the question carefully. If an output of zero is wanted from inputs one and one, check every option against the truth table before you choose.
Summary
What to take into the exam Binary 1 = on, true, high, closed, engaged. 0 = off, false, low, open, disengaged.
Positive / negative Positive: 1 is the higher voltage (most systems). Negative: 1 is the lower voltage.
Truth table Every input combination and its output; 2ⁿ rows for n inputs.
AND / OR AND: all 1 → 1 (series switches). OR: any 1 → 1 (parallel switches).
NOT One input, one output; inverts. Relay with NC contacts.
NAND / NOR NAND: 0 only if all 1. NOR: 1 only if all 0. Bubble on the output.
XOR / XNOR XOR: 1 when the two inputs differ. XNOR: 1 when they are the same.
Building gates Transistors as switches; one = NOT, series = NAND, parallel = NOR.
Chapter 18 · Logic Gates
24
e-books by eatpl.in · © 2026 · Do not copy or distribute
Let us sum up. Gates are binary: a one means on, true, high, closed or engaged, and a zero means off, false, low, open or disengaged. In positive logic the one is the higher voltage, and most systems use it; in negative logic the one is the lower voltage. A truth table lists every input combination with its output, two to the power n rows for n inputs. AND needs all its inputs at one and is built from series switches; OR needs any one input and is built from parallel switches. NOT has one input and one output and inverts, like a relay with normally closed contacts. NAND gives zero only when all inputs are one, and NOR gives one only when all inputs are zero. Exclusive OR gives one when the two inputs differ, and exclusive NOR when they are the same. Inside chips, transistors acting as switches build every gate.