SlideShare a Scribd company logo
Memory Interfacing
With 8086
By:
Mr. V. R. Gupta
Lecturer
Department of Electronics & Telecommunication
YCCE, Nagpur
Learning objective
In this module you will learn:
 What are the different types of memory
 Memory structure & its requirement.
 How to interface RAM & ROM with 8086
µP in minimum & maximum mode.
 Different types of address decoding.
introduction
• Memory is simply a device that can be used to store
the information .
• The semiconductor memories are extensively used
because of their small size, low cost, high speed, high
reliability & ease of expansion of the memory size.
• It consist of mainly flip-flop & some additional
circuitry such as buffers, one flip flop can hold one
bit of data.
Memory fundamentals
• Memory capacity
 The no. of bits that a semiconductor memory
chip can store is called its chip capacity.
• Memory Organization:
 Each memory chip contains 2N locations, where
N is the no. of address pins on the chip.
 Each location contains M bits, where M is the no.
of data pins on the chip.
 The entire chip will contain 2N x M bits.
 E.g. for 4K x 4, 212 =4096 locations, each location
holding 4 bits, so N=12 & M=4.
Memory types
1)ROM (Read Only Memory)
2)PROM (programmable memory)
3)EPROM (Erasable programmable ROM)
4)EEPROM (Electrically Erasable PROM) 500000 times
5)Flash memory EPROM
6)RAM (Random Access Memory)
Ram memory types
SRAM (static RAM)
• Storage cells are made
of F/F
• Don't require refreshing
to keep their data.
• A cell handling one bit
requires 6 or 4
transistors each, which
is too many
• Used for cache memory
& battery backed
memory system
DRAM( Dynamic RAM)
• Uses MOS capacitors to
store a bit.
• Requires constant
refreshing due to
leakage.
• High density
• Cheaper cost per bit
• Lower power consumption
• Larger access times
• Too many pins due to large
capacity.
Standard EPROM ic
EPROM Density( bits) Capacity (bytes )
2716 16K 2K*8
2732 32K 4K*8
27C64 64K 8K*8
27C128 128K 16K*8
27C256 256K 32K*8
27C512 512K 64K*8
27C010 1M 128K*8
27C020 2M 256K*8
27C040 4M 512K*8
Standard SRAM ic
SRAM Density( bits) Organization
4361 64K 64K*1
4363 64K 16K*1
4364 64K 8K*8
43254 256K 64K*4
43256A 256K 32K*8
431000A 1M 128K*8
Standard DRAM ic
EPROM Density( bits) Capacity (bytes )
2164 64K 64 Kx1
21256 256K 256 Kx1
21464 256K 64 Kx4
421000 1M 1 Mx1
424256 1M 256 Kx4
44100 4M 4 Mx1
44400 4M 1 Mx4
44160 4M 256 Kx16
416800 16M 8 Mx2
416400 16M 4 Mx4
416160 16M 1 Mx16
MEMORY STRUCTURE & ITS
REQUIREMENT
R/W memory
4096x8
Output buffer
Input buffer
Internaldecoder Input Data
Output Data
WR
CS
RD
EPROM
2048x8
Output buffer
Internaldecoder
RD
CS
Output Data
A11
A0
A10
A0
PHYSICAL STRUCTURE OF PRACTICAL MEMORY IC
1. Address Pins:
No of address pins No of memory location
8 28 = 256 location
9 29 = 512 location
10 210 = 1024 = 1K location
11 211 = 2048 = 2K location
12 212 = 4 K
13 213 = 8 K
14 214 = 16 K
15 215 = 32 K
16 216 = 64 K
17 217 = 128 K
18 218 = 256 K
19 219 = 512K
20 220 = 1024K = 1M
PHYSICAL STRUCTURE OF PRACTICAL MEMORY IC
2. Data pins: Number of flip flop in each location is 4/8,
then data pins 4/8.
3. Control pins:
ROM/ EPROM will consist of only RD (OE)
RAM will have control pins RD & WR.
4. Commons pins: CS (chip select) .
CS is generated using:
i. NAND gate
ii. 3 to 8 decoder
iii. PAL IC
Address decoding
• In general all the address lines are not used by the
memory devices to select particular memory
locations.
• The remaining line are used to generate chip select
logic.
• Following two techniques are used to decode the
address:
1) Absolute or Full decoding
2) Linear or Partial decoding
Absolute or full decoding
• All the higher address lines are decoded to select the
memory chip.
• The memory chip is selected only for the specified
logic levels on these higher order address lines.
• So each location have fixed address.
• This technique is expensive
• It needs more hardware than partial decoding.
• This technique is used in the small system
• All the address lines are not used to generate chip
select logic
• Individual High order address lines are used to
decode the chip select for the memory chips.
• Less hardware is required.
• Drawback is address of location is not fixed, so each
location may have multiple address.
Partial or Linear Decoding
Q. 1: Interface 32 KB of RAM memory to the 8086
microprocessor system using absolute decoding with the
suitable address.
Step_1: Total RAM memory = 32 KB
Half RAM capacity = 16 KB
hence,
number of RAM IC required = 2 ICs of 16 KB
so,
EVEV Bank = 1 ICs of 16 KB RAM
ODD Bank = 1 ICs of 16 KB RAM
Step_2: Number of address lines required = 15 address lines
Even bank Odd bank
RAM _1 (16KB) RAM _2 (16KB)
MEMOR
Y IC
HEX
ADDRESS
BINARY ADDRESS
A
19
A
18
A
17
A
16
A
15
A
14
A
13
A
12
A
11
A
10
A
9
A
8
A
7
A
6
A
5
A
4
A
3
A
2
A
1
A
0
16 K x 8
RAM-(1)
OOOOO 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
07FFE 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
Step_3: Address decoding table
To decoder
To 16 K IC
DAS
A0
BHE CSO
CSE
M / IO
A19
A18
A17
A16
A15
Step_3: Generation of chip select logic
8284 clock
generator
IC 74244
buffer
Transcei
ver
8286 (2)
LATCH
8282
(2 or 3)
C
L
O
C
K
R
E
S
E
T
R
E
A
D
Y
8
0
8
6
µ
P
M / IO
RD
WR
ALE
BHE / S7
A19/S6-A16/S3
AD15-AD0
DT / R
DEN
M / IO
RD
A0
BHE
D7-D0
D15-D8
A19-A1
16Kx8 RAM-1 Even 16Kx8 RAM-2 Odd
RD RD WRWRD7-D0
D15-D8A13-A0
A13-A0
14 14
CSO
WR
CSE
MN/MX
VCC
Q. 2: Interface 32 K word of memory to the 8086 microprocessor
system . Available memory chips are 16 K x 8 RAM. Use
suitable decoder for generating chip select logic.
Step_1: Total memory = 32 K word = 32*2 K = 64 K
IC available = 16 K
hence,
number of RAM IC required = 64 K x 8/ 16 Kx8 = 4 ICs
so,
EVEV Bank = 2 ICs of 16 Kx8 RAM
ODD Bank = 2 ICs of 16 Kx8 RAM
Step_2: Number of address lines required = 15 address lines
Even bank Odd bank
RAM _1 (16K) RAM _2 (16K)
RAM_ 3 (16K) RAM _4 (16K)
MEMORY
IC
HEX
ADDRESS
BINARY ADDRESS
A19 A18 A17 A16 A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
16 K x 8
RAM-(1)
OOOOO 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
07FFE 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
16 K x 8
RAM-(3)
8000 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0FFFE 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
Step_3: Address decoding table
To decoder
To 16 K IC
Step_3: Generation of chip select logic
3:8
Decoder
74LS373
E1 E2 E3
A
B
C
A17
A16
A15
A19A18 M / IO
0 0 1
Y0
Y1
Y2
Y3
Y4
Y5
Y6
Y7
To CS0
To CS1
16Kx8 RAM-4 Odd16Kx8 RAM-3 Even
8284 clock
generator
IC 74244
buffer
Transcei
ver
8286 (2)
LATCH
8282
(2 or 3)
C
L
O
C
K
R
E
S
E
T
R
E
A
D
Y
8
0
8
6
µ
P
M / IO
RD
WR
ALE
BHE / S7
A19/S6-A16/S3
AD15-AD0
DT / R
DEN
M / IO
RD
HWR
LWR
A0
BHE
D7-D0
D15-D8
A19-A1
16Kx8 RAM-1 Even
+
16Kx8 RAM-2 Odd
RD RD WRWRD7-D0 D15-D8A13-A1 A13-A1
14 14
CS0
CS1
Q. 3: Interface the following memory ICs with the 8086
microprocessor system in minimum mode configuration.
ROM 4K-2 Numbers
EPROM 64K-1 Numbers
RAM 32K- 1Number . Use partial decoding.
Step_1: Total ROM memory = 4 KB ---- 2 ICs
EVEV Bank = 1 ICs of 4 KB ROM
ODD Bank = 1 ICs of 4 KB ROM
Total EPROM memory = 64 KB
EVEV Bank = 1 ICs of 32 KB EPROM
ODD Bank = 1 ICs of 32 KB EPROM
Total RAM memory = 64 KB
EVEV Bank = 1 ICs of 16 KB RAM
ODD Bank = 1 ICs of 16 KB RAM
Even bank Odd bank
ROM _1 (4KB) ROM _2 (4KB)
EPROM _1 (32KB) EPROM _2 (32KB)
RAM _1 (16KB) RAM _2 (16KB)
Step 2:
Number of address lines required for ROM = 13 address lines
Number of address lines required for EPROM = 16 address lines
Number of address lines required for RAM = 15 address lines
Step_3: Address decoding table
To decoder To RAM IC
MEMORY
IC
HEX
ADDRESS
BINARY ADDRESS
A19 A18 A17 A16 A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
4 K x 8
ROM-(1)
FFFFE 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
FE000 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0
32 K x 8
EPROM-
(1)
EFFFE 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
E0000 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
16 K x 8
RAM-(1)
D0000 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
D7FFE 1 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
To ROM IC
To EPROM IC
Step_3: Generation of chip select logic
3:8
Decoder
74LS373
E1 E2 E3
A
B
C
A18
A17
A16
A19
M / IO
0 0 1
Y0
Y1
Y2
Y3
Y4
Y5
Y6
Y7
To DAS0
To DAS1
To DAS2
16Kx8 RAM-4 Odd4Kx8 ROM-3 Even
8284 clock
generator
IC 74244
buffer
Transcei
ver
8286 (2)
LATCH
8282
(2 or 3)
C
L
O
C
K
R
E
S
E
T
R
E
A
D
Y
8
0
8
6
µ
P
M / IO
RD
WR
ALE
BHE / S7
A19/S6-A16/S3
AD15-AD0
DT / R
DEN
M / IO
RD
HWR
LWR
A0
BHE
D7-D0
D15-D8
A19-A1
4Kx8 ROM-1 Even
+
16Kx8 RAM-2 Odd
RD RD WRWRD7-D0 D15-D8A13-A1 A13-A1
14 14
CS0
CS1
8
2
8
8
8284 clock
generator
Transcei
ver
8286 (2)
LATCH
8282
(2 or 3)
C
L
O
C
K
R
E
S
E
T
R
E
A
D
Y
8
0
8
6
µ
P
S2
S1
S0
ALE
BHE / S7
A19/S6-A16/S3
AD15-AD0
DT / R
DEN
BHE
D7-D0
D15-D8
A19-A0
S2
S1
S0
CLK
MRDC
MRTC
IORC
IOWC
INTA

