SlideShare a Scribd company logo
1 of 26
Download to read offline
IO Interface
Input Output Organization
IO Interface
 IO interface provides a method for transferring
information between internal system (CPU) and
external I/O devices.
 I/O devices can not directly communicate with the
CPU due to various differences between them.
Significance of I/O Interface
I/O Bus and Interface Modules
 I/O bus is attached to all peripherals.
 Interface monitors the address on address bus.
 If it find its own address, it activates path between
bus line and device.
 All the other devices are disabled by their interfaces.
 Data to read or write is made available in the data
bus.
 IO command is made available in the control bus.
 There are four types of IO command:
 Control Command
 Status Command
 Output Data Command
 Input Data Command
IO versus Memory bus
 Like IO bus Memory bus also contain data, address
and control lines.
 There are two ways in which computer bus
communicates with memory and IO.
 1. Use two separate buses, one for memory and other
for I/O (Isolated I/O)
 Use one common bus for memory and I/O common
control lines (Memory Mapped I/O)
 In the first method, CPU has independent set of
buses for both memory and IO. It is done in
computers that has separate IOP and CPU.
 In second method computers use common bus to
transfer data between IO or memory and CPU.
 This configuration isolates all I/O interface address
with the memory address and is referred to as
Isolated IO method.
 In memory mapped method, same address space is
used for both memory and IO interface. They have
only one set of read and write signals.
 Computer treats interface as being part of the
memory system.
 It assign address for each interface which cannot be
used for memory words which reduces the memory
address range available.
 This configuration is referred to as memory-
mapped IO.
Modes of transfer
 Data transfer between computer and IO device can
be handle in the following ways:
 Programmed IO
 Interrupt-Initiated IO
 Direct Memory Access(DMA)
Programmed IO
 Each data transfer is initiated by an instruction in
the program.
 CPU stays in the program loop until IO unit indicates
it is ready for the data transfer.
 It is time consuming process since it keeps processor
busy needlessly.
Example of programmed IO
 The transfer of data requires three instructions:
Flow chart of programmed I/O from e-book
Interrupt Initiated IO
 In this type of IO, computer does not check the flag.
It continue to perform its task.
 Whenever any device wants the attention, it sends
the interrupt signal to the CPU.
 CPU then deviates from what it was doing, store the
return address from PC and branch to the address of
the subroutine.
 There are two ways of choosing the branch address:
 Vectored Interrupt
 Non-vectored Interrupt
 In vectored interrupt the source that interrupt the
CPU provides the branch information. This
information is called interrupt vectored.
 In non-vectored interrupt, the branch address is
assigned to the fixed address in the memory.
Direct Memory Access(DMA) (11.6)
 In DMA there is direct communication between
memory and the peripheral devices.
 Direct memory access (DMA) is a feature of
modern computer systems that allows certain
hardware subsystems to read/write data to/from
memory without microprocessor intervention,
allowing the processor to do other work.
 Typically, the CPU initiates DMA transfer, does other
operations while the transfer is in progress, and
receives an interrupt from the DMA controller once
the operation is complete.
 BR(Bus Request) signal is used by DMA controller to
request CPU for the buses.
 CPU then places the bus on the high impedance state
which behave like open circuit.
 CPU then activates BG(Bus Grant) signal to
acknowledge BR signal.
 DMA now has full control over the buses and
perform the transfer.
 Transfer can be perform in two ways:
 Burst Transfer
 Cycle Stealing
 In burst transfer, a number of memory word is
transfer in a continuous burst. It is done while
communicating with fast devices and can’t be
stopped or slow down.
 In cycle stealing, one data word is transfer at a time.
 CPU delays it operation for one cycle.
DMA Controller
DMA Controller
 It communicates with CPU through data bus and
control lines.
 Registers in DMA are selected by CPU by enabling
DS and RS.
 RD and WR signals are for read and write operation.
 When BG=0 CPU can communicate with DMA
register for read or write operation.
 When BG=1 DMA communicate directly with the
memory.
DMA Controller
 It has three register: address, word count and control
register.
 Address register contain address which specify the
location of memory to read or write.
 It is incremented after each word is transferred into
memory.
 Word count register holds the number of words to be
transferred.
 It is decremented by one after each word is
transferred into memory and regularly check for
zero.
 Control Register specify the mode of transfer.
 DMA is first initialized by CPU. After that DMA
continue to transfer data.
 CPU initialize the DMA by sending the following
information through the data bus:
 Starting address of memory block for read or write.
 The word count or number of words to read or write.
 Control to specify mode such as read or write.
 Control to start DMA
 Once DMA is initialized, CPU stop communicating
with DMA unless it receive interrupt signal or if it
wants to check how many words has been
transferred.

More Related Content

What's hot

Computer architecture
Computer architectureComputer architecture
Computer architectureneclinux
 
COMPUTER ORGANIZATION NOTES Unit 3 4
COMPUTER ORGANIZATION NOTES  Unit 3 4COMPUTER ORGANIZATION NOTES  Unit 3 4
COMPUTER ORGANIZATION NOTES Unit 3 4Dr.MAYA NAYAK
 
Unit 5 lect-3-multiprocessor
Unit 5 lect-3-multiprocessorUnit 5 lect-3-multiprocessor
Unit 5 lect-3-multiprocessorvishal choudhary
 
COMPUTER ORGANIZATION NOTES Unit 5
COMPUTER ORGANIZATION NOTES Unit 5COMPUTER ORGANIZATION NOTES Unit 5
COMPUTER ORGANIZATION NOTES Unit 5Dr.MAYA NAYAK
 
Computer organiztion5
Computer organiztion5Computer organiztion5
Computer organiztion5Umang Gupta
 
Instruction set and instruction execution cycle
Instruction set and instruction execution cycleInstruction set and instruction execution cycle
Instruction set and instruction execution cycleMkaur01
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulationSanjeev Patel
 
Computer Architecture | Computer Fundamental and Organization
Computer Architecture | Computer Fundamental and OrganizationComputer Architecture | Computer Fundamental and Organization
Computer Architecture | Computer Fundamental and OrganizationSmit Luvani
 
Computer System Architecture
Computer System ArchitectureComputer System Architecture
Computer System ArchitectureBrenda Debra
 
03 top level view of computer function and interconnection.ppt.enc
03 top level view of computer function and interconnection.ppt.enc03 top level view of computer function and interconnection.ppt.enc
03 top level view of computer function and interconnection.ppt.encAnwal Mirza
 

What's hot (19)

Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Unit3 input
Unit3 inputUnit3 input
Unit3 input
 
COMPUTER ORGANIZATION NOTES Unit 3 4
COMPUTER ORGANIZATION NOTES  Unit 3 4COMPUTER ORGANIZATION NOTES  Unit 3 4
COMPUTER ORGANIZATION NOTES Unit 3 4
 
Unit 5 lect-3-multiprocessor
Unit 5 lect-3-multiprocessorUnit 5 lect-3-multiprocessor
Unit 5 lect-3-multiprocessor
 
COMPUTER ORGANIZATION NOTES Unit 5
COMPUTER ORGANIZATION NOTES Unit 5COMPUTER ORGANIZATION NOTES Unit 5
COMPUTER ORGANIZATION NOTES Unit 5
 
Control unit
Control  unitControl  unit
Control unit
 
Program control
Program controlProgram control
Program control
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
Computer organiztion5
Computer organiztion5Computer organiztion5
Computer organiztion5
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Lecture 39
Lecture 39Lecture 39
Lecture 39
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Instruction set and instruction execution cycle
Instruction set and instruction execution cycleInstruction set and instruction execution cycle
Instruction set and instruction execution cycle
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
 
Chapter 7
Chapter 7Chapter 7
Chapter 7
 
Computer Architecture | Computer Fundamental and Organization
Computer Architecture | Computer Fundamental and OrganizationComputer Architecture | Computer Fundamental and Organization
Computer Architecture | Computer Fundamental and Organization
 
Intro to cao &store program
Intro to cao &store programIntro to cao &store program
Intro to cao &store program
 
Computer System Architecture
Computer System ArchitectureComputer System Architecture
Computer System Architecture
 
03 top level view of computer function and interconnection.ppt.enc
03 top level view of computer function and interconnection.ppt.enc03 top level view of computer function and interconnection.ppt.enc
03 top level view of computer function and interconnection.ppt.enc
 

Similar to Unit 4-input-output organization

Input Output Organization
Input Output OrganizationInput Output Organization
Input Output OrganizationKamal Acharya
 
Chap2 comp architecture
Chap2 comp architectureChap2 comp architecture
Chap2 comp architectureraksharao
 
inputoutputorganization-140722085906-phpapp01.pptx
inputoutputorganization-140722085906-phpapp01.pptxinputoutputorganization-140722085906-phpapp01.pptx
inputoutputorganization-140722085906-phpapp01.pptxAshokRachapalli1
 
Input output accessing
Input output accessingInput output accessing
Input output accessingankitraosingh
 
Input output in computer Orgranization and architecture
Input output in computer Orgranization and architectureInput output in computer Orgranization and architecture
Input output in computer Orgranization and architecturevikram patel
 
Computer organisation and architecture module 1
Computer organisation and architecture module 1Computer organisation and architecture module 1
Computer organisation and architecture module 1abinrj123
 
discuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfdiscuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfinfo998421
 
The primary purpose of memory interfacing is to facilitate the transfer of da...
The primary purpose of memory interfacing is to facilitate the transfer of da...The primary purpose of memory interfacing is to facilitate the transfer of da...
The primary purpose of memory interfacing is to facilitate the transfer of da...Sindhu Mani
 
Internal and external hardware components of a computer
Internal and external hardware components of a computerInternal and external hardware components of a computer
Internal and external hardware components of a computerbethan_eastlake
 
IO and file systems
IO and file systems IO and file systems
IO and file systems EktaVaswani2
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data RepresentationNaruin
 

Similar to Unit 4-input-output organization (20)

Input Output Organization
Input Output OrganizationInput Output Organization
Input Output Organization
 
Chap2 comp architecture
Chap2 comp architectureChap2 comp architecture
Chap2 comp architecture
 
inputoutputorganization-140722085906-phpapp01.pptx
inputoutputorganization-140722085906-phpapp01.pptxinputoutputorganization-140722085906-phpapp01.pptx
inputoutputorganization-140722085906-phpapp01.pptx
 
DMA presentation [By- Digvijay]
DMA presentation [By- Digvijay]DMA presentation [By- Digvijay]
DMA presentation [By- Digvijay]
 
ch -6 IO.pptx
ch -6 IO.pptxch -6 IO.pptx
ch -6 IO.pptx
 
Dma
DmaDma
Dma
 
Input output accessing
Input output accessingInput output accessing
Input output accessing
 
Input output in computer Orgranization and architecture
Input output in computer Orgranization and architectureInput output in computer Orgranization and architecture
Input output in computer Orgranization and architecture
 
Computer organisation and architecture module 1
Computer organisation and architecture module 1Computer organisation and architecture module 1
Computer organisation and architecture module 1
 
Modes of data transfer
Modes of data transferModes of data transfer
Modes of data transfer
 
discuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfdiscuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdf
 
The primary purpose of memory interfacing is to facilitate the transfer of da...
The primary purpose of memory interfacing is to facilitate the transfer of da...The primary purpose of memory interfacing is to facilitate the transfer of da...
The primary purpose of memory interfacing is to facilitate the transfer of da...
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Internal and external hardware components of a computer
Internal and external hardware components of a computerInternal and external hardware components of a computer
Internal and external hardware components of a computer
 
Es notes unit 2
Es notes unit 2Es notes unit 2
Es notes unit 2
 
