Professional Documents
Culture Documents
28-5-I O Fundamentals Handshaking, Buffering-20!10!2021 (20-Oct-2021) Material I 20-10-2021 Unit-5-Lecture1
28-5-I O Fundamentals Handshaking, Buffering-20!10!2021 (20-Oct-2021) Material I 20-10-2021 Unit-5-Lecture1
I/O fundamentals
Lecture 22
Introduction
• The I/O subsystem provides an efficient mode of
communication between CPU and outside
environment
• Devices that are under the direct control of
computer are said to be connected on-line
• Input or output devices attached to the computer
are also referred as peripherals.
• I/O interface provides a method for transferring
information between internal storage and
external i/o devices.
I/O interface
Resolves the differences between the computer and peripheral devices
• Peripherals - Electromechanical Devices and Electromagnetic
• CPU or Memory - Electronic Device
• - Unit of Information
• Peripherals - Byte
• CPU or Memory - Word
• - Operating Modes
• Peripherals - Autonomous, Asynchronous
• CPU or Memory - Synchronous
Input/Output Interfaces
Keyboard
and Printer Magnetic
disk
Magnetic
display tape
Each peripheral has an interface module associated with it
Interface
- Decodes the device address (device code)
- Decodes the commands (operation)
- Control command
- Status command
- Output data
- Input data
Typical I/O instruction
Op. code Device addressFunction code
(I/OCommand)
Asynchronous Data Transfer
Synchronous and asynchronous operations
Synchronous - All devices derive the timing
information from common clock line
Asynchronous - No common clock