More Related Content

What's hot

Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
saurav kumar
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 80869840596838
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086
Jismy .K.Jose
 
CISC & RISC Architecture
CISC & RISC Architecture CISC & RISC Architecture
CISC & RISC Architecture
Suvendu Kumar Dash
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor Mustapha Fatty
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
NimeshSingh27
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controllerTech_MX
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
ShivamSood22
 
ARM7-ARCHITECTURE
ARM7-ARCHITECTURE ARM7-ARCHITECTURE
ARM7-ARCHITECTURE
Dr.YNM
 
Direct Memory Access(DMA)
Direct Memory Access(DMA)Direct Memory Access(DMA)
Direct Memory Access(DMA)
Page Maker
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
ShivamSood22
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
deval patel
 
UART
UARTUART
8086-instruction-set-ppt
 8086-instruction-set-ppt 8086-instruction-set-ppt
8086-instruction-set-pptjemimajerome
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
AJAL A J
 
Bus aribration
Bus aribrationBus aribration
Bus aribration
Saiyam Agrawal
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051Muthu Manickam
 
Timer counter in arm7(lpc2148)
Timer counter in arm7(lpc2148)Timer counter in arm7(lpc2148)
Timer counter in arm7(lpc2148)
Aarav Soni
 
ARM Processors
ARM ProcessorsARM Processors
ARM Processors
Mathivanan Natarajan
 
