free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Rickey's World :: Discussion Forums :: Discuss and Learn :: 8051 Discussion Forum
 
<< Previous thread | Next thread >>
external ram and rom
Moderators: Ajay Bhargav, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph, ExperimenterUK, DavesGarage
Author Post
8051king
Tue Dec 08 2009, 07:15AM
 User Offline
Registered Member #24317
Joined: Tue Dec 08 2009, 06:53AM

Posts: 1
Thanked 0 times in 0 post
Hi,

I want to interface some external RAM and ROM to an 8051 but I am slightly confused about memory mapping?

I have attached a simple circuit I have made which uses the MSB of the address line (A15) to select between the RAM / ROM, would this work?

any more information on memory mapping would be appreciated.

Thanks





8051King
Back to top

DavesGarage
Tue Dec 08 2009, 08:36AM

 User Offline
Registered Member #14254
Joined: Tue Jan 20 2009, 08:14AM

Posts: 622
Thanked 116 times in 112 posts
Conceptually, you have the right idea, but why allow /PSEN to enable the RAM chip?

/PSEN is asserted during a code fetch cycle (only)...

Consider the following:

Code is stored in lower memory: 0x0000 - 0x0FFF
Data is stored in upper memory: 0x8000 - 0x8FFF

What happens if you read data from address 0x9000? 0xA000? 0xB000? and so on up to 0xF000?

How about if you fetch an instruction from code space 0x1000? 0x2000? and so on up to 0x7000?




-Dave
"Basic research is what I am doing when I don't know what I am doing"
Back to top

 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems