BCD-to-seven-segment code conversion
One common requirement for many different digital devices is
a visual numeric display. Individual LEDs can of course display the binary
states of a set of latches or flip-flops. However, we're far more used to
thinking and dealing with decimal numbers. To this end, we want a display
of some kind that can clearly represent decimal numbers without any
requirement of translating binary to decimal or any other format.
A seven-segment display is used for displaying any one of the
decimal digits 0 through 9. A BCD-to-seven-segment decoder accepts a
decimal digit in BCD and generates the corresponding seven-segment code. A
block diagram representation of the BCD-to-seven-segment code conversion
is depicted in the following figure:
Truth table:To construct the truth table, note that digit 0-to-9 are same in both binary and BCD so we don't need to convert them, digit10-to-15 are unused and hence they are considered as don’t care conditions. |
BCD inputs |
segment outputs |
display |
|||||||||
D |
C |
B |
A |
a |
b |
c |
d |
e |
f |
g |
|
0 |
0 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
0 |
|
0 |
0 |
0 |
1 |
0 |
1 |
1 |
0 |
0 |
0 |
0 |
|
0 |
0 |
1 |
0 |
1 |
1 |
0 |
1 |
1 |
0 |
1 |
|
0 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
1 |
|
0 |
1 |
0 |
0 |
0 |
1 |
1 |
0 |
0 |
1 |
1 |
|
0 |
1 |
0 |
1 |
1 |
0 |
1 |
1 |
0 |
1 |
1 |
|
0 |
1 |
1 |
0 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
|
0 |
1 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
0 |
0 |
|
1 |
0 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
|
1 |
0 |
0 |
1 |
1 |
1 |
1 |
0 |
0 |
1 |
1 |
|
In the circuit applet when you choose invalid combination the seven segment display simply turns off. Actually when this happens the seven segments display keeps the final valid combination and displays it. The experiment Firstly, you must turn the decoder on by selecting the on button. Then, using the mouse select the input combinations you desire and see the out put displayed for each input and try to cover all possible values.
|