This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to Split the 16bit word?

Hi! i want to spilt the 16bit word into two 8bit words,
is there any key words for it. i use the p89V51 mcu and c language Cx51 keil compiler ver3.

regards,
K.T.Venkatesan.

Parents
  • Ah yes - that makes four!

    Of course, division by a power of two is equivalent to shifting.

    I can't see any advantage of division & modulus over shift & mask - and there is the distinct possibility that it will be grossly inefficient if the compiler does actually implement it as the maths functions...

Reply
  • Ah yes - that makes four!

    Of course, division by a power of two is equivalent to shifting.

    I can't see any advantage of division & modulus over shift & mask - and there is the distinct possibility that it will be grossly inefficient if the compiler does actually implement it as the maths functions...

Children