Tutorvo

XOR without XOR: MOD(a+b,2) Bit by Bit, Masks, Undoing XOR and Hamming Distance

Lesson 5 of 815 minLab

This lesson is part of the course

In this lesson

You build the XOR truth table with MOD, XOR a data byte with a mask and back again, and measure the Hamming distance between two code words – the tools the CRC and Hamming labs need.

Buy the course once for $9.99 to unlock every lesson and lab, the final exam and the certificate – lifetime access, no subscription.

Lessons in this course

  1. Bits & Errors: Bit Strings, Flipped Bits, Bursts and Expected Error CountsLab15 min Locked
  2. Parity Bits: Even and Odd Parity, What One Parity Bit Misses and 2-D Parity GridsLab15 min Locked
  3. Check Digits: the Doubling Rule (Mod 10), Weighted Mod 11 and Catching Swapped DigitsLab15 min Locked
  4. Checksums: Byte Sums mod 256, Check Bytes, Ones'-Complement Folding and Their Blind SpotsLab15 min Locked
  5. XOR without XOR: MOD(a+b,2) Bit by Bit, Masks, Undoing XOR and Hamming DistanceLab15 min Locked
  6. CRC by Long Division: Generator Bits, MOD-2 Rows, the Remainder and Checking a Received FrameLab20 min Locked
  7. Hamming(7,4): Parity Positions, Encoding Four Data Bits, the Syndrome and Correcting a Flipped BitLab20 min Locked
  8. Overhead vs Protection: Code Rates, Detection and Correction Power, and a Comparison ChartLab15 min Locked