Asynchronous Data Transfer: Synchronous and Asynchronous Operations
Asynchronous Data Transfer: Synchronous and Asynchronous Operations
Asynchronous Data Transfer: Synchronous and Asynchronous Operations
Lecture 35
Asynchronous Data Transfer
Synchronous and Asynchronous Operations
Synchronous - All devices derive the timing information from common clock line
Asynchronous - No common clock
Handshaking
- A control signal is accompanied with each data being transmitted to
indicate the presence of data
- The receiving unit responds with another control signal to acknowledge
receipt of the data
Input/Output Organization 2
Lecture 35
Strobe Control
* Employs a single control line to time each transfer
* The strobe may be activated by either the source or the destination
unit
Timing Diagram
Valid data Valid data
Data Data
Strobe Strobe
Which of the following methods of data transfer belongs to
Asynchronous data transfer?
a) Strobe pulse
b) Handshaking
c) Both a and b
d) None of the above
Input/Output Organization 4
Lecture 35
Handshaking
Strobe Methods
Source-Initiated
Destination-Initiated
Valid data
Timing Diagram Data bus
Data valid
Data accepted
Handshaking
Block Diagram Source Data valid Destination
unit Ready for data unit
Data valid
Valid data
Data bus
Sequence of Events
Source unit Destination unit
Ready to accept data.
Place data on bus. Enable ready for data.
Enable data valid.
* Handshaking provides a high degree of flexibility and reliability because the successful
completion of a data transfer relies on active participation by both units
* If one unit is faulty, data transfer will not be completed -> Can be detected by means of a timeout
mechanism
Strobe pulse based data transfer method includes Acknowledgement. Is this
statement true or false?
TRUE
FALSE
Input/Output Organization 8
Lecture 35
Asynchronous Serial Transfer
Four Different Types of Transfer Asynchronous serial transfer
Synchronous serial transfer
Asynchronous parallel transfer
Synchronous parallel transfer
Asynchronous Serial Transfer
- Employs special bits which are inserted at both ends of the character code
- Each character consists of three parts; Start bit; Data bits; Stop bits.
1 1 0 0 0 1 0 1
Start Character bits Stop
bits
- When data are not being sent, the line is kept in the 1-state (idle state)
- The initiation of a character transmission is detected by a Start Bit , which is always a 0
- The character bits always follow the Start Bit
- After the last character , a Stop Bit is detected when the line returns to the 1-state for at
least 1 bit time
The receiver knows in advance the transfer rate of the bits and the number of
information bits to expect
Input/Output Organization 9
Lecture 36
Universal Asynchronous Receiver Transmitter
A typical asynchronous communication interface available as an IC
Transmit
Bidirectional Transmitter Shift data
data bus Bus register register
buffers
Internal Bus
and clock
Chip select CS
Status Receiver Receiver CS RS Oper. Register selected
RS Timing clock
register control 0 x x None
I/O read and and clock 1 0 WR Transmitter register
RD Control 1 1 WR Control register
I/O write Receive 1 0 RD Receiver register
WR Receiver Shift data
1 1 RD Status register
register register
Transmitter Register
- Accepts a data byte(from CPU) through the data bus
- Transferred to a shift register for serial transmission
Receiver
- Receives serial information into another shift register
- Complete data byte is sent to the receiver register
Status Register Bits
- Used for I/O flags and for recording errors
Control Register Bits
- Define baud rate, no. of bits in each character, whether to generate and check parity, and
no. of stop bits