SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Microprocessor & microcontroller
Microprocessor & microcontroller Microprocessor & microcontroller
Microprocessor & microcontroller
Nitesh Kumar
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
9840596838
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051
Muthu Manickam
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controller
Tech_MX
 

Was ist angesagt? (20)

Microprocessor & microcontroller
Microprocessor & microcontroller Microprocessor & microcontroller
Microprocessor & microcontroller
 
Code Conversion in 8085 Microprocessor
Code Conversion in 8085 MicroprocessorCode Conversion in 8085 Microprocessor
Code Conversion in 8085 Microprocessor
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controller
 
Memory mapped I/O and Isolated I/O
Memory mapped I/O and Isolated I/OMemory mapped I/O and Isolated I/O
Memory mapped I/O and Isolated I/O
 
Arm instruction set
Arm instruction setArm instruction set
Arm instruction set
 
Pic microcontroller architecture
Pic microcontroller architecturePic microcontroller architecture
Pic microcontroller architecture
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chips
 
ARM Processors
ARM ProcessorsARM Processors
ARM Processors
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction set
 
ADDRESSING MODES
ADDRESSING MODESADDRESSING MODES
ADDRESSING MODES
 
Addressing modes of 80386
Addressing modes of 80386Addressing modes of 80386
Addressing modes of 80386
 
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
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)
 
flag register of 8086
flag register of 8086flag register of 8086
flag register of 8086
 
ARM7-ARCHITECTURE
ARM7-ARCHITECTURE ARM7-ARCHITECTURE
ARM7-ARCHITECTURE
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
 
Arm programmer's model
Arm programmer's modelArm programmer's model
Arm programmer's model
 

Ähnlich wie Interfacing memory with 8086 microprocessor

memeoryorganization PPT for organization of memories
memeoryorganization PPT for organization of memoriesmemeoryorganization PPT for organization of memories
memeoryorganization PPT for organization of memories
GauravDaware2
 
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
mkazree
 

Ähnlich wie 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
 

Mehr von Vikas Gupta

Mehr von 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.
 

Kürzlich hochgeladen

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
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 

Kürzlich hochgeladen (20)

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...
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
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...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 

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