SlideShare a Scribd company logo
1 of 22
I/O ports
GROUP MEMBERS
Zia u rehman
Azhar tahir
Muhammad Aslam2
What is i/o ports ?
A Computer Port is an interface or a point of connection
between the computer and its peripheral devices. Some of
the common peripherals are mouse, keyboard, monitor or
display unit, printer, speaker, flash drive etc.
The main function of a computer port is to act as a point
of attachment, where the cable from the peripheral can be
plugged in and allows data to flow from and to the device
Types of ports
There are two types of i/o ports
Serial ports
Parallel ports
Parallel ports
A parallel port is an interface through which
the peripheral communicates with a
computer in a parallel manner.
DB-25 port with parallel interface
Serial ports
A serial port is an interface through which
peripherals can be connected using a serial
protocol which involves the transmission of
data one bit at a time over a single
communication line.
Some ports you may know
VGA Port
VGA port is found in many computers, projectors, video
cards and High Definition TVs. This connector is known as
DE-15.
VGA port is the main interface between computers and
older CRT monitors. Even the modern LCD and LED
monitors support VGA ports but the picture quality is
reduced.
Digital Video Interface (DVI)
DVI is a high speed digital interface between a display
controller like a computer and a display device like a
monitor. It was developed with an aim of transmitting
lossless digital video signals and replace the analogue
VGA technology.
HDMI (High Definition Media Interface)
HDMI is a digital interface to connect High Definition and Ultra
High Definition devices like Computer monitors, HDTVs, Blu-Ray
players, gaming consoles, High Definition Cameras etc.
HDMI can be used to carry uncompressed video and
compressed or uncompressed audio signals. The HDMI port of
type A is shown below.
USB
Universal Serial Bus (USB) replaced serial ports, parallel
ports, PS/2 connectors, game ports and power chargers
for portable devices.
Input output system
One of the important jobs of an Operating System is
to manage various I/O devices including mouse,
keyboards, touch pad, disk drives etc.
Device Controllers
Any device which is connected to the computer use a socket
and plug to connect with each other.
It communicates with CPU in binary.
It contains its on register and buffer plays an important role in
communication b/w i/o devices and CPU like a bridge.
Device Driver:
It is a software which is an interface b/w
OS and device controller. It tells the device
Controller that how to control the I/O device.
Device drivers are software modules that can be
plugged into an OS to handle a particular device.
Operating System takes help from device drivers to
handle all I/O devices.
Input Output
Mechanism
• Programmed I/O
• Interrupts
• DMA (Direct memory Access)
The processor executes a program that gives it direct
control of the I/O operation, including sensing device
status, sending a read or write command, and
transferring the data. When the
processor issues a command to the I/O module, it must
wait until the I/O operation is complete.
If the processor is faster than the I/O module, this is
wasteful of processor time.
Programmed I/O
I/O Commands
To execute an I/O-related instruction, the processor
issues an address, specifying
the particular I/O module and external device, and an
I/O command. There are
four types of I/O commands that an I/O module may
receive when it is addressed
by a processor:
1) Control 2) Test 3) Read 4) Write
Control: Used to activate a peripheral and tell it what to do.
For example, a
magnetic-tape unit may be instructed to rewind or to move
forward one record.
Test: Used to test various status conditions associated with
an I/O module and its peripherals. The processor will want to
know that the peripheral of interest is powered on and
available for use.
Read: Causes the I/O module to obtain an item of data from
the peripheral and place it in an internal buffer.
The processor can then obtain the data item by requesting that
the I/O module place it on the data bus.
Write:
Causes the I/O module to take an item of data (byte
or word) from the
data bus and later transmit that data item to the
peripheral.
Interrupts
The problem with programmed I/O is that the processor has
to wait a long time for the I/O module of concern to be ready for
either reception or transmission of data.
An alternative is for the processor to issue an I/O command
to a module and then go on to do some other useful work.
The I/O module will then interrupt the processor to request
service when it is ready to exchange data with the processor.
For input, the I/O module receives a READ command
from the processor. The I/O
module then proceeds to read data in from an
associated peripheral. Once the data
are in the module’s data register, the module signals an
interrupt to the processor over a control line.
The module then waits until its data are requested by
the processor.
When the request is made, the module places its data
on the data bus and is then
ready for another I/O operation.
Interrupts
DMA (Direct memory Access)
Direct memory access (DMA) is a feature of computer
systems that allows certain hardware subsystems to access
main system memory (RAM), independent of the CPU.
DMA involves an additional module on the system bus. The
DMA uses the system bus to transfer the data to and from
the memory only when the processor does not need it or it
force the processor to suspend operation temporarily.
When the processor wishes to read or write a block of data, it
issues a command
to the DMA module.
input output ports

