SlideShare a Scribd company logo
8085:
INTERFACING WITH
I/O DEVICE OR
MEMORY
PRESENTED BY-
APUL RANJAN SAIKIA (CSE-08/14)
PARISMITA BHARALI (CSE-37/14)
PARTHA PRATIM BARMAN (CSE-38/14)
SAUMAY PAUL (CSE-50/14)
SEMINAR PRESENTATION ON
MICROPROCESSOR AND MICROCONTROLLERS
INTERFACING MEMORY CHIPS
WITH 8085
Interfacing is a technique through which two separate components
of a computer system exchange information or interact with each
other.
Interfacing a microprocessor is to connect the microprocessor to
various peripherals to perform operations to obtain output.
Two types of interfacing can be done with the 8085 microprocessor
- Memory interfacing
-I/O interfacing
INTERFACING MEMORY CHIPS
WITH 8085
8085 has 16 address lines
Hence, 216 = 64KB of memory locations can be interfaced with it.
The memory address ranges from 0000H to FFFFH.
Control Signals for memory
When is IO/ M high, both memory control signals are deactivated irrespective
of the status of RD and WR signals.
INTERFACE AN IC 2764 WITH 8085 USING NAND GATE ADDRESS DECODER SUCH
THAT THE ADDRESS RANGE ALLOCATED TO THE CHIP IS 0000H – 1FFFH.
Specification of IC 2764:
8 KB (8 x 2 ^ 10 byte) EPROM chip
13 address lines (2 ^ 13 bytes = 8 KB)
Interfacing:
13 address lines of IC are connected to the corresponding address lines of 8085.
 Remaining address lines of 8085 are connected to address decoder formed using logic gates, the
output of which is connected to the CE pin of IC.
 Address range allocated to the chip is shown in Table.
 Chip is enabled whenever the 8085 places an address allocated to EPROM chip in the address bus.
This is shown in Fig..
INTERFACING IC 2764 WITH THE 8085
TABLE ADDRESS ALLOCATED TO IC 2764
INTERFACE A 6264 IC (8K X 8 RAM) WITH THE 8085 USING NAND GATE DECODER
SUCH THAT THE STARTING ADDRESS ASSIGNED TO THE CHIP IS 4000H.
Specification of IC 6264:
8K x 8 RAM
8 KB = 2 ^ 13 bytes
13 address lines
The ending address of the chip is 5FFFH (since 4000H + 1FFFH = 5FFFH).
When the address 4000H to 5FFFH are written in binary form, the values in the lines A15, A14, A13 are
0, 1 and 0 respectively.
The NAND gate is designed such that when the lines A15 and A13 carry 0 and A14 carries 1, the output
of the NAND gate is 0.
The NAND gate output is in turn connected to the pin of the RAM chip.
A NAND output of 0 selects the RAM chip for read or write operation, since CE2 is already 1 because of
its connection to +5V. Fig. shows the interfacing of IC 6264 with the 8085.
INTERFACING 6264 IC WITH THE 8085
INTERFACE TWO 6116 ICS WITH THE 8085 USING 74LS138 DECODER SUCH THAT THE
STARTING ADDRESSES ASSIGNED TO THEM ARE 8000H AND 9000H, RESPECTIVELY.
Specification of IC 6116:
2 K x 8 RAM
2 KB = 2 ^ 11 bytes
11 address lines
A0 – A10 lines of 8085 are connected to 11 address lines of the RAM chips.
 Three address lines of 8085 having specific value for a particular RAM are connected to the
three select inputs (C, B and A) of 74LS138 decoder.
 Table shows that A13=A12=A11=0 for the address assigned to RAM 1 and A13=0, A12=1 and
A11=0 for the address assigned to RAM 2.
Remaining lines of 8085 which are constant for the address range assigned to the two RAM are
connected to the enable inputs of decoder.
 When 8085 places any address between 8000H and 87FFH in the address bus, the select inputs
C, B and A of the decoder are all 0. The Y0 output of the decoder is also 0, selecting RAM 1.
 When 8085 places any address between 9000H and 97FFH in the address bus, the select inputs
C, B and A of the decoder are 0, 1 and 0. The Y2 output of the decoder is also 0, selecting RAM 2.
INTERFACING TWO 6116 RAM CHIPS USING 74LS138 DECODER
PERIPHERAL MAPPED I/O
INTERFACING
In this method, the I/O devices are treated differently from
memory chips.
The control signals I/O read ( IOR ) and I/O write ( IOW), are used
to activate input and output devices.
IN instruction is used to access input device and OUT instruction is
used to access output device.
Each I/O device is identified by a unique 8-bit address assigned to
it; a maximum of 256 (28
) input devices and 256 output devices can
be interfaced with 8085.
Generation of IOR and IOW signals
STATUS OF IOR AND IOW SIGNALS IN 8085
PERIPHERAL MAPPED I/O
INTERFACING
INTERFACING AN 8-BIT DIP SWITCH WITH THE 8085 SUCH THAT THE ADDRESS ASSIGNED TO THE DIP SWITCH IS F0H.
 F0H in the lines A0 – A7; copy of it in
A8 – A15
 IOR signal is activated
 Data in the data bus is read and store in
the accumulator
 A0 – A7 lines are connected to NAND gate;
O/P of NAND gate is 0.
 O/P of NAND gate is ORed with the IOR signal.
 O/P of OR gate is connected to 1G and 2G of
the 74LS244.
 74LS244 enabled; data in data bus of 8085.
 8085 read & store data in the accumulator.
MEMORY MAPPED I/O
INTERFACING
8085 uses its 16 bit address bus to identify a memory location.
Memory address space : 0000H to FFFFH
8085 needs to identify I/O devices also .
I/O device can be interfaced using addresses from memory space .
8085 treats such an I/O device as a memory location.
This is called Memory mapped I/O.
MEMORY MAPPED I/O
INTERFACING
Memory mapped i/o instruction:
 i/o device are identified by 16 bit addresses .
8085 communicates with an i/o device as if it were one of the memory
location memory related instruction are use
Ex: LDA,STA
LDA 8000H= load A with data read from input device with 16 bit
address 8000H
STA 8001H= store contents of A to output device with 16 bit address
8001H
INTERFACING 8-BIT DIP
SWITCH WITH 8085
 address lines are connected to AND
gates.
 output of these gates along with MEMR
 signal are connected to a NAND gate,
 when the address F0F0H is placed in the
 address bus and MEMR = 0 its output
becomes 0; enables the buffer 74LS244.
 data from the DIP switch is placed in
the 8085 data bus.
 8085 reads the data from the data bus
and stores it in the accumulator.
THANK YOU

More Related Content

What's hot

8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller
abhikalmegh
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
RamaPrabha24
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051Muthu Manickam
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interruptsRam Babu
 
8051 ch9-950217
8051 ch9-9502178051 ch9-950217
8051 ch9-950217
Gopal Krishna Murthy C R
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
deval patel
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 Features
Srikrishna Thota
 
8085 instructions and addressing modes
8085 instructions and addressing modes8085 instructions and addressing modes
8085 instructions and addressing modes
Suchismita Paul
 
8051 timer counter
8051 timer counter8051 timer counter
8051 timer counter
vishalgohel12195
 
555 timer ppt by vishnu
555 timer ppt by vishnu555 timer ppt by vishnu
555 timer ppt by vishnu
kundarapu vishnu
 
8085 instruction set
8085 instruction set8085 instruction set
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085
Nitin Ahire
 
Stepper motor-interfacing
Stepper motor-interfacingStepper motor-interfacing
Stepper motor-interfacing
Lecturer
 
Adc interfacing
Adc interfacingAdc interfacing
Adc interfacing
Monica Gunjal
 
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORTRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
Subash Sambath Kumar
 
8085 instruction set and Programming
8085 instruction set and Programming 8085 instruction set and Programming
8085 instruction set and Programming
pooja saini
 
8086 pin diagram description
8086 pin diagram description8086 pin diagram description
8086 pin diagram description
Akhil Singal
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
Dr. AISHWARYA N
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessor
AMAN SRIVASTAVA
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor Mustapha Fatty
 

What's hot (20)

8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller
 
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
8085 MICROPROCESSOR ARCHITECTURE AND ITS OPERATIONS
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
 
8051 ch9-950217
8051 ch9-9502178051 ch9-950217
8051 ch9-950217
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 Features
 
