0% found this document useful (0 votes)
50 views1 page

Number System Conversion Solutions

This document provides answers to tutorial questions about binary, octal, hexadecimal conversions and arithmetic operations. It covers converting between number systems, performing addition and subtraction in binary, and converting between binary and BCD (binary coded decimal). Sample problems are worked through such as converting decimal numbers to different bases, negating and adding 8-bit binary numbers, and encoding an ASCII text message into binary.

Uploaded by

Muhammad Irfan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views1 page

Number System Conversion Solutions

This document provides answers to tutorial questions about binary, octal, hexadecimal conversions and arithmetic operations. It covers converting between number systems, performing addition and subtraction in binary, and converting between binary and BCD (binary coded decimal). Sample problems are worked through such as converting decimal numbers to different bases, negating and adding 8-bit binary numbers, and encoding an ASCII text message into binary.

Uploaded by

Muhammad Irfan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

EEEB2044 / EEEB373 Microprocessor Systems

Semester 1, 2020/21

Tutorial 1 - Answers

1) Convert the following binary, octal, and b) 010000012 – 000100012 = 010000012


hexadecimal numbers to their decimal + 111011112 = 1 001100002
equivalents: (N OV Z DC C = 00011)
a) 10100101002 - 66010 c) 100000012 - 001000002 = 100000012
b) 1010101102 - 34210 + 111000002 = 1 011000012
c) 14358 - 79710 (N OV Z DC C = 01001)
d) 5678 - 37510
e) 120016 - 460810 9) What range of integers can be represented
f) ABE016 - 4400010 by the 14-bit two’s complement number
system?
2) Convert the following decimal numbers to -(2n-1) to +(2n-1-1) = -8192 to +8191
their binary, octal, and hexadecimal
equivalents: 10) What range of integers can be represented
a) 418510 - 105916, 101318, by the 12-bit two’s complement number
10000010110012 system?
b) 727110 – 1C6716, 161478, -(2n-1) to +(2n-1-1) = -2048 to +2047
11100011001112
11) Perform the following arithmetic
3) Convert the following binary numbers to operations:
their octal and hexadecimal equivalents: a) 12347 + ABE116 – 1156 + BABA15 =
a) 1010001101102 – A3616, 50668 466 + 44001 – 47 + 39550 = 83970 =
b) 10011011101012 – 137516, 115658 2440028
b) B’11000101’ + H’278’ – O’345’ +
4) Convert the following hexadecimal D’123’ = 0xC5 + 0x278 – 0xE5 + 7B
numbers to their binary equivalents: = 0x2D3
a) ADAA16 – 1010 1101 1010 10102 c) 12410 + 0x37 – 248 + AAA16 – 2768 =
b) BACA16 – 1011 1010 1100 10102 124 + 55 – 20 + 2730 – 190 = 2699 =
412445
5) Convert the following numbers to their
binary equivalents: 12) Convert the following numbers to their
a) 25136 – 10011011012 BCD equivalents:
b) 34569 – 1010000000102 a) 12347 + ABE116 – 1156 + BABA15 =
c) ABC13 – 111001101012 466 + 44001 – 47 + 39550 = 83970 =
d) 76712 – 100001111112 1000 0011 1001 0111 0000BCD
b) 12410 + 0x37 – 248 + AAA16 = 124 +
6) Compute the sums of the following pairs 55 – 20 + 2730 = 2889 = 0010 1000
of binary numbers: 1000 1001BCD
a) 1001000102 and 1011011002 =
10100011102 13) What binary data will be sent through your
b) 1100102 and 1000112 = 10101012 modem when you send message “Mee
Likes Udang” to your very special friend
7) Negate the following 8-bit binary using 7-bit ASCII code?
numbers: *Note: There are spaces between “ee” and
a) 001000012 – 110111112 “Li”, and between “es” and “Ud”. Quotation
b) 011000012 – 100111112 marks (“ ”) are not included.
c) 100111002 – 011001002
M e e L i k e s
4D 65 65 20 4C 69 6B 65 73
8) Use 8-bit two’s complement addition to
perform the indicated operations: U d a n g
a) 010010112 – 000101112 = 010010112 20 55 64 61 6E 67
+ 111010012 = 1 001101002
(N OV Z DC C = 00011)

Common questions

Powered by AI

To convert the decimal number 7271 to binary, divide the number by 2 successively and record the remainders: 7271 in binary is 1110001100111. For octal, group the binary into sets of three, resulting in 16147. For hexadecimal, group into sets of four: 1C67 .

To convert BACA from hexadecimal to decimal, multiply each digit by the power of 16 according to its position: B(11)*16^3 + A(10)*16^2 + C(12)*16^1 + A(10)*16^0, which calculates to 47786 in decimal .

The hexadecimal number ADAA can be converted to binary by converting each hexadecimal digit to its 4-bit binary equivalent: A (1010), D (1101), A (1010), A (1010). Thus, ADAA in binary is 1010 1101 1010 1010 .

The binary sequence 1001101110101 can be grouped as 0001 0011 1011 0101 by appending leading zeros for a full byte representation. The hexadecimal equivalent is 1375, showing how binary to hex conversion compacts the number representation .

The binary number 1010010100 converts to 660 in the decimal system. To convert it to octal, group the binary digits into sets of three from right to left: 001 010 010 100. The octal representation is then 1244. For hexadecimal, group into sets of four: 0010 1001 0100, which converts to A4 in hexadecimal .

The 14-bit two’s complement range is from -(2^13) to +(2^13-1), which means from -8192 to +8191. This is because two’s complement representation uses one bit for the sign, reducing the range by a factor of two compared to an unsigned number .

To convert 4185 to binary, divide by 2 successively, yielding the binary 1000001011001. For octal, group the binary in sets of three, resulting in 10131 octal .

To convert 101000110110 from binary to octal, group the binary digits into sets of three from right to left: 010 100 011 011. This translates to 2433 in octal .

Align the binary numbers 100100010 and 101101100; calculate bit by bit with carry: the sum is 1010001110 .

To negate the 8-bit binary number 00100001, flip all bits to get 11011110 and then add 1, resulting in 11011111, which is the two's complement negation .

You might also like