SlideShare a Scribd company logo
Chapter 6
System Interfacing
Methods of Interfacing
There are two methods of interfacing memory or I/O devices with microprocessor
1. I/O mapped I/O
2. Memory mapped I/O
 In I/O mapped I/O, I/O device is treated as a I/O device and memory as memory.
 In memory mapped I/O, I/O devices are also treated as memory.
I/O mapped I/O
 I/O device is treated as I/O device & memory as memory
 Each I/O device uses either 8 address lines (Fixed port) or 16 address lines ( Variable
port)
 In fixed port 256 input and 256 output devices can be connected
 In variable port, 65,536 input & 65,536 output devices can be used
 The instructions used in both types of ports are as given ***.
 In I/O mapped I/O, complete 1MB memory is interfaced as all address lines used to
address memory locations, not shared with I/O devices.
 Data transfer is possible between AL or AX and I/O devices only.
 Addressing decoding is simple, less hardware is required.
 The separate control signals are used to access I/O devices and memory such as IORC,
IOWC for I/O and MRDC , MWTC for memory. Hence memory is protected from I/O.
 In I/O, arithmetic and logical operations are not possible directly
***Instructions used in Fixed type addressing
Any address line A0 - A7 or A8 – A15 can be used. A16 - A19 are all 0’s.
INAL, 8 bit portaddress
INAX, 8 bit portaddress
OUT 8 bit port address, AL
OUT 8 bit port address, AX
***Instructions used in Variable type addressing
Address lines A0 - A15 are be used. A16 - A19 are all 0’s.
MOV DX, 16bit portaddress
INAL,DX
INAX,DX
OUT DX,AL
OUT DX,AX
Memory Mapped I/O
 In this technique, i/o devices are treated as memory and memory as memory, hence the
address of the i/o devices are same as memory addresses (20-bit)
 So, the addresses of I/O and memory are shared
 All 20 address lines are used for i/o and memory.
 The same control signals MRDC MWTC are used both for i/o and memory
 Data transfer is possible between any register unlike in i/o mapped i/o.
 All memory related instructions are used for i/o operations
 Address decoding of the i/o devices and memory devices are complicated and
expensive.
 Total no. of i/o ports and memory cannot be more than 1MB
 Looping techniques can be used to access more no. of i/o devices
 i/o devices and memory devices are differentiated by their addresses only, in all other
cases they are treated the same.
 Since memory instructions take long time to execute, speed of memory mapped i/o
logic circuits are less.
Differences between i/o mapped i/o and memory mapped i/o :
Sr.
No.
I/O mapped I/O Memory mapped I/O
1. I/O device is treated as I/O device &
memory as memory
i/o devices and memory both are treated as
memory
2 The separate control signals are used to
access I/O devices and memory such as
IORC, IOWC for I/O and MRDC , MWTC
for memory.
The same control signals MRDC MWTC are
used both for i/o and memory
3 IN and OUT instructions are used for i/o
read and write operations
All memory read and write instructions are
used
4 Addressing decoding is simple, less
hardware is required.
Address decoding of the i/o devices and
memory devices are complicated and
expensive.
5 64K of Input, 64K of output, 1MB of
memory can be used
1MB of memory is shared between i/o and
memory
6 Device addresses can be either 8 or 16
bits
20-bit addressing is used for both i/o and
memory
7 i/o and memory are distinguished with
the help of control signals and
addresses.
Cannot be distinguished using control signals,
can be distinguished only using addresses
8 arithmetic and logical operations are
not possible directly
arithmetic and logical operations are possible
directly with i/o devices
9 Data transfer is possible between AL or
AX and I/O devices only.
Data transfer is possible between any register
and i/o devices.
10. Slower in execution Since memory instructions take long time to
execute, speed of memory mapped i/o logic
circuits are less.
Memory Interfacing :--
Interfacing memory with Odd and even memory banks :--
The figure below shows the interfacing of the memory with odd and even memory
banks. A0 signal is used to indicate that the chip selected is even bank and BHE signal is used to
indicate that the ship selected is odd memory.
The figure below shows a 2716 EPROMchip used to interface with microprocessor. It has 11
address lines which are given from the microprocessor directly. Other lines on the
microprocessor are used to interface the chips (chip select lines).
Interfacing two 2K EPROM :--
 Address line A0 for even memory bank
 BHE for odd memory bank
 A1 to A11 for addresses.
 A12 to A19 for chip select, used as the input to a NAND gate
