Course 10.2Lesson 1 of 3
NAND means NOT AND, and NOR means NOT OR. Each is one gate with a small circle at its output. You learn both symbols and truth tables, and why the output column of NAND is the AND column turned upside down in every row.
Try the code and the simulations beside the lesson.
In the last course you met the small circle at the output of the NOT gate. It means "take the opposite". Put that circle on an AND gate and you get NAND. Put it on an OR gate and you get NOR.
NAND is short for NOT AND. It gives the opposite of an AND gate. So it gives 0 only when both inputs are 1, and 1 in every other row.
The picture shows that one NAND gate does the same job as an AND gate followed by a NOT gate. In the examination, though, draw the NAND symbol when a question asks for a NAND gate.
| A B | A AND B | X = A NAND B |
|---|---|---|
| 0 0 | 0 | 1 |
| 0 1 | 0 | 1 |
| 1 0 | 0 | 1 |
| 1 1 | 1 | 0 |
The logic expression is X = A NAND B. You may also see it written as X = NOT (A AND B).
An example. A machine has a warning light that stays on until both safety checks pass. Check 1 gives C = 1 when it passes, and check 2 gives D = 1. The light is W = C NAND D. It goes off only when both checks pass.
NOR is short for NOT OR. It gives the opposite of an OR gate. So it gives 1 only when both inputs are 0.
| A B | A OR B | X = A NOR B |
|---|---|---|
| 0 0 | 0 | 1 |
| 0 1 | 1 | 0 |
| 1 0 | 1 | 0 |
| 1 1 | 1 | 0 |
The logic expression is X = A NOR B, or X = NOT (A OR B).
An example. A "ready" lamp on a printer is on only when there is no fault. One sensor gives J = 1 for a paper jam, and another gives E = 1 when the ink is empty. The lamp is R = J NOR E. Any fault turns it off.
The program builds NAND and NOR from the gates you already know. It prints both columns. It also joins the two inputs of a NAND gate together, which makes it act like a NOT gate.
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
A = 1 and B = 0. What is the output?X = NOT (A OR B) as one gate.Every lesson is open to read. Enrolling also lets you:
Log in to join the discussion.
Loading…
This lesson is free to read. Enroll free to keep your place and take the tests.