TMS320C5x
TMS320C5xTMS320C5x

What's hot (20)

Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086
 
CISC & RISC Architecture
CISC & RISC Architecture CISC & RISC Architecture
CISC & RISC Architecture
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controller
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
 
ARM7-ARCHITECTURE
ARM7-ARCHITECTURE ARM7-ARCHITECTURE
ARM7-ARCHITECTURE
 
Direct Memory Access(DMA)
Direct Memory Access(DMA)Direct Memory Access(DMA)
Direct Memory Access(DMA)
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
UART
UARTUART
UART
 
8086-instruction-set-ppt
 8086-instruction-set-ppt 8086-instruction-set-ppt
8086-instruction-set-ppt
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
 
Bus aribration
Bus aribrationBus aribration
Bus aribration
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051
 
Timer counter in arm7(lpc2148)
Timer counter in arm7(lpc2148)Timer counter in arm7(lpc2148)
Timer counter in arm7(lpc2148)
 
ARM Processors
ARM ProcessorsARM Processors
ARM Processors
 
TMS320C5x
TMS320C5xTMS320C5x
TMS320C5x
 

Similar to Interfacing memory with 8086 microprocessor

Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Hsien-Hsin Sean Lee, Ph.D.
 
memeoryorganization PPT for organization of memories
memeoryorganization PPT for organization of memoriesmemeoryorganization PPT for organization of memories
memeoryorganization PPT for organization of memories
GauravDaware2
 
