i m using EPROM 27C256 with 8051 microcontroller . plz give me a very basic code for doing this . plz also specify the diagram for interfacing . give me a small code for displaying any number on microcontroller port using EPROM for code storage
There is no "special" code for running 8051 system of external or internal code memory. 8051 is so designed that all required control signals are generated automatically by the CPU.
Goto: https://www.pjrc.com/tech/8051/dev-board-desc.html
There you will find an example of the hardware configuration of the 8051 microcontroller working with the external code memory.
There are also code examples and all other stuff that you may need ..
Regards,
IanP
Now, EPROM is not a good choice for program code storage, try to use FLASH as a replacement.
EPROM is hard to erase, which can only be erased by exposed under a ultraviolet lamp for 30 minutes.