Logic gates and truth tables
About this lesson: Logic gates and truth tables
In short
Digital circuits use two levels: 1 (high) and 0 (low). A logic gate gives an output that depends on its inputs according to a rule. AND gives 1 only when A and B are both 1: Q = A·B. Tap A and B.
What you'll explore
- Digital signals: AND gate
- Digital circuits use two levels: 1 (high) and 0 (low). A logic gate gives an output that depends on its inputs according to a rule.
- OR and NOT: Either, or the opposite
- OR gives 1 when at least one input is 1: Q = A + B. NOT (inverter) has one input and gives the opposite: Q = Ā. These three are the basic gates.
- NAND and NOR: Universal gates
- NAND = NOT AND and NOR = NOT OR, shown by a small circle at the output.
- XOR and XNOR: Different or same
- Exclusive-OR gives 1 when the inputs are different: Q = A ⊕ B = A·B̄ + Ā·B. XNOR gives 1 when they are the same. XOR is used to add binary digits.
- Check yourself: Logic gates
- Check the truth table.
Also in this lesson
- Logic gates in detail
- Common mix-ups
Key words
- Logic gate
- Circuit giving a digital output from digital inputs
- Truth table
- List of outputs for every combination of inputs
- Boolean expression
- Algebraic form of a logic function
- Universal gate
- NAND or NOR, from which any circuit can be made
Sources
- NIE Sri Lanka, G.C.E. (A/L) Physics syllabus, implemented from 2017 (competency level 9.4).
- HyperPhysics (Georgia State University): Logic gates.
- NIE G.C.E. (A/L) Physics practical guidance and teachers' guide (scope of the practicals only; no text copied).
← The operational amplifier · Logic circuits and flip-flops →
All lessons in Unit 9 · Electronics · A/L Physics
A/L Physics past papers 2019–2025: analysis and 10 model papers with answers