Documente Academic
Documente Profesional
Documente Cultură
BILAL AHMAD.
HAJRA MASOOD.
SADAT IFTIKHAR.
I/O TECHNIQES
Example:
Monitor, printer, keyboard, mouse.
Machine readable:
communicating with equipment
Example:
Hard drive, CD ROM
Communication:
Bus
Functions of I/O modules.
The basic function of I/O modules are.
Control and timing.
Devices communication.
Processor’ s communication.
Error detection.
Data buffering.
Control
and
I/O module coordinate timing.
the flow
internal resources (CPU,RAM).
of data b/w external devices and
Device communication.
I/O devices communicate with system via I/O
module.
I/O device receive control signal and send interrupt signal to CPU
via I/O module.
I/O send status information to I/O module.
Processor’ s communication.
I/O module communicate with I/O devices
Exchange data.
Data buffering.
Data is buffered (temporarily stored) in I/O modules.
I/O module receive data from memory ,buffered it, send to I/O
device at it’s rate.
I/O module receive data from I/O device and send to memory
at it’s rate.
Input output techniques.
Programmed I/O.
CPU transfer data between I/O device and memory.
I/O MODULE
PERFORM TASK
I/O MODULE
UPDATE
STATUS
REGISTER.
CPU
CHECK
STATUS
Issues of programmed I/O.
The CPU needs waits for completion of data transfer.
I/O MODULE
LOAD DATA
I/O SEND
INTERUPPT TO
CPU
CPU SEND
COMMANDS
DATA TRANSFER
COMPLETED
Direct memory access.
CPU assign task to DMA controller.
(Execute other programs)
DMA controller take over control of bus from CPU.
(cycle stealing).
DMA controller perform data transfer.
DMA send interrupt when completed.
Direct memory access.
CPU ASSIGN
TASK
DMA CONTROLER
TAKE OVER BUS
DMA CONTROLER
TRANSFER DATA
DMA SEND
INTERRUPT TO
CPU.
Structure of Programmed I/O and DMA.
DMA
Evolutions of I/O techniques.
Processor directly controls device.
Processor uses Programmed I/O.
Processor uses Interrupts.
Processor uses DMA.
Some processing moved to processors in I/O module
that access programs in memory and execute them on
their own without CPU intervention (I/O Module
referred to as an I/O Channel).