Input / Output Organization 241
For example ( Figure 8.3 ), if devices A and B are to communicate in asynchronous manner (assum-
ing data ow from A to B), then initially A asks B (through some signals) ‘ Are you ready? ’ Device A
now keeps on waiting till it gets the reply from B like ‘ I am ready ’. Once it is assured that B is ready to
accept, A sends data proper along with another signal, which may be interpreted as ‘ Here is the data,
please accept it ’. After receiving the data, device B nally sends the acknowledgement signal to A, as
if saying ‘ I have received the data, thank you ’. After receiving this acknowledgement signal from B, A
start sending another set of data. Note that in this communication, the start of each phase is dependent
upon proper completion of the previous phase. A will not send another fresh set of data until it receives
the acknowledgement signal from B. Therefore, in asynchronous communication, extra handshaking
signals are necessary to complete the process without any fault, in spite of two devices operating under
different clock frequencies.
The above example of asynchronous data transfer between A and B is pictorially represented through
Figure 8.3 . This is a timing diagram, which represents signal changes with respect to time. The arrows
with a bubble at starting represent the cause and effect or in other words, the correlation between signal
changes. The bubble represents the cause and the arrowhead represents the effect. For example, we may
point out that the handshaking signal from B to A would go low only when B has received the handshak-
ing signal from A, being changed from high to low. Similarly, data will remain valid (unchanged) till A
receives the acknowledgement signal from B in the form of low-to-high transition.
It is already pointed out that asynchronous communication is essential when two devices are operating
in different clock frequencies. Example of these cases may be taken as the communication between the
computer and the printer or the communication between the computer and the keyboard. Both printer as
well as keyboard have their own processors inside, operating with their own individual frequencies, which
is different from the frequency of the processor inside the computer.
8.4 SERIAL AND PARALLEL COMMUNICATIONS
Asynchronous communication may be further classi ed as serial and parallel, depending upon number
of bits being transferred at the same instant. In serial communication, only one bit of information is
transferred at a time, while in parallel communication, multiple bits, generally 8 or 12 or 16, are trans-
ferred at the same time. Therefore, the requirement of number of transmission lines necessary to connect
two communicating devices would be less for serial communication than that is required for parallel
communication. However, the speed of data transfer would be faster in case of parallel communication
than the speed of serial communication.
From our common sense, we may conclude that an 8-bit parallel communication would be eight
times faster than serial communication. However, if we take into account the addition and then
deletion of start bits and stop bits and the number of bits to be transmitted per byte in serial
communication, we shall find that 8-bit parallel communication is more than eight times faster
than serial communication.
F
O
O
D
F
O
R
T
H
O
U
G
H
T
M08_GHOS1557_01_SE_C08.indd 241M08_GHOS1557_01_SE_C08.indd 241 4/29/11 5:14 PM4/29/11 5:14 PM