BCD to 7 segment display logic minimisation

  • Thread starter Thread starter fonz
  • Start date Start date
  • Tags Tags
    Logic
Click For Summary
The discussion focuses on deriving the logic circuit for driving segment (d) of a 7-segment display from a 4-bit input. Participants share their truth tables and Karnaugh maps to find the minimized logic expression, with an emphasis on applying De-Morgan's laws correctly. There is confusion regarding the correct representation of the segment states for decimal digits, particularly for values 0-9 and the handling of "don't care" conditions for higher values. Participants clarify that the homework requires only the logic for segment d, and they work through the K-map groupings to correct errors in their initial expressions. Ultimately, they confirm the correct minterms for the circuit design.
fonz
Messages
151
Reaction score
5

Homework Statement



A 7-segment display is used to show a decimal digit and it is driven from 4-bit input. Each bar is assumed to light up when a logical 1 is applied to it.
  1. Draw the truth table to drive segment (d) of the display.
  2. Using the truth table you have obtained, draw a Karnaugh map to find the minimised logic expression in the 1-st canonical form (SOP, i.e. series of AND terms ORed together).
  3. Convert the expression from 2 to a function which uses only NAND gates and draw the equivalent circuit diagram in Logic Circuit and generate its truth table to compare with 1.
seven-segment_example.png

Homework Equations



De-Morgan's laws:$$(A + B)' = A' \cdot B'$$$$A' + B' = (A \cdot B)'$$

The Attempt at a Solution


[/B]
See attached for truth table and k-map.

Canonical Form:$$A + C'D + CD' + A'B'$$

Applying De-Morgan's Theorem:$$A'BCC'DD'$$

but since ##C \cdot C' = 0## and ##D \cdot D' = 0## then this all reduces to 0.

I'm not sure whether it is my K-Map minimisation or application of De-Morgan's laws that is wrong?
 

Attachments

  • segment_d.png
    segment_d.png
    30 KB · Views: 1,376
Physics news on Phys.org
Yes that is correct thanks berkeman.
 
fonz said:
used to show a decimal digit
And this part of the problem statement implies you should only show 0-9 and blank on any number 10 and up? Or are you supposed to display A-F too...
 
berkeman said:
And this part of the problem statement implies you should only show 0-9 and blank on any number 10 and up? Or are you supposed to display A-F too...

In the example that was provided for segment c, the decimal values 10 to 15 are shown as 'don't care' terms so I have kept it consistent with the example.
 
I'm confused though. You should end up with 7 truth tables, one for each segment drive, right?
 
berkeman said:
I'm confused though. You should end up with 7 truth tables, one for each segment drive, right?

Yes in total, although this homework is only to derive the logic circuit for segment d.
 
Ah, okay. I missed that if you said it in your OP. Let me check your work now...
 
  • #10
berkeman said:
d should not be 1 for the digit 9...

Well, I guess it could, but I normally wouldn't make d ON for 9.

I did think this originally but then I checked the example solution that was provided in the homework material and found this.
 

Attachments

  • segment.png
    segment.png
    14.6 KB · Views: 667
  • #11
fonz said:
I did think this originally but then I checked the example solution that was provided in the homework material and found this.
Ah, fair enough. The issue I see is the blue rectangle and green rectangle that you have around 3 terms each in your K-map. I don't think you can do that... :smile:

http://www.ee.surrey.ac.uk/Projects/Labview/minimisation/graphics/g3.gif
g3.gif
 
  • Like
Likes fonz
  • #12
Great thanks for pointing that out, still got the same issue though:

Canonical:

##A + BC'D + B'C + B'D' + CD'##

Applying De-Morgan's law:

##A'BBB'CC'C'DDD'##

Now the ##BB'##, ##CC'## and ##DD'## terms all equal zero.
 

Attachments

  • segment_d.png
    segment_d.png
    29.9 KB · Views: 688
  • #13
fonz said:
A+BC′D+B′C+B′D′+CD′
That's not what I'm getting for a corrected version of your K-map. Can you post the corrected K-map and show your groupings?
 
  • #14
berkeman said:
That's not what I'm getting for a corrected version of your K-map. Can you post the corrected K-map and show your groupings?

I think I am missing the ##A'## from the third minterm.

##A + BC'D + A'B'C +B'D' + CD'##
 

Attachments

  • segment_d.png
    segment_d.png
    31.2 KB · Views: 673
  • #15
fonz said:
I think I am missing the A' from the third minterm.

A+BC′D+A′B′C+B′D′+CD′
Your 3rd minterm does include A', and I get the same minterms as you now. :smile:
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 7 ·
Replies
7
Views
8K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
8K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
6K