×

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

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.

74138 IC DECODER

74138 DECODER Decoder A combinational circuit called a decoder can have up to 2n output lines and 'n' input lines. When a decoder is enabled, depending on the mix of inputs,...

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

COA: Interrupt and its types

Introduction: In general terms, the word interrupt means to stop the progress of ongoing work in between or to break the continuation of the work. In early digital computing, the...

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

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.

Control Signals in 8155 Microprocessor

Intel designed the chip 8155 used to interface with I/O devices. Basically, the 8085 microprocessor is directly unable to deal with its peripheral input output devices for reading data or...

3 minutes read.

8085 instructions set

Introduction: In the computer, the user sends the data. The computer can use data and it also process the data. After the processing, send the result to the user. The specific...

10 minutes read.

8085 Pin Configuration

Introduction: Intel 8085 is consist 40 pin IC. The pin name of 8085 is A8 – A15; AD0 – AD7; ALE; IO/M; S0, S1; RD; WR; READY; HOLD; HLDA; INTR; INTA;...

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

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.

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

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.

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.

8085 Arithmetic Instructions

Arithmetic instructions are a type of instruction in a computer's instruction set that perform arithmetic operations on data. These operations can include addition, subtraction, multiplication, and division. Arithmetic instructions can...

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

Data Path, ALU and Control Unit

Data Path, ALU(Arithmetic Logic Unit) and Control Unit What is the Data path? Suppose any data processing operation should be performed in the CPU like transferring the content of register from one...

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