3.code Converters
3.code Converters
possibilities for a logic diagram that implements this circuit. Now the OR gate
APPARATUS REQUIRED:
whose output is C+D has been used to implement partially each of three
THEORY:
The availability of large variety of codes for the same discrete
each uses different codes for same information. Thus, code converter is a
circuit that makes the two systems compatible even though each uses
K-Map for G3:
different binary code. The bit combination assigned to binary code to gray
code. Since each code uses four bits to represent a decimal digit. There are
four inputs and four outputs. Gray code is a non-weighted code. The input
variable are designated as B3, B2, B1, B0 and the output variables are
designated as C3, C2, C1, Co, from the truth table, combinational circuit
is designed. The Boolean functions are obtained from K-Map for each output
variable.
compatible even though each uses a different binary code. To convert from
G3=B3
K-Map for G2:
K-Map for G0:
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 1
0 0 1 1 0 0 1 0
0 1 0 0 0 1 1 0
0 1 0 1 0 1 1 1
0 1 1 0 0 1 0 1
0 1 1 1 0 1 0 0
1 0 0 0 1 1 0 0
1 0 0 1 1 1 0 1
1 0 1 0 1 1 1 1
1 0 1 1 1 1 1 0
1 1 0 0 1 0 1 0
1 1 0 1 1 0 1 1
1 1 1 0 1 0 0 1
1 1 1 1 1 0 0 0
LOGIC DIAGRAM: K-Map for B2:
B3 = G3
K-Map for B0: LOGIC DIAGRAM:
BCD TO EXCESS-3 CONVERTOR
TRUTH TABLE:
Gray CodeBinary Code
G3 G2 G1 G0 B3 B2 B1 B0
TRUTH TABLE:
BCD input Excess – 3 output
B3 B2 B1 B0 G3 G2 G1 G0
K-Map for E1:
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
1 0 1 0 x x x x
1 0 1 1 x x x x
1 1 0 0 x x x x
1 1 0 1 x x x x
1 1 1 0 x x x x
1 1 1 1 x x x x
LOGIC DIAGRAM: K-Map for B:
EXCESS-3 TO BCD CONVERTOR
K-Map for C:
K-Map for A:
A = X1 X2 + X3 X4 X1
K-Map for D:
PROCEDURE:
(i) Connections were given as per circuit diagram.
(ii) Logical inputs were given as per truth table
(iii) Observe the logical output and verify with the truth tables.
RESULT:
Thus the code converters were designed and verified
using the corresponding truth table.
TRUTH TABLE:
Excess – 3 Input BCD Output
B3 B2 B1 B0 G3 G2 G1 G0
0 0 1 1 0 0 0 0
0 1 0 0 0 0 0 1
0 1 0 1 0 0 1 0
0 1 1 0 0 0 1 1
0 1 1 1 0 1 0 0
1 0 0 0 0 1 0 1
1 0 0 1 0 1 1 0
1 0 1 0 0 1 1 1
1 0 1 1 1 0 0 0
1 1 0 0 1 0 0 1