Byte Parts and It's Terminology
Byte Parts: Bit, Crumb, Nibble, Byte — LSB & MSB
Every piece of digital data—text, images, sound—is built from bits (0 or 1).
Bits group into larger, human-friendly units with specific names: crumbs (2 bits), nibbles (4 bits), and bytes (8 bits).
Understanding these building blocks—and how LSB and MSB work—makes binary, hex, and memory maps much easier.
🔹 1️⃣ Core Definitions
- Bit: the smallest unit of information — 0 or 1.
- Crumb: a group of 2 bits. (Yes, “crumb” is the official term used in your slides.)
- Nibble: a group of 4 bits (½ byte).
- Byte: 8 bits. (1 byte = 2 nibbles = 4 crumbs.)
🔹 2️⃣ Lower vs Upper Nibble
-
Lower Nibble: the rightmost 4 bits of a byte (
b3 b2 b1 b0). -
Upper Nibble: the leftmost 4 bits of a byte (
b7 b6 b5 b4).
These names matter because hex maps perfectly to nibbles: 1 byte ↔ 2 hex digits (upper nibble = first hex digit, lower nibble = second).
🔹 3️⃣ LSB & MSB
-
LSB (Least Significant Bit): the rightmost bit of the byte (
b0). It carries the smallest weight (2⁰). -
MSB (Most Significant Bit): the leftmost bit of the byte (
b7). It carries the largest weight (2⁷). We call them “least/most significant” because they contribute the least/most to the numeric value of the binary number.
🔹 4️⃣ Quick Examples
-
Byte:
0101 1100-
Upper nibble =
0101(hex 5) -
Lower nibble =
1100(hex C) -
LSB =
0(rightmost) -
MSB =
0(leftmost)
-
Upper nibble =
-
Byte:
1010 0111- Upper nibble =
1010(hex A) - Lower nibble =
0111(hex 7) - LSB =
1, MSB =1
- Upper nibble =
🔗 Interconnection
- 2 bits = Crumb, 4 bits = Nibble, 8 bits = Byte → hierarchical building blocks.
-
Upper nibble (left 4) + Lower nibble (right 4) = 1 byte → aligns perfectly with two hex digits.
-
MSB (leftmost) carries the highest weight, LSB (rightmost) the lowest → drives numeric value.
By mastering crumbs, nibbles, bytes, and LSB/MSB, you read binary/hex confidently and avoid off-by-nibble errors in real code! 🚀
06 Programming Foundations - ByteParts.pdf
9 comments