0% found this document useful (0 votes)
9 views

MMES Assignment 2

Uploaded by

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

MMES Assignment 2

Uploaded by

Saif Fardin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

MMES Assignment 2

Course Title: Microprocessors, Microcontrollers and


Embedded Systems
Course Code: 0611 CSE 327

Submitted to: Tarikuzzaman Emon


Submitted by:
Name: Saif Fardin
ID : CSE 07808390
Batch: 78A
1. How many address lines are necessary on the chip of 2K
byte memory?
To determine the number of address lines necessary for a 2K byte memory, we
need to find out how many unique addresses are required to access each byte of
memory.

Here's the step-by-step process:

1. Calculate the total number of bytes:

- 2K bytes of memory means 2 × 1024 bytes, which equals 2048 bytes.

2. Determine the number of unique addresses:

- Each byte in memory needs a unique address.

- Therefore, we need 2048 unique addresses.

3. Calculate the number of address lines:

- The number of address lines n can be found using the formula 2^n = number
of unique addresses.

- We need 2^n = 2048 .

4. Solve for n :

2^n = 2048

- To find n , we can use logarithms:

n = log_2(2048)

Knowing that 2048 = 2^11, we find: n = 11

Therefore, 11 address lines are necessary to address a 2K byte memory.


2. If the memory chip size is 1024 X 4 bits, how many chips are
required to make up 2K bytes of memory?

To determine how many 1024 × 4 bit memory chips are needed to make up 2K
bytes of memory, we can follow these steps:

1. Calculate the total memory required:

- 2K bytes = 2 * 1024 bytes = 2048 bytes.

- Since each byte is 8 bits, the total memory required in bits is 2048 × 8 bits =
16384 bits.

2. Determine the capacity of one memory chip:

- Each 1024 × 4 bit memory chip has a capacity of 1024 × 4 bits = 4096 bits.

3. Calculate the number of chips required:

- Total memory required = 16384 bits.

- Memory provided by one chip = 4096 bits.

- Number of chips required = 16384 bits / 4096 bits/chip

=16384 / 4096 = 4

Therefore, 4 chips of 1024 x 4 bits each are required to make up 2K bytes of


memory.
3. The memory map of a 4K byte memory chip begins at the
location 2000 H. Specify the address of the last location on the
chip and thenumber of pages on the chip.
To determine the address of the last location on a 4K byte memory chip that
begins at location 2000H, and to calculate the number of pages on the chip,
follow these steps:

1. Calculate the address of the last location:

- The memory chip is 4K bytes in size.

- 4K bytes = 4 * 1024 bytes = 4096 bytes.

- The starting address is 2000H.

The address space of the chip extends from 2000H to (2000H + 4096 bytes - 1). In
hexadecimal, 4096 bytes is 1000H (since 4096 = 2^12 = 1000H).

So, the last address is:

Starting address + Size - 1 = 2000H + 1000H - 1 = 2FFFH

Therefore, the address of the last location is 2FFFH.

2. Calculate the number of pages on the chip:

- A memory page typically consists of 256 bytes (assuming standard page size for
many memory systems).

- Total size of the memory chip = 4096 bytes.

- Number of pages = Total size / Page size = 4096 bytes / 256 bytes per page.

So, the number of pages is:

4096 / 256 = 16
Therefore, the address of the last location on the chip is 2FFFH, and the number
of pages on the chip is 16.power consumption is an important consideration, this
may be advantageous.

4. The memory address of the last location of an 8K byte


memory chip is FFFF H. Find the starting address.
To determine the starting address of an 8K byte memory chip given
that the address of the last location is FFFFH, follow these steps:

Understanding the size of the memory chip:

 The memory chip size is 8K bytes.


 8K bytes = 8 * 1024 bytes = 8192 bytes.

Given that,

- The last address is FFFFH.

Calculating the starting address:

- The starting address can be calculated by subtracting the size of the memory
(in bytes) minus one from the last address.

Starting address = Last address – ( Size in bytes - 1)

- Last address = FFFFH.

- Size in bytes = 8192 bytes.

- 8192 bytes in hexadecimal = 2000H (since 8192 = 2^13 = 2000H).

Starting address = FFFFH - (2000H - 1) = FFFFH - 1FFFH = E000H

Therefore, the starting address of the 8K byte memory chip is E000H.


5. The memory address of the last location of a 1 K byte
memory chip is given as FBFF H. Specify the memory map.
To determine the memory map for a 1K byte memory chip given that the address
of the last location is FBFFH, we need to find the starting address and list the
range of addresses covered by the chip.

Understand the size of the memory chip:

- The memory chip size is 1K bytes.

- 1K bytes = 1 * 1024 bytes = 1024 bytes.

Determine the address of the last location:

- The last address is given as FBFFH.

Calculate the starting address:

- The starting address can be calculated by subtracting the size of the memory
(in bytes) minus one from the last address.

Starting address = Last address − (Size in bytes - 1)

- Last address = FBFFH.

- Size in bytes = 1024 bytes.

- 1024 bytes in hexadecimal = 400H (since 1024 = 2^10 = 400H).

Starting address = FBFFH - (400H - 1) = FBFFH - 3FFH = F800H

Specify the memory map:

- The memory map is from the starting address to the last address.

Memory map = Starting address to Last address = F800H to FBFFH

Therefore, the memory map for the 1K byte memory chip is from F800H to FBFFH.
------------------------- “ Thank you “ ------------------------------

You might also like