SlideShare a Scribd company logo
1 of 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

More Related Content

What's hot

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
 

What's hot (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 to 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 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
 
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
 

More from 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
 

Recently uploaded

What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
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
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
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
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 

Recently uploaded (20)

What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
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
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
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...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
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
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 

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