Special Topics - GPS (30 of 100) Big Endian vs Little Endian: 32 Bit Format By Michel van Biezen

Description

Special Topics - GPS (30 of 100) Big Endian vs Little Endian: 32 Bit Format By Michel van Biezen


Summary:


  1. Introduction to Big Endian and Little Endian:

    • Big Endian: Most significant byte is stored at the smallest memory address.
    • Little Endian: Least significant byte is stored at the smallest memory address.
  2. Explanation Using a 32-Bit Example:

    • Decimal number 133,124 represented in hexadecimal and binary formats.
  3. Hexadecimal Representation:

    • Big Endian: Most significant digit is on the left.
    • Representation: 133124 (in hexadecimal).
  4. Conversion to Little Endian:

    • Move eight bits at a time.
    • Rearrange the bytes accordingly:
      • First 8 bits remain in place.
      • Next 8 bits move to the second position.
      • Following 8 bits move to the third position.
      • Final 8 bits move to the fourth position.
  5. Binary Representation:

    • Similar process in binary format:
      • Move the binary bits in groups of eight.
      • First 8 bits remain in place.
      • Next 8 bits move to the second position.
      • Following 8 bits move to the third position.
      • Final 8 bits move to the fourth position.
  6. Significance of Bit Position:

    • Example given with bit positions and their respective powers of two.
    • Emphasizes the importance of bit ordering in determining the value of each bit.
  7. GPS Data Format:

    • Clarification that GPS data is always in Big Endian format.
    • Most significant bit is on the left, least significant bit is on the right.
  8. Conclusion:

    • Understanding the difference between Big Endian and Little Endian is essential in data representation.
    • GPS data follows the Big Endian format, with the most significant bit first and the least significant bit last.

This summary provides a clear explanation of the difference between Big Endian and Little Endian data formats using a 32-bit example, demonstrating their significance in data representation and emphasizing the adherence of GPS data to the Big Endian format.