Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(Fundamentals of Logic Design ) A 16-bit register in a computer contains 0011 10

ID: 1715298 • Letter: #

Question

(Fundamentals of Logic Design )

A 16-bit register in a computer contains 0011 1001 1101 0011. Can these bits represent:

            (a) a 4-digit decimal number in the BCD code?

            (b) a 4-digit decimal number in Gray code?

            (c) a 4-digit decimal number in the 6311 code?

            (d) a 16-bit binary number?

            (e) two characters in an odd parity ASCII code (the parity bit is on the left)?

            Table 1-2 in the textbook shows various codes and Table 1-3 defines the ASCII code.

Explanation / Answer

(a) 0011=3(valid BCD),1001=9(Valid),1101=13(invalid ) so 1101+0110=0011(3) ,0011=3(valid)

so 4-digit decimal number in the BCD code=3933

(b) a 4-digit decimal number in Gray code=0010 0101 0011 1010(Gray code)=233A

(c) 4-digit decimal number in the 6311 code=27A2

(d)16-bit binary numbe=0011 1001 1101 0011

(e)Table1-2??