(Go: >> BACK << -|- >> HOME <<)

SlideShare a Scribd company logo
Io techniques & its types
MEMBERS FOR THE PRESENTAION
• NEHAL NAIK
• DEVDATT NAIK
• VIKAS NAIK
I/O TECHNIQUES & ITS TYPES
INTRODUCTION
• Users interact with the computer system through
Input and Output (I/O) devices such as keyboard,
mouse, monitor and so on. I/O devices are also
called peripherals.
• I/O devices are used to exchange information
between user and CPU. An I/O organization
includes two major components namely I/O
devices, I/O module. In addition it uses different
techniques to exchange information namely
programmed I/O, Interrupt I/O and Direct
Memory Access (DMA).
I/O TECHNIQUES
• It is the technique of communication between
memory and I/O devices. I/O techniques are
categorized in three types based on how
information is transfers between memory and
I/O devices that whether it is using CPU
interaction or Interrupt interaction.
TECHNIQUES OF I/O
• Programmed I/O : The CPU issues a command then waits for I/O
operations to be complete. The CPU is faster than the I/O module
then method is wasteful.
• Interrupt Driven I/O : The CPU issues commands then proceeds
with its normal work until interrupted by I/O device on completion
of its work.
• DMA : In this CPU and I/O Module exchange data without
involvement of CPU.
• Memory mapped I/O : Memory and I/O are treated as memory
only. It means no signal like IO/M.
• Isolated I/O : Address space of memory and I/O is isolated.
It uses IO/M signal.
Three I/o Techniques
Four design techniques
 Multiple Interrupt Lines : In this method we have multiple
lines like in IC 8085.
 Software Polling : ISR polls to find out the device which has
interrupted. The CPU reads a status register.The method is time
consuming.
 Daisy Chin : The method is hardware polling. The ack signal
propagates through and is stopped by the device who is
interrupted.
 Bus Arbitration : In this method the device first gets control
of bus and then raises an interrupt request for data transfer.
The CPU issues an ack then the devices gives vector for branching
I/O Steps
• CPU checks I/O module device status
• I/O module returns status
• If ready, CPU requests data transfer
• I/O module gets data from device
• I/O module transfers data to CPU
• Variations for output, DMA, etc.
I/O Commands
CPU issues address
› Identifies module (& device if >1 per module)
CPU issues command
› Control - telling module what to do
 e.g. spin up disk
› Test - check status
 e.g. power? Error?
› Read/Write
 Module transfers data via buffer from/to device
Addressing I/O Devices
• Under programmed I/O data transfer is very
like memory access (CPU viewpoint)
• Each device given unique identifier
• CPU commands contain identifier (address)
I/O Mapping
• Memory mapped I/O
– Devices and memory share an address space
– I/O looks just like memory read/write
– No special commands for I/O
• Large selection of memory access commands available
• Isolated I/O
– Separate address spaces
– Need I/O or memory select lines
– Special commands for I/O
• Limited set
I/O Module
I/O module is intermediate between I/O devices
and CPU. System buses are connected to the one
end of I/O module and other end is connected to
the number of I/O devices. It used to exchange
information between I/O devices and CPU. I/O
devices cannot be directly connected to the system
buses; they are connected to the system buses
through module.
I/O Module Diagram
Data Register
Status/Control Register
External
Device
Interface
Logic
External
Device
Interface
Logic
Input
Output
Logic
Data
Lines
Address
Lines
Data
Lines
Data
Status
Contro
l
Data
Status
Contro
l
Systems Bus
Interface
External Device Interface
Functions of I/O Module
The major functions of modules are categorized as
follows
1.Control and Timing - In some of the I/O
operation few resources shared such as CPU and
memory because CPU communicates with more
than one device at a time.
2.Processor Communication - I/O module
communicates with the CPU and I/O devices
Features of I/O Module
• Data Buffering - As I/O devices are much
slower than CPU and memory. In order to
maintain speed of data flow between I/O
devices and internal resources, I/O module
buffers data.
• Error Detection - It is built- in feature of I/O
module that detects electrical and mechanical
errors.
INPUT/OUTPUT MODULE STRUCTURE
Control and Timing
• CPU asks I/O module to check the status of
attached device.
• I/O module tells the status.
• CPU requests for data transfer to I/O module if
device is ready.
• I/O module gathers the data and transfers to
the CPU.
Interrupts
• CPU interrupt request line triggered by I/O devices
• Interrupt handler receives interrupt
• Maskable to ignore or delay some interrupts
• Interrupt vector to dispatch interrupt to correct
handler
• Based on priorty
• Some unmaskable
• Interrupt mechanism also used for exceptions
Interrupt Processing
Multiple interrupts
• The techniques above not only identify the requesting
I/O module but provide
• methods of assigning priorities
• Multiple lines – processor picks line with highest
priority
• Software polling – polling order determines priority
• Daisy chain – daisy chain order of the modules
determines priority
• Bus arbitration – arbitration scheme determines
priority
Interrupt Driven I/O
• Overcomes CPU waiting
• No repeated CPU checking of device
• I/O module interrupts when ready
Conclusions
• Designing dependable I/O systems has two aspects: individual I/O and redundancy.
The design of dependable individual I/O has a variety of aspects including EMC,
shock/vibration, environment, A/D and D/A conversion, diagnostics, testing and
calibration. Each can present special challenges for the embedded designer in
terms of cost or accessibility concerns. All of the redundancy methods, including
diversity, interlocks, and human interaction, should be considered to address the
safety concerns of an embedded system.
• Two new trends in I/O design are important: Fieldbus and Intelligent I/O. These
promise increased functionality and lower cost. The primary challenge to
acceptance of these techniques is standardization to achieve interoperability.
• The embedded I/O designer must be well versed in a variety of techniques to
produce dependable cost effective designs.
THANK YOU EVERYBODY

More Related Content

What's hot

Interrupts
InterruptsInterrupts
Interrupts
Urwa Shanza
 
Input output organization
Input output organizationInput output organization
Input output organization
abdulugc
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
deval patel
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)
Gaditek
 
Input Output - Computer Architecture
Input Output - Computer ArchitectureInput Output - Computer Architecture
Input Output - Computer Architecture
Maruf Abdullah (Rion)
 
Instruction Execution Cycle
Instruction Execution CycleInstruction Execution Cycle
Instruction Execution Cycle
utsav_shah
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
Dilum Bandara
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)
Zubair Khalid
 
Interrupts
InterruptsInterrupts
Interrupts
Albin Panakkal
 
Computer architecture pipelining
Computer architecture pipeliningComputer architecture pipelining
Computer architecture pipelining
Mazin Alwaaly
 
Von Neumann Architecture
Von Neumann ArchitectureVon Neumann Architecture
Von Neumann Architecture
Chamodi Adikaram
 
DMA and DMA controller
DMA and DMA controllerDMA and DMA controller
DMA and DMA controller
nishant upadhyay
 
Interrupt
InterruptInterrupt
Interrupt
Siddique Ibrahim
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
shubham kuwar
 
Instruction cycle with interrupts
Instruction cycle with interruptsInstruction cycle with interrupts
Instruction cycle with interrupts
Shubham Jain
 
Control Unit Design
Control Unit DesignControl Unit Design
Control Unit Design
Vinit Raut
 
DMA operation
DMA operationDMA operation
DMA operation
Imran Khan
 
Stack organization
Stack organizationStack organization
Stack organization
chauhankapil
 
Direct Memory Access ppt
Direct Memory Access pptDirect Memory Access ppt
Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organization
chidabdu
 

What's hot (20)

Interrupts
InterruptsInterrupts
Interrupts
 
Input output organization
Input output organizationInput output organization
Input output organization
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)
 
Input Output - Computer Architecture
Input Output - Computer ArchitectureInput Output - Computer Architecture
Input Output - Computer Architecture
 
Instruction Execution Cycle
Instruction Execution CycleInstruction Execution Cycle
Instruction Execution Cycle
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)
 
Interrupts
InterruptsInterrupts
Interrupts
 
Computer architecture pipelining
Computer architecture pipeliningComputer architecture pipelining
Computer architecture pipelining
 
Von Neumann Architecture
Von Neumann ArchitectureVon Neumann Architecture
Von Neumann Architecture
 
DMA and DMA controller
DMA and DMA controllerDMA and DMA controller
DMA and DMA controller
 
Interrupt
InterruptInterrupt
Interrupt
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
 
Instruction cycle with interrupts
Instruction cycle with interruptsInstruction cycle with interrupts
Instruction cycle with interrupts
 
Control Unit Design
Control Unit DesignControl Unit Design
Control Unit Design
 
DMA operation
DMA operationDMA operation
DMA operation
 
Stack organization
Stack organizationStack organization
Stack organization
 
Direct Memory Access ppt
Direct Memory Access pptDirect Memory Access ppt
Direct Memory Access ppt
 
Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organization
 

Similar to Io techniques & its types

comporgppt.pptx
comporgppt.pptxcomporgppt.pptx
comporgppt.pptx
FaisalAijaz1
 
I/o management and disk scheduling .pptx
I/o management and disk scheduling .pptxI/o management and disk scheduling .pptx
I/o management and disk scheduling .pptx
webip34973
 
I/O Organization
I/O OrganizationI/O Organization
I/O Organization
Dhaval Bagal
 
Lecture 9.pptx
Lecture 9.pptxLecture 9.pptx
Lecture 9.pptx
JavedIqbal549896
 
IO_ORGANIZATION.pdf
IO_ORGANIZATION.pdfIO_ORGANIZATION.pdf
IO_ORGANIZATION.pdf
GaganaPurshothama
 
Chapter 4
Chapter 4Chapter 4
chapter7-input-output-COMPUTER organization.pdf
chapter7-input-output-COMPUTER organization.pdfchapter7-input-output-COMPUTER organization.pdf
chapter7-input-output-COMPUTER organization.pdf
SangitaBose2
 
I/O systems chapter 12 OS
I/O systems chapter 12 OS I/O systems chapter 12 OS
I/O systems chapter 12 OS
ssuser45ae56
 
Ch12 io systems
Ch12   io systemsCh12   io systems
Ch12 io systems
Welly Dian Astika
 
1.instrumentation ii
1.instrumentation ii1.instrumentation ii
1.instrumentation ii
Bikash Gyawali
 
In out system
In out systemIn out system
In out system
Agnas Jasmine
 
computer system structure
computer system structurecomputer system structure
computer system structure
HAMZA AHMED
 
Ch 7 io_management &amp; disk scheduling
Ch 7 io_management &amp; disk schedulingCh 7 io_management &amp; disk scheduling
Ch 7 io_management &amp; disk scheduling
madhuributani
 
Input output module
Input output moduleInput output module
Input output module
Muhammad Ishaq
 
Unit v: Device Management
Unit v: Device ManagementUnit v: Device Management
Unit v: Device Management
Arnav Chowdhury
 
Chapter 7
Chapter 7Chapter 7
Chapter 7
talhashahid40
 
Chapter-05-IO (2).ppt
Chapter-05-IO (2).pptChapter-05-IO (2).ppt
Chapter-05-IO (2).ppt
MyName1sJeff
 
Io management disk scheduling algorithm
Io management disk scheduling algorithmIo management disk scheduling algorithm
Io management disk scheduling algorithm
lalithambiga kamaraj
 
Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003
Swathi Veeradhi
 
Report in SAD
Report in SADReport in SAD
Report in SAD
jesseledm
 

Similar to Io techniques & its types (20)

comporgppt.pptx
comporgppt.pptxcomporgppt.pptx
comporgppt.pptx
 
I/o management and disk scheduling .pptx
I/o management and disk scheduling .pptxI/o management and disk scheduling .pptx
I/o management and disk scheduling .pptx
 
I/O Organization
I/O OrganizationI/O Organization
I/O Organization
 
Lecture 9.pptx
Lecture 9.pptxLecture 9.pptx
Lecture 9.pptx
 
IO_ORGANIZATION.pdf
IO_ORGANIZATION.pdfIO_ORGANIZATION.pdf
IO_ORGANIZATION.pdf
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
chapter7-input-output-COMPUTER organization.pdf
chapter7-input-output-COMPUTER organization.pdfchapter7-input-output-COMPUTER organization.pdf
chapter7-input-output-COMPUTER organization.pdf
 
I/O systems chapter 12 OS
I/O systems chapter 12 OS I/O systems chapter 12 OS
I/O systems chapter 12 OS
 
Ch12 io systems
Ch12   io systemsCh12   io systems
Ch12 io systems
 
1.instrumentation ii
1.instrumentation ii1.instrumentation ii
1.instrumentation ii
 
In out system
In out systemIn out system
In out system
 
computer system structure
computer system structurecomputer system structure
computer system structure
 
Ch 7 io_management &amp; disk scheduling
Ch 7 io_management &amp; disk schedulingCh 7 io_management &amp; disk scheduling
Ch 7 io_management &amp; disk scheduling
 
Input output module
Input output moduleInput output module
Input output module
 
Unit v: Device Management
Unit v: Device ManagementUnit v: Device Management
Unit v: Device Management
 
Chapter 7
Chapter 7Chapter 7
Chapter 7
 
Chapter-05-IO (2).ppt
Chapter-05-IO (2).pptChapter-05-IO (2).ppt
Chapter-05-IO (2).ppt
 
Io management disk scheduling algorithm
Io management disk scheduling algorithmIo management disk scheduling algorithm
Io management disk scheduling algorithm
 
Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003
 
Report in SAD
Report in SADReport in SAD
Report in SAD
 

Recently uploaded

Conducting exciting academic research in Computer Science
Conducting exciting academic research in Computer ScienceConducting exciting academic research in Computer Science
Conducting exciting academic research in Computer Science
Abhik Roychoudhury
 
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUMENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
HappieMontevirgenCas
 
NationalLearningCamp-2024-Orientation-for-RO-SDO.pptx
NationalLearningCamp-2024-Orientation-for-RO-SDO.pptxNationalLearningCamp-2024-Orientation-for-RO-SDO.pptx
NationalLearningCamp-2024-Orientation-for-RO-SDO.pptx
CelestineMiranda
 
Chapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptx
Chapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptxChapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptx
Chapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptx
Brajeswar Paul
 
Tales of Two States: A Comparative Study of Language and Literature in Kerala...
Tales of Two States: A Comparative Study of Language and Literature in Kerala...Tales of Two States: A Comparative Study of Language and Literature in Kerala...
Tales of Two States: A Comparative Study of Language and Literature in Kerala...
joshanmath
 
The basics of sentences session 9pptx.pptx
The basics of sentences session 9pptx.pptxThe basics of sentences session 9pptx.pptx
The basics of sentences session 9pptx.pptx
heathfieldcps1
 
Still I Rise by Maya Angelou | Summary and Analysis
Still I Rise by Maya Angelou | Summary and AnalysisStill I Rise by Maya Angelou | Summary and Analysis
Still I Rise by Maya Angelou | Summary and Analysis
Rajdeep Bavaliya
 
Debts of gratitude 4meanings announcement format.pptx
Debts of gratitude 4meanings announcement format.pptxDebts of gratitude 4meanings announcement format.pptx
Debts of gratitude 4meanings announcement format.pptx
AncyTEnglish
 
Satta Matka Dpboss Kalyan Matka Results Kalyan Chart
Satta Matka Dpboss Kalyan Matka Results Kalyan ChartSatta Matka Dpboss Kalyan Matka Results Kalyan Chart
Satta Matka Dpboss Kalyan Matka Results Kalyan Chart
Mohit Tripathi
 
NLC English 7 Consolidation Lesson plan for teacher
NLC English 7 Consolidation Lesson plan for teacherNLC English 7 Consolidation Lesson plan for teacher
NLC English 7 Consolidation Lesson plan for teacher
AngelicaLubrica
 
Front Desk Management in the Odoo 17 ERP
Front Desk  Management in the Odoo 17 ERPFront Desk  Management in the Odoo 17 ERP
Front Desk Management in the Odoo 17 ERP
Celine George
 
Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17
Celine George
 
Traces of the Holocaust in our communities in Levice Sovakia and Constanta Ro...
Traces of the Holocaust in our communities in Levice Sovakia and Constanta Ro...Traces of the Holocaust in our communities in Levice Sovakia and Constanta Ro...
Traces of the Holocaust in our communities in Levice Sovakia and Constanta Ro...
Zuzana Mészárosová
 
No, it's not a robot: prompt writing for investigative journalism
No, it's not a robot: prompt writing for investigative journalismNo, it's not a robot: prompt writing for investigative journalism
No, it's not a robot: prompt writing for investigative journalism
Paul Bradshaw
 
debts of gratitude 2 detailed meaning and certificate of appreciation.pptx
debts of gratitude 2 detailed meaning and certificate of appreciation.pptxdebts of gratitude 2 detailed meaning and certificate of appreciation.pptx
debts of gratitude 2 detailed meaning and certificate of appreciation.pptx
AncyTEnglish
 
Principles of Roods Approach!!!!!!!.pptx
Principles of Roods Approach!!!!!!!.pptxPrinciples of Roods Approach!!!!!!!.pptx
Principles of Roods Approach!!!!!!!.pptx
ibtesaam huma
 
UNIT 5 - PATIENT SAFETY & CLINICAL RISK.pptx
UNIT 5 - PATIENT SAFETY & CLINICAL RISK.pptxUNIT 5 - PATIENT SAFETY & CLINICAL RISK.pptx
UNIT 5 - PATIENT SAFETY & CLINICAL RISK.pptx
hemaxiparmar
 
Webinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional SkillsWebinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional Skills
EduSkills OECD
 
The Jewish Trinity : Sabbath,Shekinah and Sanctuary 4.pdf
The Jewish Trinity : Sabbath,Shekinah and Sanctuary 4.pdfThe Jewish Trinity : Sabbath,Shekinah and Sanctuary 4.pdf
The Jewish Trinity : Sabbath,Shekinah and Sanctuary 4.pdf
JackieSparrow3
 
The membership Module in the Odoo 17 ERP
The membership Module in the Odoo 17 ERPThe membership Module in the Odoo 17 ERP
The membership Module in the Odoo 17 ERP
Celine George
 

Recently uploaded (20)

Conducting exciting academic research in Computer Science
Conducting exciting academic research in Computer ScienceConducting exciting academic research in Computer Science
Conducting exciting academic research in Computer Science
 
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUMENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
 
NationalLearningCamp-2024-Orientation-for-RO-SDO.pptx
NationalLearningCamp-2024-Orientation-for-RO-SDO.pptxNationalLearningCamp-2024-Orientation-for-RO-SDO.pptx
NationalLearningCamp-2024-Orientation-for-RO-SDO.pptx
 
Chapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptx
Chapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptxChapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptx
Chapter-2-Era-of-One-party-Dominance-Class-12-Political-Science-Notes-2 (1).pptx
 
Tales of Two States: A Comparative Study of Language and Literature in Kerala...
Tales of Two States: A Comparative Study of Language and Literature in Kerala...Tales of Two States: A Comparative Study of Language and Literature in Kerala...
Tales of Two States: A Comparative Study of Language and Literature in Kerala...
 
The basics of sentences session 9pptx.pptx
The basics of sentences session 9pptx.pptxThe basics of sentences session 9pptx.pptx
The basics of sentences session 9pptx.pptx
 
Still I Rise by Maya Angelou | Summary and Analysis
Still I Rise by Maya Angelou | Summary and AnalysisStill I Rise by Maya Angelou | Summary and Analysis
Still I Rise by Maya Angelou | Summary and Analysis
 
Debts of gratitude 4meanings announcement format.pptx
Debts of gratitude 4meanings announcement format.pptxDebts of gratitude 4meanings announcement format.pptx
Debts of gratitude 4meanings announcement format.pptx
 
Satta Matka Dpboss Kalyan Matka Results Kalyan Chart
Satta Matka Dpboss Kalyan Matka Results Kalyan ChartSatta Matka Dpboss Kalyan Matka Results Kalyan Chart
Satta Matka Dpboss Kalyan Matka Results Kalyan Chart
 
NLC English 7 Consolidation Lesson plan for teacher
NLC English 7 Consolidation Lesson plan for teacherNLC English 7 Consolidation Lesson plan for teacher
NLC English 7 Consolidation Lesson plan for teacher
 
Front Desk Management in the Odoo 17 ERP
Front Desk  Management in the Odoo 17 ERPFront Desk  Management in the Odoo 17 ERP
Front Desk Management in the Odoo 17 ERP
 
Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17
 
Traces of the Holocaust in our communities in Levice Sovakia and Constanta Ro...
Traces of the Holocaust in our communities in Levice Sovakia and Constanta Ro...Traces of the Holocaust in our communities in Levice Sovakia and Constanta Ro...
Traces of the Holocaust in our communities in Levice Sovakia and Constanta Ro...
 
No, it's not a robot: prompt writing for investigative journalism
No, it's not a robot: prompt writing for investigative journalismNo, it's not a robot: prompt writing for investigative journalism
No, it's not a robot: prompt writing for investigative journalism
 
debts of gratitude 2 detailed meaning and certificate of appreciation.pptx
debts of gratitude 2 detailed meaning and certificate of appreciation.pptxdebts of gratitude 2 detailed meaning and certificate of appreciation.pptx
debts of gratitude 2 detailed meaning and certificate of appreciation.pptx
 
Principles of Roods Approach!!!!!!!.pptx
Principles of Roods Approach!!!!!!!.pptxPrinciples of Roods Approach!!!!!!!.pptx
Principles of Roods Approach!!!!!!!.pptx
 
UNIT 5 - PATIENT SAFETY & CLINICAL RISK.pptx
UNIT 5 - PATIENT SAFETY & CLINICAL RISK.pptxUNIT 5 - PATIENT SAFETY & CLINICAL RISK.pptx
UNIT 5 - PATIENT SAFETY & CLINICAL RISK.pptx
 
Webinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional SkillsWebinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional Skills
 
The Jewish Trinity : Sabbath,Shekinah and Sanctuary 4.pdf
The Jewish Trinity : Sabbath,Shekinah and Sanctuary 4.pdfThe Jewish Trinity : Sabbath,Shekinah and Sanctuary 4.pdf
The Jewish Trinity : Sabbath,Shekinah and Sanctuary 4.pdf
 
The membership Module in the Odoo 17 ERP
The membership Module in the Odoo 17 ERPThe membership Module in the Odoo 17 ERP
The membership Module in the Odoo 17 ERP
 

Io techniques & its types

  • 2. MEMBERS FOR THE PRESENTAION • NEHAL NAIK • DEVDATT NAIK • VIKAS NAIK
  • 3. I/O TECHNIQUES & ITS TYPES
  • 4. INTRODUCTION • Users interact with the computer system through Input and Output (I/O) devices such as keyboard, mouse, monitor and so on. I/O devices are also called peripherals. • I/O devices are used to exchange information between user and CPU. An I/O organization includes two major components namely I/O devices, I/O module. In addition it uses different techniques to exchange information namely programmed I/O, Interrupt I/O and Direct Memory Access (DMA).
  • 5. I/O TECHNIQUES • It is the technique of communication between memory and I/O devices. I/O techniques are categorized in three types based on how information is transfers between memory and I/O devices that whether it is using CPU interaction or Interrupt interaction.
  • 6. TECHNIQUES OF I/O • Programmed I/O : The CPU issues a command then waits for I/O operations to be complete. The CPU is faster than the I/O module then method is wasteful. • Interrupt Driven I/O : The CPU issues commands then proceeds with its normal work until interrupted by I/O device on completion of its work. • DMA : In this CPU and I/O Module exchange data without involvement of CPU. • Memory mapped I/O : Memory and I/O are treated as memory only. It means no signal like IO/M. • Isolated I/O : Address space of memory and I/O is isolated. It uses IO/M signal.
  • 8. Four design techniques  Multiple Interrupt Lines : In this method we have multiple lines like in IC 8085.  Software Polling : ISR polls to find out the device which has interrupted. The CPU reads a status register.The method is time consuming.  Daisy Chin : The method is hardware polling. The ack signal propagates through and is stopped by the device who is interrupted.  Bus Arbitration : In this method the device first gets control of bus and then raises an interrupt request for data transfer. The CPU issues an ack then the devices gives vector for branching
  • 9. I/O Steps • CPU checks I/O module device status • I/O module returns status • If ready, CPU requests data transfer • I/O module gets data from device • I/O module transfers data to CPU • Variations for output, DMA, etc.
  • 10. I/O Commands CPU issues address › Identifies module (& device if >1 per module) CPU issues command › Control - telling module what to do  e.g. spin up disk › Test - check status  e.g. power? Error? › Read/Write  Module transfers data via buffer from/to device
  • 11. Addressing I/O Devices • Under programmed I/O data transfer is very like memory access (CPU viewpoint) • Each device given unique identifier • CPU commands contain identifier (address)
  • 12. I/O Mapping • Memory mapped I/O – Devices and memory share an address space – I/O looks just like memory read/write – No special commands for I/O • Large selection of memory access commands available • Isolated I/O – Separate address spaces – Need I/O or memory select lines – Special commands for I/O • Limited set
  • 13. I/O Module I/O module is intermediate between I/O devices and CPU. System buses are connected to the one end of I/O module and other end is connected to the number of I/O devices. It used to exchange information between I/O devices and CPU. I/O devices cannot be directly connected to the system buses; they are connected to the system buses through module.
  • 14. I/O Module Diagram Data Register Status/Control Register External Device Interface Logic External Device Interface Logic Input Output Logic Data Lines Address Lines Data Lines Data Status Contro l Data Status Contro l Systems Bus Interface External Device Interface
  • 15. Functions of I/O Module The major functions of modules are categorized as follows 1.Control and Timing - In some of the I/O operation few resources shared such as CPU and memory because CPU communicates with more than one device at a time. 2.Processor Communication - I/O module communicates with the CPU and I/O devices
  • 16. Features of I/O Module • Data Buffering - As I/O devices are much slower than CPU and memory. In order to maintain speed of data flow between I/O devices and internal resources, I/O module buffers data. • Error Detection - It is built- in feature of I/O module that detects electrical and mechanical errors.
  • 18. Control and Timing • CPU asks I/O module to check the status of attached device. • I/O module tells the status. • CPU requests for data transfer to I/O module if device is ready. • I/O module gathers the data and transfers to the CPU.
  • 19. Interrupts • CPU interrupt request line triggered by I/O devices • Interrupt handler receives interrupt • Maskable to ignore or delay some interrupts • Interrupt vector to dispatch interrupt to correct handler • Based on priorty • Some unmaskable • Interrupt mechanism also used for exceptions
  • 21. Multiple interrupts • The techniques above not only identify the requesting I/O module but provide • methods of assigning priorities • Multiple lines – processor picks line with highest priority • Software polling – polling order determines priority • Daisy chain – daisy chain order of the modules determines priority • Bus arbitration – arbitration scheme determines priority
  • 22. Interrupt Driven I/O • Overcomes CPU waiting • No repeated CPU checking of device • I/O module interrupts when ready
  • 23. Conclusions • Designing dependable I/O systems has two aspects: individual I/O and redundancy. The design of dependable individual I/O has a variety of aspects including EMC, shock/vibration, environment, A/D and D/A conversion, diagnostics, testing and calibration. Each can present special challenges for the embedded designer in terms of cost or accessibility concerns. All of the redundancy methods, including diversity, interlocks, and human interaction, should be considered to address the safety concerns of an embedded system. • Two new trends in I/O design are important: Fieldbus and Intelligent I/O. These promise increased functionality and lower cost. The primary challenge to acceptance of these techniques is standardization to achieve interoperability. • The embedded I/O designer must be well versed in a variety of techniques to produce dependable cost effective designs.