More Related Content

What's hot (20)

Usb universal serial bus
Usb   universal serial busUsb   universal serial bus
Usb universal serial bus
 
Cpu presentation
Cpu presentationCpu presentation
Cpu presentation
 
motherboard
motherboardmotherboard
motherboard
 
Computer hardware and its components
Computer hardware and its componentsComputer hardware and its components
Computer hardware and its components
 
Chap1 chipset
Chap1 chipsetChap1 chipset
Chap1 chipset
 
Computer hardware component. ppt
Computer hardware component. pptComputer hardware component. ppt
Computer hardware component. ppt
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
 
Cpu ppt cse
Cpu ppt cseCpu ppt cse
Cpu ppt cse
 
computer memory and memory module
computer memory and memory modulecomputer memory and memory module
computer memory and memory module
 
Motherboard ppt
Motherboard pptMotherboard ppt
Motherboard ppt
 
CPU Architecture
CPU ArchitectureCPU Architecture
CPU Architecture
 
Internal components of the computer
Internal components of the computerInternal components of the computer
Internal components of the computer
 
Computer memory & Memory Storage Devices.
Computer memory & Memory Storage Devices.Computer memory & Memory Storage Devices.
Computer memory & Memory Storage Devices.
 
Computer System Organization
Computer System OrganizationComputer System Organization
Computer System Organization
 
Input & Output
Input & OutputInput & Output
Input & Output
 
Introduction to computer hardware
Introduction to computer hardwareIntroduction to computer hardware
Introduction to computer hardware
 
Accessing I/O Devices
Accessing I/O DevicesAccessing I/O Devices
Accessing I/O Devices
 
Computer hardware troubleshooting
Computer hardware troubleshootingComputer hardware troubleshooting
Computer hardware troubleshooting
 
Usb
UsbUsb
Usb
 
Computer architecture control unit
Computer architecture control unitComputer architecture control unit
Computer architecture control unit
 

Similar to input output ports

IOhardware_operting_systems_2022_libya.pdf
IOhardware_operting_systems_2022_libya.pdfIOhardware_operting_systems_2022_libya.pdf
IOhardware_operting_systems_2022_libya.pdfaptinstallpython3
 
IO SYSTEM AND CASE STUDY STRUCTURE
IO SYSTEM AND CASE STUDY STRUCTUREIO SYSTEM AND CASE STUDY STRUCTURE
IO SYSTEM AND CASE STUDY STRUCTUREHariharan Anand
 
Ch # 04 computer hardware
Ch # 04 computer hardware Ch # 04 computer hardware
Ch # 04 computer hardware MuhammadRobeel3
 
Operating System Case Study and I/O System
Operating System Case Study and I/O SystemOperating System Case Study and I/O System
Operating System Case Study and I/O Systemprakash ganesan
 
Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organizationMazin Alwaaly
 
Hardware I/O organization
Hardware  I/O organization Hardware  I/O organization
Hardware I/O organization faria_khan
 
inputoutput_organization__Morrismano.ppt
inputoutput_organization__Morrismano.pptinputoutput_organization__Morrismano.ppt
inputoutput_organization__Morrismano.pptSeliMohapatra1
 
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
 
