Hi all, I have a very trivial question. I have a 16-bits register. How to retrieve 8-LSBs and 8-HSBs from the register. Give some examples thanks regards /M
If you only want 4 of the 8 LSBits I would mask it like this.
LSB = (unsigned char)(reg16 & 0x000F);