Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

MSB - Most significant bit

Bit Numbering:

There are 2 common bit numbering schemes LSB0 nad LSB1:

LSB0:

Starts with LSB as 0 goes to MSB as 7

LSB1:

Starts with LSB as 1 goes to MSB as 8

Image Added

In other words:

  • A bit has two values (on or off, 1 or 0)
  • A byte is a sequence of 8 bits
    • The "leftmost" bit in a byte is the biggest. So, the binary sequence 00001001 is the decimal number 9. 00001001 = (23 + 20 = 8 + 1 = 9).
    • For LSB0, Bits are numbered from right-to-left. Bit 0 is the rightmost and the smallest; bit 7 is leftmost and and the largest
    • For LSB1, Bits are numbered from right-to-left. Bit 1 is the rightmost and the smallest; bit 8 is leftmost and the largest


The referring to the first bit or the last bit are not clear and are to be avoided. Likewise, The left most bit should always be referred to as "bit 7" instead of "the left most bit" etc.

...