Page 11 - 8 bit and 10 bit numbers

Problem:
On line 6 of page 11 the text states that "For example, the binary number of 00001010 could be worth 10 or it could be worth 80 (64 + 16) if it is the top 8 bits of a 10 bit number (and the least two bits were zero)." This is incorrect.

Solution:
If this bit pattern (00001010) were the least significant 8 bits of a 10 bit number then the result is, of course, ten:



However, if this is the MOST significant 8 bits of a 10 bit number (and the least two bits are zero) then the result is NOT 80 but 40:



In other words, it is 32 plus 8 and not 64 plus 16.

Further information:
I hope that this page helps you with your projects but if you have found any other problems or if you have any further questions please contact me though the email address of gares-AT-g4aym-DOT-org-DOT-uk.

Sorry about the email address but it seems to be the only way to avoid the spammers



Click here to return to the PIC Basics Main Page

Click here for the Index of Errors and Ommissions