The letters MSB can stand for Most Significant Byte or Most Significant Bit. Likewise, the letters LSB stand for Least Significant Byte or Least Significant Bit. They are a way of refering to a particular position in a group of bytes or bits.
MSB | LSB | |||||||
Bit Position | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
Power of 2 | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
Bit Value | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 |
MSB | LSB | |||
Bit Position | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
Power of 2 | 8 | 4 | 2 | 1 |
Bit Value | 0 | 1 | 0 | 0 |
The same concept is used when refering to a group of bytes. For example, when two bytes are combined to form a 16 bit word, there is a most significant byte and a least significant byte as shown below.
MSB | LSB | |
Byte Position | Byte 1 | Byte 0 |
Powers of 2 | bits 15-8 | bits 7-0 |
Byte Value | 3B | 72 |
Sysex data that must be represented with a word value is sent to the Proteus sound module least significant byte first. For example, the pitch wheel MIDI command (E0) requires a data parameter in the range of -7FFF to 8000 hex. To send a pitch wheel event with a data value 3D72, the bytes would be sent in the following order: E0 72 3D. The Proteus unit will reassemble the word value properly after it is received.
Use your browser's Back control to return to the previous page.