caramel1995
caramel1995

Reputation: 3055

memory location calculation

The question is as follow : A microcomputer has memory locations from 00000h to FFFFFh. Each memory location stores 1 byte. In decimal, how many bytes can the microcomputer store in its memory? How many Kilobytes is this?

Answer: It requires two 2Kbytes of RAM and 512 bytes of PROM.

I try to calculate myself before reviewing the answer,and find out that it is not same,till now i still don't understand why this is the answer,anyone may give me some help??Thanks

Upvotes: 0

Views: 2170

Answers (2)

ChrisJ
ChrisJ

Reputation: 5241

Well, 00000h to FFFFFh, this represents 100,000h memory locations, hence 100,000h bytes. 10h^5 (hex) is 16^5 (decimal).

16^5 = (2^4)^5 = 2^20 = (1024)^2 = 1 M = 1024 K.

Conclusion: this processor can address one megabyte of memory.

Obviously, less than one megabyte is installed on this microcomputer, and not all of the installed memory is RAM. But you can't deduce this from the amount of addressable memory.

Upvotes: 1

Jens Björnhager
Jens Björnhager

Reputation: 5649

The answer is clearly the answer to another question and not this one.

Upvotes: 3

Related Questions