You are on page 1of 14

Microprocessor Systems and

Interfacing
CPE 342
Dr. Abbas Javed
(abbasjaved@cuilahore.edu.pk)
Microprocessor 8088

 Outline
 Memory Interfacing with 8088 using Line
Decoders

Monday, November 20, 2023 2


Why Line Decoder?
 Let’s assume a very simple microprocessor with
10 address lines (1KB memory)
 Let’s assume we wish to implement all its
memory space and we use 128x8 memory chips
where starting address is F0000H
 SOLUTION
 We will need 8 memory chips (8x128=1024)
 We will need 3 address lines to select each one of the
8 chips
 Each chip will need 7 address lines to address its
internal memory cells

Monday, November 20, 2023 3


A19 A18 A17 A16 A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
Starting F0000 H 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Ending F007F H 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1

F0080 H 1 1 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0

F00FF H 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1

F0100 H 1 1 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0

F017F H 1 1 1 1 0 0 0 0 0 0 0 1 0 1 1 1 1 1 1 1

F0180 H 1 1 1 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0

F01FF H 1 1 1 1 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1

F0200 H 1 1 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0

F027F H 1 1 1 1 0 0 0 0 0 0 1 0 0 1 1 1 1 1 1 1

F0280 H 1 1 1 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0

F02FF H 1 1 1 1 0 0 0 0 0 0 1 0 1 1 1 1 1 1 1 1

F0300 H 1 1 1 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0

F037F H 1 1 1 1 0 0 0 0 0 0 1 1 0 1 1 1 1 1 1 1

F0380 H 1 1 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0

F038F H 1 1 1 1 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1

Monday, November 20, 2023 4


Memory Interfacing using Line
Decoder

Monday, November 20, 2023 5


Line Decoder

Monday, November 20, 2023 6


Line Decoder

Monday, November 20, 2023 7


Construct 64KB Memory by interfacing eight 8KB EEPROM. Starting address of memory is
F0000H

A19 A18 A17 A16 A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
F0000 H 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

F1FFF H 1 1 1 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1

F2000 H 1 1 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0

F3FFF H 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1

F4000 H 1 1 1 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0

F5FFF H 1 1 1 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1

F6000 H 1 1 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0

F7FFF H 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

F8000 H 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

F9FFF H 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1

FA000 H 1 1 1 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0

FBFFF H 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1

FC000 H 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0

FDFFF H 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1

FE000 H 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0

FFFFF H 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Monday, November 20, 2023 8


Memory Interfacing using Line
Decoder

Monday, November 20, 2023 9


Line Decoder

Monday, November 20, 2023 10


Line Decoder
 The outputs of the decoder in the figure, are
connected to eight different 2764
 EPROM memory devices.
 The decoder selects eight 8K-byte blocks of memory for a
total capacity of 64K bytes.
 The decoder’s outputs are connected to the CE inputs of
the EPROMs,
 The RD signal from the 8088 is connected to the OE inputs
of the EPROMs
 In this circuit, a three-input NAND gate is connected to
address bits A19–A17

Monday, November 20, 2023 11


Line Decoder
 When all three address inputs are high, the output of this
NAND gate goes low and enables input G2B of the
74LS138.
 Input G1 is connected directly to A16.
 In order to enable this decoder, the first four address
connections (A19–A16) must all be high.
 Address inputs C, B, and A connect to microprocessor
address pins A15–A13.
 These three address inputs determine which output pin
goes low and which EPROM is selected whenever 8088
outputs a memory address within this range to the memory
system.

Monday, November 20, 2023 12


Line Decoder

Monday, November 20, 2023 13


Memory Bank
Memory Type Part number Storage capacity
27C16 2KB
27C64 8KB
EPROMs 27C128 16KB
27C256 32KB
27C512 64KB
61C16 2KB
SRAMs
62C256 32KB
28C16 2KB
EEPROMs 28C32 4KB
28C256 32KB

Monday, November 20, 2023 14

You might also like