Itc lec 3 Ip cycle , system unit, interface
Itc lec 3 Ip cycle , system unit, interfaceItc lec 3 Ip cycle , system unit, interface
Itc lec 3 Ip cycle , system unit, interfaceAnzaDar3
 
Input Output - Computer Architecture
Input Output - Computer ArchitectureInput Output - Computer Architecture
Input Output - Computer ArchitectureMaruf Abdullah (Rion)
 
CO--MODULE-1 (b) - Input-Output-Organization.pptx
CO--MODULE-1 (b) - Input-Output-Organization.pptxCO--MODULE-1 (b) - Input-Output-Organization.pptx
CO--MODULE-1 (b) - Input-Output-Organization.pptxahmedsalik057
 
IO and file systems
IO and file systems IO and file systems
IO and file systems EktaVaswani2
 
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
 

Similar to input output ports (20)

IOhardware_operting_systems_2022_libya.pdf
IOhardware_operting_systems_2022_libya.pdfIOhardware_operting_systems_2022_libya.pdf
IOhardware_operting_systems_2022_libya.pdf
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
IO SYSTEM AND CASE STUDY STRUCTURE
IO SYSTEM AND CASE STUDY STRUCTUREIO SYSTEM AND CASE STUDY STRUCTURE
IO SYSTEM AND CASE STUDY STRUCTURE
 
Ch # 04 computer hardware
Ch # 04 computer hardware Ch # 04 computer hardware
Ch # 04 computer hardware
 
Operating System Case Study and I/O System
Operating System Case Study and I/O SystemOperating System Case Study and I/O System
Operating System Case Study and I/O System
 
IO_ORGANIZATION.pdf
IO_ORGANIZATION.pdfIO_ORGANIZATION.pdf
IO_ORGANIZATION.pdf
 
Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organization
 
Hardware I/O organization
Hardware  I/O organization Hardware  I/O organization
Hardware I/O organization
 
inputoutput_organization__Morrismano.ppt
inputoutput_organization__Morrismano.pptinputoutput_organization__Morrismano.ppt
inputoutput_organization__Morrismano.ppt
 
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
 
Itc lec 3 Ip cycle , system unit, interface
Itc lec 3 Ip cycle , system unit, interfaceItc lec 3 Ip cycle , system unit, interface
Itc lec 3 Ip cycle , system unit, interface
 
ICT unit p1
ICT unit p1ICT unit p1
ICT unit p1
 
Input Output - Computer Architecture
Input Output - Computer ArchitectureInput Output - Computer Architecture
Input Output - Computer Architecture
 
I/O Management
I/O ManagementI/O Management
I/O Management
 
CO--MODULE-1 (b) - Input-Output-Organization.pptx
CO--MODULE-1 (b) - Input-Output-Organization.pptxCO--MODULE-1 (b) - Input-Output-Organization.pptx
CO--MODULE-1 (b) - Input-Output-Organization.pptx
 
IO and file systems
IO and file systems IO and file systems
IO and file systems
 
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
 
Unit 6
Unit 6Unit 6
Unit 6
 
Input-Output Modules
Input-Output ModulesInput-Output Modules
Input-Output Modules
 
ICT 1
ICT 1ICT 1
ICT 1
 

Recently uploaded

Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
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
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 

Recently uploaded (20)

Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
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
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 

