Mini Assignment4 Solution
Mini Assignment4 Solution
UNIVERSITY AT BUFFALO
MAE 476/576 Mechatronics
Spring 2003
Binary Coded Decimal (BCD) is a way to store the decimal numbers in binary form. The
number representation requires 4 bits to store every decimal digit (from 0 to 9). Since
there are 10 different combinations of BCD, we need at least a 4-bit Gray Code to create
sufficient number of these combinations.
00 01 11 10
00 0 0 1 D
01 0 0 1 D
D
11 0 0 D D
C
10 0 0 D D
00 01 11 10
00 0 1 0 D
01 0 1 0 D
D
11 0 1 D D
C
10 0 1 D D
00 01 11 10
00 0 1 0 D
01 0 1 0 D
D
11 1 0 D D
C
10 1 0 D D
Y = A’BC’ + B’C
00 01 11 10
00 0 1 0 D
01 1 0 1 D
D
11 0 1 D D
C
10 1 0 D D