Skip to content

henryhale/7-segment-display-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

preview

7 Segment Display Decoder

       __        __    __          __    __   __    __    __
      |  |   |   __|   __|  |__|  |__   |__     |  |__|  |__|
      |__|   |  |__    __|     |   __|  |__|    |  |__|     |
    

Before You Start

A clear understanding of Boolean Algebra and/or Electronics is required to get started with implementing a decoder. A decoder is a combinational circuit and so prior knowledge concerning multiplexers, and encoders might be useful.

I recommend that you read this article on Wikipedia before you proceed; Seven Segment Display

Live Demo

With HTML and CSS, the design was done. A touch of JAVASCRIPT brought the implentation to life.

Just to clear the mind, here is a live demo of digital clock.

Check out this live demo here

Introduction

A Display Decoder is a combinational circuit which decodes an n-bit input value into a number of output lines to drive a display. An device which converts one digit format into another is a Display Decoder Intergrated Circuit

One of the most common decoders takes a BCD (Binary Coded Decimal) input and converts it to an output which will drive a seven segment display.

The Architecture Behind

A seven segment display is made from seven LED (Light Emitting Diodes) segments. These segments are segments a through g and are lettered clockwise from the top segment of the display with the g segment being the middle segment as shown in the figure below;

segments

The seven segment display does not work by directly applying voltage to different segments of LEDs. First, our Decimal number is converted into its BCD equivalent signal then BCD to seven segment decoder converts that signals to the form which is fed to seven segment display.

For the decoder to perform this function has four input lines (A, B, C and D) and 7 output lines (a, b, c, d, e, f and g), this output is given to seven segment LED display which displays the decimal number depending upon inputs.

bcd

A truth table generated for this decoder gives:

truth table

Using K-maps greatly simplifies the truth table in such a way that a boolean expression for each segment can be obtained easily.

With boolean expressions for each segment, I implemented the logical display using HTML and CSS

Building Blocks

There only two modules; the decoder and a renderer

NB: Not Applications should be built with this as it causes performance overheads during rendering.

Applications

Seven segment displays are used to display digits in;

  • calculators
  • clocks
  • digital watches
  • digital counters

Clubs and theatres event displays are some of the places I normally find these displays being used. The information consists of digits and letters scrolling horizontally.

Samples

I only implemented two displays just to be sure;

References