Max Memory Space Addressed by 18 Address Bits

  • Thread starter Thread starter needhelp83
  • Start date Start date
  • Tags Tags
    Memory Space
AI Thread Summary
The maximum memory space that can be addressed by 18 address bits is 262,144 bytes, calculated using the formula 2^n, where n equals 18. This equates to 256 kilobytes, as 1 kilobyte is defined as 1,024 bytes. While theoretically, 2^18 addresses are possible, not all chips utilize every address, as seen in certain microcontroller variants. The confusion arises from the use of "k" to denote 1,024 rather than 1,000 in this context. Understanding these distinctions is crucial for accurate memory addressing.
needhelp83
Messages
193
Reaction score
0
The largest memory space that can be addressed by 18 addressing bits is...


Is there a formula for this perhaps?
 
Physics news on Phys.org
How many different combinations of 18 ones and zeros are there?

- Warren
 
2^n
n=18

2^18= 262,144
 
Would that be 262,144 bytes then
 
Assuming that each "memory location" holds one byte, yes.
 
Thanks for the help?
 
Something to note - while you might be able to have addresses going all the way up to 2^18 a lot of chips do not have memory locations for all of the addresses. Such as variants in the PIC16F8X range.
 
I noticed in a Digital Circuits book that with 18 address leads it should be 256K. So where does my 262,144 come from with 2^18. Just a thought?
 
256 * 1,024 = 262,144. The "k" in this context means 1,024, not 1,000.

- Warren
 
Back
Top