8085 instructions and addressing modes
8085 instructions and addressing modes8085 instructions and addressing modes
8085 instructions and addressing modes
 
8051 timer counter
8051 timer counter8051 timer counter
8051 timer counter
 
555 timer ppt by vishnu
555 timer ppt by vishnu555 timer ppt by vishnu
555 timer ppt by vishnu
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085
 
Stepper motor-interfacing
Stepper motor-interfacingStepper motor-interfacing
Stepper motor-interfacing
 
Adc interfacing
Adc interfacingAdc interfacing
Adc interfacing
 
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORTRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
 
8085 instruction set and Programming
8085 instruction set and Programming 8085 instruction set and Programming
8085 instruction set and Programming
 
8086 pin diagram description
8086 pin diagram description8086 pin diagram description
8086 pin diagram description
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessor
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor
 

Similar to 8085 Interfacing with I/O Devices or Memory

interfacing1 lecture notes for eng 5.ppt
interfacing1 lecture notes for eng 5.pptinterfacing1 lecture notes for eng 5.ppt
interfacing1 lecture notes for eng 5.ppt
JumanneChiyanda
 
Microprocessor questions converted
Microprocessor questions convertedMicroprocessor questions converted
Microprocessor questions converted
ArghodeepPaul
 
Notes chapter 6
Notes chapter  6Notes chapter  6
Notes chapter 6
HarshitParkar6677
 
lecture 18PART 1 Memory Interfacing.pptx
lecture 18PART 1  Memory Interfacing.pptxlecture 18PART 1  Memory Interfacing.pptx
lecture 18PART 1 Memory Interfacing.pptx
0901ET211047ROHITSIN
 
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modesbalbirvirdi
 
MAI-introduction of memory and i/o device with 8085
MAI-introduction of memory and i/o device with 8085MAI-introduction of memory and i/o device with 8085
MAI-introduction of memory and i/o device with 8085
Ðîgëñ Tàìlør
 
8085 alp programs
8085 alp programs8085 alp programs
8085 alp programs
Prof. Dr. K. Adisesha
 
Qb microprocessors
Qb microprocessorsQb microprocessors
Qb microprocessors
Neelam Kapoor
 
8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description 8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description
Vijay Kumar
 
memory-interfacing.ppt
memory-interfacing.pptmemory-interfacing.ppt
memory-interfacing.ppt
Vanitha472439
 
Microprocessor Part 2
Microprocessor    Part 2Microprocessor    Part 2
Microprocessor Part 2
Sajan Agrawal
 
Ece 8085-microprocessor-ppt
Ece 8085-microprocessor-pptEce 8085-microprocessor-ppt
Ece 8085-microprocessor-ppt
satyamshra
 
8085_LAB_PROGRAMS.pdf
8085_LAB_PROGRAMS.pdf8085_LAB_PROGRAMS.pdf
8085_LAB_PROGRAMS.pdf
Koteswari Kasireddy
 
8085 architecture
8085 architecture8085 architecture
8085 architecture
Rishabh Kataria
 
8051 Microcontroller -1.pptx
8051 Microcontroller -1.pptx8051 Microcontroller -1.pptx
8051 Microcontroller -1.pptx
veeramaniks
 
8085 microprocessor Architecture and pin description
8085 microprocessor Architecture and pin description 8085 microprocessor Architecture and pin description
8085 microprocessor Architecture and pin description
Vijay Kumar
 
8085 microprocessor Embedded system
8085 microprocessor  Embedded system8085 microprocessor  Embedded system
8085 microprocessor Embedded system
Sofcon India Pvt Ltd.
 
T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085yedles
 

Similar to 8085 Interfacing with I/O Devices or Memory (20)

interfacing1 lecture notes for eng 5.ppt
interfacing1 lecture notes for eng 5.pptinterfacing1 lecture notes for eng 5.ppt
interfacing1 lecture notes for eng 5.ppt
 
Microprocessor questions converted
Microprocessor questions convertedMicroprocessor questions converted
Microprocessor questions converted
 
Notes chapter 6
Notes chapter  6Notes chapter  6
Notes chapter 6
 
Interfacing address
Interfacing addressInterfacing address
Interfacing address
 
