{"id":14474,"date":"2020-10-12T09:00:57","date_gmt":"2020-10-12T16:00:57","guid":{"rendered":"http:\/\/www.autodesk.com\/products\/fusion-360\/blog\/?p=14474"},"modified":"2022-01-07T08:26:41","modified_gmt":"2022-01-07T16:26:41","slug":"logic-gates-electronic-circuits-and-or-nor","status":"publish","type":"post","link":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/logic-gates-electronic-circuits-and-or-nor\/","title":{"rendered":"Incorporating Logic Gates in Your Next Electronic Circuit  &#8211; Part 1"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-14475\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/electronic-circuit-1024x681.jpg\" alt=\"\" width=\"1024\" height=\"681\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/electronic-circuit-1024x681.jpg 1024w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/electronic-circuit-300x200.jpg 300w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/electronic-circuit-768x511.jpg 768w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/electronic-circuit-1536x1021.jpg 1536w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/electronic-circuit-2048x1362.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Are you looking for a detailed guide to incorporating logic gates in your next <a href=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/category\/electrical\/\">electronic<\/a> circuit design project? If yes, then you\u2019re in the right place. This blog post will take you through the various types of logic gates and teach you how to use them to <a href=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/learn-to-design-pcbs\/\">design your circuits<\/a> the right way.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Understanding how logic gates work is one of the fundamental concepts that every circuit designer must know. They perform mathematical operations such as addition, subtraction, multiplication, and division, making it easy to design digital electronic circuits for various applications. They take two or more binary inputs, in the form of voltages, and produce an output signal, depending on the type of mathematical operation performed.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Since they work on binary inputs, there are only two voltage levels, i.e., 1 or 0. 1 corresponds to a high voltage, usually 5V, while 0 corresponds to a low level, typically 0V. The logic gate then compares these input voltages to produce a relevant output voltage again, either 0 or 1.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">There are seven types of logic gates, which are listed as follows:<\/span><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">AND\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">OR<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">NOR<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">NAND<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">XOR<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">XNOR<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">NOT\u00a0<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">All logic gates mentioned above have two or more inputs, except the NOT gate, which has only one input terminal. Let\u2019s look at some of the most commonly-used logic gates and see how we can incorporate them into our electronic circuit designs.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2>AND Gate<\/h2>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14489 size-full\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/ANDgate.png\" alt=\"and-gate\" width=\"701\" height=\"403\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/ANDgate.png 701w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/ANDgate-300x172.png 300w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">The AND gate is a very popular logic gate which works on the principle of logical multiplication. It returns a high output value only if all its inputs are high. In other words, an AND gate produces a low output voltage whenever one or more of its inputs are low. A Boolean equation for a two-input AND gate can be given as:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>F = A.B<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Which generates the following truth table showing the possible input combinations and their outputs:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14481 size-full\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Screen-Shot-2020-10-09-at-2.56.44-PM.png\" alt=\"and-gate-truth-table\" width=\"858\" height=\"434\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Screen-Shot-2020-10-09-at-2.56.44-PM.png 858w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Screen-Shot-2020-10-09-at-2.56.44-PM-300x152.png 300w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Screen-Shot-2020-10-09-at-2.56.44-PM-768x388.png 768w\" sizes=\"auto, (max-width: 858px) 100vw, 858px\" \/><\/p>\n<h3><strong>Internal Working<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">The internal working of logic gates can be understood through resistor and transistor circuits. For each input, we will have a transistor connected with a resistor, forming a switch. For a AND gate, the transistors will be connected in series, and the output signal would be measured from the emitter of the second transistor via a load resistor. The diagram below demonstrates how an AND gate works.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14490 size-full\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/AND-Transistor.png\" alt=\"and-gate-internal-working\" width=\"478\" height=\"503\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/AND-Transistor.png 478w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/AND-Transistor-285x300.png 285w\" sizes=\"auto, (max-width: 478px) 100vw, 478px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">For the output \u201cF\u201d to be high, both transistors must produce a high signal, i.e. they must be ON. Even if one of them turns OFF, no output signal would be generated; hence, the AND gate&#8217;s output would be 0.<\/span><\/p>\n<h3><strong>Simple AND Gate Circuit<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Here is a simple circuit that uses an AND gate as the main processing element.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14491 size-full\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/AND-circuit.png\" alt=\"and-gate-circuit\" width=\"910\" height=\"438\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/AND-circuit.png 910w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/AND-circuit-300x144.png 300w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/AND-circuit-768x370.png 768w\" sizes=\"auto, (max-width: 910px) 100vw, 910px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Two input signals with switches are connected to the AND gate, and an LED is connected to the output terminal, which turns on only when both inputs are high.\u00a0<\/span><\/p>\n<h3><strong>Multiple Gate Design<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">Working with one AND gate is pretty simple; let\u2019s see how we can incorporate more than one AND gates in the same circuit.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Consider a light bulb in your room which you want to turn on when four conditions are met. Those conditions can be that the door is closed, the fan is turned on, some background music playing, and the windows are shut. If these conditions are met, they will produce a high logic level on the input terminals of the AND gate, and when all conditions are met, the bulb will light on (the output will be high).\u00a0 The following circuit demonstrates this scenario.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14492 size-full\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/2020-10-06_01-43-16.png\" alt=\"and-multiple-gate-design\" width=\"1001\" height=\"722\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/2020-10-06_01-43-16.png 1001w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/2020-10-06_01-43-16-300x216.png 300w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/2020-10-06_01-43-16-768x554.png 768w\" sizes=\"auto, (max-width: 1001px) 100vw, 1001px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Here, two AND gates act as inputs, and one is the output gate. The four condition signals (A, B, C, D) are present at each of the input terminals of the two input gates, which produce an intermediate signal that acts as the input for the third AND gate. The final output (F) is fed to a bulb, which lights up only when all four inputs A, B, C, D, are high. <\/span><\/p>\n<h2><strong>OR Gate<\/strong><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14493 size-full\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/ORgate.png\" alt=\"or-gate\" width=\"798\" height=\"441\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/ORgate.png 798w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/ORgate-300x166.png 300w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/ORgate-768x424.png 768w\" sizes=\"auto, (max-width: 798px) 100vw, 798px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Another very commonly used logic gate is the OR gate, which performs the function of logical addition. If we consider a two-input OR gate, the output will be high whenever one of the inputs is high, and the output will be low when both inputs are low. You can write the Boolean equation for a two-input OR gate the following way:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>F = A + B<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">The \u2018+\u2019 sign does not imply algebraic addition; rather, it represents logical addition, which is different from algebraic addition. This equation can be used to build the following truth table for the OR gate, which shows the output logic level for all possible input combinations.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-14482\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Screen-Shot-2020-10-09-at-2.58.18-PM.png\" alt=\"or-gate-truth-chart\" width=\"836\" height=\"466\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Screen-Shot-2020-10-09-at-2.58.18-PM.png 836w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Screen-Shot-2020-10-09-at-2.58.18-PM-300x167.png 300w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Screen-Shot-2020-10-09-at-2.58.18-PM-768x428.png 768w\" sizes=\"auto, (max-width: 836px) 100vw, 836px\" \/><\/p>\n<h3><strong>Internal Working<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">Like the AND gate, a combination of transistors and resistors can be used to explain the internal working of a two-input OR gate. Previously, we connected the transistors in series to form an AND gate because its output is only high when both inputs are high. However, for an OR gate, we will connect the transistors in parallel, so that even if one transistor is switched on, a high voltage is present on the output terminal.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14494 size-full\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/OR-Transistor.png\" alt=\"or-gate-internal\" width=\"649\" height=\"508\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/OR-Transistor.png 649w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/OR-Transistor-300x235.png 300w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">According to the circuit diagram, a high voltage will be present on the output \u201cF\u201d whenever any one of the two transistors is switched on, i.e., whenever A or B is high.\u00a0<\/span><\/p>\n<h3><strong>Simple OR Gate Circuit<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14495 size-full\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/OR-circuit.png\" alt=\"or-gate-circuit\" width=\"905\" height=\"298\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/OR-circuit.png 905w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/OR-circuit-300x99.png 300w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/OR-circuit-768x253.png 768w\" sizes=\"auto, (max-width: 905px) 100vw, 905px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Here is a simple OR gate circuit with a 2-input OR gate which has an LED connected to its output. The LED will light up even if one of the two inputs is high.<\/span><\/p>\n<h3><strong>Multiple Gate Design<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">We can design circuits with multiple OR gates incorporated in them. Consider a car alarm system that goes off when any of the four doors is not properly shut. For the alarm to go off, it needs one of the doors to send a \u201chigh\u201d signal. We can connect the four doors through OR gates and connect the output to the alarm, as shown below:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14496 size-full\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Multiple-OR.png\" alt=\"or-multiple-gate-design\" width=\"897\" height=\"426\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Multiple-OR.png 897w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Multiple-OR-300x142.png 300w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Multiple-OR-768x365.png 768w\" sizes=\"auto, (max-width: 897px) 100vw, 897px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">If the doors are closed, they will be at logic level 0, but if they are open, they will set the OR gate\u2019s input at a high voltage, i.e., logic level 1. Even if one of the doors is open, it will set one of the inputs of IC3 to 1 and activate the alarm; this is a simple illustration of how you can incorporate multiple gates in the same circuit for real-life applications.\u00a0<\/span><\/p>\n<h2><strong>NOR Gate<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14497 size-full\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/NORgate.png\" alt=\"nor-gate\" width=\"845\" height=\"418\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/NORgate.png 845w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/NORgate-300x148.png 300w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/NORgate-768x380.png 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">NOR is a short form for (Not-OR), which implies that a NOT gate is added at the OR gate\u2019s output to form the NOR gate (indicated by a bubble after the OR gate symbol). NOT is an inverting gate, which means that it will generate 1 at the output if the input is 0, and vice versa. To make it easier to understand, you can consider the NOR gate to work exactly opposite the OR gate.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">NOR will return a logic level 0 when any of its inputs are 1; otherwise, it will remain at logic level 1. The NOR gate performs logical addition and then inverts the results, or it first inverts the inputs and then performs logical multiplication. We can write the equation as:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong>F = A + B<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">The overline indicates the \u201cNOT\u201d function. This equation generates the following truth table:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14483 size-full\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Screen-Shot-2020-10-09-at-2.59.38-PM.png\" alt=\"nor-gate-truth-chart\" width=\"674\" height=\"342\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Screen-Shot-2020-10-09-at-2.59.38-PM.png 674w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Screen-Shot-2020-10-09-at-2.59.38-PM-300x152.png 300w\" sizes=\"auto, (max-width: 674px) 100vw, 674px\" \/><\/p>\n<h3><strong>Internal Working<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">To explain a NOR gate\u2019s internal working, consider two transistors connected in parallel with their emitters connected to the ground and their collectors joint to a resistor, connecting them to the voltage supply Vcc. The two inputs, A and B, are applied at each of the transistors\u2019 bases, and the output, F, is measured where the two collectors meet.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14498 size-full\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/NOR-Transistor.png\" alt=\"nor-gate-internal\" width=\"644\" height=\"470\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/NOR-Transistor.png 644w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/NOR-Transistor-300x219.png 300w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Here, the NOR gate will always generate a low output except when both the transistors are cutoff (at logic level 0).\u00a0<\/span><\/p>\n<h3><strong>Simple NOR Gate Circuit<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">We can use the NOR gate to light up a bulb as we did previously. Here\u2019s how the circuit would look like:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14499 size-full\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/NOR-circuit.png\" alt=\"nor-gate-circuit\" width=\"899\" height=\"290\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/NOR-circuit.png 899w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/NOR-circuit-300x97.png 300w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/NOR-circuit-768x248.png 768w\" sizes=\"auto, (max-width: 899px) 100vw, 899px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">The two inputs can be any conditions that you want to meet to turn the lights ON because typically, the light will remain off (at logic level 0). Only when the NOR gate receives two 0\u2019s at its input will it turn the light on.\u00a0<\/span><\/p>\n<h3><strong>Multiple Gate Design<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">We can incorporate multiple NOR gates in a circuit if we need a 4-input NOR gate. But the catch here is that this time we won\u2019t be using 3 transistors; instead, we will use 5 NOR gates as shown below:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14500 size-large\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/MultipleNOR-1024x612.png\" alt=\"nor-multiple-gate-design\" width=\"1024\" height=\"612\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/MultipleNOR-1024x612.png 1024w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/MultipleNOR-300x179.png 300w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/MultipleNOR-768x459.png 768w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/MultipleNOR.png 1330w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">If A and B are 0, then X1 will generate a High output i.e. logic level 1, which is then fed as an input to both the terminals of X3, rendering a 0 as the output, which implies that since A and B are 0, the input to X5 is also the same. The intermediate gates only perform an inverting function so that the final gate gets the same inputs present at A, B, C, and D.\u00a0<\/span><\/p>\n<h2><strong>Multiplexers<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">Multiplexers (or MUX) allow multiple analog or digital signals to travel through a single output. They are commonly used in telecommunications, where multiple calls or text messages need to travel on the same network, i.e. the same output terminal.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">A multiplexer has multiple input lines and a single output terminal. It selects the inputs one-by-one and allows them to use the output line for a specific time. A selector line allows you to select which input you want to transmit on the output. Here is what a multiplexer IC looks like:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14501 size-full\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Multiplexer-IC.png\" alt=\"multiplexer\" width=\"466\" height=\"497\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Multiplexer-IC.png 466w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Multiplexer-IC-281x300.png 281w\" sizes=\"auto, (max-width: 466px) 100vw, 466px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">This is an IC with 4 multiplexers, each having two input lines and one output line (2:1 MUX), called a quad 2:1 MUX IC. Each of the input lines is denoted by A and B. For instance, the first multiplexer\u2019s input lines are 1A and 1B, and 1Y represents the output line. The selection line is indicated by <\/span><span style=\"font-weight: 400;\">A<\/span><span style=\"font-weight: 400;\">\/B, which means that it will select A if it is set at 0 and select B is supplied with a high logic level.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">The input lines (M) and the number of selection lines (n) are related through a simple formula:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>M = 2<\/b><b>n<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14502 size-full\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/MUX-4_1.png\" alt=\"multiplexer-input-output\" width=\"319\" height=\"334\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/MUX-4_1.png 319w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/MUX-4_1-287x300.png 287w\" sizes=\"auto, (max-width: 319px) 100vw, 319px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">For instance, if we need 4 input lines, then the number of selection lines required are n=2 i.e. for a 4:1 MUX, the number of selection lines required is 2. Each of the four inputs would be selected based on the 0 and 1 combination of the two selection lines. We can name the inputs as A, B, C, D, the selection lines S<\/span><span style=\"font-weight: 400;\">0<\/span><span style=\"font-weight: 400;\"> and S<\/span><span style=\"font-weight: 400;\">1<\/span><span style=\"font-weight: 400;\">, and see what the truth table for a 4:1 MUX looks like:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14505 size-full\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Screen-Shot-2020-10-12-at-9.41.31-AM.png\" alt=\"multiplexer-truth-chart\" width=\"736\" height=\"356\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Screen-Shot-2020-10-12-at-9.41.31-AM.png 736w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/Screen-Shot-2020-10-12-at-9.41.31-AM-300x145.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Multiplexer Circuit Examples<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">Multiplexers are used in many applications such as communication systems, telephone networks, computer processing, and satellite communications. According to a specific selection scheme, they allow multiple input signals to travel on the same output line.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Similarly, we have an example of an adjustable-gain amplifier, which uses a multiplexer to adjust an operational amplifier&#8217;s gain. Its gain depends on the input and feedback resistor values. One way to adjust the gain is to add a multiplexer on the feedback circuit, where each MUX input would have a different resistance value attached to it. The selection lines would be used to adjust the feedback resistance and change the overall amplifier gain. We can do so by designing a circuit like this:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-14506 size-full\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/MUX-circuit.png\" alt=\"multiplexer-circuit\" width=\"707\" height=\"508\" srcset=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/MUX-circuit.png 707w, https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/MUX-circuit-300x216.png 300w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">We have used a Dual 4:1 MUX IC together with LM741 op-amp IC. The user can choose from the resistors R1, R2, R3, and R4, by applying a suitable input at the selection lines. You can adjust the gain of the op-amp by using a multiplexer.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Logic gates and multiplexers can be used in many ways to design useful electronic circuits for various applications. Now that you understand how they work, and you\u2019re ready to use them; however you like.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Logic gates and multiplexers are the heart of digital electronic circuits. They work on the simple principle of 1s and 0s, which is very easy to understand and implement for beginners and experienced professionals. They are used in many electronic circuits such as microcontrollers, computer circuitry, microprocessors, digital signal processors, and several other logic circuits. The main concept behind these circuits is Boolean algebra, which is very simple to understand; hence, working with 1s and 0s might sound like a simple job, but the combination of these numbers has led to the creation of many magnificent and wonderful electronic devices and processes.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>Ready to incorporate AND, OR and NOR gates into your next circuit design? Fusion 360 gives you access to comprehensive electronics and PCB design tools in <a href=\"https:\/\/www.autodesk.com\/products\/fusion-360\/electronics-engineer\">one product development platform<\/a>\u2014try it today!<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.autodesk.com\/products\/fusion-360\/free-trial\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13104 size-full\" src=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/04\/Download.png\" alt=\"download-fusion-360\" width=\"280\" height=\"43\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When and how to use three of the most common logic gates: AND, OR and NOR.<\/p>\n","protected":false},"author":3911,"featured_media":14475,"menu_order":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[359],"tags":[209,207,206],"coauthors":[],"class_list":["post-14474","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-electronics-engineering","tag-electrical-engineer","tag-electronics","tag-pcb","dhig-theme--light"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Incorporating Logic Gates in Your Next Electronic Circuit - Fusion Blog<\/title>\n<meta name=\"description\" content=\"A deep dive into when and how to use three of the most common logic gates (AND, OR and NOR) in your next electronic circuit design project.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/logic-gates-electronic-circuits-and-or-nor\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Incorporating Logic Gates in Your Next Electronic Circuit - Fusion Blog\" \/>\n<meta property=\"og:description\" content=\"A deep dive into when and how to use three of the most common logic gates (AND, OR and NOR) in your next electronic circuit design project.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/logic-gates-electronic-circuits-and-or-nor\/\" \/>\n<meta property=\"og:site_name\" content=\"Fusion Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-12T16:00:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-07T16:26:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/electronic-circuit-scaled.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1702\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Edwin Robledo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Edwin Robledo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Incorporating Logic Gates in Your Next Electronic Circuit - Fusion Blog","description":"A deep dive into when and how to use three of the most common logic gates (AND, OR and NOR) in your next electronic circuit design project.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/logic-gates-electronic-circuits-and-or-nor\/","og_locale":"en_US","og_type":"article","og_title":"Incorporating Logic Gates in Your Next Electronic Circuit - Fusion Blog","og_description":"A deep dive into when and how to use three of the most common logic gates (AND, OR and NOR) in your next electronic circuit design project.","og_url":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/logic-gates-electronic-circuits-and-or-nor\/","og_site_name":"Fusion Blog","article_published_time":"2020-10-12T16:00:57+00:00","article_modified_time":"2022-01-07T16:26:41+00:00","og_image":[{"width":2560,"height":1702,"url":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/electronic-circuit-scaled.jpg","type":"image\/jpeg"}],"author":"Edwin Robledo","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Edwin Robledo","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/logic-gates-electronic-circuits-and-or-nor\/#article","isPartOf":{"@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/logic-gates-electronic-circuits-and-or-nor\/"},"author":{"name":"Edwin Robledo","@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/#\/schema\/person\/81f7fc85212bfa6e804abcca6343e62a"},"headline":"Incorporating Logic Gates in Your Next Electronic Circuit &#8211; Part 1","datePublished":"2020-10-12T16:00:57+00:00","dateModified":"2022-01-07T16:26:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/logic-gates-electronic-circuits-and-or-nor\/"},"wordCount":2127,"commentCount":0,"image":{"@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/logic-gates-electronic-circuits-and-or-nor\/#primaryimage"},"thumbnailUrl":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/electronic-circuit-scaled.jpg","keywords":["Electrical Engineer","Electronics","PCB"],"articleSection":["Electronics Engineering"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/logic-gates-electronic-circuits-and-or-nor\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/logic-gates-electronic-circuits-and-or-nor\/","url":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/logic-gates-electronic-circuits-and-or-nor\/","name":"Incorporating Logic Gates in Your Next Electronic Circuit - Fusion Blog","isPartOf":{"@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/logic-gates-electronic-circuits-and-or-nor\/#primaryimage"},"image":{"@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/logic-gates-electronic-circuits-and-or-nor\/#primaryimage"},"thumbnailUrl":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/electronic-circuit-scaled.jpg","datePublished":"2020-10-12T16:00:57+00:00","dateModified":"2022-01-07T16:26:41+00:00","author":{"@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/#\/schema\/person\/81f7fc85212bfa6e804abcca6343e62a"},"description":"A deep dive into when and how to use three of the most common logic gates (AND, OR and NOR) in your next electronic circuit design project.","breadcrumb":{"@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/logic-gates-electronic-circuits-and-or-nor\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/logic-gates-electronic-circuits-and-or-nor\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/logic-gates-electronic-circuits-and-or-nor\/#primaryimage","url":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/electronic-circuit-scaled.jpg","contentUrl":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2020\/10\/electronic-circuit-scaled.jpg","width":2560,"height":1702},{"@type":"BreadcrumbList","@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/logic-gates-electronic-circuits-and-or-nor\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/"},{"@type":"ListItem","position":2,"name":"Incorporating Logic Gates in Your Next Electronic Circuit &#8211; Part 1"}]},{"@type":"WebSite","@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/#website","url":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/","name":"Fusion Blog","description":"Product updates, tips, tutorials and community news.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/#\/schema\/person\/81f7fc85212bfa6e804abcca6343e62a","name":"Edwin Robledo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2025\/01\/edwin-headshot-150x150.jpg99104a7458ebc06e35b3a1ab1af8476c","url":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2025\/01\/edwin-headshot-150x150.jpg","contentUrl":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-content\/uploads\/2025\/01\/edwin-headshot-150x150.jpg","caption":"Edwin Robledo"},"description":"I began my career in the communications industry, primarily with the implementation of fiber optics communications and data management. I joined the EAGLE team 25 years ago to satisfy my passion for being involved with circuit board designs. I\u2019m the Technical Marketing Engineer for Fusion 360 electronics and part of the Fusion 360 community team. I have published best practices articles, Blogs, hundreds of video tutorials, and hosted several electronic design bootcamps. My passion is anything related to the outdoors, especially outdoor photography and hiking.","url":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/author\/edwin-robledo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/posts\/14474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/users\/3911"}],"replies":[{"embeddable":true,"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/comments?post=14474"}],"version-history":[{"count":0,"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/posts\/14474\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/media\/14475"}],"wp:attachment":[{"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/media?parent=14474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/categories?post=14474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/tags?post=14474"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.autodesk.com\/products\/fusion-360\/blog\/wp-json\/wp\/v2\/coauthors?post=14474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}