BCD numbers are numerical numbers. So, arithmetic operations can be performed on BCD numbers. Imagine a seven-segment timer display system showing 2 digits for the count of seconds. After every second, the timer should be incremented by 1. This means…
Tag: Binary Coded Decimal
How to Convert Binary to BCD and BCD to Binary
Earlier, we learned that BCD code and the binary equivalent of a decimal number are different. In this article, we will learn that how to convert binary to BCD and vice versa. To convert binary to BCD, we will first…
How to Convert Decimal to BCD and BCD to Decimal
In one of the previous articles, we learned about Binary Coded Decimal (BCD) numbers. In this article, we will learn about how to convert a Decimal number to a BCD number and vice versa. Decimal number to BCD number Conversion…
What are the Different Types of BCD Codes
There are different types of BCD codes; however, the 8421 code is the most popular one. In this article, we will highlight three different types of BCD codes, such as 8421, 2421, and Excess-3. Both 8421 and 2421 are weighted…
Binary Coded Decimal
You must have seen the digital clock in the railway station or at many other places. The hour, minute and second digits are seven-segment displays that deal with binary coded decimal (BCD) numbers. In this particular article, we will learn…
Assembly Language Program for Unpacking the Packed BCD number in 8085 Microprocessor
Binary coded decimal (BCD) is a way to express each of the decimal digits with a binary code. This means that each decimal digit, 0 through 9, is represented by a binary code of four bits. Eg: 98 => 10011000 Unpacking…