RAM Design
RAM DesignRAM Design
RAM Design
Allegorised Akshay
 
Memory_Interface.pdf
Memory_Interface.pdfMemory_Interface.pdf
Memory_Interface.pdf
MuhammadWaseem241481
 
Microprocessor Part 1
Microprocessor    Part 1Microprocessor    Part 1
Microprocessor Part 1
Sajan Agrawal
 
Chp3 designing bus system, memory & io copy
Chp3 designing bus system, memory & io   copyChp3 designing bus system, memory & io   copy
Chp3 designing bus system, memory & io copymkazree
 
Microprocessor history1
Microprocessor history1Microprocessor history1
Microprocessor history1
HarshitParkar6677
 
Microprocessor history1
Microprocessor history1Microprocessor history1
Microprocessor history1
HarshitParkar6677
 
microcontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdfmicrocontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdf
818Farida
 
Computer Organisation and Architecture
Computer Organisation and ArchitectureComputer Organisation and Architecture
Computer Organisation and Architecture
Subhasis Dash
 
ram.pdf
ram.pdfram.pdf
Part of UNIT2 Memory mapped IOjkl;'lk.pdf
Part of UNIT2 Memory mapped IOjkl;'lk.pdfPart of UNIT2 Memory mapped IOjkl;'lk.pdf
Part of UNIT2 Memory mapped IOjkl;'lk.pdf
Abhishekkumar397974
 
COA Lecture 01(Introduction).pptx
COA Lecture 01(Introduction).pptxCOA Lecture 01(Introduction).pptx
COA Lecture 01(Introduction).pptx
syed rafi
 
