0% found this document useful (0 votes)
15 views3 pages

Architecture of Microprocessor and Microcontroller Systems Assignment 1: Information Representation in Binary

The document is an assignment for a Computer Science course focusing on the architecture of microprocessor and microcontroller systems. It contains various exercises related to binary, octal, and hexadecimal number systems, including conversions, representations, and arithmetic operations. Additionally, it covers topics such as signed numbers, floating-point representation, memory management, and error correction in numerical operations.

Uploaded by

Night-Z Kun
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)
15 views3 pages

Architecture of Microprocessor and Microcontroller Systems Assignment 1: Information Representation in Binary

The document is an assignment for a Computer Science course focusing on the architecture of microprocessor and microcontroller systems. It contains various exercises related to binary, octal, and hexadecimal number systems, including conversions, representations, and arithmetic operations. Additionally, it covers topics such as signed numbers, floating-point representation, memory management, and error correction in numerical operations.

Uploaded by

Night-Z Kun
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
You are on page 1/ 3

EPI 3rd Comp.

Science
Sousse Year: 2024-2025

Architecture of microprocessor and microcontroller systems


Assignment 1: Information representation in binary
Number of pages: 3

Exercise 1:
a. What are the decimal equivalents of N=11010112 when N is an unsigned number and when N is a
signed number (N is represented by 7 bits in both cases).
b. Convert 18310 and -18310 to binary using the minimum number of bits.
c. Give the 4 unsigned binary numbers that come after the value 0101112.
d. What’s the largest unsigned number that can be represented using 11 bits?
556 1024 2048 2047
e. Among the following numbers, indicate which ones can be represented using 8 bits.
25 67 137 228 256
f. How many bits are needed to represent 65536 different numbers in binary?
11 bits 15 bits 16 bits 17 bits
g. How many bits are needed to represent the number 6553?
10bits 11 bits 12bits 13bits

Exercise 2:
a. Convert 6148 to its decimal equivalent.
b. Convert 14610 to its octal equivalent then its binary equivalent.
c. Convert the binary number 10101110112 to octal then to decimal.
d. Give the 4 numbers that come after 6268 in the octal system.

Exercise 3:
a. Convert the number 24CE16 to decimal.
b. Convert the decimal number 3117 to Hex then to binary.
c. Convert the number 35278 to Hex.
d. Give the 4 numbers that come after E9D16 in the hex system.

Exercise 4:
a. How many hex digits are needed to represent numbers between 0 and (4000)10?
b. Convert the following numbers to the indicated system:
(BA0F,E)16 = (?)2
(BA2)16 = (?)10
(F0C4)16 = (?)2
(1010110101011,11011)2 = (?)16
(6543,2)8 = (?)16
(650432)8 = (?)2
(1010110101011)2 = (?)8

Exercise 5:
a. Find the binary equivalent of the signed numbers +24 and +31 using 6 bits.
b. Find the binary equivalent of the signed numbers -24 et -31 using 6 bits.
c. What will be the results of questions a. and b. if you use 7 bits then 8 bits instead of 6 bits. What
can you conclude?
d. For which ones of the following numbers can the C2 be calculated on an 8-bit machine:
128 226 117 -128

Page 1/3
e. On an 8-bit machine, which binary number among the following is the representation of -1910
using C2 representation:
111101101 11001011 11101101 01110111

Exercise 6:
a. Find the binary equivalent of the following numbers: (33, 875)10, (121,25)10
b. Find the decimal equivalent of the following numbers: (11010,1011)2, (1101,110)2
c. Sort the following numbers from the lowest to highest:
11001101,112; 11100001,1012; 10011111,1112; 11001110,0012; 10011111,1012
d. Do the same for the following numbers:
(10101110,11101)2; (523,76893)10; (1110,0001)8; (11011111,110111)2; (A5,7889)16

