开发者

memory location calculation

开发者 https://www.devze.com 2023-02-13 04:24 出处:网络
The question is as follow : A microcomputer has memory locations from 00000h to FFFFFh. Each memory location st开发者_开发技巧ores 1 byte. In decimal, how many bytes can the microcomputer store in its

The question is as follow : A microcomputer has memory locations from 00000h to FFFFFh. Each memory location st开发者_开发技巧ores 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


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消