lecture 18PART 1 Memory Interfacing.pptx
lecture 18PART 1  Memory Interfacing.pptxlecture 18PART 1  Memory Interfacing.pptx
lecture 18PART 1 Memory Interfacing.pptx
 
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modes
 
MAI-introduction of memory and i/o device with 8085
MAI-introduction of memory and i/o device with 8085MAI-introduction of memory and i/o device with 8085
MAI-introduction of memory and i/o device with 8085
 
8085 alp programs
8085 alp programs8085 alp programs
8085 alp programs
 
Qb microprocessors
Qb microprocessorsQb microprocessors
Qb microprocessors
 
8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description 8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description
 
memory-interfacing.ppt
memory-interfacing.pptmemory-interfacing.ppt
memory-interfacing.ppt
 
Microprocessor Part 2
Microprocessor    Part 2Microprocessor    Part 2
Microprocessor Part 2
 
Ece 8085-microprocessor-ppt
Ece 8085-microprocessor-pptEce 8085-microprocessor-ppt
Ece 8085-microprocessor-ppt
 
8085_LAB_PROGRAMS.pdf
8085_LAB_PROGRAMS.pdf8085_LAB_PROGRAMS.pdf
8085_LAB_PROGRAMS.pdf
 
8085 architecture
8085 architecture8085 architecture
8085 architecture
 
8051 Microcontroller -1.pptx
8051 Microcontroller -1.pptx8051 Microcontroller -1.pptx
8051 Microcontroller -1.pptx
 
8085 microprocessor Architecture and pin description
8085 microprocessor Architecture and pin description 8085 microprocessor Architecture and pin description
8085 microprocessor Architecture and pin description
 
8085 microprocessor Embedded system
8085 microprocessor  Embedded system8085 microprocessor  Embedded system
8085 microprocessor Embedded system
 
T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 

Recently uploaded

Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
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
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
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
 
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
 
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
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 

Recently uploaded (20)

Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.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
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
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
 
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
 
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
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 