Addressing decoding worksheet for the above diagram is as given below.
Interfacing four 2K X 8 RAM :--
 Address line A0 for even memory bank
 BHE for odd memory bank
 A1 to A11 for addresses.
 A12 to A14 as input signals to 74138 IC so that one out of Y0 to Y7 are used to select the
chip
 A15 to A19 are the gated inputs for enabling 74138.
The address decoding worksheet for the above is as given below.
Example of Interfacing:--
Interface
a) 8K of EPROM (IC 2764) and
b) 8k word RAM (IC 6264) to 8086.
Use block decoding. EPROM address starts at FC000 H and RAM address at 1C000 H
Solution:--
EPROM:--
 No. of address lines – 23 . 210  13 address lines
RAM:--
 No. of address lines - 23 . 210  13 address lines
Ad

More Related Content

What's hot (20)

Memory Interface
Memory InterfaceMemory Interface
Memory Interface
Sweetlinrose
 
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
 
1204 Ppi 8255
1204 Ppi 82551204 Ppi 8255
1204 Ppi 8255
techbed
 
architecture memory interfacing
architecture memory interfacingarchitecture memory interfacing
architecture memory interfacing
Shamsul Huda
 
17. memory interfacing iii
17. memory interfacing iii17. memory interfacing iii
17. memory interfacing iii
sandip das
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
Adeel Rasheed
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 Microprocessor
Nahian Ahmed
 
Presentation on 8086 microprocessor
Presentation on 8086 microprocessorPresentation on 8086 microprocessor
Presentation on 8086 microprocessor
Diponkor Bala
 
8086ppt
8086ppt8086ppt
8086ppt
Vidyalankar Institute of Technology
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
NimeshSingh27
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
Umang Dhuri
 
Module 2 instruction set
Module 2 instruction set Module 2 instruction set
Module 2 instruction set
Deepak John
 
8086 conti
8086 conti8086 conti
8086 conti
Maria Jasin
 
Microprocessor & Assembly language by team blackhole
Microprocessor & Assembly language by team blackholeMicroprocessor & Assembly language by team blackhole
Microprocessor & Assembly language by team blackhole
Md Abdus Sobur Sikdar
 
8086 modes
8086 modes8086 modes
8086 modes
PDFSHARE
 
Microprocessor Part 1
Microprocessor    Part 1Microprocessor    Part 1
Microprocessor Part 1
Sajan Agrawal
 
Microprocessors 1-8086
Microprocessors 1-8086Microprocessors 1-8086
Microprocessors 1-8086
Shubham Chaurasia
 
8086 module 1 & 2 work
8086 module 1 & 2   work8086 module 1 & 2   work
8086 module 1 & 2 work
Suhail Km
 
8086 Introduction
8086 Introduction8086 Introduction
8086 Introduction
harikrishna parikh
 
MPMC Microprocessor
MPMC MicroprocessorMPMC Microprocessor
MPMC Microprocessor
A.S. Krishna
 
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
 
1204 Ppi 8255
1204 Ppi 82551204 Ppi 8255
1204 Ppi 8255
techbed
 
architecture memory interfacing
architecture memory interfacingarchitecture memory interfacing
architecture memory interfacing
Shamsul Huda
 
17. memory interfacing iii
17. memory interfacing iii17. memory interfacing iii
17. memory interfacing iii
sandip das
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 Microprocessor
Nahian Ahmed
 
Presentation on 8086 microprocessor
Presentation on 8086 microprocessorPresentation on 8086 microprocessor
Presentation on 8086 microprocessor
Diponkor Bala
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
NimeshSingh27
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
Umang Dhuri
 
Module 2 instruction set
Module 2 instruction set Module 2 instruction set
Module 2 instruction set
Deepak John
 
Microprocessor & Assembly language by team blackhole
Microprocessor & Assembly language by team blackholeMicroprocessor & Assembly language by team blackhole
Microprocessor & Assembly language by team blackhole
Md Abdus Sobur Sikdar
 
8086 modes
8086 modes8086 modes
8086 modes
PDFSHARE
 
Microprocessor Part 1
Microprocessor    Part 1Microprocessor    Part 1
Microprocessor Part 1
Sajan Agrawal
 
8086 module 1 & 2 work
8086 module 1 & 2   work8086 module 1 & 2   work
8086 module 1 & 2 work
Suhail Km
 
MPMC Microprocessor
MPMC MicroprocessorMPMC Microprocessor
MPMC Microprocessor
A.S. Krishna
 

Similar to Notes chapter 6 (20)

8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory
Saumay Paul
 
Io processing
Io processingIo processing
Io processing
Tech_MX
 
Chapter6 2
Chapter6 2Chapter6 2
Chapter6 2
HarshitParkar6677
 
Part of UNIT2 Memory mapped IOjkl;'lk.pdf
Part of UNIT2 Memory mapped IOjkl;'lk.pdfPart of UNIT2 Memory mapped IOjkl;'lk.pdf
Part of UNIT2 Memory mapped IOjkl;'lk.pdf
Abhishekkumar397974
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
deval patel
 
Microprocessor questions converted
Microprocessor questions convertedMicroprocessor questions converted
Microprocessor questions converted
ArghodeepPaul
 
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modes
balbirvirdi
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
Neelam Kapoor
 
CSE491_Computer_Interfacing_and_Peripherals_Lec6_Handsout.pdf
CSE491_Computer_Interfacing_and_Peripherals_Lec6_Handsout.pdfCSE491_Computer_Interfacing_and_Peripherals_Lec6_Handsout.pdf
CSE491_Computer_Interfacing_and_Peripherals_Lec6_Handsout.pdf
ajf3215
 
INTERFACING2 [Autosaved] interfacing in Computer system
INTERFACING2 [Autosaved] interfacing in  Computer systemINTERFACING2 [Autosaved] interfacing in  Computer system
INTERFACING2 [Autosaved] interfacing in Computer system
ayomiposiadaralode
 
Unit 1 dasic cimputer organisation and design.pptx
Unit 1 dasic cimputer organisation and design.pptxUnit 1 dasic cimputer organisation and design.pptx
Unit 1 dasic cimputer organisation and design.pptx
ELAKYARINT
 
Input output accessing
Input output accessingInput output accessing
Input output accessing
ankitraosingh
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecture
deval patel
 
LECTURE_7 Interface.pptx of what you wants
LECTURE_7 Interface.pptx of what you wantsLECTURE_7 Interface.pptx of what you wants
LECTURE_7 Interface.pptx of what you wants
BifaHirpo1
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptx
Gowrishankar C
 
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
 
memory-interfacing.ppt
memory-interfacing.pptmemory-interfacing.ppt
memory-interfacing.ppt
Vanitha472439
 
Microprocessor history1
Microprocessor history1Microprocessor history1
Microprocessor history1
HarshitParkar6677
 
Microprocessor history1
Microprocessor history1Microprocessor history1
Microprocessor history1
HarshitParkar6677
 
PPT-1.pptx
PPT-1.pptxPPT-1.pptx
PPT-1.pptx
Ansal Valappil
 
8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory
Saumay Paul
 
Io processing
Io processingIo processing
Io processing
Tech_MX
 
Part of UNIT2 Memory mapped IOjkl;'lk.pdf
Part of UNIT2 Memory mapped IOjkl;'lk.pdfPart of UNIT2 Memory mapped IOjkl;'lk.pdf
Part of UNIT2 Memory mapped IOjkl;'lk.pdf
Abhishekkumar397974
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
deval patel
 
Microprocessor questions converted
Microprocessor questions convertedMicroprocessor questions converted
Microprocessor questions converted
ArghodeepPaul
 
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modes
balbirvirdi
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
Neelam Kapoor
 
CSE491_Computer_Interfacing_and_Peripherals_Lec6_Handsout.pdf
CSE491_Computer_Interfacing_and_Peripherals_Lec6_Handsout.pdfCSE491_Computer_Interfacing_and_Peripherals_Lec6_Handsout.pdf
CSE491_Computer_Interfacing_and_Peripherals_Lec6_Handsout.pdf
ajf3215
 
INTERFACING2 [Autosaved] interfacing in Computer system
INTERFACING2 [Autosaved] interfacing in  Computer systemINTERFACING2 [Autosaved] interfacing in  Computer system
INTERFACING2 [Autosaved] interfacing in Computer system
ayomiposiadaralode
 
Unit 1 dasic cimputer organisation and design.pptx
Unit 1 dasic cimputer organisation and design.pptxUnit 1 dasic cimputer organisation and design.pptx
Unit 1 dasic cimputer organisation and design.pptx
ELAKYARINT
 
Input output accessing
Input output accessingInput output accessing
Input output accessing
ankitraosingh
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecture
deval patel
 
LECTURE_7 Interface.pptx of what you wants
LECTURE_7 Interface.pptx of what you wantsLECTURE_7 Interface.pptx of what you wants
LECTURE_7 Interface.pptx of what you wants
BifaHirpo1
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptx
Gowrishankar C
 
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
 
memory-interfacing.ppt
memory-interfacing.pptmemory-interfacing.ppt
memory-interfacing.ppt
Vanitha472439
 
Ad

More from HarshitParkar6677 (20)

Wi fi hacking
Wi fi hackingWi fi hacking
Wi fi hacking
HarshitParkar6677
 
D dos attack
D dos attackD dos attack
D dos attack
HarshitParkar6677
 
Interface notes
Interface notesInterface notes
Interface notes
HarshitParkar6677
 
Chapter6
Chapter6Chapter6
Chapter6
HarshitParkar6677
 
8086 cpu 1
8086 cpu 18086 cpu 1
8086 cpu 1
HarshitParkar6677
 
Chapter 6 notes
Chapter 6 notesChapter 6 notes
Chapter 6 notes
HarshitParkar6677
 
Chapter 5 notes
Chapter 5 notesChapter 5 notes
Chapter 5 notes
HarshitParkar6677
 
Chap6 procedures & macros
Chap6 procedures & macrosChap6 procedures & macros
Chap6 procedures & macros
HarshitParkar6677
 
Chapter 5 notes new
Chapter 5 notes newChapter 5 notes new
Chapter 5 notes new
HarshitParkar6677
 
Notes arithmetic instructions
Notes arithmetic instructionsNotes arithmetic instructions
Notes arithmetic instructions
HarshitParkar6677
 
Notes all instructions
Notes all instructionsNotes all instructions
Notes all instructions
HarshitParkar6677
 
Notes aaa aa
Notes aaa aaNotes aaa aa
Notes aaa aa
HarshitParkar6677
 
Notes 8086 instruction format
Notes 8086 instruction formatNotes 8086 instruction format
Notes 8086 instruction format
HarshitParkar6677
 
Misc
MiscMisc
Misc
HarshitParkar6677
 
Copy of 8086inst logical
Copy of 8086inst logicalCopy of 8086inst logical
Copy of 8086inst logical
HarshitParkar6677
 
Copy of 8086inst logical
Copy of 8086inst logicalCopy of 8086inst logical
Copy of 8086inst logical
HarshitParkar6677
 
Chapter3 program flow control instructions
Chapter3 program flow control instructionsChapter3 program flow control instructions
Chapter3 program flow control instructions
HarshitParkar6677
 
Chapter3 8086inst stringsl
Chapter3 8086inst stringslChapter3 8086inst stringsl
Chapter3 8086inst stringsl
HarshitParkar6677
 
Chapter3 8086inst logical 2
Chapter3 8086inst logical 2Chapter3 8086inst logical 2
Chapter3 8086inst logical 2
HarshitParkar6677
 
