Seven Segment Display Boolean Equations Example 2

Seven Segment Display - Animation

This 7-segment display example shows how to derive the Boolean expressions to build a driver circuit. Suppose a counter provides a 3-bit output (XYZ) to count from 0 to 7, and your driver circuit has to display the numeric symbols from 1 to 5. You would have to make a truth table showing the segments that require lighting to display those numbers. The table then helps find the Boolean logic expressions required to light each segment. You will then need to find a way to simplify those expressions.


XYZabcdefgDISP
00000000 00
00101100 001
01011011 012
01111110 013
100011001 14
101101101 15
11000000 00-
11100000 00-

Here is the truth table showing the segments that require lighting to display the relevant numeric. If you get a question like this in GCSE then this is the easy part, which everyone can usually do. The next step is to determine the logic circuitry required for each segment. In this part, you have to think which logic circuit would provide the outputs given the inputs are XYZ. With two inputs, it would be simple to do, but when there are three inputs, it gets complicated and you need to work according to a methodology to solve it.

To solve this puzzle, you could use your skills in Karnaugh mapping; however, knowledge of Boolean algebra is even better, because there is a shortcut if you know how.


Segment "a" Boolean Expression

Segment a Outputs

Here is the same table but this time we are looking at the outputs of segment "a" only. You have to derive a logic circuit, so that when it receives the inputs XYZ, the corresponding outputs will be those in column "a" to light segment a.

  1. We first look for outputs in column "a" that have logic 1 state.
  2. Then look at its corresponding inputs XYZ
  3. For "X.Y.Z" to produce an output of 1, all must be 1’s, however some are 0’s, therefore you will have to invert the 0’s using the NOT function. This information helps to know which input variables will have a bar above it.
  4. In the Boolean expression, place a bar above those variables that would require inverting.
  5. You then simply make a sum of products as I have shown.
Boolean Expression - a

Once you have an equation for each segment, you use Boolean algebra to simplify it. Some may require simplification, whilst others will remain very long.

Segment b

Segment b Outputs Boolean Expression - b

Segment c

Segment c Outputs Boolean Expression - c

Segment d

d

Notice that the outputs for segment "d" and segment "a" follow the same pattern; therefore, you find the Boolean expression for that only once.

Segment e

e e

Segment f

f f

Segment g

g g

This is an XOR function.


This Article Continues...

Seven Segment Display
7 Segment Display Common Anode Pinout
7 Segment Display Common Cathode Circuit
7 Segment Display Pinout
7 Segment Display Current Limiting Resistor
Seven Segment Display Example 1
Boolean Equations Example 2