I'm getting some 8 bit data from a sensor and trying to merge it into 16 bits. But my code on stm32, doesn't work on 0x63 and 0x91 values. All the other values working except these. Result is 0x6291. What is causing this? enter image description here
I tried to merge 0x63 and 0x91 and expected 0x6391 value but I get 0x6291.
before i answer your question i highly recommend you to post a piece of code so we can run it and correct it for you, just to make things easy. now to answer ur question: