Professional Documents
Culture Documents
Digital Fundamentals: Logic and Digital Technics
Digital Fundamentals: Logic and Digital Technics
0 0 0 11 1100 9
1 0100 1011 8
2 0101 1010 7
3 0110 1001 6
4 0111 1000 5
5 1000 0111 4
6 1001 0110 3
7 1010 0101 2
8 1011 0100 1
9 1100 0011 0
• This table is formed by taking the conventional binary scale and
shifting it up three places so that the code for decimal 3 (0011)
now becomes decimal 0, decimal 4 (0100) becomes decimal 1
and so on.
• It can be seen that the first three and the last three of the 16
possible 4 digit binary combinations are not used. It can also be
seen that this code is self complementing as is the BCD 2, 4, 2,
1 code but it does not have the disadvantage of having 0000 and
1111 binary numbers included in it.
• To convert from XS3 to decimal, the decimal equivalent of each
4 bit group is written down and the 3 is subtracted from the
number. For example, if the XS3 binary number is 1000, this
converts to decimal eight using ordinary binary conversion, then
by taking decimal 3 from this we get 5 which you can see from
the table is correct.
• SOME COMPUTER TECHNOLOGY
• We have already made use of the word bit derived from Binary
digiT. consider the decimal number 347 when converted into
pure binary number form and 8, 4, 2, 1 BCD and the XS3 codes.
• Decimal 347
• Binary 101011011
• 8, 4, 2, 1 0011 0100 0111
• XS3 0110 0111 1010
• The corresponding groups of binary digits are known as a
WORD and each word is formed by a number of BITS and this
represents a word LENGTH. In the example above, the natural
binary number has a word length of 9 bits and in the 8, 4, 2, 1
BCD and XS3 the word length is 12.
• It should be noted that the word length of BCD or
XS3 codes is always equal to 4 times the number of
decimal digits.
• There are other codes also in use for example the
GRAY CODE and AMERICAN STANDARD CODE
for INFORMATION INTERCHANGE. The former of
these deals with decimal numbers whilst the later is a
code for representing alphabetic characters as well as
numbers.