Module2-8086 Memory Interfacing
Module2-8086 Memory Interfacing
1
8086 system configuration:
VIT BHOPAL UNIVERSITY
2
Memory chip:
WR RD
VIT BHOPAL UNIVERSITY
CS
(Chip select) D0-D7
➢ The number of memory chips and the address space used will
depend on the application needs.
4
Hardware connection of the memory signals with the
system signals:
3FFH
7FFH
FFFH
1FFFH
3FFFH
7FFFH
FFFFH
1FFFFH
3FFFFH
7FFFFH
FFFFFH
6
Interface two 4K X 8 EPROMS and two 4K X 8 RAMS chips with
8086 . Select suitable maps.
We know that, after reset , the IP and CS are initialized to form address
VIT BHOPAL UNIVERSITY
The address of RAM may be selected any where in the 1MB address space
of 8086.
In this case RAM address is select such that the address map of the system is
continuous.
7
A1-A12 of 8086
CS1’ CS2’
A0 A0
ROM1 ROM2
4K X 8 A11 A11 4K X 8
VIT BHOPAL UNIVERSITY
OE’
MEMR’ OE’
MEMR’
D0-D7 D0-D7
D8-D15 D0-D7
D0-D7 D0-D7
A0 A0
RAM3 RAM4
4K X 8 A11 A11 4K X 8
MEMR’ RD’ RD’ MEMR’
A1-A12 of 8086
MEMW’ WR’ CS3’ CS4’ WR’ MEMW’
8
Unused address lines of the processor: A13 to A19
Memory bank enable signals: A0 and BHE’
Above signals will be decoded to generate chip select signals for the memory
chips. (CS1’, CS2’, CS3’ and CS4’)
VIT BHOPAL UNIVERSITY
To design the chip select signal decoding circuit memory mapping address for
ROM and RAM chips are required.
❖ ROM chips must be mapped from the address FFFFFH.
❖ In this case select the RAM address in such that the address
map of the system is continuous.
MEMORY MAPPING ADDRESS CALCULATION FOR ROM AND RM CHIP
❖ If end address of ROM space is FFFFFH and since the size
of ROM space is 2X4KB = 8KB, so starting address of ROM
space is FFFFFH-1FFFH = FE000H
❖ So the end address of RAM space is FE000H – 1 =
FDFFFH and starting address is FDFFFH – 1FFFH =
FC000H.
9
MEMORY MAPPING TABLE
VIT BHOPAL UNIVERSITY
11
ADDRESS DECODING CKT OR CHIP SELECT SIGNAL
GENERATION CKT USING DECODER
A18 IC NO.74138
A19 IC NO.7432
1
A16 0 A0 CS4’
VIT BHOPAL UNIVERSITY
A17 0
BHE’ CS3’
A13
A14 A0 CS2’
A 15
BHE’ CS1’
A19 A18 A17 A16 A15 A14 A13 DECODER A0 BHE’ ODD/
O/P EVEN CHIP
1 1 1 1 1 1 1 Y7=0 0 1 EVEN ROM /CS2’=0
1 1 1 1 1 1 1 Y7=0 1 0 ODD ROM/ CS1’=0
1 1 1 1 1 1 0 Y6=0 0 1 EVEN RAM/ CS4’=0
1 1 1 1 1 1 0 Y6=0 1 0 ODD RAM/ CS3’ = 0
12
ADDRESS DECODING CKT OR CHIP SELECT SIGNAL
GENERATION CKT USING gates only
0
A19 0 0 CS1’=0
VIT BHOPAL UNIVERSITY
A13 0
For ROM chips 0 CS2’=0
0
0 CS4’=0
A19
0
A13 0
0 CS3’=0
For RAM chips
13
Refer ch-5 of the below textbook for some more memory
interfacing examples
VIT BHOPAL UNIVERSITY
14
VIT BHOPAL UNIVERSITY
You
Thank
15