input output ports

  • 2. GROUP MEMBERS Zia u rehman Azhar tahir Muhammad Aslam2
  • 3. What is i/o ports ? A Computer Port is an interface or a point of connection between the computer and its peripheral devices. Some of the common peripherals are mouse, keyboard, monitor or display unit, printer, speaker, flash drive etc. The main function of a computer port is to act as a point of attachment, where the cable from the peripheral can be plugged in and allows data to flow from and to the device
  • 4. Types of ports There are two types of i/o ports Serial ports Parallel ports
  • 5. Parallel ports A parallel port is an interface through which the peripheral communicates with a computer in a parallel manner. DB-25 port with parallel interface
  • 6. Serial ports A serial port is an interface through which peripherals can be connected using a serial protocol which involves the transmission of data one bit at a time over a single communication line.
  • 7. Some ports you may know VGA Port VGA port is found in many computers, projectors, video cards and High Definition TVs. This connector is known as DE-15. VGA port is the main interface between computers and older CRT monitors. Even the modern LCD and LED monitors support VGA ports but the picture quality is reduced.
  • 8. Digital Video Interface (DVI) DVI is a high speed digital interface between a display controller like a computer and a display device like a monitor. It was developed with an aim of transmitting lossless digital video signals and replace the analogue VGA technology.
  • 9. HDMI (High Definition Media Interface) HDMI is a digital interface to connect High Definition and Ultra High Definition devices like Computer monitors, HDTVs, Blu-Ray players, gaming consoles, High Definition Cameras etc. HDMI can be used to carry uncompressed video and compressed or uncompressed audio signals. The HDMI port of type A is shown below.
  • 10. USB Universal Serial Bus (USB) replaced serial ports, parallel ports, PS/2 connectors, game ports and power chargers for portable devices.
  • 11. Input output system One of the important jobs of an Operating System is to manage various I/O devices including mouse, keyboards, touch pad, disk drives etc.
  • 12. Device Controllers Any device which is connected to the computer use a socket and plug to connect with each other. It communicates with CPU in binary. It contains its on register and buffer plays an important role in communication b/w i/o devices and CPU like a bridge.
  • 13. Device Driver: It is a software which is an interface b/w OS and device controller. It tells the device Controller that how to control the I/O device. Device drivers are software modules that can be plugged into an OS to handle a particular device. Operating System takes help from device drivers to handle all I/O devices.
  • 14. Input Output Mechanism • Programmed I/O • Interrupts • DMA (Direct memory Access)
  • 15. The processor executes a program that gives it direct control of the I/O operation, including sensing device status, sending a read or write command, and transferring the data. When the processor issues a command to the I/O module, it must wait until the I/O operation is complete. If the processor is faster than the I/O module, this is wasteful of processor time. Programmed I/O
  • 16. I/O Commands To execute an I/O-related instruction, the processor issues an address, specifying the particular I/O module and external device, and an I/O command. There are four types of I/O commands that an I/O module may receive when it is addressed by a processor: 1) Control 2) Test 3) Read 4) Write
  • 17. Control: Used to activate a peripheral and tell it what to do. For example, a magnetic-tape unit may be instructed to rewind or to move forward one record. Test: Used to test various status conditions associated with an I/O module and its peripherals. The processor will want to know that the peripheral of interest is powered on and available for use. Read: Causes the I/O module to obtain an item of data from the peripheral and place it in an internal buffer. The processor can then obtain the data item by requesting that the I/O module place it on the data bus.
  • 18. Write: Causes the I/O module to take an item of data (byte or word) from the data bus and later transmit that data item to the peripheral.
  • 19. Interrupts The problem with programmed I/O is that the processor has to wait a long time for the I/O module of concern to be ready for either reception or transmission of data. An alternative is for the processor to issue an I/O command to a module and then go on to do some other useful work. The I/O module will then interrupt the processor to request service when it is ready to exchange data with the processor.
  • 20. For input, the I/O module receives a READ command from the processor. The I/O module then proceeds to read data in from an associated peripheral. Once the data are in the module’s data register, the module signals an interrupt to the processor over a control line. The module then waits until its data are requested by the processor. When the request is made, the module places its data on the data bus and is then ready for another I/O operation. Interrupts
  • 21. DMA (Direct memory Access) Direct memory access (DMA) is a feature of computer systems that allows certain hardware subsystems to access main system memory (RAM), independent of the CPU. DMA involves an additional module on the system bus. The DMA uses the system bus to transfer the data to and from the memory only when the processor does not need it or it force the processor to suspend operation temporarily. When the processor wishes to read or write a block of data, it issues a command to the DMA module.