Topic 7

Electronics

Binary number system and logic gates — the digital foundation of all modern computing.

A. Binary Number System

Binary Fundamentals

  • Binary uses only two digits: 0 and 1 (Base-2 system)
  • Decimal system is Base-10 (digits 0–9)
  • Each binary digit is called a BIT
  • 8 bits = 1 Byte
Binary → Decimal Multiply each bit by 2^(position) and sum Example: 1011₂ = (1×2³)+(0×2²)+(1×2¹)+(1×2⁰) = 8+0+2+1 = 11₁₀
Decimal → Binary Repeatedly divide by 2, read remainders bottom-up Example: 13 ÷ 2 = 6 rem 1 | 6÷2 = 3 rem 0 | 3÷2 = 1 rem 1 | 1÷2 = 0 rem 1 → 1101₂

Live Binary Converter

Type in either box — converts instantly

Position2⁷2⁶2⁵2⁴2⁰
Value1286432168421

B. Logic Gates

All Logic Gates Summary

GateSymbolOperationOutput RuleA=1, B=1?
ANDA·BLogical ANDOutput 1 only if ALL inputs are 11
ORA+BLogical OROutput 1 if ANY input is 11
NOTĀLogical NOTOutput is opposite of input0
NANDNOT ANDNOT of ANDOutput 0 only if ALL inputs are 10
NORNOT ORNOT of OROutput 1 only if ALL inputs are 00
XORA⊕BExclusive OROutput 1 if inputs are DIFFERENT0
XNORNOT XORExclusive NOROutput 1 if inputs are SAME1
⚡ MCQ Tip AND = all inputs must be 1. OR = any input is 1. NOT = inverts. NAND = opposite of AND (universal gate). NOR = opposite of OR. XOR = different inputs give 1. Binary: 1011₂ = 11₁₀.

C. Complete Truth Tables

Two-Input Gate Truth Tables

AB AND (A·B)OR (A+B) NANDNORXOR (A⊕B)
0000110
0101101
1001101
1111000
Input (A)NOT Output (Ā)
01
10

Live Animation: Logic Gate Signal Simulator

Interactive Gate Simulator

Toggle inputs A and B — all gate outputs update live with animated signals

Signal Pulse Animation — AND Gate

Animated pulses flow from inputs through the gate to the LED output

Quick MCQ Revision

Gate / FactRule
ANDOutput = 1 only if ALL inputs = 1
OROutput = 1 if ANY input = 1
NOTOutput = opposite of input
NANDOpposite of AND — output = 0 only if ALL inputs = 1
NOROpposite of OR — output = 1 only if ALL inputs = 0
XOROutput = 1 if inputs are DIFFERENT
XNOROutput = 1 if inputs are SAME
1 bitBinary digit (0 or 1)
1 Byte8 bits
1011₂= 8+0+2+1 = 11₁₀
13₁₀= 1101₂
Key