SlideShare une entreprise Scribd logo
1  sur  29
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

Contenu connexe

Tendances

flag register of 8086
flag register of 8086flag register of 8086
flag register of 8086asrithak
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA ControllerShivamSood22
 
Arm programmer's model
Arm programmer's modelArm programmer's model
Arm programmer's modelv Kalairajan
 
Pipeline hazard
Pipeline hazardPipeline hazard
Pipeline hazardAJAL A J
 
Control Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitControl Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitabdosaidgkv
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086Dr. AISHWARYA N
 
Question paper with solution the 8051 microcontroller based embedded systems...
Question paper with solution  the 8051 microcontroller based embedded systems...Question paper with solution  the 8051 microcontroller based embedded systems...
Question paper with solution the 8051 microcontroller based embedded systems...manishpatel_79
 
Verilog full adder in dataflow & gate level modelling style.
Verilog full adder in dataflow  & gate level modelling style.Verilog full adder in dataflow  & gate level modelling style.
Verilog full adder in dataflow & gate level modelling style.Omkar Rane
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 completeShubham Singh
 
Counters & time delay
Counters & time delayCounters & time delay
Counters & time delayHemant Chetwani
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInteX Research Lab
 
Stack in 8085 microprocessor
Stack in 8085 microprocessorStack in 8085 microprocessor
Stack in 8085 microprocessorhepzijustin
 
Error detection & correction codes
Error detection & correction codesError detection & correction codes
Error detection & correction codesRevathi Subramaniam
 
Leaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingLeaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingVimal Dewangan
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)Zubair Khalid
 

Tendances (20)

flag register of 8086
flag register of 8086flag register of 8086
flag register of 8086
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
 
Arm programmer's model
Arm programmer's modelArm programmer's model
Arm programmer's model
 
flip flops
flip flops flip flops
flip flops
 
Pipeline hazard
Pipeline hazardPipeline hazard
Pipeline hazard
 
Control Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitControl Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unit
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
Question paper with solution the 8051 microcontroller based embedded systems...
Question paper with solution  the 8051 microcontroller based embedded systems...Question paper with solution  the 8051 microcontroller based embedded systems...
Question paper with solution the 8051 microcontroller based embedded systems...
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
 
Verilog full adder in dataflow & gate level modelling style.
Verilog full adder in dataflow  & gate level modelling style.Verilog full adder in dataflow  & gate level modelling style.
Verilog full adder in dataflow & gate level modelling style.
 
program status word
program status wordprogram status word
program status word
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
 
Counters & time delay
Counters & time delayCounters & time delay
Counters & time delay
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer Architecture
 
Stack in 8085 microprocessor
Stack in 8085 microprocessorStack in 8085 microprocessor
Stack in 8085 microprocessor
 
Error detection & correction codes
Error detection & correction codesError detection & correction codes
Error detection & correction codes
 
CISC & RISC Architecture
CISC & RISC Architecture CISC & RISC Architecture
CISC & RISC Architecture
 
Leaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingLeaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shaping
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
 

Similaire à 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 memoriesGauravDaware2
 
Microprocessor Part 1
Microprocessor    Part 1Microprocessor    Part 1
Microprocessor Part 1Sajan 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
 
microcontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdfmicrocontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdf818Farida
 
Computer Organisation and Architecture
Computer Organisation and ArchitectureComputer Organisation and Architecture
Computer Organisation and ArchitectureSubhasis Dash
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacingdeval patel
 
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.pdfAbhishekkumar397974
 
COA Lecture 01(Introduction).pptx
COA Lecture 01(Introduction).pptxCOA Lecture 01(Introduction).pptx
COA Lecture 01(Introduction).pptxsyed rafi
 
All processors
All processorsAll processors
All processorsALI RAZA
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memoryDeepak John
 

Similaire à 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
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
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
 

Plus de Vikas Gupta

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

Plus de 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.
 

Dernier

(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 

Dernier (20)

(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 

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