Professional Documents
Culture Documents
The 8051 Microcontroller and Embedded Systems: 8051 Interfacing To External Memory
The 8051 Microcontroller and Embedded Systems: 8051 Interfacing To External Memory
Embedded Systems
CHAPTER 14
8051 INTERFACING
TO EXTERNAL
MEMORY
1
OBJECTIVES
2
SECTION 14.1: SEMICONDUCTOR
MEMORY
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
SECTION 14.1: SEMICONDUCTOR
MEMORY
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.
4
SECTION 14.1: SEMICONDUCTOR
MEMORY
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
abrication process.
Table 14–1 Powers of 2
5
SECTION 14.1: SEMICONDUCTOR
MEMORY
6
SECTION 14.1: SEMICONDUCTOR
MEMORY
7
SECTION 14.1: SEMICONDUCTOR
MEMORY
Mask ROM
Mask ROM refers to a kind of ROM in
which the contents are programmed by
the IC manufacturer.
Mask ROM is used when the needed
volume is high (hundreds of thousands)
and it is absolutely certain that the
contents will not change.
12
SECTION 14.1: SEMICONDUCTOR
MEMORY
13
SECTION 14.1: SEMICONDUCTOR
MEMORY
16
SECTION 14.1: SEMICONDUCTOR
MEMORY
17
SECTION 14.1: SEMICONDUCTOR
MEMORY
refreshing due to
leakage
19
SECTION 14.1: SEMICONDUCTOR
MEMORY
20
SECTION 14.1: SEMICONDUCTOR
MEMORY
DRAM organization
21
SECTION 14.2: MEMORY ADDRESS
DECODING
Figure 14–5
74LS138 Decoder
(Reprinted by permission of Texas Instruments,
Copyright Texas Instruments, 1988)
23
SECTION 14.2: MEMORY ADDRESS
DECODING
25
SECTION 14.3: 8031/51 INTERFACING
WITH EXTERNAL ROM
EA pin
Connect the EA pin
to Vcc to indicate that
the program code is
stored in the C's
on-chip ROM.
To indicate that the program
code is stored in external ROM,
this pin must be connected
to GND.
Figure 14–8
74LS373 D Latch
(Reprinted by permission of Texas Instruments,
Copyright Texas Instruments, 1988)
27
SECTION 14.3: 8031/51 INTERFACING
WITH EXTERNAL ROM
29 Figure 14–10 Data, Address, and Control Buses for the 8031
SECTION 14.3: 8031/51 INTERFACING
WITH EXTERNAL ROM
PSEN
32
SECTION 14.4: 8051 DATA MEMORY
SPACE
34
SECTION 14.4: 8051 DATA MEMORY
SPACE
MOVX instruction
Figure 14–14
35 8031 Connection to External Data ROM and External Program ROM
SECTION 14.4: 8051 DATA MEMORY
SPACE
38 Figure 14–17
8031 Connection to External Program ROM, Data RAM, and Data ROM
SECTION 14.4: 8051 DATA MEMORY
SPACE
40 Figure 14–19 PMR Register Bits for 1K-byte SRAM of DS89C4x0 Chip
Next …
41