Chapter 3 8086 ins2 math
Chapter 3 8086 ins2 mathChapter 3 8086 ins2 math
Chapter 3 8086 ins2 math
HarshitParkar6677
 
Ad

Recently uploaded (20)

MAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdfMAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
ssuser562df4
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
charlesdick1345
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)
samueljackson3773
 
new ppt artificial intelligence historyyy
new ppt artificial intelligence historyyynew ppt artificial intelligence historyyy
new ppt artificial intelligence historyyy
PianoPianist
 
π0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalizationπ0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalization
NABLAS株式会社
 
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Development of MLR, ANN and ANFIS Models for Estimation of PCUs at Different ...
Journal of Soft Computing in Civil Engineering
 
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptxLidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
RishavKumar530754
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptxExplainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
MahaveerVPandit
 
IntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdfIntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdf
Luiz Carneiro
 
AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)
Vəhid Gəruslu
 
ELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdfELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdf
Shiju Jacob
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design ThinkingDT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DhruvChotaliya2
 
Degree_of_Automation.pdf for Instrumentation and industrial specialist
Degree_of_Automation.pdf for  Instrumentation  and industrial specialistDegree_of_Automation.pdf for  Instrumentation  and industrial specialist
Degree_of_Automation.pdf for Instrumentation and industrial specialist
shreyabhosale19
 
Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.
anuragmk56
 
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdfMAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
ssuser562df4
 
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E..."Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
"Boiler Feed Pump (BFP): Working, Applications, Advantages, and Limitations E...
Infopitaara
 
Value Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous SecurityValue Stream Mapping Worskshops for Intelligent Continuous Security
Value Stream Mapping Worskshops for Intelligent Continuous Security
Marc Hornbeek
 
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
DATA-DRIVEN SHOULDER INVERSE KINEMATICS YoungBeom Kim1 , Byung-Ha Park1 , Kwa...
charlesdick1345
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)
samueljackson3773
 
new ppt artificial intelligence historyyy
new ppt artificial intelligence historyyynew ppt artificial intelligence historyyy
new ppt artificial intelligence historyyy
PianoPianist
 
π0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalizationπ0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalization
NABLAS株式会社
 
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptxLidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
RishavKumar530754
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptxExplainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
Explainable-Artificial-Intelligence-XAI-A-Deep-Dive (1).pptx
MahaveerVPandit
 
IntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdfIntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdf
Luiz Carneiro
 
AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)AI-assisted Software Testing (3-hours tutorial)
AI-assisted Software Testing (3-hours tutorial)
Vəhid Gəruslu
 
ELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdfELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdf
Shiju Jacob
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design ThinkingDT REPORT by Tech titan GROUP to introduce the subject design Thinking
DT REPORT by Tech titan GROUP to introduce the subject design Thinking
DhruvChotaliya2
 
Degree_of_Automation.pdf for Instrumentation and industrial specialist
Degree_of_Automation.pdf for  Instrumentation  and industrial specialistDegree_of_Automation.pdf for  Instrumentation  and industrial specialist
Degree_of_Automation.pdf for Instrumentation and industrial specialist
shreyabhosale19
 
Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.
anuragmk56
 

