You are on page 1of 3

TUTORIAL 1a

EET107/3 DIGITAL ELECTRONICS 1 TUTORIAL 1a


1. State the differences between analog and digital systems. Give some example of application for both systems. What is the largest binary number that can be expressed with 12 bits? What is the equivalent decimal and hexadecimal? Write the binary number from: a. 1002 to 10002 b. 10112 to 101012 Express the following numbers in decimal: a. 10110.01012 b. 16.516 c. 26.248 Write the hexadecimal numbers from: a. FA16 to 10116 b. EFF16 to F0A16 Add and multiply the following numbers without converting them to decimal: a. 10112 and 1012 b. 2E16 and 3416 Complete the Table 1.1 below: HEXADECIMAL BINARY A9 10010

2.

3.

4.

5.

6.

7.

BCD

DECIMAL

OCTAL

01100111 99 36 Table 1.1 8. Convert the decimal numbers given in the Table 1.2 to binary and gray code: DECIMAL BINARY GRAY CODE 0 5 7 0111 8 12 15 1000 Table 1.2

TUTORIAL 1a

9.

Decode the following ASCII code: a. 1000101 1000101 1010100 0100000 0110001 0110000 0110111 b. 1001000 1000101 1001100 1010000 Add in binary: a. 10012 +11012 b. 100102 + 11002 + 111012 c. 100012 + 11012 + 101012 Substract in binary: a. 10012 1102 b. 101012 11102 c. 100101002 - 10100102 Perform the following binary multiplications: a. 112 x 112 b. 1112 x 1012 c. 11102 x 11012 Divide the binary numbers as indicated: a. 1002 102 b. 10012 112 c. 11002 1002 Determine 1s and 2s complement of each binary number: a. 101101012 b. 000100012 c. 11102 d. 10102 Express each decimal number as an 8-bit number in the sign magnitude, 1s and 2s complement form: a. -34 b. +57 c. -99 d. +115 e. -18 The table below shows decimal numbers and their 8 bit representation in sign magnitude, 1s complement and 2s complement. Fill in Table 1.3. Decimal Sign and Mag 1s complement 2s complement 0001 0001 -18 1000 1100 Table 1.3

10.

11.

12.

13.

14.

15.

16.

TUTORIAL 1a

17.

Given message in BCD numbers as below:

01100110 01111001 000100010001 01110110 000100000001 10010111 01111000 00110011


a. b. 18. convert this message into Decimal numbers. decode (a) into ASCII coded message.

Convert each pair of decimal numbers to binary and add using the 2s complement form: a. 33 and 15 b. -5 and -9 Given Gray code as below, obtain the followings: 1100111 1101110 1111110 0101001 0101011 0101001 a. b. convert this message into Binary decode (a) into ASCII coded message.

19.

You might also like