Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

address lines in 8051

Status
Not open for further replies.

dhanraj_kmr

Advanced Member level 4
Joined
Sep 23, 2008
Messages
117
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
Chennai, INDIA
Activity points
2,174
address line in 8051

To connect 5k externl memory how many addresslines needed from 8051?
how to calculate this? pls explain it on a clear way..............
 

address lines of 8051

Homework? OK in slow-motion:
If you've 1 address line you can describe 2 addresses (line is low: 1st address, line is high: 2nd address).
If there're 2 lines, there are 4 possible adresses (line1 low & line2 low; line1 high & line2 low; line1 low & line2 high; line1 high & line2 high).
So the number of addresses double with each additional address line. It can be calculated this way: NumberOfAddresses = 2^NumberOfAddresslines
Now I guess you want to address 5kBytes = 5 * 1024 Bytes = 5120 Bytes
Let's see:
2^1 = 2 (1st example above)
2^2 = 4 (2nd example above)
2^3 = 8
2^4 = 16
2^5 = 32
2^6 = 64
2^7 =128
2^8 = 256
2^9 = 512
2^10 = 1024
2^11 = 2048
2^12 = 4096 (too less for you)
2^13 = 8192 (sufficient to address 5120 Bytes)

So 13 address lines are needed for 5kBytes @ an 8-bit MCU like 8051.
But if you meant 5kBits the calculation would be different (5kBit = 640Bytes --> 10 address lines)!
 
Remember this simple formula to calculate number of bits required to store a number

Num_Bits = log(max_number) / log(2)

Example: for 5k memory
NUM_Bits = log(5000) / log(2) = 12.28 ~= 13 bits.

You require 13 address lines for 5K memory.
 
Why don't you start a new thread for this?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top