Search This Blog

Tuesday, December 13, 2016

BINARY CODED DECIMAL (BCD)


DEFINITION: The word BINARY CODED DECIMAL stands for Decimal number 0 - 9 in which four bits binary number 0000 to 1001 are used to represent each digit of the the decimal numeral. Or can be seen as decimal numbers coded with four bits binary numbers.



In BCD each number is defined by a binary code of 4 bits. The Code is           8 - 4 - 2 - 1, it indicate the weights of each bit 23 – 22 – 21 - 20  
Any number that is beyond 9 will be considered to have 2 digits and each digit will have its four bits binary equivalent. That is, for example, 12 will have its binary equivalent for 1 and 2, which is 0001 0010. 
E.g. 542 = 0101  0100  0010.
                   5       4        2

The difference between the ordinary four bit binary number and BCD is that binary number of decimal numbers greater than 9  is still four bits which ends with 1111 representing 15, while in BCD, it is 8 bits.

the table below shows the decimal,binary and BCD equivalent.



CONVERSION FROM BINARY TO BCD

When Binary numbers are added and the result is not greater than 9, the equivalent binary number is always the same with the BCD. But when it is greater than 9, the binary value will not be valid in BCD. For example, if the result is 15, that is, 1111 it has to be converted to BCD. To do so, 6 (0110) has to be added to the result.
                                         15 =        1111
                                           6 =        0110
                                                        0101
From the addition, the leftmost addition has a carry of 1, which is carried to the next place value.
The result is 0001 0101 which correspond to what we have on the table.
To prove this, the difference between any BCD and corresponding Binary is 6 (0110).

Why number 6 added ? 6 is being added to binary numbers because after 9 there are 6 additional digits to complete the 4- bits binary number of 1111. So, to reset the excess binary number back to 9 (1001) or binary that is within the BCD range 6 (0110) is added to make the counting skip the remaining six decimal values i.e from 10 to 15 which does not obey BCD to return to the BCD codes.


USES OF BCD CODE

BCD Code find usefulness when processing numerical values to be transmitted and display by digital electronic devices which uses seven segment display devices. This device is found in Calculator, Digital Watches.


IF YOU HAVE ANY COMMENT OR QUESTION CONCERNING THE INFORMATION HERE, PLEASE CLICK THE COMMENT BELOW AND POST YOUR MESSAGE. ALSO SHARE THIS WITH YOUR FRIEND ON FACEBOOK AND TWITTER BY CLICKING 'F' AND 'T' BUTTON BELLOW.

2 comments:

  1. I will always advice, that when you want to trade, you should seek the assistance of a well trained personnel. I've been trading with Richard Smith and it would be selfish of me, if i don't recommend them. With their well guarded signals and forever active(master class) strategies i have been able to make over 11,200usd weekly, he offers services to both experience and inexperience trader and also make recovery of lost funds So feel free reach out to him on email: richardsmith2488@gmail.com
    WhatsApp: +1 225-277-1646

    ReplyDelete
  2. Investment is one of the best ways to achieve financial freedom. For a beginner there are so many challenges you face. It's hard to know how to get started. Trading on the Cryptocurrency market has really been a life changer for me. I almost gave up on crypto at some point not until saw a recommendation on Elon musk successfully success story and I got a proficient trader/broker Mr Bernie Doran , he gave me all the information required to succeed in trading. I made more profit than I could ever imagine. I'm not here to converse much but to share my testimony, I recovered my losses and I have made a total profit returns of $20,500 from an investment of just $2000 within 1 week. Thanks to Mr Bernie I'm really grateful,I have been able to make a great returns trading with his signals and strategies .I urge anyone interested in INVESTMENT to take bold step in investing in the Cryptocurrency Market, he can also help you recover your lost funds, you can reach him on WhatsApp : +1(424) 285-0682 or his Gmail : BERNIEDORANSIGNALS@GMAIL.COM tell him I referred you












    When Binary numbers are added and the result is not greater than 9, the equivalent binary number is always the same with the BCD. But when it is greater than 9, the binary value will not be valid in BCD. For example, if the result is 15, that is, 1111 it has to be converted to BCD. To do so, 6 (0110) has to be added to the result.

    ReplyDelete