Skip to content

VLSIFacts

Let's Program the Transistors

  • Home
  • DHD
    • Digital Electronics
    • Fault Tolerant System Design
    • TLM
    • Verification
    • Verilog
    • VHDL
    • Xilinx
  • Embedded System
    • 8085 uP
    • 8086 uP
    • 8051 uC
  • VLSI Technology
    • Analog Electronics
    • Memory Devices
    • VLSI Circuits
  • Interview
    • Interview Experience
    • Training Experience
    • Question Bank
  • Notifications
  • QUIZ
  • Community
  • Job Board
  • Contact Us

What are the Different Types of BCD Codes

Posted on March 14, 2023June 19, 2025 By vlsifacts No Comments on 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 code, whereas Excess-3 is not weighted.

Different Decimal Codes

The above table shows the binary code groups for different BCD representations. Using 4 binary bits, a total of 16 numbers can be represented. However, for BCD, 10 decimal digits (0 through 9) need to be represented. Therefore, there are six unused code words / invalid codes for all BCD representations, as shown above.

As stated earlier, both 8421 and 2421 are weighted codes, where each decimal digit can be found from its code word by assigning a fixed weight to each code word bit. For example, the weights of four bits of 8421 code are 23, 22, 21, and 20. So, decimal digit 5 in 8421 is “0101”, which is 0 x 23 + 1 x 22 + 0 x 21 + 1 x 20 = 5.

Both 2421 and Excess-3 codes are self-complementing codes. This means that the code word for the 9s’ complement of any digit can be obtained by complementing the individual bits of the digit’s code word. For example, decimal digit 2 in Excess-3 is “0101”. If we complement “0101”, then it will be “1010”, which is the Excess-3 code of decimal digit 7 (check the above table). Since 7 is 9s’ complement of 2, this shows that Excess-3 code is self-complementing.

Previous           Table of Content           Next

Spread the Word

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to email a link to a friend (Opens in new window) Email
  • Click to print (Opens in new window) Print

Like this:

Like Loading...

Discover more from VLSIFacts

Subscribe to get the latest posts sent to your email.

Related posts:

  1. Binary Coded Decimal
  2. How to Convert Decimal to BCD and BCD to Decimal
  3. BCD Addition
  4. Excess-3 Code and its Conversion
Digital Electronics Tags:2421 BCD Code, 8421 BCD Code, BCD Code, Binary Coded Decimal, Excess-3 Code

Post navigation

Previous Post: Binary Coded Decimal
Next Post: How to Convert Decimal to BCD and BCD to Decimal

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Top Posts & Pages

  • AND and OR gate using CMOS Technology
  • NAND and NOR gate using CMOS Technology
  • Circuit Design of a 4-bit Binary Counter Using D Flip-flops
  • Designing a Two-Stage Flip-Flop Synchronizer to Eliminate Metastability in Clock Domain Crossing
  • Standard‑Cell Libraries 101: What They Are & How They Shape Your VLSI Design

Copyright © 2026 VLSIFacts.

Powered by PressBook WordPress theme

%d