You are on page 1of 18

8051 Interfacing with External

memory
Semiconductor memory
Important teminology
 Memory capacity
 Memory Organization
 Speed
Memory capacity
 The number of bits that a semiconductor memory chip can
store is called chip capacity.
 It can be in units of Kbits (kilobits), Mbits (megabits), and so
on.

3
Memory organization
 Memory chips are organized into a number of locations
within the IC.
 Each location can hold 1 bit, 4 bits, 8 bits, or even 16 bits,
depending on how it is designed internally.
 The entire memory chip contain 2x x y bits, where x is the
number of address pins and y is the number of data pins.

4
Speed
 The speed of the memory chip
is commonly referred to as
its access time.
 The access time of memory chips
varies from a few nanoseconds to
hundreds of nanoseconds,
depending on the IC technology
used in the design and
fabrication process.

Table 14–1 Powers of 2


5
8051 pin diagram
Address/Data multiplexing
 P0 and P2 role in providing addresses
Data, Address and Control Buses
8051 memory map
FFFF FFFF

External

1000 External
FF
Special
Function
0FFF
Register
80
7F
Internal External Internal
Data RAM
0000 00 0000

Program memory Data memory


Data Memory
Static RAM – Byte organized
Dynamic RAM – Bit organized
Program memory
UV PROM – Low Cost, Time consuming
EE ROM – Costly
FLASH – erase in a flash electrically. Popular
NV-RAM – built in battery last for 10 years
Popular SRAM chips
Popular UV- EPROM chips
Accessing External memory
 Role of EA and PSEN
 PSEN is active while accessing external program ROM

On-chip and Off-chip Program Code Access


14
8031/51 INTERFACING WITH EXTERNAL ROM
• For the ROM containing the program code, PSEN is used to fetch the
code.
• MOVX is used

15
8051 DATA MEMORY SPACE
• For the ROM containing data, the RD signal is used to fetch the
data.
• MOVX is used

16
8051 Connection to External Data ROM
8051 connection with external data
RAM
 MOVX is used
8051 DATA MEMORY SPACE
 Interfacing to large external memory

18
8051 Accessing 256Kx8 External NV-RAM

You might also like