Week 3: XOR and XNOR Gates, IC Power, and ESD Awareness

Course Learning Outcomes
  • CLO2–CLO4: Master number system conversions, combinational/sequential logic operations, truth tables, Boolean equations, and simplification via Boolean algebra and Karnaugh maps (K-maps).

  • CLO5–CLO8: Design digital circuits using datasheets, implement control logic validated via Proteus simulation and breadboarding, and report findings using standard technical terminology.

Overview of Logic Gates
  • Definition: Fundamental building blocks of digital electronic circuits.

  • Applications: Implemented in computing systems (arithmetic and data processing), smartphones (interfaces and solid-state memory), digital watches (frequency clocks and timekeeping), and automation systems (decision trees and robotic control).

Exclusive-OR (XOR) Gate
  • Logic Function: Acts as an inequality/difference detector. Outputs HIGH (11) if and only if inputs are different; outputs LOW (00) if inputs are identical.

  • Multi-Input Rule: Outputs HIGH (11) when an odd number of inputs are HIGH (11).

  • Boolean Expression: X=A⊕BX = A ⊕ B

  • Truth Table Summary:

    • A=0A = 0, B=0→X=0B = 0 → X = 0

    • A=0A = 0, B=1→X=1B = 1 → X = 1

    • A=1A = 1, B=0→X=1B = 0 → X = 1

    • A=1A = 1, B=1→X=0B = 1 → X = 0

Engineering Implementations of XOR Gates
  • Parity Generation/Checking: Computes parity bits to maintain data transmission integrity by detecting bit inequalities.

    • Even Parity: Sets parity bit to 11 if data has an odd number of 11s, making the total count even.

    • Odd Parity: Sets parity bit to 11 if data has an even number of 11s, maintaining an odd total.

  • Binary Adders:

    • Half Adder: Generates Sum (S=A⊕BS = A ⊕ B) and Carry (C=A⋅BC = A \cdot B).

    • Full Adder: Cascades inputs with Carry-in to compute Sum (S=A⊕B⊕CinS = A ⊕ B ⊕ C_{\text{in}}).

  • Symmetric Cryptography: Bitwise XOR masks plaintext with a pseudo-random key (Ciphertext=Plaintext⊕Key\text{Ciphertext} = \text{Plaintext} ⊕ \text{Key}); reapplying the key via XOR restores the original plaintext.

  • Fault Detection & Calibration: Discrepancy detector between sensor feedback and expected commands in PLCs (industrial EMTY) and pulse oximeter signal processing (BMTY).

Exclusive-NOR (XNOR) Gate
  • Logic Function: Operates as an equivalence or identity comparator (inverse of XOR). Outputs HIGH (11) when all inputs are equal.

  • Multi-Input Rule: Evaluates to HIGH (11) if and only if the total count of HIGH (11) inputs is even.

  • Boolean Expression: X=(A⊕B)′=A⊕B‾=A⊙BX = (A ⊕ B)' = \overline{A ⊕ B} = A \odot B

  • Truth Table Summary:

    • A=0A = 0, B=0→X=1B = 0 → X = 1

    • A=0A = 0, B=1→X=0B = 1 → X = 0

    • A=1A = 1, B=0→X=0B = 0 → X = 0

    • A=1A = 1, B=1→X=1B = 1 → X = 1

Engineering Implementations of XNOR Gates
  • Digital Combination Locks: Bit-by-bit comparator between input code and stored preset; all matching outputs feed an AND gate to trigger unlocking.

  • Conveyor Synchronization (EMTY): Verifies synchronous travel between assembly belts by monitoring pulse alignments; mismatch drops output to LOW (00).

  • Diagnostic Imaging (BMTY): Compares angular CT/MRI signal data against reference templates to identify RF noise or motion artifacts.

IC Power Supply Architecture
  • Logic Families:

    • TTL: Rigid requirement of +5 V+5\,\text{V} DC.

    • CMOS: Operates over a flexible range from +3 V+3\,\text{V} to +15 V+15\,\text{V}; draws negligible static power, ideal for battery devices like digital watches.

  • 7805 Voltage Regulator: Fixed 3-terminal linear regulator supplying a regulated +5 V+5\,\text{V} rail using an input capacitor (0.22 μF0.22\,\mu\text{F}) and an output stabilizing capacitor.

  • Bypass and Decoupling Capacitors: Standard 0.1 μF0.1\,\mu\text{F} capacitors suppress high-frequency noise and act as local reservoirs to prevent rail droop during rapid state transitions.

  • Overvoltage Protection: Clamping via reverse-biased Zener diodes (e.g., 5.6 V5.6\,\text{V} diode on a +5 V+5\,\text{V} line) and Transient Voltage Suppression (TVS) diodes.

Electrostatic Discharge (ESD) Mitigation
  • Definition & Impact: Rapid charge transfer causing catastrophic component destruction (immediate oxide puncture) or latent defects (micro-cracks causing premature failure under stress).

  • Common Sources: Walking on carpet, handling non-conductive plastics, and ungrounded IC extraction.

  • Protective Measures: Anti-static wrist straps (integrated with a 1 MΩ1\,\text{M}\Omega safety resistor), static-shielding bags (Faraday cages), and grounded ESD-safe workstations with dissipative mats.

Assessment & Course Roadmap
  • Quiz 1 (Week 4): Evaluates Weeks 1–3 material; worth 5%5\% of course grade; delivered via DC Connect on laptop/tablet; strictly electricity kit calculators only; one handwritten reference sheet permitted (no worked examples).

  • Upcoming Topics: Boolean algebra axioms, DeMorgan's theorems, SOP/POS representations, 2-to-1 multiplexers, and Karnaugh map (K-map) minimization.