โ Digital Electronics learning pathDigital Electronics ยท Module 2 of 10
Logic gates
AND, OR, NOT, NAND, NOR, XOR and XNOR.
๐ Key ideas
- AND gives 1 only when all inputs are 1; OR gives 1 when any input is 1; NOT inverts.
- NAND and NOR are universal gates: any circuit can be built from only NAND or only NOR.
- XOR gives 1 when the inputs differ; XNOR gives 1 when they are equal.
- A truth table lists the output for every input combination: n inputs give 2^n rows.
- 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