Codes Conversion PDF
Codes Conversion PDF
http://www.tutorialspoint.com/computer_logical_organization/codes_conversion.htm
Copyright tutorialspoint.com
There are many methods or techniques which can be used to convert code from one format to
another. We'll demonstrate here the following
Binary to BCD Conversion
BCD to Binary Conversion
BCD to Excess-3
Excess-3 to BCD
Binary
Number
Decimal Number
Step 1
111012
Step 2
111012
Step 3
111012
2910
Decimal Number
Conversion
Step 1
2910
00102 10012
Step 2
2910
00101001BCD
Result
(11101)2 =
(00101001)BCD
BCD Number
Conversion
Step 1
00101001BCD
00102 10012
Step 2
00101001BCD
210 910
Step 3
00101001BCD
2910
Operation
Result
Remainder
Step 1
29 / 2
14
Step 2
14 / 2
Step 3
7/2
Step 4
3/2
Step 5
1/2
As mentioned in Steps 2 and 4, the remainders have to be arranged in the reverse order so that
the first remainder becomes the least significant digit LSD and the last remainder becomes the
most significant digit MSD.
Decimal Number 2910 = Binary Number 111012
Result
(00101001)BCD = (11101)2
BCD to Excess-3
Steps
Result
(10011010)XS-3 = (01100111)BCD
Loading [MathJax]/jax/output/HTML-CSS/jax.js