Hamming (7,4) Code

Type 4 data bits, watch the encoder add 3 parity bits to form a 7-bit codeword. Inject errors and see the syndrome detect and correct them.

Step 1 — Data bits (d₁d₂d₃d₄)

Step 2 — Codeword (7 bits: p₁p₂d₁p₃d₂d₃d₄)

Step 3 — Syndrome detection & correction