Semiconductor for You
  • Home
  • Semiconductor News
  • Semiconductor Magazine
  • Technology
    • Automotive
    • Consumer Electronics
    • IoT
    • Lighting
    • Power Management
    • Wireless
    • Personal Electronics
    • Hardware & Software
    • Research
    • Medical Electronics
    • Embedded Design
    • Aerospace & Defence
    • Artificial Intelligence
  • Interview
  • Industries
  • Market
  • Knowledge Base
  • Events
  • Tools
    • Resistor Color Code Calculator
No Result
View All Result
  • Home
  • Semiconductor News
  • Semiconductor Magazine
  • Technology
    • Automotive
    • Consumer Electronics
    • IoT
    • Lighting
    • Power Management
    • Wireless
    • Personal Electronics
    • Hardware & Software
    • Research
    • Medical Electronics
    • Embedded Design
    • Aerospace & Defence
    • Artificial Intelligence
  • Interview
  • Industries
  • Market
  • Knowledge Base
  • Events
  • Tools
    • Resistor Color Code Calculator
No Result
View All Result
Semiconductor for You
No Result
View All Result
Home Knowledge Base

Binary Coded Decimal (BCD) Explained – 8421 Code, Conversion, and Practical Applications

Komal Ganvir by Komal Ganvir
March 4, 2026
in Knowledge Base
0

Introduction

In digital electronics and computer systems, several binary codes are used for different applications. One of the most commonly used codes is Binary Coded Decimal (BCD).

Since we live in a decimal (base-10) world, we need a method to convert decimal numbers into a binary (base-2) format that computers can understand. The Binary Coded Decimal system allows us to perform this conversion efficiently.


What is Binary Coded Decimal (BCD)?

An n-bit binary code can represent up to 2n different combinations of 0s and 1s. In the BCD system, each decimal digit (0–9) is represented by a group of four binary bits. Since decimal digits range from 0 to 9, we need a minimum of 4 bits to represent each digit.

Important: BCD is NOT the same as hexadecimal.

  • Hexadecimal (4-bit) values range from 0 to F (0–15 in decimal).
  • BCD values range only from 0000 (0) to 1001 (9).

The following 6 combinations are invalid (forbidden) in BCD:

1010 (10), 1011 (11), 1100 (12), 1101 (13), 1110 (14), 1111 (15)

Although 4 bits can represent 16 combinations, BCD uses only 10. Therefore, BCD is slightly wasteful in terms of bit usage.


8421 Weighted Code

BCD is also known as the 8421 code because the four bits have the following weights:

  • 23 = 8
  • 22 = 4
  • 21 = 2
  • 20 = 1

Each decimal digit is converted into its 4-bit binary equivalent using these weights.


Example: Decimal to BCD Conversion

Example 1: Convert 35710 into BCD.

3 → 0011
5 → 0101
7 → 0111

Result:

35710 = 0011 0101 0111 (BCD)


Truth Table for BCD (8421 Code)

Decimal BCD (8421)
0 0000
1 0001
2 0010
3 0011
4 0100
5 0101
6 0110
7 0111
8 1000
9 1001

More Decimal to BCD Examples

8510

8 → 1000
5 → 0101

BCD = 1000 0101

57210

5 → 0101
7 → 0111
2 → 0010

BCD = 0101 0111 0010

857910

BCD = 1000 0101 0111 1001


BCD to Decimal Conversion

To convert BCD to decimal:

  1. Divide the binary number into groups of four bits (starting from the right).
  2. Convert each 4-bit group into its decimal equivalent.

Example:

0011 0101 (BCD)

0011 → 3
0101 → 5

Result: 3510

If any 4-bit group is greater than 1001 (9), it is an invalid BCD number.


Advantages of BCD

  • Easy conversion between decimal and binary.
  • Very useful for digital display systems.
  • Commonly used in microprocessor-based systems.
  • Ideal for 7-segment LED and LCD displays.

Disadvantages of BCD

  • Uses more bits than pure binary.
  • Inefficient for storage.
  • Arithmetic operations are more complex.

BCD in Digital ICs

BCD is widely used with 7-segment displays. Several integrated circuits (ICs) support BCD operations:

  • 74LS90 – Decade counter with BCD output
  • 74LS390 – Dual decade counter
  • 74LS47 – BCD to 7-segment decoder (common anode)
  • 74LS48 – BCD to 7-segment decoder (common cathode)

These ICs convert 4-bit BCD input into signals required to drive 7-segment displays.


BCD Summary

Binary Coded Decimal (BCD) is a 4-bit binary representation of a decimal digit. Each decimal digit from 0 to 9 is encoded separately using the 8421 weighted system. Although BCD is less efficient than pure binary, it is extremely useful in digital electronics, calculators, counters, and display systems where decimal representation is required. Understanding BCD is essential for students of digital electronics, microprocessors, and embedded systems.

Content Protection by DMCA.com
Tags: Binary Coded Decimal
Komal Ganvir

Komal Ganvir

Browse by Category

  • Aerospace and Defence
  • Articles
  • Automotive
  • Consumer-Electronics
  • Hardware & Software
  • Interview
  • IoT
  • Knowledge Base
  • Lighting
  • Market
  • personal-electronics
  • Power Management
  • Research
  • Semiconductor Events
  • Semiconductor News
  • Technology
  • Wireless
Semiconductor for You

Semiconductor For You is a resource hub for electronics engineers and industrialist. With its blend of
technology features, news and new product information, Semiconductor For You keeps designers and
managers up to date with the fastest moving industry in the world.

Follow Us

Browse by Category

  • Aerospace and Defence
  • Articles
  • Automotive
  • Consumer-Electronics
  • Hardware & Software
  • Interview
  • IoT
  • Knowledge Base
  • Lighting
  • Market
  • personal-electronics
  • Power Management
  • Research
  • Semiconductor Events
  • Semiconductor News
  • Technology
  • Wireless

Recent News

Vishay Intertechnology RGB LED in 0404 Package Provides Independent Control of Red, True Green, and Blue Chips for Wide Color Range

Vishay Intertechnology RGB LED in 0404 Package Provides Independent Control of Red, True Green, and Blue Chips for Wide Color Range

March 4, 2026

TDK to highlight innovative solutions shaping current and future power electronics technology at APEC 2026

March 4, 2026
  • About
  • Advertise
  • Privacy & Policy
  • Contact

© 2022 Semiconductor For You

No Result
View All Result
  • Home
  • Semiconductor News
  • Technology
    • IoT
    • Wireless
    • Power Management
    • Automotive
    • Hardware & Software
  • Market
  • Interview
  • Knowledge Base
  • Tools
    • Resistor Color Code Calculator

© 2022 Semiconductor For You