Results 1 to 2 of 2

Thread: packing multiple bytes into a single word?

  1. #1

    Default packing multiple bytes into a single word?

    What's the best way to combine multiple bytes into a common word? I've got a 10 bit signal I'm reading, 1 complete byte plus the last 2 bits of the preceding byte, and need to capture the decimal value of those 10 sequential bits. I'm assuming packing the two bytes into an otherwise empty word would be best, are there other options? Thanks.

  2. #2
    Join Date
    Aug 2009
    ifm Exton, PA


    That would work fine. You can multiply one byte by 256 and then add the other to the word.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts