There are two main types of inverting gates - NAND and NOR gates.
A NAND gate (NOT AND) is similar to an AND gate, but it produces the opposite output - if both inputs are 1, the output is 0, otherwise the output is 1.
This is the symbol for a NAND gate:
You can think of the gate as being equivalent to an AND gate followed by a NOT gate:
Here is the truth table for a NAND gate:
Here is an interactive NAND gate. Click on the inputs A and B to change their state, and see the output value Q.
A NOR gate (NOT OR) is similar to an OR gate, but it produces the opposite output - if either (or both) inputs are 1, the output is 0, otherwise the output is 1.
This is the symbol for a NOR gate:
You can think of the gate as being equivalent to an OR gate followed by a NOT gate:
Here is the truth table for a NOR gate:
Here is an interactive NOR gate. Click on the inputs A and B to change their state, and see the output value Q.
Copyright (c) Axlesoft Ltd 2021