SlideShare una empresa de Scribd logo
1 de 7
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

Más contenido relacionado

La actualidad más candente

Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085Nitin Ahire
 
1204 Ppi 8255
1204 Ppi 82551204 Ppi 8255
1204 Ppi 8255techbed
 
architecture memory interfacing
architecture memory interfacingarchitecture memory interfacing
architecture memory interfacingShamsul Huda
 
17. memory interfacing iii
17. memory interfacing iii17. memory interfacing iii
17. memory interfacing iiisandip das
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 MicroprocessorNahian Ahmed
 
Presentation on 8086 microprocessor
Presentation on 8086 microprocessorPresentation on 8086 microprocessor
Presentation on 8086 microprocessorDiponkor 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 8086Umang 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 blackholeMd Abdus Sobur Sikdar
 
8086 modes
8086 modes8086 modes
8086 modesPDFSHARE
 
Microprocessor Part 1
Microprocessor    Part 1Microprocessor    Part 1
Microprocessor Part 1Sajan Agrawal
 
8086 module 1 & 2 work
8086 module 1 & 2   work8086 module 1 & 2   work
8086 module 1 & 2 workSuhail Km
 
MPMC Microprocessor
MPMC MicroprocessorMPMC Microprocessor
MPMC MicroprocessorA.S. Krishna
 

La actualidad más candente (20)

Memory Interface
Memory InterfaceMemory Interface
Memory Interface
 
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085
 
1204 Ppi 8255
1204 Ppi 82551204 Ppi 8255
1204 Ppi 8255
 
architecture memory interfacing
architecture memory interfacingarchitecture memory interfacing
architecture memory interfacing
 
17. memory interfacing iii
17. memory interfacing iii17. memory interfacing iii
17. memory interfacing iii
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 Microprocessor
 
Presentation on 8086 microprocessor
Presentation on 8086 microprocessorPresentation on 8086 microprocessor
Presentation on 8086 microprocessor
 
8086ppt
8086ppt8086ppt
8086ppt
 
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...
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
 
Module 2 instruction set
Module 2 instruction set Module 2 instruction set
Module 2 instruction set
 
8086 conti
8086 conti8086 conti
8086 conti
 
Microprocessor & Assembly language by team blackhole
Microprocessor & Assembly language by team blackholeMicroprocessor & Assembly language by team blackhole
Microprocessor & Assembly language by team blackhole
 
8086 modes
8086 modes8086 modes
8086 modes
 
Microprocessor Part 1
Microprocessor    Part 1Microprocessor    Part 1
Microprocessor Part 1
 
Microprocessors 1-8086
Microprocessors 1-8086Microprocessors 1-8086
Microprocessors 1-8086
 
8086 module 1 & 2 work
8086 module 1 & 2   work8086 module 1 & 2   work
8086 module 1 & 2 work
 
8086 Introduction
8086 Introduction8086 Introduction
8086 Introduction
 
MPMC Microprocessor
MPMC MicroprocessorMPMC Microprocessor
MPMC Microprocessor
 

Similar a Notes chapter 6

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 MemorySaumay Paul
 
Io processing
Io processingIo processing
Io processingTech_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.pdfAbhishekkumar397974
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacingdeval patel
 
Microprocessor questions converted
Microprocessor questions convertedMicroprocessor questions converted
Microprocessor questions convertedArghodeepPaul
 
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modesbalbirvirdi
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Neelam Kapoor
 
Input output accessing
Input output accessingInput output accessing
Input output accessingankitraosingh
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecturedeval patel
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxGowrishankar C
 
memory-interfacing.ppt
memory-interfacing.pptmemory-interfacing.ppt
memory-interfacing.pptVanitha472439
 
memory organi.pptx
memory organi.pptxmemory organi.pptx
memory organi.pptxprakashpacet
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 MicrocontrollersSYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 MicrocontrollersArti Parab Academics
 

Similar a 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
 
Io processing
Io processingIo processing
Io processing
 
Chapter6 2
Chapter6 2Chapter6 2
Chapter6 2
 
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
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
Microprocessor questions converted
Microprocessor questions convertedMicroprocessor questions converted
Microprocessor questions converted
 
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modes
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
 
Input output accessing
Input output accessingInput output accessing
Input output accessing
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecture
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptx
 
memory-interfacing.ppt
memory-interfacing.pptmemory-interfacing.ppt
memory-interfacing.ppt
 
Microprocessor history1
Microprocessor history1Microprocessor history1
Microprocessor history1
 
Microprocessor history1
Microprocessor history1Microprocessor history1
Microprocessor history1
 
PPT-1.pptx
PPT-1.pptxPPT-1.pptx
PPT-1.pptx
 
PPT-1.pptx
PPT-1.pptxPPT-1.pptx
PPT-1.pptx
 
MPMC.pptx
MPMC.pptxMPMC.pptx
MPMC.pptx
 
Module 1 8086
Module 1 8086Module 1 8086
Module 1 8086
 
memory organi.pptx
memory organi.pptxmemory organi.pptx
memory organi.pptx
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 MicrocontrollersSYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
 

Más de HarshitParkar6677 (20)

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

Último

247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 

Último (20)

247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
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
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 

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