8051 Presentation
8051 Presentation8051 Presentation
8051 Presentation
Sayan Chakraborty
 
All processors
All processorsAll processors
All processors
ALI RAZA
 
unit-2.pptx
unit-2.pptxunit-2.pptx
unit-2.pptx
KanchanThory
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memory
Deepak John
 
eMMC Embedded Multimedia Card overview
eMMC Embedded Multimedia Card overvieweMMC Embedded Multimedia Card overview
eMMC Embedded Multimedia Card overview
VijayGESYS
 

Similar to Interfacing memory with 8086 microprocessor (20)

Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
Lec17 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Me...
 
memeoryorganization PPT for organization of memories
memeoryorganization PPT for organization of memoriesmemeoryorganization PPT for organization of memories
memeoryorganization PPT for organization of memories
 
RAM Design
RAM DesignRAM Design
RAM Design
 
Memory_Interface.pdf
Memory_Interface.pdfMemory_Interface.pdf
Memory_Interface.pdf
 
Microprocessor Part 1
Microprocessor    Part 1Microprocessor    Part 1
Microprocessor Part 1
 
Chp3 designing bus system, memory & io copy
Chp3 designing bus system, memory & io   copyChp3 designing bus system, memory & io   copy
Chp3 designing bus system, memory & io copy
 
Chapter 9
Chapter 9Chapter 9
Chapter 9
 
Microprocessor history1
Microprocessor history1Microprocessor history1
Microprocessor history1
 
Microprocessor history1
Microprocessor history1Microprocessor history1
Microprocessor history1
 
microcontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdfmicrocontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdf
 
Computer Organisation and Architecture
Computer Organisation and ArchitectureComputer Organisation and Architecture
Computer Organisation and Architecture
 
ram.pdf
ram.pdfram.pdf
ram.pdf
 
Memoryhierarchy
MemoryhierarchyMemoryhierarchy
Memoryhierarchy
 
Part of UNIT2 Memory mapped IOjkl;'lk.pdf
Part of UNIT2 Memory mapped IOjkl;'lk.pdfPart of UNIT2 Memory mapped IOjkl;'lk.pdf
Part of UNIT2 Memory mapped IOjkl;'lk.pdf
 
COA Lecture 01(Introduction).pptx
COA Lecture 01(Introduction).pptxCOA Lecture 01(Introduction).pptx
COA Lecture 01(Introduction).pptx
 
8051 Presentation
8051 Presentation8051 Presentation
8051 Presentation
 
All processors
All processorsAll processors
All processors
 
unit-2.pptx
unit-2.pptxunit-2.pptx
unit-2.pptx
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memory
 
eMMC Embedded Multimedia Card overview
eMMC Embedded Multimedia Card overvieweMMC Embedded Multimedia Card overview
eMMC Embedded Multimedia Card overview
 

More from Vikas Gupta

Diode Current Equation
Diode Current EquationDiode Current Equation
Diode Current Equation
Vikas Gupta
 
Voltage series feedback pair
Voltage series feedback pairVoltage series feedback pair
Voltage series feedback pair
Vikas Gupta
 
Voltage series feedback pair
Voltage series feedback pairVoltage series feedback pair
Voltage series feedback pair
Vikas Gupta
 
Design of Series Voltage regulator
Design of Series Voltage regulatorDesign of Series Voltage regulator
Design of Series Voltage regulator
Vikas Gupta
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessor
Vikas Gupta
 
Introduction to Probability
Introduction to ProbabilityIntroduction to Probability
Introduction to Probability
Vikas Gupta
 
Large Signal Amplifier
Large Signal AmplifierLarge Signal Amplifier
Large Signal Amplifier
Vikas Gupta
 
Large signal amplifiers
Large signal amplifiersLarge signal amplifiers
Large signal amplifiers
Vikas Gupta
 
Career Options after B.E.
Career Options after B.E.Career Options after B.E.
Career Options after B.E.
Vikas Gupta
 

More from Vikas Gupta (9)

Diode Current Equation
Diode Current EquationDiode Current Equation
Diode Current Equation
 
