Documente Academic
Documente Profesional
Documente Cultură
Isolated I/O:
2. Specific I/O machine instructions must be used.
Memory-mapped I/O
2. Same machine instructions are used both for
memory read/write and for I/O.
No special commands for I/O
Same machine instructions to access memory and I/O
devices
(communicate)
• Computer Main Memory, I/O devices,
peripheral devices
Interfacing needed
21
Modes of Transfer
There are THREE (3) methods for managing input and output:
a) Programming I/O (also known as polling)
b) Interrupt-driven I/O
c) Direct Memory Access (DMA)
Modes of Transfer
Interface
i/o module
System Bus
1 n
System Bus
Status Register
8 1
I/O
Status Register
‘ 0 ’ – Ready ( data is available )
‘ 1’ - Busy
Data Register/ data buffer
• Status register indicate the status
of device whether it is ready or
busy
Modes of Transfer
b) Interrupt-driven I/O
Simple idea
• it happens to people all time, such as
receiving a phone call when you are doing
some work.
2. In interrupt-driven I/O,
the device requests
service through a
special interrupt
request line that goes
directly to the CPU.
41
Priority Interrupt
1. Priority Interrupt is a system that determine
which condition is to be services first when two
or more request arrive simultaneously.
2. Highest priority interrupt are served first.
3. Device with high speed transfer are given high
priority and slow devices such keyboards
receive low priority.
4. When 2 devices interrupt the CPU at the same
time the CPU will service the device with
highest priority first.
44
Modes of Transfer
Controlled externally
DMA Controller
• DMA services are usually provided by DMA
controller, which is, itself a specialized
processor whose specialty is transferring
data directly to or from I/O devices and
memory.
• For this purpose, the DMA module must use the bus only
when the processor does not need it, or it must force the
processor to suspend operation temporarily.
The processor then continues with other work. It has given this
I/O operation to the DMA module. The DMA module transfers
the entire block of data, one word at a time, directly to or from
memory, without going through the processor.
1, 2,3,4