Exercise 7:
a. Represent R=125,65625 in binary. Give its equivalent in octal and in hex.
b. Find the single precision floating point representation of R (using IEEE 754 standard). Give its
equivalent hex representation.
c. Find the single precision floating point representation of -R (using IEEE 754 standard). Give its
equivalent hex representation.
d. Find the decimal number equivalent to the following IEEE 754 representation: C8 80 00 0016
e. For the IEEE 754 single precision representation give in binary and in Hex format:
• The largest and lowest numbers > 0 that can be represented.
• The representation of zero
• The representation of the result of a division by zero (inf)

Exercise 8:
a. Correct the errors in the following operations, if they exist:
1 1 0 1 1 1 02 1 0 1 0 1 1 12 F B 7 2 7
+ - +
0 1 1 1 0 1 02 0 1 1 1 0 1 02 A 6 9 B 3
01 0 0 1 0 0 0 0 0 1 1 1 0 0 1 A 2 0 D A

b. Perform the following operations in the indicated bases:


1 1 0 1 1 1 02 1 1 0 0 1 0 12 C F B 7 2 716 C 4 B 5 2 716
+ - + -
0 1 1 1 0 1 02 1 0 1 1 1 1 02 9 A 6 9 B 916 9 A 6 9 B 916

Exercise 9:
a. The following operations on signed numbers are performed using 7 bits. Indicate those that
present an overflow:
57 + 18 -43 – 57 -64 + 63

b. Which operations on signed numbers among the following can be performed using 8 bits:
57 + 118 -143 + 57 -64 + 63

c. Among the following numbers, which one is the result of (-43 – 57) using C2:
100011110 110011100 110011000

Exercise 10:
Which one is the correct answer:
When a system uses a signed number representation of 4 bits to perform the operation S = – 2 – 3,
Page 2/3
a. The system adds the 2 operands: (0010) 2 and (0011) 2
b. The system adds the 2 operands: (1010) 2 and (1011) 2
c. The system adds the 2 operands: (0010) 2 and (1101) 2
d. The system adds the 2 operands: (1110) 2 and (0011) 2
e. The system adds the 2 operands: (1110) 2 and (1101) 2

Exercise 11:
Perform the following operations on signed numbers (complement of 2) and indicate for each case
the values of the flags SF (Sign Flag: indicates the sign of the result), ZF (Zero Flag: indicates if the
result is zero), CF (Carry Flag: indicates if there is a carry at the last bit), OF (Overflow Flag: indicates if
there is an overflow).
a. Using 7 bits:
10101112 + 01110102 = ? 11011102 + 01110102 = ?
b. Using 8 bits:
-80 - 68 = ? 80 + 96 = ? 80 – 96 = ?

Exercise 12:
a. Convert the following numbers to BCD: 204; 20,5; 128.
b. Convert the following BCD numbers to decimal:
10010; 10000101; 001000110111; 10001101001,00011
c. Find the values of the 2 bytes 35h and A0h when they represent:
• Unsigned numbers.
• Signed numbers.
• ASCII codes.

Exercise 13:
A memory chip has a total size of 256MB. This memory contains a folder having a size of 126 MB and
two files having the sizes of 1920 KB and 1024 Kbits, respectively.
What’s the free space size of this memory chip in KB and MB.

Exercise 14:
The memory chip presented below has the form of an array of cells each having a size of 2 bytes. This
memory has an address bus of 8 bits allowing pointing to the different cells.
Last cell 2 bytes
Zone 2: empty

E3
Data bus
Address bus

8 bits 16 bits

B2
Zone 1: empty

4D

First cell

a. Find the number of cells that can be accessed through the 8-bit address bus.
b. Find the total size of this memory in bits, bytes, Kbits, and KB.
c. Find the addresses (in binary then in hex) of the 1st cell and the last cell, respectively.
d. Find the size of the empty space in this memory (in bytes and Kbits), given that the following cells
are filled with data: from the first cell to cell 4D, then, from cell B2 to cell E3.

Page 3/3

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy