Professional Documents
Culture Documents
Introduction
• Data transmission in computer systems using two
methods like as serial and parallel.
Serial Parallel
• Serial means the various bits of data are • Parallel means all the bits of data are
transmitted serially one after the other by transmitted simultaneously on separate
using only one wire. wire.
3. I/O module performs the requested action and then sets the appropriate
bits in the I/O status register
4.I/O module takes no further action to alert the processor – it does not
interrupt the processor
5.The processor periodically checks the status of the I/O module until it
determines that the operation is complete.
17
Example of process:
1. CPU/ Processor checks status of
device by looking at status register in
I/O module.
2. If status register of device 1 is ready
(set to 0) - data will be put into bus
data and send to CPU to deal it.
3. If status register of device 1 is busy
(set to 1) – CPU will polling other
devices to check the status of
devices.
4. If data is ready in data register, it can
be effective data transfer because
data can be input / output depending
on what is particular task to be
execute.
19
b)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.
b) Interrupt-driven I/O
• The weakness 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.
• So how to overcome?
22
The I/O module will then interrupt the processor to request service
when it is ready to exchange data with the processor.
The processor then executes the data transfer, as before, and then
resumes its former processing.
Simple idea
• It happens to people all time, such as
receiving a phone call when you are doing
some work.
• Reduce time and cost in such a way that interrupt only occurs when the
processor receives an interrupt signal. (compare with programming I/O
method)
Priority Interrupt
1. Priority Interrupt is a system that determine which
condition is to be services first when two or more
request arrive simultaneously.
In this mode, the I/O module and main memory exchange data
directly, without processor involvement.
Direct Memory Access (DMA)
• In DMA,
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
EXERCISE 1.4
1. Give two differences between serial and parallel
transfer.
2. State the type of communications that transmit
character of data in byte size in one time.
3. Draw the diagram of data transmissions of
“11001100” by using asynchronous serial transfer.
4. Draw the diagram of data transmissions of
“11001100” by using asynchronous serial transfer.
( using even parity)
40
41
Direct Memory Access The CPU does not access a device until it
needs servicing,