Lec 10 A
Lec 10 A
MEMORY INTERFACING
With 8088
Sec 10.1 , Sec 10.2 Reference Book
NV-RAM
SRAM – CMOS
Flash memory
OE
WE
CS1
CS2
A16 / S3
A17 / S4
A18 / S5
A19 / S6
SSO
DEN
DT / R
IO / M
RD
WR
ALE
INTR INTA
DEN
DT / R
AD7 - AD0
A15 - A8
8088
A19/S6 - A16/S3
ALE
RD
IO / M
WR
DEN
DT / R
AD7 - AD0
A15 - A8
8088
A19/S6 - A16/S3
𝐼𝑂𝑅
ALE 𝐼𝑂𝑊
RD
𝑀𝐸𝑀𝑅
IO / M
WR
𝑀𝐸𝑀𝑊
D0 Q0 A0 B0
D1 Q1 A1 B1
D2 Q2 A2 B2
D3 Q3 A3 B3
D4 Q4 A4 B4
D5 74LS373 Q5
A5
74LS245 B5
D6 Q6
A6 B6
D7 Q7
A7 B7
OE
E DIR
LE
DEN E
DT / R DIR 74LS245
AD7 - AD0 D7 - D0 Q7 - Q0 A7 - A0
A15 - A8
GND OE A19 - A16
LE 74LS373
A15 - A8 D7 - D0 Q7 - Q0
GND OE MEMORY
8088 LE 74LS373
A19/S6 - A16/
D7 - D4 Q7 - Q4
S3
D3 - D0 Q3 - Q0
GND OE
ALE LE 74LS373
RD
RD
IO / M
WR
WR
16 Microprocessor 2023 Raafat S Habeeb 11/12/2022
Minimum Mode
D7 - D0 D7 - D0
A19 - A0 A19 - A0
Simplified
Drawing of
MEMORY
8088 Minimum
Mode
MEMR RD
MEMW WR
CS
• In binary:
A19 A0
0000 0000 0000 0000 0000
1111 1111 1111 1111 1111
Interfacing a 1MB Memory to the 8088 Microprocessor
00000
00001
A19-A0 A19-A0 00002
: :
D7-D0 D7-D0
: :
:
:
MEMR RD
MEMW WR
CS FFFFE
FFFFF
• 00000 – 7FFFF
• In binary:
A18 A0
000 0000 0000 0000 0000
111 1111 1111 1111 1111
D7-D0 D7-D0
MEMR RD : :
MEMW WR 7FFFE
7FFFF
CS
• If A19 outputs a logic “0” the lower memory is enabled (and the upper
memory is disabled) and vice-versa.
Interfacing two 512KB Memory to the 8088 Microprocessor
8088
A19 00000
00001
A18-A0 A18-A0 00002
: :
D7-D0 D7-D0
MEMR RD : :
MEMW WR 7FFFE
7FFFF
CS
00000
00001
A18-A0 00002
:
D7-D0
RD
WR
7FFFE
7FFFF
CS
Full Decoding
When all of the “useful” address lines are
connected the memory/device to perform selection
All previous examples are Full Decoding
Partial Decoding
When some of the “useful” address lines are
connected the memory/device to perform selection
Using this type of decoding results into roll-over
addresses
8088
A19
A18-A0 A18-A0
MEMR RD
MEMW WR
CS
• In this example:
– The full decoding circuit has memory
physical address space 00000-7FFFF
– In partial decoding circuit, each location
of memory has two addresses.
Therefore, the physical address space is
00000-FFFFF
Where XX is:
00 for chip #1 00000 h- 3FFFFh
01 for chip #2 40000 h- 7FFFFh
10 for chip #3 80000h- BFFFFh
11 for chip #4 C0000h- FFFFFh
A17-A0
8088 D7-D0
MEMR RD 256 KB
MEMW WR #2
CS
A17-A0
D7-D0
RD 256 KB
WR #3
CS
A17-A0
D7-D0
RD 256 KB
WR #4
28 CS 11/12/2022
Microprocessor 2023 Raafat S Habeeb
Interfacing four 256K Memory Chips to the 8088
Microprocessor
A17-A0
A19
D7-D0
A18
RD 256 KB
A17-A0
WR #1
D7-D0 CS
A17-A0
8088 D7-D0
MEMR RD 256 KB
MEMW WR #2
CS
A17-A0
D7-D0
RD 256 KB
WR #3
CS
A17-A0
D7-D0
RD 256 KB
WR #4
CS
D 7-D 0 CS
A 17 -A 0
8088 D 7- D0
MEMR RD 256 KB
MEMW WR #2
CS
2x4 0 A 17 -A 0
Dec D 7- D0
RD 256 KB
1
WR #3
CS
I1
2
I0 A 17 -A 0
D 7- D0
RD 256 KB
3
WR #4
D 7-D 0 CS
A 17 -A 0
8088 D 7- D0
MEMR RD 256 KB
MEMW WR #2
CS
2x4 A 17 -A 0
0
Dec D 7- D0
RD 256 KB
1
WR #3
CS
I1
2
I0 A 17 -A 0
D 7- D0
RD 256 KB
3
WR #4
CS
32 11/12/2022
Microprocessor 2023 Raafat S Habeeb
A12
:
A0
A19 D7
8KB
A18 :
A15 WR
8K Memory A14
A13
CS
A12
Chips to the :
A0
:
8088 P
D7
:
D0
8088
MEMR
MEMW :
Minimum
Mode
A12
:
A0
D7
:
8KB
D0 #2
RD
WR
CS
A12
:
A0
D7
:
8KB
D0 #1
RD
WR
CS
33 11/12/2022
Microprocessor 2023 Raafat S Habeeb
Problems