# Homework Help: Digital design code converter help

1. Nov 4, 2014

### benEE2018

1. The problem statement, all variables and given/known data
design a code converter that converts a decimal digit from the 8 4 -2 -1 code to BCD.

2. Relevant equations

3. The attempt at a solution
so i listed out the BCD order from 0 to 9 and listed the weighted 8 4 -2 -1 code so that the weights would equal to the BCD equivalent.
8 4 -2 -1--->BCD
ABCD---> WXYZ
0000---> 0000
0111---> 0001
0110---> 0010
0101---> 0011

0100---> 0100
1011---> 0101
1010---> 0110
1001---> 0111

1000---> 1000
1111----> 1001
I then drew 4 K maps for each variable and arrived at an answer that is completely different from the correct answer, W=AB=AC'D'

Z= A'BD+BCD+AB'D
Y=A'BC'D+ A'BCD'+ AB'C'D+ AB'CD'
X= A'BC'D'+ AB'D+ AB'C
W= AB'C'D'+ AB'CD

i dont know what i am doing wrong and any guidance would be greatly appreciated

2. Nov 5, 2014

### Staff: Mentor

What converion method have you used to map binary to BCD?

You seem to have written as 1s complement of the BCD, why?

Last edited: Nov 5, 2014