8085 Interfacing with I/O Devices or Memory

  • 1. 8085: INTERFACING WITH I/O DEVICE OR MEMORY PRESENTED BY- APUL RANJAN SAIKIA (CSE-08/14) PARISMITA BHARALI (CSE-37/14) PARTHA PRATIM BARMAN (CSE-38/14) SAUMAY PAUL (CSE-50/14) SEMINAR PRESENTATION ON MICROPROCESSOR AND MICROCONTROLLERS
  • 2. INTERFACING MEMORY CHIPS WITH 8085 Interfacing is a technique through which two separate components of a computer system exchange information or interact with each other. Interfacing a microprocessor is to connect the microprocessor to various peripherals to perform operations to obtain output. Two types of interfacing can be done with the 8085 microprocessor - Memory interfacing -I/O interfacing
  • 3. INTERFACING MEMORY CHIPS WITH 8085 8085 has 16 address lines Hence, 216 = 64KB of memory locations can be interfaced with it. The memory address ranges from 0000H to FFFFH. Control Signals for memory When is IO/ M high, both memory control signals are deactivated irrespective of the status of RD and WR signals.
  • 4. INTERFACE AN IC 2764 WITH 8085 USING NAND GATE ADDRESS DECODER SUCH THAT THE ADDRESS RANGE ALLOCATED TO THE CHIP IS 0000H – 1FFFH. Specification of IC 2764: 8 KB (8 x 2 ^ 10 byte) EPROM chip 13 address lines (2 ^ 13 bytes = 8 KB) Interfacing: 13 address lines of IC are connected to the corresponding address lines of 8085.  Remaining address lines of 8085 are connected to address decoder formed using logic gates, the output of which is connected to the CE pin of IC.  Address range allocated to the chip is shown in Table.  Chip is enabled whenever the 8085 places an address allocated to EPROM chip in the address bus. This is shown in Fig..
  • 5. INTERFACING IC 2764 WITH THE 8085 TABLE ADDRESS ALLOCATED TO IC 2764
  • 6. INTERFACE A 6264 IC (8K X 8 RAM) WITH THE 8085 USING NAND GATE DECODER SUCH THAT THE STARTING ADDRESS ASSIGNED TO THE CHIP IS 4000H. Specification of IC 6264: 8K x 8 RAM 8 KB = 2 ^ 13 bytes 13 address lines The ending address of the chip is 5FFFH (since 4000H + 1FFFH = 5FFFH). When the address 4000H to 5FFFH are written in binary form, the values in the lines A15, A14, A13 are 0, 1 and 0 respectively. The NAND gate is designed such that when the lines A15 and A13 carry 0 and A14 carries 1, the output of the NAND gate is 0. The NAND gate output is in turn connected to the pin of the RAM chip. A NAND output of 0 selects the RAM chip for read or write operation, since CE2 is already 1 because of its connection to +5V. Fig. shows the interfacing of IC 6264 with the 8085.
  • 7. INTERFACING 6264 IC WITH THE 8085
  • 8. INTERFACE TWO 6116 ICS WITH THE 8085 USING 74LS138 DECODER SUCH THAT THE STARTING ADDRESSES ASSIGNED TO THEM ARE 8000H AND 9000H, RESPECTIVELY. Specification of IC 6116: 2 K x 8 RAM 2 KB = 2 ^ 11 bytes 11 address lines A0 – A10 lines of 8085 are connected to 11 address lines of the RAM chips.  Three address lines of 8085 having specific value for a particular RAM are connected to the three select inputs (C, B and A) of 74LS138 decoder.  Table shows that A13=A12=A11=0 for the address assigned to RAM 1 and A13=0, A12=1 and A11=0 for the address assigned to RAM 2. Remaining lines of 8085 which are constant for the address range assigned to the two RAM are connected to the enable inputs of decoder.
  • 9.  When 8085 places any address between 8000H and 87FFH in the address bus, the select inputs C, B and A of the decoder are all 0. The Y0 output of the decoder is also 0, selecting RAM 1.  When 8085 places any address between 9000H and 97FFH in the address bus, the select inputs C, B and A of the decoder are 0, 1 and 0. The Y2 output of the decoder is also 0, selecting RAM 2.
  • 10. INTERFACING TWO 6116 RAM CHIPS USING 74LS138 DECODER
  • 11. PERIPHERAL MAPPED I/O INTERFACING In this method, the I/O devices are treated differently from memory chips. The control signals I/O read ( IOR ) and I/O write ( IOW), are used to activate input and output devices. IN instruction is used to access input device and OUT instruction is used to access output device. Each I/O device is identified by a unique 8-bit address assigned to it; a maximum of 256 (28 ) input devices and 256 output devices can be interfaced with 8085. Generation of IOR and IOW signals
  • 12. STATUS OF IOR AND IOW SIGNALS IN 8085 PERIPHERAL MAPPED I/O INTERFACING INTERFACING AN 8-BIT DIP SWITCH WITH THE 8085 SUCH THAT THE ADDRESS ASSIGNED TO THE DIP SWITCH IS F0H.  F0H in the lines A0 – A7; copy of it in A8 – A15  IOR signal is activated  Data in the data bus is read and store in the accumulator  A0 – A7 lines are connected to NAND gate; O/P of NAND gate is 0.  O/P of NAND gate is ORed with the IOR signal.  O/P of OR gate is connected to 1G and 2G of the 74LS244.  74LS244 enabled; data in data bus of 8085.  8085 read & store data in the accumulator.
  • 13. MEMORY MAPPED I/O INTERFACING 8085 uses its 16 bit address bus to identify a memory location. Memory address space : 0000H to FFFFH 8085 needs to identify I/O devices also . I/O device can be interfaced using addresses from memory space . 8085 treats such an I/O device as a memory location. This is called Memory mapped I/O.
  • 14. MEMORY MAPPED I/O INTERFACING Memory mapped i/o instruction:  i/o device are identified by 16 bit addresses . 8085 communicates with an i/o device as if it were one of the memory location memory related instruction are use Ex: LDA,STA LDA 8000H= load A with data read from input device with 16 bit address 8000H STA 8001H= store contents of A to output device with 16 bit address 8001H
  • 15. INTERFACING 8-BIT DIP SWITCH WITH 8085  address lines are connected to AND gates.  output of these gates along with MEMR  signal are connected to a NAND gate,  when the address F0F0H is placed in the  address bus and MEMR = 0 its output becomes 0; enables the buffer 74LS244.  data from the DIP switch is placed in the 8085 data bus.  8085 reads the data from the data bus and stores it in the accumulator.