Notes chapter 6

  • 1. Chapter 6 System Interfacing Methods of Interfacing There are two methods of interfacing memory or I/O devices with microprocessor 1. I/O mapped I/O 2. Memory mapped I/O  In I/O mapped I/O, I/O device is treated as a I/O device and memory as memory.  In memory mapped I/O, I/O devices are also treated as memory. I/O mapped I/O  I/O device is treated as I/O device & memory as memory  Each I/O device uses either 8 address lines (Fixed port) or 16 address lines ( Variable port)  In fixed port 256 input and 256 output devices can be connected  In variable port, 65,536 input & 65,536 output devices can be used  The instructions used in both types of ports are as given ***.  In I/O mapped I/O, complete 1MB memory is interfaced as all address lines used to address memory locations, not shared with I/O devices.  Data transfer is possible between AL or AX and I/O devices only.  Addressing decoding is simple, less hardware is required.  The separate control signals are used to access I/O devices and memory such as IORC, IOWC for I/O and MRDC , MWTC for memory. Hence memory is protected from I/O.  In I/O, arithmetic and logical operations are not possible directly ***Instructions used in Fixed type addressing Any address line A0 - A7 or A8 – A15 can be used. A16 - A19 are all 0’s. INAL, 8 bit portaddress INAX, 8 bit portaddress OUT 8 bit port address, AL OUT 8 bit port address, AX ***Instructions used in Variable type addressing Address lines A0 - A15 are be used. A16 - A19 are all 0’s. MOV DX, 16bit portaddress INAL,DX INAX,DX OUT DX,AL OUT DX,AX
  • 2. Memory Mapped I/O  In this technique, i/o devices are treated as memory and memory as memory, hence the address of the i/o devices are same as memory addresses (20-bit)  So, the addresses of I/O and memory are shared  All 20 address lines are used for i/o and memory.  The same control signals MRDC MWTC are used both for i/o and memory  Data transfer is possible between any register unlike in i/o mapped i/o.  All memory related instructions are used for i/o operations  Address decoding of the i/o devices and memory devices are complicated and expensive.  Total no. of i/o ports and memory cannot be more than 1MB  Looping techniques can be used to access more no. of i/o devices  i/o devices and memory devices are differentiated by their addresses only, in all other cases they are treated the same.  Since memory instructions take long time to execute, speed of memory mapped i/o logic circuits are less. Differences between i/o mapped i/o and memory mapped i/o : Sr. No. I/O mapped I/O Memory mapped I/O 1. I/O device is treated as I/O device & memory as memory i/o devices and memory both are treated as memory 2 The separate control signals are used to access I/O devices and memory such as IORC, IOWC for I/O and MRDC , MWTC for memory. The same control signals MRDC MWTC are used both for i/o and memory 3 IN and OUT instructions are used for i/o read and write operations All memory read and write instructions are used 4 Addressing decoding is simple, less hardware is required. Address decoding of the i/o devices and memory devices are complicated and expensive. 5 64K of Input, 64K of output, 1MB of memory can be used 1MB of memory is shared between i/o and memory 6 Device addresses can be either 8 or 16 bits 20-bit addressing is used for both i/o and memory 7 i/o and memory are distinguished with the help of control signals and addresses. Cannot be distinguished using control signals, can be distinguished only using addresses 8 arithmetic and logical operations are not possible directly arithmetic and logical operations are possible directly with i/o devices
  • 3. 9 Data transfer is possible between AL or AX and I/O devices only. Data transfer is possible between any register and i/o devices. 10. Slower in execution Since memory instructions take long time to execute, speed of memory mapped i/o logic circuits are less. Memory Interfacing :-- Interfacing memory with Odd and even memory banks :-- The figure below shows the interfacing of the memory with odd and even memory banks. A0 signal is used to indicate that the chip selected is even bank and BHE signal is used to indicate that the ship selected is odd memory.
  • 4. The figure below shows a 2716 EPROMchip used to interface with microprocessor. It has 11 address lines which are given from the microprocessor directly. Other lines on the microprocessor are used to interface the chips (chip select lines). Interfacing two 2K EPROM :--  Address line A0 for even memory bank  BHE for odd memory bank  A1 to A11 for addresses.  A12 to A19 for chip select, used as the input to a NAND gate
  • 5. Addressing decoding worksheet for the above diagram is as given below. Interfacing four 2K X 8 RAM :--  Address line A0 for even memory bank  BHE for odd memory bank  A1 to A11 for addresses.  A12 to A14 as input signals to 74138 IC so that one out of Y0 to Y7 are used to select the chip  A15 to A19 are the gated inputs for enabling 74138.
  • 6. The address decoding worksheet for the above is as given below.
  • 7. Example of Interfacing:-- Interface a) 8K of EPROM (IC 2764) and b) 8k word RAM (IC 6264) to 8086. Use block decoding. EPROM address starts at FC000 H and RAM address at 1C000 H Solution:-- EPROM:--  No. of address lines – 23 . 210  13 address lines RAM:--  No. of address lines - 23 . 210  13 address lines