Co notes
Co notesCo notes
Co notes
 
07 Input Output
07  Input  Output07  Input  Output
07 Input Output
 
IO and file systems
IO and file systems IO and file systems
IO and file systems
 
Modes of transfer
Modes of transferModes of transfer
Modes of transfer
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 

More from vishal choudhary (20)

SE-Lecture1.ppt
SE-Lecture1.pptSE-Lecture1.ppt
SE-Lecture1.ppt
 
SE-Testing.ppt
SE-Testing.pptSE-Testing.ppt
SE-Testing.ppt
 
SE-CyclomaticComplexityand Testing.ppt
SE-CyclomaticComplexityand Testing.pptSE-CyclomaticComplexityand Testing.ppt
SE-CyclomaticComplexityand Testing.ppt
 
SE-Lecture-7.pptx
SE-Lecture-7.pptxSE-Lecture-7.pptx
SE-Lecture-7.pptx
 
Se-Lecture-6.ppt
Se-Lecture-6.pptSe-Lecture-6.ppt
Se-Lecture-6.ppt
 
SE-Lecture-5.pptx
SE-Lecture-5.pptxSE-Lecture-5.pptx
SE-Lecture-5.pptx
 
XML.pptx
XML.pptxXML.pptx
XML.pptx
 
SE-Lecture-8.pptx
SE-Lecture-8.pptxSE-Lecture-8.pptx
SE-Lecture-8.pptx
 
SE-coupling and cohesion.ppt
SE-coupling and cohesion.pptSE-coupling and cohesion.ppt
SE-coupling and cohesion.ppt
 
SE-Lecture-2.pptx
SE-Lecture-2.pptxSE-Lecture-2.pptx
SE-Lecture-2.pptx
 
SE-software design.ppt
SE-software design.pptSE-software design.ppt
SE-software design.ppt
 
SE1.ppt
SE1.pptSE1.ppt
SE1.ppt
 
SE-Lecture-4.pptx
SE-Lecture-4.pptxSE-Lecture-4.pptx
SE-Lecture-4.pptx
 
SE-Lecture=3.pptx
SE-Lecture=3.pptxSE-Lecture=3.pptx
SE-Lecture=3.pptx
 
Multimedia-Lecture-Animation.pptx
Multimedia-Lecture-Animation.pptxMultimedia-Lecture-Animation.pptx
Multimedia-Lecture-Animation.pptx
 
MultimediaLecture5.pptx
MultimediaLecture5.pptxMultimediaLecture5.pptx
MultimediaLecture5.pptx
 
Multimedia-Lecture-7.pptx
Multimedia-Lecture-7.pptxMultimedia-Lecture-7.pptx
Multimedia-Lecture-7.pptx
 
MultiMedia-Lecture-4.pptx
MultiMedia-Lecture-4.pptxMultiMedia-Lecture-4.pptx
MultiMedia-Lecture-4.pptx
 
Multimedia-Lecture-6.pptx
Multimedia-Lecture-6.pptxMultimedia-Lecture-6.pptx
Multimedia-Lecture-6.pptx
 
Multimedia-Lecture-3.pptx
Multimedia-Lecture-3.pptxMultimedia-Lecture-3.pptx
Multimedia-Lecture-3.pptx
 

Recently uploaded

Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 

Recently uploaded (20)

Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 

