The state of a 12-bit register is 100010010111. What is its content if it represents (a) Three decimal digits in BCD? (b) Three decimal digits in the excess-3 code? (c) Three decimal digits in the 84-2-1 code? (d) A binary number?
Question
The state of a 12-bit register is 100010010111. What is its content if it represents (a) Three decimal digits in BCD? (b) Three decimal digits in the excess-3 code? (c) Three decimal digits in the 84-2-1 code? (d) A binary number?
Solution
(a) Three decimal digits in BCD: BCD stands for Binary Coded Decimal. It is a class of binary encodings of decimal numbers where each decimal digit is represented by a fixed number of bits, usually four. In this case, we have a 12-bit register, so we can divide it into three 4-bit groups, each representing a decimal digit in BCD.
1000 1001 0111
So, the three decimal digits are 8, 9, and 7.
(b) Three decimal digits in the excess-3 code: Excess-3 is a non-weighted code used to express decimal numbers. The code derives its name from the fact that each digit is represented by the binary equivalent of the digit value plus three.
1000 (8-3) = 5 1001 (9-3) = 6 0111 (7-3) = 4
So, the three decimal digits are 5, 6, and 4.
(c) Three decimal digits in the 8-4-2-1 code: The 8-4-2-1 code is another name for BCD, so the answer is the same as in part (a): 8, 9, and 7.
(d) A binary number: If the 12-bit register represents a binary number, then we simply convert the binary number to decimal.
100010010111 (binary) = 2255 (decimal)
Similar Questions
2. The state of a 12-bit register is 100010010111. What is its content if it represents (a) Three decimal digits in BCD? [1 mark] (b) Three decimal digits in the excess-3 code? [1 mark] (c) Three decimal digits in the 84-2-1 code? [1 mark] (d) A binary number?
Which of the following is a Alphanumeric code BCD code EX-3 code ASCII code Gray code
19) What is the binary equivalent of the hexadecimal number AF?A) 10101111B) 10000111C) 11011111D) 01011111
What is the BCD value of the binary number 1000 01012? A) 85 B) 133 C) 205 D) 58
What is the unit digit in the product (381 x 542 x 613 x 874)?A] 1 B] 3 C] 7 D] 4Options :ABCD
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.