BCD encoding practice What is the Binary-Coded Decimal (BCD) representation for the decimal number 347?
Electronics
Number Systems and Codes
Difficulty: Easy
Choose an option
-
A1100 1011 1000
-
B0011 0100 0111
-
C0011 0100 0001
-
D1100 1011 0110
Answer
Correct Answer: 0011 0100 0111
Explanation
Introduction / Context:In BCD, each decimal digit is encoded separately as a 4-bit binary nibble. This format is common in digital displays and decimal-centric arithmetic operations.
Given Data / Assumptions:
- Number: 347 (three decimal digits).
- BCD maps: 0→0000 … 9→1001.
Concept / Approach:Encode each digit independently and write the nibbles in order from most significant digit to least significant digit.
Step-by-Step Solution:
1) 3 → 0011.2) 4 → 0100.3) 7 → 0111.4) Concatenate with spaces between nibbles: 0011 0100 0111.Verification / Alternative check:Decode the BCD nibbles back: 0011→3, 0100→4, 0111→7 to recover 347.
Why Other Options Are Wrong:
- 1100 1011 1000 and 1100 1011 0110: These contain nibbles larger than 1001, which are not valid BCD digits.
- 0011 0100 0001: Encodes 341, not 347.
Common Pitfalls:Using straight binary for the whole number instead of per-digit encoding, or producing an invalid BCD nibble above 1001.
Final Answer:0011 0100 0111