Memory Interfacing
Memory Interfacing
Semiconductor Memory
Memory capacity The number of bits that a semiconductor memory chip can store is called chip capacity.
Semiconductor Memory
Memory organization Memory chips are organized into number of locations within the IC. a
Each location can hold 1 bit, 4 bits, 8 bits, or even 16 bits, depending on how it is designed internally.
3
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 a fabrication process.
ROM (read-only memory) ROM is a type of memory that does not lose its contents when the power is turned off. For this reason, ROM is also called nonvolatile memory.
PROM (programmable ROM) and OTP PROM is programmed by blowing the fuses. If the information burned into PROM is wrong, that PROM must be discarded since its internal fuses are blown permanently.
flash memory can be programmed while it is in its socket on the system board.
flash memory is semiconductor memory with access time in the range of 100 ns compared with disk access time in the range of tens of milliseconds.
Mask ROM
(hundreds or thousands) and it is absolutely certain that the contents will not change.
7
256Kx1 DRAM
10
Figure 144
Figure 145 74LS138 Decoder (Reprinted by permission of Texas Instruments, Copyright Texas Instruments, 1988)
12
Figure 146
74LS138 as Decoder
13
Using programmable logic as an address decoder The advantage of these chips is that they can be programmed for any combination of address ranges, and so are much more versatile.
14
Figure 147
16
Figure 149
Address/Data Multiplexing
17
Figure 1410
Figure 1411
19
PSEN
Figure 1412
20
8031/51 INTERFACING WITH EXTERNAL ROM On-chip and off-chip code ROM
21
22
Figure 1413
For the ROM containing data, the RD signal is used to fetch the data.
23
MOVX instruction
Figure 1414 8031 Connection to External Data ROM and External Program ROM
24
Figure 1415
25
Write a Program to transfer an array of 10 bytes stored in location starting from 8000H in this RAM to location starting at 9000H.
Data1 Data2 Count EQU EQU EQU 8000H 9000H 10 MOVX @DPTR,A INC DPTR MOV R0,DPL MOV R1,DPH POP DPL POP DPH DJNZ R2,START END
START:
ORG 0000H MOV R2,#Count MOV DPTR,#Data2 MOV R0,DPL MOV R1,DPH MOV DPTR,#Data1 MOVX A,@DPTR INC DPTR PUSH DPH PUSH DPL MOV DPH,R1 MOV DPL,R0
26
Figure 1416
27
Figure 1417 8031 Connection to External Program ROM, Data RAM, and Data ROM
28
Figure 1418
29