Voltage series feedback pair
Voltage series feedback pairVoltage series feedback pair
Voltage series feedback pair
 
Voltage series feedback pair
Voltage series feedback pairVoltage series feedback pair
Voltage series feedback pair
 
Design of Series Voltage regulator
Design of Series Voltage regulatorDesign of Series Voltage regulator
Design of Series Voltage regulator
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessor
 
Introduction to Probability
Introduction to ProbabilityIntroduction to Probability
Introduction to Probability
 
Large Signal Amplifier
Large Signal AmplifierLarge Signal Amplifier
Large Signal Amplifier
 
Large signal amplifiers
Large signal amplifiersLarge signal amplifiers
Large signal amplifiers
 
Career Options after B.E.
Career Options after B.E.Career Options after B.E.
Career Options after B.E.
 

Recently uploaded

Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
MuhammadTufail242431
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
Kamal Acharya
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 

Recently uploaded (20)

Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 

Interfacing memory with 8086 microprocessor

  • 1. Memory Interfacing With 8086 By: Mr. V. R. Gupta Lecturer Department of Electronics & Telecommunication YCCE, Nagpur
  • 2. Learning objective In this module you will learn:  What are the different types of memory  Memory structure & its requirement.  How to interface RAM & ROM with 8086 µP in minimum & maximum mode.  Different types of address decoding.
  • 3. introduction • Memory is simply a device that can be used to store the information . • The semiconductor memories are extensively used because of their small size, low cost, high speed, high reliability & ease of expansion of the memory size. • It consist of mainly flip-flop & some additional circuitry such as buffers, one flip flop can hold one bit of data.
  • 4. Memory fundamentals • Memory capacity  The no. of bits that a semiconductor memory chip can store is called its chip capacity. • Memory Organization:  Each memory chip contains 2N locations, where N is the no. of address pins on the chip.  Each location contains M bits, where M is the no. of data pins on the chip.  The entire chip will contain 2N x M bits.  E.g. for 4K x 4, 212 =4096 locations, each location holding 4 bits, so N=12 & M=4.
  • 5. Memory types 1)ROM (Read Only Memory) 2)PROM (programmable memory) 3)EPROM (Erasable programmable ROM) 4)EEPROM (Electrically Erasable PROM) 500000 times 5)Flash memory EPROM 6)RAM (Random Access Memory)
  • 6. Ram memory types SRAM (static RAM) • Storage cells are made of F/F • Don't require refreshing to keep their data. • A cell handling one bit requires 6 or 4 transistors each, which is too many • Used for cache memory & battery backed memory system DRAM( Dynamic RAM) • Uses MOS capacitors to store a bit. • Requires constant refreshing due to leakage. • High density • Cheaper cost per bit • Lower power consumption • Larger access times • Too many pins due to large capacity.
  • 7. Standard EPROM ic EPROM Density( bits) Capacity (bytes ) 2716 16K 2K*8 2732 32K 4K*8 27C64 64K 8K*8 27C128 128K 16K*8 27C256 256K 32K*8 27C512 512K 64K*8 27C010 1M 128K*8 27C020 2M 256K*8 27C040 4M 512K*8
  • 8. Standard SRAM ic SRAM Density( bits) Organization 4361 64K 64K*1 4363 64K 16K*1 4364 64K 8K*8 43254 256K 64K*4 43256A 256K 32K*8 431000A 1M 128K*8
  • 9. Standard DRAM ic EPROM Density( bits) Capacity (bytes ) 2164 64K 64 Kx1 21256 256K 256 Kx1 21464 256K 64 Kx4 421000 1M 1 Mx1 424256 1M 256 Kx4 44100 4M 4 Mx1 44400 4M 1 Mx4 44160 4M 256 Kx16 416800 16M 8 Mx2 416400 16M 4 Mx4 416160 16M 1 Mx16
  • 10. MEMORY STRUCTURE & ITS REQUIREMENT R/W memory 4096x8 Output buffer Input buffer Internaldecoder Input Data Output Data WR CS RD EPROM 2048x8 Output buffer Internaldecoder RD CS Output Data A11 A0 A10 A0
  • 11. PHYSICAL STRUCTURE OF PRACTICAL MEMORY IC 1. Address Pins: No of address pins No of memory location 8 28 = 256 location 9 29 = 512 location 10 210 = 1024 = 1K location 11 211 = 2048 = 2K location 12 212 = 4 K 13 213 = 8 K 14 214 = 16 K 15 215 = 32 K 16 216 = 64 K 17 217 = 128 K 18 218 = 256 K 19 219 = 512K 20 220 = 1024K = 1M
  • 12. PHYSICAL STRUCTURE OF PRACTICAL MEMORY IC 2. Data pins: Number of flip flop in each location is 4/8, then data pins 4/8. 3. Control pins: ROM/ EPROM will consist of only RD (OE) RAM will have control pins RD & WR. 4. Commons pins: CS (chip select) . CS is generated using: i. NAND gate ii. 3 to 8 decoder iii. PAL IC
  • 13. Address decoding • In general all the address lines are not used by the memory devices to select particular memory locations. • The remaining line are used to generate chip select logic. • Following two techniques are used to decode the address: 1) Absolute or Full decoding 2) Linear or Partial decoding
  • 14. Absolute or full decoding • All the higher address lines are decoded to select the memory chip. • The memory chip is selected only for the specified logic levels on these higher order address lines. • So each location have fixed address. • This technique is expensive • It needs more hardware than partial decoding.
  • 15. • This technique is used in the small system • All the address lines are not used to generate chip select logic • Individual High order address lines are used to decode the chip select for the memory chips. • Less hardware is required. • Drawback is address of location is not fixed, so each location may have multiple address. Partial or Linear Decoding
  • 16. Q. 1: Interface 32 KB of RAM memory to the 8086 microprocessor system using absolute decoding with the suitable address. Step_1: Total RAM memory = 32 KB Half RAM capacity = 16 KB hence, number of RAM IC required = 2 ICs of 16 KB so, EVEV Bank = 1 ICs of 16 KB RAM ODD Bank = 1 ICs of 16 KB RAM Step_2: Number of address lines required = 15 address lines Even bank Odd bank RAM _1 (16KB) RAM _2 (16KB)
  • 17. MEMOR Y IC HEX ADDRESS BINARY ADDRESS A 19 A 18 A 17 A 16 A 15 A 14 A 13 A 12 A 11 A 10 A 9 A 8 A 7 A 6 A 5 A 4 A 3 A 2 A 1 A 0 16 K x 8 RAM-(1) OOOOO 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 07FFE 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 Step_3: Address decoding table To decoder To 16 K IC
  • 18. DAS A0 BHE CSO CSE M / IO A19 A18 A17 A16 A15 Step_3: Generation of chip select logic
  • 19. 8284 clock generator IC 74244 buffer Transcei ver 8286 (2) LATCH 8282 (2 or 3) C L O C K R E S E T R E A D Y 8 0 8 6 µ P M / IO RD WR ALE BHE / S7 A19/S6-A16/S3 AD15-AD0 DT / R DEN M / IO RD A0 BHE D7-D0 D15-D8 A19-A1 16Kx8 RAM-1 Even 16Kx8 RAM-2 Odd RD RD WRWRD7-D0 D15-D8A13-A0 A13-A0 14 14 CSO WR CSE MN/MX VCC
  • 20. Q. 2: Interface 32 K word of memory to the 8086 microprocessor system . Available memory chips are 16 K x 8 RAM. Use suitable decoder for generating chip select logic. Step_1: Total memory = 32 K word = 32*2 K = 64 K IC available = 16 K hence, number of RAM IC required = 64 K x 8/ 16 Kx8 = 4 ICs so, EVEV Bank = 2 ICs of 16 Kx8 RAM ODD Bank = 2 ICs of 16 Kx8 RAM Step_2: Number of address lines required = 15 address lines Even bank Odd bank RAM _1 (16K) RAM _2 (16K) RAM_ 3 (16K) RAM _4 (16K)
  • 21. MEMORY IC HEX ADDRESS BINARY ADDRESS A19 A18 A17 A16 A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0 16 K x 8 RAM-(1) OOOOO 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 07FFE 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 16 K x 8 RAM-(3) 8000 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0FFFE 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 Step_3: Address decoding table To decoder To 16 K IC
  • 22. Step_3: Generation of chip select logic 3:8 Decoder 74LS373 E1 E2 E3 A B C A17 A16 A15 A19A18 M / IO 0 0 1 Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7 To CS0 To CS1
  • 23. 16Kx8 RAM-4 Odd16Kx8 RAM-3 Even 8284 clock generator IC 74244 buffer Transcei ver 8286 (2) LATCH 8282 (2 or 3) C L O C K R E S E T R E A D Y 8 0 8 6 µ P M / IO RD WR ALE BHE / S7 A19/S6-A16/S3 AD15-AD0 DT / R DEN M / IO RD HWR LWR A0 BHE D7-D0 D15-D8 A19-A1 16Kx8 RAM-1 Even + 16Kx8 RAM-2 Odd RD RD WRWRD7-D0 D15-D8A13-A1 A13-A1 14 14 CS0 CS1
  • 24. Q. 3: Interface the following memory ICs with the 8086 microprocessor system in minimum mode configuration. ROM 4K-2 Numbers EPROM 64K-1 Numbers RAM 32K- 1Number . Use partial decoding. Step_1: Total ROM memory = 4 KB ---- 2 ICs EVEV Bank = 1 ICs of 4 KB ROM ODD Bank = 1 ICs of 4 KB ROM Total EPROM memory = 64 KB EVEV Bank = 1 ICs of 32 KB EPROM ODD Bank = 1 ICs of 32 KB EPROM Total RAM memory = 64 KB EVEV Bank = 1 ICs of 16 KB RAM ODD Bank = 1 ICs of 16 KB RAM
  • 25. Even bank Odd bank ROM _1 (4KB) ROM _2 (4KB) EPROM _1 (32KB) EPROM _2 (32KB) RAM _1 (16KB) RAM _2 (16KB) Step 2: Number of address lines required for ROM = 13 address lines Number of address lines required for EPROM = 16 address lines Number of address lines required for RAM = 15 address lines
  • 26. Step_3: Address decoding table To decoder To RAM IC MEMORY IC HEX ADDRESS BINARY ADDRESS A19 A18 A17 A16 A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0 4 K x 8 ROM-(1) FFFFE 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 FE000 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 32 K x 8 EPROM- (1) EFFFE 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 E0000 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16 K x 8 RAM-(1) D0000 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 D7FFE 1 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 To ROM IC To EPROM IC
  • 27. Step_3: Generation of chip select logic 3:8 Decoder 74LS373 E1 E2 E3 A B C A18 A17 A16 A19 M / IO 0 0 1 Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7 To DAS0 To DAS1 To DAS2
  • 28. 16Kx8 RAM-4 Odd4Kx8 ROM-3 Even 8284 clock generator IC 74244 buffer Transcei ver 8286 (2) LATCH 8282 (2 or 3) C L O C K R E S E T R E A D Y 8 0 8 6 µ P M / IO RD WR ALE BHE / S7 A19/S6-A16/S3 AD15-AD0 DT / R DEN M / IO RD HWR LWR A0 BHE D7-D0 D15-D8 A19-A1 4Kx8 ROM-1 Even + 16Kx8 RAM-2 Odd RD RD WRWRD7-D0 D15-D8A13-A1 A13-A1 14 14 CS0 CS1
  • 29. 8 2 8 8 8284 clock generator Transcei ver 8286 (2) LATCH 8282 (2 or 3) C L O C K R E S E T R E A D Y 8 0 8 6 µ P S2 S1 S0 ALE BHE / S7 A19/S6-A16/S3 AD15-AD0 DT / R DEN BHE D7-D0 D15-D8 A19-A0 S2 S1 S0 CLK MRDC MRTC IORC IOWC INTA