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.

8051 built in memory and external memory

Status
Not open for further replies.

ronzam2002

Member level 5
Joined
Aug 20, 2007
Messages
81
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
san juan
Activity points
1,850
is it alright to use an external memory and the flash memory of an 8051 based microcontroller at the same time?
 

Code in flash and data in external memory should be ok as long as you respect timing and hardware layout.
Check what the datasheet has to say about it.
 

Hi,
You can use external memory along with internal memory. External memory may be used for holding programs or data. 8051 has two banks of 64K each of external address space for program and data memory.
For reading of external Prg.Mem, you use PSEN signal. For Rd/Wr of external data memory you use RD/WR signal lines. Address lines are commonly used.
When you have only internal prog.memory or,both internal and external program memory, you make EA- pin high. In this case the chip will only access the external memory by outputting PSEN, only when the program branches to an address higher than that of internal memory. For a system with only external memory, you make EA- line always low.
As far as fixed data is concerned, you can keep it in the code memory, internally or externally and access it using MOVC instruction. Remember, externally, MOVC only generates PSEN signal and MOVX, the RD/WR signals.
If you use an ORed signal of PSEN+RD and connect to the OE- signal of an external Read/Writeable memory, you can have a system with on-the-fly program loading facility.
Regards,
Laktronics
 

Yes possible.

Actually the internal memory of 8051 is 4k ROM and 128 Bytes RAM.
But you can also use ROM and RAM both or any one externally, the locations of the external RAM or ROM are accessed by DPTR (Data Pointing Register). DPTR is a special function register (SFR).

Good Luck
 

ronzam2002 said:
is it alright to use an external memory and the flash memory of an 8051 based microcontroller at the same time?
on the 8051 basic, you can but some 8051 derivative dont support movx...and also 8051 families has lot of derivative, i suggest choose the on chip..it s much easier
 

It is possible. If the code address is beuond the internal flash memory, 8051 will fetch the code from external memory.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top