SlideShare a Scribd company logo
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.
Unit 4-input-output organization
 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

PPTX
Direct memory access
PDF
Processor Organization and Architecture
PDF
Unit 4-input-output organization
PPTX
Instruction Pipelining
PPTX
Input Output Organization
PPTX
Direct Memory Access(DMA)
PPTX
Disk structure
Direct memory access
Processor Organization and Architecture
Unit 4-input-output organization
Instruction Pipelining
Input Output Organization
Direct Memory Access(DMA)
Disk structure

What's hot (20)

PPTX
CS304PC:Computer Organization and Architecture Session 28 Direct memory acces...
PPT
Parallel processing
PPTX
System bus timing 8086
PPTX
Os unit 3 , process management
PPTX
Harvard architecture
PPTX
Direct Memory Access
PPTX
Multiprocessor
PPTX
Chapter 4 Embedded System: Application and Domain Specific
PPTX
Convolutional Error Control Coding
PPTX
General register organization (computer organization)
ODP
Direct Memory Access (DMA)-Working and Implementation
PPT
Data transfer instruction set of 8085 micro processor
PDF
Minimum and Maximum Modes of microprocessor 8086
PPT
Parallel processing and pipelining
PDF
Computer organisation -morris mano
PDF
Introduction to 8085 Microprocessors
PPTX
Pipelining And Vector Processing
PDF
Serial Communication Interfaces
PPTX
DMA presentation [By- Digvijay]
PPTX
PCI BUS
CS304PC:Computer Organization and Architecture Session 28 Direct memory acces...
Parallel processing
System bus timing 8086
Os unit 3 , process management
Harvard architecture
Direct Memory Access
Multiprocessor
Chapter 4 Embedded System: Application and Domain Specific
Convolutional Error Control Coding
General register organization (computer organization)
Direct Memory Access (DMA)-Working and Implementation
Data transfer instruction set of 8085 micro processor
Minimum and Maximum Modes of microprocessor 8086
Parallel processing and pipelining
Computer organisation -morris mano
Introduction to 8085 Microprocessors
Pipelining And Vector Processing
Serial Communication Interfaces
DMA presentation [By- Digvijay]
PCI BUS
Ad

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

PPTX
inputoutputorganization-140722085906-phpapp01.pptx
PPTX
Input - output organzation
PPTX
This pot is about computer architecture.
PDF
modes of transfer computer architecture.
PPT
PPT
Chapter 6 input output
PPTX
Chapter 5 IO Unit.pptx we are electrical
PDF
Unit 6
PPTX
I/O Interfaces: Bridging the Digital and Physical Worlds
PPTX
Input output accessing
PPTX
Lecture 9.pptx
PPTX
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
PPT
Unit3 input
PPTX
ghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptx
PPTX
Modes of data transfer.computer architecture.
PDF
A transfer from I/O device to memory requires the execution of several instru...
PDF
Computer organization part 2
PPTX
I/O Management
PPT
Input / Output organization of computer architecture
PPTX
Lecture22_New2024 (1).pptx lecture numbere one h yeh
inputoutputorganization-140722085906-phpapp01.pptx
Input - output organzation
This pot is about computer architecture.
modes of transfer computer architecture.
Chapter 6 input output
Chapter 5 IO Unit.pptx we are electrical
Unit 6
I/O Interfaces: Bridging the Digital and Physical Worlds
Input output accessing
Lecture 9.pptx
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Unit3 input
ghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptx
Modes of data transfer.computer architecture.
A transfer from I/O device to memory requires the execution of several instru...
Computer organization part 2
I/O Management
Input / Output organization of computer architecture
Lecture22_New2024 (1).pptx lecture numbere one h yeh
Ad

More from vishal choudhary (20)

PPTX
mobile application using automatin using node ja java on
PPTX
mobile development using node js and java
PPTX
Pixel to Percentage conversion Convert left and right padding of a div to per...
PPTX
esponsive web design means that your website (
PPTX
function in php using like three type of function
PPTX
data base connectivity in php using msql database
PPTX
software evelopment life cycle model and example of water fall model
PPTX
software Engineering lecture on development life cycle
PPTX
strings in php how to use different data types in string
PPTX
OPEN SOURCE WEB APPLICATION DEVELOPMENT question
PPTX
web performnace optimization using css minification
PPTX
web performance optimization using style
PPTX
Data types and variables in php for writing and databse
PPTX
Data types and variables in php for writing
PPTX
Data types and variables in php for writing
PPTX
sofwtare standard for test plan it execution
PPTX
Software test policy and test plan in development
PPTX
function in php like control loop and its uses
PPTX
introduction to php and its uses in daily
PPTX
data type in php and its introduction to use
mobile application using automatin using node ja java on
mobile development using node js and java
Pixel to Percentage conversion Convert left and right padding of a div to per...
esponsive web design means that your website (
function in php using like three type of function
data base connectivity in php using msql database
software evelopment life cycle model and example of water fall model
software Engineering lecture on development life cycle
strings in php how to use different data types in string
OPEN SOURCE WEB APPLICATION DEVELOPMENT question
web performnace optimization using css minification
web performance optimization using style
Data types and variables in php for writing and databse
Data types and variables in php for writing
Data types and variables in php for writing
sofwtare standard for test plan it execution
Software test policy and test plan in development
function in php like control loop and its uses
introduction to php and its uses in daily
data type in php and its introduction to use

Recently uploaded (20)

PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Pre independence Education in Inndia.pdf
PDF
01-Introduction-to-Information-Management.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Classroom Observation Tools for Teachers
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Institutional Correction lecture only . . .
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Pre independence Education in Inndia.pdf
01-Introduction-to-Information-Management.pdf
human mycosis Human fungal infections are called human mycosis..pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Microbial diseases, their pathogenesis and prophylaxis
STATICS OF THE RIGID BODIES Hibbelers.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Renaissance Architecture: A Journey from Faith to Humanism
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Classroom Observation Tools for Teachers
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
RMMM.pdf make it easy to upload and study
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Institutional Correction lecture only . . .
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
2.FourierTransform-ShortQuestionswithAnswers.pdf
TR - Agricultural Crops Production NC III.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF

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.
  • 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.