Hi
I'm learning about BCD (Binary Coded Decimal). I'm learning BCD 8421 code. I'm mentioning this because this might useful to someone like me to knoe that there are many ways to represent a decimal into a binary forms but the BCD most commonly refers to 8421 code.
Q1: I was trying to see how the conversion from Decimal to Binary takes place 'rationally'.
14 = 0001 0100
14 = (1 x 10^1) + (4 x 10^0)
14 = 1 x (2 x 5) + (2^2 x 2^0)
14 = 1 x (2 x (4+1) + 2^2
14 = 2(2^2 + 2^0) + 2^2
14 = 2^3 + 2^1 + 2^2
14 = 2^3 + 2^2 + 2^1 + 0
14 = 1110
Now how do I change the number "1110" into a BCD one without directly using cookbook approach of adding '6' (0110) to the result? My question #2 is also related to this.
Q2: Please have a look on the attachment. You can find my query there. Thanks.
Thank you very much for the help and your time.
Regards
PG
I'm learning about BCD (Binary Coded Decimal). I'm learning BCD 8421 code. I'm mentioning this because this might useful to someone like me to knoe that there are many ways to represent a decimal into a binary forms but the BCD most commonly refers to 8421 code.
Q1: I was trying to see how the conversion from Decimal to Binary takes place 'rationally'.
14 = 0001 0100
14 = (1 x 10^1) + (4 x 10^0)
14 = 1 x (2 x 5) + (2^2 x 2^0)
14 = 1 x (2 x (4+1) + 2^2
14 = 2(2^2 + 2^0) + 2^2
14 = 2^3 + 2^1 + 2^2
14 = 2^3 + 2^2 + 2^1 + 0
14 = 1110
Now how do I change the number "1110" into a BCD one without directly using cookbook approach of adding '6' (0110) to the result? My question #2 is also related to this.
Q2: Please have a look on the attachment. You can find my query there. Thanks.
Thank you very much for the help and your time.
Regards
PG
Attachments

268.4 KB Views: 30