Teahlab logo
TEAHLAB NEW ADDITION
BUILD. SAVE. SHARE.
The world's first and only Integrated Simulator Community.

BCD to Excess 3 Code Converter

BCD to excess 3 code converter interactive digital logic circuit.
Click on the board to energize the circuit.VHDL Program
TRUTH TABLE
Input (BCD) Output (Excess-3)
A B C D W X Y Z
0 0 0 0 0 0 1 1
0 0 0 1 0 1 0 0
0 0 1 0 0 1 0 1
0 0 1 1 0 1 1 0
0 1 0 0 0 1 1 1
0 1 0 1 1 0 0 0
0 1 1 0 1 0 0 1
0 1 1 1 1 0 1 0
1 0 0 0 1 0 1 1
1 0 0 1 1 1 0 0

INTRODUCTION TO CODE CONVERTERS

If you kept a diary as a child, you probably used a secret language so to keep other people from reading your private thoughts. Some kids invent an entirely new alphabet for their diary. Some kids use numbers instead of letters. Some kids use code words. Whatever method you actually used, you in effect encoded the information in your diary so that others would have a difficult time trying to read what you wrote. If someone were to find the system you used to encode your diary, however, that person could potentially decode what you wrote and learn a lot of secrets about you.


In the four K-maps that follow, the x’s are referred to as “ don’t cares ”. These don’t cares are available because if you look at the truth table in Table 3, no WXYZ valuations exist for ABCD = 1010, ABCD = 1011, ABCD = 1100, ABCD = 1101, ABCD = 1110, and ABCD = 1111. As such, we evaluate WXYZ = xxxx for each of these entries. And we are free to use these x’s as we please (as 0s or as 1s where convenient) since we can’t really hurt anything.

For W:

BCD excess 3 truth table and K-map for output W
Table 4: Karnaugh Map for W

W = A + BD + BC = A + B (D + C)



For X:

BCD excess 3 truth table and K-map for X

Table 5: Karnaugh Map for X

X = BC’D’ + B’D + B’C = BC’D’ + B’ (D + C)



For Y:

BCD excess 3 truth table and K-map for Y

Table 6: Karnaugh Map for Y

Y = C’D’ + CD



For Z:

BCD excess 3 truth table and K-map for Z

Table 7: Karnaugh Map for Z

Z = D’

Now we have all the four switching functions we need to build the Excess-3 circuit:

W = A + BD + BC = A + B (D + C)
X = BC’D’ + B’D + B’C = BC’D’ + B’ (D + C)
Y = C’D’ + CD
Z = D’


Here is how we will build the circuit. We will implement the circuit for output W first; only then will we add the out for X; then for Y; then for Z. We use this one output at a time methodology to allow us to test each output as it is built, so to catch errors early in the synthesis process.

Here is the interactive circuit for the output W. Play around with it to see that it works.

BCD to excess 3 decoder boolean function and K map interactive digital logic circuit.
Circuit 1 — Play around with the applet to see that the circuit works.


Now we will add the output for X. Notice that X can be rewritten as X = B(C + D)’ + B’ (D + C). So all we need is an XOR gate to combine B and (D + C). Test Circuit 2 below to see that it implements X = BC’D’ + B’ (D + C).

BCD to excess three conversion interactive logic circuit boolean expression and K map.
Circuit 2 — Play around with applet to see that the circuit works.


We will add the output for Y the same way. Y is simply the XNOR of C and D. Play around with Circuit 3 to see that it implements Y = C’D’ + CD.

Binary Coded Decimal to excess 3 code converter interactive digital logic circuit Boolean equation and truth table.
Circuit 3 — Play around with the applet to see that the circuit works.


The final step in our implementation is to add the output for Z, which is just D’. Circuit 4 below is the final circuit; it is the BCD to Excess-3 circuit.

Binary to excess 3 decimal code converter interactive digital logic circuit, self-complimenting.
Circuit 4 — Play around with the applet to see that the circuit works.


You probably noticed that Circuit 4 does not look like the interactive circuit at the top of this page. We invite you to check that they perform the exact same function. We use two different implementations to impress upon you that you are free to implement your circuits however best fits your resources.

The design process we use to synthesize the BCD to Excess-3 code converter is simple, and you should use it to design your combinational circuits, whether they have a single output or multiple outputs.

Okay. Maybe we should tell you one special property of the Excess-3 system; just to give you a taste for why we still use it. Here it is: In the Excess-3 BCD system, all pair of numbers that add up to 9 add up to 1111:

0 + 9 = 0011 + 1100 = 1111
1 + 8 = 0100 + 1011 = 1111
2 + 7 = 0101 + 1010 = 1111.
Pretty cool, No?! This property is known as self-complementing. We leave 3 + 6 and 4 + 5 for you to try.



Teahlab on LinkedIn     Teahlab on Facebook