โ† Digital Electronics learning path
Digital Electronics ยท Module 2 of 10

Logic gates

AND, OR, NOT, NAND, NOR, XOR and XNOR.

๐Ÿ“– Key ideas

  1. AND gives 1 only when all inputs are 1; OR gives 1 when any input is 1; NOT inverts.
  2. NAND and NOR are universal gates: any circuit can be built from only NAND or only NOR.
  3. XOR gives 1 when the inputs differ; XNOR gives 1 when they are equal.
  4. A truth table lists the output for every input combination: n inputs give 2^n rows.
  5. Real gates come in IC families such as 74HC (CMOS) with a small propagation delay.
๐Ÿ’ก Real-life example: AND is a series circuit of two switches (both must close); OR is two switches in parallel (either one lights the lamp).
AND gateOutput 1 only when all inputs are 1
Universal gateGate that can build any logic function
XOR gateOutput 1 when inputs differ
Truth tableTable of outputs for every input combination