×

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

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.

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.

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.

Instruction Cycle: Computer Organization and Architecture

What is an effective Address? “Effective address is the address of operand in a computation-type instruction.” Computation type instructions are like ADD, SUB, MOV, OR, AND, etc., which require operand to...

4 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.

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.

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.

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...

3 minutes read.

Fixed and Floating-Point Number

Fixed and Floating-Point Number: In digital technology, data is stored in memory registers with binary bits 0’s and 1’s because the computer only understands binary language. When we enter data...

6 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.

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.

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.

Data Transfer and Manipulation

What is Data Transfer? In computer architecture, data transfer refers to the movement of data between different components within a computer system. These components can include the central processing unit (CPU),...

6 minutes read.

8255 Microprocessor Operating Modes

8255 microprocessor was invented by intel in the year 1980s. 8255 microprocessor is a general-purpose microprocessor that can be programmed. 8255 is mostly used as an interface between devices like...

3 minutes read.

8086 Microprocessor Pin Configurations

8086 microprocessor is invented and developed by Intel in 1976. The 8086 Microprocessor is an enhanced version of the 8085 Microprocessor. There are 20 address lines and 16 data lines...

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.

IEEE Standard 754 Floating Point Numbers

Floating Point Representation: IEEE- 754 There were many problems in the conventional representation of floating-point notation like we could not express 0(zero), infinity number. To solve this, scientists have given a...

8 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.

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.

Addressing Modes

Introduction: Addressing Modes An instruction consists of two parts opcode and operands. Opcode tells the operation going to perform, and operand information is the address of the operand. The CPU interprets...

8 minutes read.