×

BCD to 7 Segment Decoder

What is BCD?

BCD is called Binary Coded Decimal. As you know there are a lot of forms in which we can represent the number like Binary, decimal, hexadecimal, and octal etc.

In Binary format, we can represent any number with the help of just two numbers which are 0 and 1. It is also called base 2 format.

For example, to represent 12 in Binary we will write 1100, and to write 13 we will write 1101.

In decimal format we can represent any number with the help of 10 digits (0 to 9) and it is called the base 10 format. In the real world, we use the decimal format to represent any number, while the Binary number format is used by computers and electronic devices.

In BCD, we can represent the Binary equivalent of each digit of the decimal digit (0 to 9). To represent maximum value 9 we need 4 bits of Binary, so in BCD we used 4 digits to represent the equivalent decimal number.

Suppose four digits are A, B, C, and D where A is MSB (Most Significant Bit), and D is LSB (Least Significant Bit). Let’s see the BCD equivalent of each decimal digit:

Decimal DigitABCD
00000
10001
20010
30011
40100
50101
60110
70111
81000
91001

Seven segment display

Seven segment is a special kind of electronics circuit that uses 7 LEDs to represent the digits from 0 to 9. As we know, Binary 1 means logic high or ON and Binary 0 means logic low or OFF. This same phenomena applies on 7 segment displays where different combinations of these 7 LEDs ON and OFF make the decimal number.

BCD to 7 Segment Decoder

From the above image we can see the arrangement of 7 LEDs represented as a,b,c,d,e,f, and g.

These LEDs work in two modes:

1. Common Cathode Mode: In this mode, the cathode of all 7 LEDs is connected together and to blink any led, we have to set logic ‘1’ to its input pin.

2. Common Anode Mode: In this mode, the anode of all 7 LEDs is connected together and to blink any led, we will have to set logic ‘0’ to its input pin.

Generally, we use common cathode mode.

For making 0:
We will set the led a,b,c,d,e,f at logic ‘1’ and led g at logic ‘0’.

For making 1:
We will set led b,c at logic ‘1’ and the rest LEDs at logic ‘0’.

For making 2:
We will set led a,b,g,e,d at logic ‘1’ and res LEDs to logic ‘0’.

For making 3:
We will set led a,b,c,d,g at logic ‘1’ and led e,f, at logic ‘0’.

For making 4:
We will set led b,c,f,g at logic ‘1’ and rest led at logic ‘0’.

For making 5:
We will set led a,c,d,f,g at logic ‘1’ and rest led at logic ‘0’.

For making 6:
We will set led a,c,d,e,f,g at logic ‘1’ and rest led at logic ‘0’.

For making 7:
We will set led a,b, and c at logic ‘1’ and the rest led at logic ‘0’.

For making 8:
We will set led a,b,c,d,e,g at logic ‘1’ and rest led at logic ‘0’.

For making 9:
We will set led a,b,c,d,f,g at logic ‘1’ and rest led at logic ‘0’.

Decoder: decoder is an electronic circuit that can change one form into another form.
The decoder has some input pins and some output pins to get the desired output.

BCD to 7 segment decoder has 4 input pins to take input as BCD number and generate the output as 7 segment value which has 7 digits, so it has 7 output pins.

Using k Map will get the equivalent simplified combination of BCD digits to decide when each digit of LED is going to be set.

To set a:        A + C + BD + BD

To set b:        B + CD + CD

To set c:        B + C + D

To set d:        A + BD + BC + CD + BCD

To set e:        BD + CD

To set f:        A + BC + BD + CD

To set g:         A + BC + BC + CD

The 7-segment display and the decoder are generally used in calculators or in some digital watches.


Related Topics

Advantages and Disadvantages of Flash Memory

What is Flash Memory? Electrically Erasable Programmable Read-Only Memory (EEPROM) and Erasable Programmable Read-Only Memory (EPROM) are used for flash memory (EEPROM). Although technically the word flash is used in the industry...

3 minutes read.

Interfacing DAC with the 8051 Microcontroller

A wide range of applications calls for microcontrollers, including measuring and controlling physical quantities like temperature, pressure, speed, and distance. In these systems, the microcontroller creates digital output, but the controlling...

2 minutes read.

Convert a number from base 2 to base 6

Base 2 Base 2 is the format where you can represent any number with just two values which are 0 and 1. With the help of 0s and 1s, we can...

4 minutes read.

Bipartite Graph

A graph is said to be bipartite if and only if we can divide all the vertices of a graph into two sets such that these sets are mutually exclusive...

4 minutes read.

Use Case Diagram for the online bank system

What is a Use Case Diagram? A tool is called a Use Case Diagram which is used to create, present, and comprehend the functional requirements for a system. The Use Case...

3 minutes read.

Basic Terminologies Related to COA

Some Basic Terminologies Related to COA Computer organization and architecture is the detailed study of the internal components of the computer with their functionality. It describes how components arranged together and...

7 minutes read.

Types of Microprocessors

Introduction:Microprocessor is known as the computer processor. The IC or integrated Circuit makes the microprocessor. That is the brain of the computer machine.  The microprocessor is the Processor or CPU (Central...

3 minutes read.

Flag Register of 8086 Microprocessor

In this article, we are going to study about the one of the registers named flag registers of 8086 microprocessor. We are also going to know where and how to...

3 minutes read.

Machine Instructions

What is a Digital Computer? A computer that takes input in a binary form and produces output in binary form. The question arises of what kind of input the computer takes...

4 minutes read.

Instruction Pipelining and Pipeline Hazards

Instruction Pipelining and Pipeline Hazards To apply pipeline, the prerequisite is to perform the same processing over multiple inputs, then pipelining is important. So instruction execution is the best example for...

10 minutes read.

Microprocessor classification

Introduction: Microprocessor is known as the computer processor. The IC or integrated Circuit makes the microprocessor. that is the brain of the computer machine. The microprocessor is known as the...

6 minutes read.

Ethernet Frame Format

What is Ethernet? As we know in computer networking, LAN (Local Area Network) is used to connect devices in limited geographical areas like schools or a building.LAN uses different topologies (arrangement...

3 minutes read.

Biconnectivity in a Graph

What is a Graph? A graph is a structure where values are stored at the vertex, and the relation between vertices is denoted by edges. In a graph, if there is only...

4 minutes read.

CPU Registers

CPU Registers Within the CPU, we have small- small storage units called registers. If we are executing a certain program within the CPU, there's a need to store that program content,...

11 minutes read.

CarryLook Ahead Adder

What is Adder? Adder is the combinational circuit that is used to add the bits in digital electronics. As we know, in the digital system, every number is represented in the...

4 minutes read.

Digital Number System

Digital Number System: The computer understands digital language only. Many number systems are used in digital technology. The most common are Decimal, Binary, Octal and Hexadecimal number systems. Types of the...

7 minutes read.

Addressing mode in 8085 microprocessor

What is a Microprocessor? Microprocessor is a unit which is able to perform arithmetic and logical operations and is built on a single chip. The 8085 microprocessor is built by Intel which...

4 minutes read.

Micro-Operations

Micro-Operations If CPU wants to perform any operation, suppose execution of only one instruction or even break it down one particular execution phase (like fetch instruction, write back, decode, operand fetch...

9 minutes read.

Assembly Language Register

Assembly Language Register Assembly language was introduced during the late 1940s in the second generation. It is a low-level language that helps in communication between the user and the computer. It...

6 minutes read.

Local Broadcast Address and loopback address

In computer networking, if you send the data from one source to another source or group of sources in the form of packets, then this is called casting. We can categorize...

3 minutes read.