Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:1xfaq_msb_and_lsb_in_card_id_format [2015/10/08 14:20]
127.0.0.1 external edit
en:1xfaq_msb_and_lsb_in_card_id_format [2019/12/26 17:01] (current)
nykwon [MSB and LSB in Card ID Format]
Line 17: Line 17:
 Now we will see how the card number changes after changing the bit order to LSB. The resulting number read from the device will be 4,​008,​107,​047,​ which is 11101110 11100110 11011100 00100111 in the binary number. \\ Now we will see how the card number changes after changing the bit order to LSB. The resulting number read from the device will be 4,​008,​107,​047,​ which is 11101110 11100110 11011100 00100111 in the binary number. \\
  
-You may have noticed that the number is the opposite of the original number. If you read the original number ​backwards, the two numbers are exactly same. \\+You may have noticed that the number is the opposite of the original number. If you read the original number ​backward, the two numbers are exactly ​the same. \\
  
 {{:​en:​msb_lsb_02.png?​nolink&​400|}} \\ {{:​en:​msb_lsb_02.png?​nolink&​400|}} \\
  
-Now let's change the byte order to LSB and the bit order to MSB. Then, the resulting number is 2,​003,​254,​244,​ which is 01110111 01100111 00111011 11100100 in the binary number. One byte is 8 bits, so the first byte of the binary number read in the LSB byte order and the MSB bit order is same as the last byte of the binary number read in the MSB byte order and the MSB bit order. \\+Now let's change the byte order to LSB and the bit order to MSB. Then, the resulting number is 2,​003,​254,​244,​ which is 01110111 01100111 00111011 11100100 in the binary number. One byte is 8 bits, so the first byte of the binary number read in the LSB byte order and the MSB bit order is the same as the last byte of the binary number read in the MSB byte order and the MSB bit order. \\
  
 {{:​en:​msb_lsb_03.png?​nolink&​500|}} \\ {{:​en:​msb_lsb_03.png?​nolink&​500|}} \\
  
-Lastly, change the byte and bit orders to LSB. The resulting number is 668,​788,​462,​ which is 00100111 11011100 11100110 11101110 in the binary number. If you read the number read in the LSB byte order and the MSB bit order backwards, the two numbers are same.+Lastly, change the byte and bit orders to LSB. The resulting number is 668,​788,​462,​ which is 00100111 11011100 11100110 11101110 in the binary number. If you read the number read in the LSB byte order and the MSB bit order backward, the two numbers are the same.