Unit 4-input-output organization

  • 2. IO Interface  IO interface provides a method for transferring information between internal system (CPU) and external I/O devices.  I/O devices can not directly communicate with the CPU due to various differences between them.
  • 4. I/O Bus and Interface Modules
  • 5.  I/O bus is attached to all peripherals.  Interface monitors the address on address bus.  If it find its own address, it activates path between bus line and device.  All the other devices are disabled by their interfaces.  Data to read or write is made available in the data bus.  IO command is made available in the control bus.
  • 6.  There are four types of IO command:  Control Command  Status Command  Output Data Command  Input Data Command
  • 7. IO versus Memory bus  Like IO bus Memory bus also contain data, address and control lines.  There are two ways in which computer bus communicates with memory and IO.  1. Use two separate buses, one for memory and other for I/O (Isolated I/O)  Use one common bus for memory and I/O common control lines (Memory Mapped I/O)
  • 8.  In the first method, CPU has independent set of buses for both memory and IO. It is done in computers that has separate IOP and CPU.  In second method computers use common bus to transfer data between IO or memory and CPU.
  • 9.  This configuration isolates all I/O interface address with the memory address and is referred to as Isolated IO method.  In memory mapped method, same address space is used for both memory and IO interface. They have only one set of read and write signals.  Computer treats interface as being part of the memory system.
  • 10.  It assign address for each interface which cannot be used for memory words which reduces the memory address range available.  This configuration is referred to as memory- mapped IO.
  • 11. Modes of transfer  Data transfer between computer and IO device can be handle in the following ways:  Programmed IO  Interrupt-Initiated IO  Direct Memory Access(DMA)
  • 12. Programmed IO  Each data transfer is initiated by an instruction in the program.  CPU stays in the program loop until IO unit indicates it is ready for the data transfer.  It is time consuming process since it keeps processor busy needlessly.
  • 14.  The transfer of data requires three instructions:
  • 15. Flow chart of programmed I/O from e-book
  • 16. Interrupt Initiated IO  In this type of IO, computer does not check the flag. It continue to perform its task.  Whenever any device wants the attention, it sends the interrupt signal to the CPU.  CPU then deviates from what it was doing, store the return address from PC and branch to the address of the subroutine.
  • 17.  There are two ways of choosing the branch address:  Vectored Interrupt  Non-vectored Interrupt  In vectored interrupt the source that interrupt the CPU provides the branch information. This information is called interrupt vectored.  In non-vectored interrupt, the branch address is assigned to the fixed address in the memory.
  • 18. Direct Memory Access(DMA) (11.6)  In DMA there is direct communication between memory and the peripheral devices.  Direct memory access (DMA) is a feature of modern computer systems that allows certain hardware subsystems to read/write data to/from memory without microprocessor intervention, allowing the processor to do other work.  Typically, the CPU initiates DMA transfer, does other operations while the transfer is in progress, and receives an interrupt from the DMA controller once the operation is complete.
  • 19.
  • 20.  BR(Bus Request) signal is used by DMA controller to request CPU for the buses.  CPU then places the bus on the high impedance state which behave like open circuit.  CPU then activates BG(Bus Grant) signal to acknowledge BR signal.  DMA now has full control over the buses and perform the transfer.
  • 21.  Transfer can be perform in two ways:  Burst Transfer  Cycle Stealing  In burst transfer, a number of memory word is transfer in a continuous burst. It is done while communicating with fast devices and can’t be stopped or slow down.  In cycle stealing, one data word is transfer at a time.  CPU delays it operation for one cycle.
  • 23. DMA Controller  It communicates with CPU through data bus and control lines.  Registers in DMA are selected by CPU by enabling DS and RS.  RD and WR signals are for read and write operation.  When BG=0 CPU can communicate with DMA register for read or write operation.  When BG=1 DMA communicate directly with the memory.
  • 24. DMA Controller  It has three register: address, word count and control register.  Address register contain address which specify the location of memory to read or write.  It is incremented after each word is transferred into memory.  Word count register holds the number of words to be transferred.  It is decremented by one after each word is transferred into memory and regularly check for zero.
  • 25.  Control Register specify the mode of transfer.  DMA is first initialized by CPU. After that DMA continue to transfer data.  CPU initialize the DMA by sending the following information through the data bus:  Starting address of memory block for read or write.  The word count or number of words to read or write.  Control to specify mode such as read or write.  Control to start DMA
  • 26.  Once DMA is initialized, CPU stop communicating with DMA unless it receive interrupt signal or if it wants to check how many words has been transferred.