Suppose you need to convert 8, 4, -2, -1 to BCD ,write only truth table.
SUMMARY
From decimal number (from 0 to 12), first, the 8 4 -2 -1 representation is written and then the 8,4,-2,-1 representation is written. For the corresponding decimal number, the BCD representation is written.
As the final result, the BCD representation for numbers from 0 to 12 for its corresponding 8, 4, -2, -1 representation is there in the table.
ANSWER
Decimal | 8421 | 8,4,-2,-1 | BCD |
0 | 0000 | 0000 | 0000 |
1 | 0001 | 0111 | 0001 |
2 | 0010 | 0110 | 0010 |
3 | 0011 | 0101 | 0011 |
4 | 0100 | 0100 | 0100 |
5 | 0101 | 1011 | 0101 |
6 | 0110 | 1010 | 0110 |
7 | 0111 | 1001 | 0111 |
8 | 1000 | 1000 | 1000 |
9 | 1001 | 1111 | 1001 |
10 | 1010 | 1110 | 0000 |
11 | 1011 | 1101 | 0001 |
12 | 1100 | 1100 | 0010 |
13 | 1101 | – | 0011 |