Hai,
I have a doubt on 8051 micro-controller, i.e for 8051 micro-controller max code memory will be 64k and max data memory is 64k.So how we are going access this both 64k memory of code memory and 64k memory of data memory using 16 address lines in 8051.
Siva Krishna
Try keywords like "Banking" and "Paging"
But, if you have an actual requirement for >64K code and/or >64K data, you should seriously consider whether the 8051 is a good choice...
On one hand, you can have an almost infinite amount of memory, if you use banking. On the other hand, there are many variants of 8051 chips. Not all are identical.
Don't think this has anything to do with banking or paging.
The bog-standard original 8031 could access a maximum of 64K code and 64K xdata space.
It's just that the 8051 has chip select lines for each type of address space.
Time for "the bible".
Chapter 1 - 80C51 Family Architecture: Chapter 1 - 80C51 Family Architecture:
www.nxp.com/.../80C51_FAM_ARCH_1.pdf
Chapter 2 - 80C51 Family Programmer's Guide and Instruction Set:
www.nxp.com/.../80C51_FAM_PROG_GUIDE_1.pdf
Chapter 3 - 80C51 Family Hardware Description:
www.nxp.com/.../80C51_FAM_HARDWARE_1.pdf
Ah - re-reading the original post, I think you may well be right!
In which case, yes: there are not just 16 address lines - there are also distinct read/write control lines.
And, as you say, the so-called "bible" describes this fully.