NPEDUCATIONS, Electronic circuits development, electronics tutorials, microcontroller tutorials and projects, advanced microcontroller (ARM) based tutorials and projects, Embedded c development, Embedded c for ARM cortex M, Intel IoT based projects, IoT projects, CC3200 launch pad projects, MSP430 Launchpad tutorials and projects, Tiva C launch pad tutorials and projects, 8051 tutorials and projects, sensor interfacing with microcontroller tutorials, data communications and networking tutorials, peripheral interfacing with microcontroller, led message scrolling display, arduino based tutorials and projects, intel galileo based tutorials and project, ADC interfacing tutorials, LED Blinking, LCD interfacing, Embedded System tutorials and projects, B.tech projects, M.tech projects, online Embedded C training

FUNDAMENTALS OF DATA COMMUNICATIONS - PART2

In this tutorial, we will see the types of serial communication and clear idea about it.


Types of Serial Communication:

Even thought the parallel communication got lot advantages over the serial communication, unfortunately the serial communication got popular for its less cost. Because of the fact, that the not all peripherals that are connected to computer or processors required high speed data communication.
Based on the format of data to be transmitted or received over the serial communication, it is divided into three types.
a.   Synchronous Serial Communication
b.   Asynchronous Serial Communication
c.   Isochronous Serial Communication

Synchronous Serial Communication: In this, the two or more devices which are involved in communication must be synchronized with a clock signal. By doing so, all the devices can receive or transmit the data in sync with clock signal. For example just like, in group dance, all the dancers sync their dance moments (~data) with respect to music beat (~clock signal) as shown in the figure.

Figure 1: Group Dancers sync their moment with respect to Music

Generally, in data communication, the data transmission and reception can be represented by using timing diagrams as shown below.

Figure 2: Timing diagram for Synchronous serial communication protocol


One may have still doubt, how this synchronous serial communication will work?

For this, let us consider parallel to serial shift register (transmitter) at one end and serial to parallel shift register (receiver) at other end. Both are driven with same clock signal to synchronize the data transmission as shown in the below figure. In this communication, we can do block transfer of bits.

Figure 3: Synchronous Serial communication protocol implementation using shift registers

Asynchronous Serial Communication: In Synchronous serial communication, the end devices are driven with common clock and because of that the receiver knows about the data transfer.

But in Asynchronous serial communication protocol, there is no common clock used to synchronize between transmitter and receiver. So the receiver doesn’t know about when the data will come from transmitter and when to receive it. Hence in this protocol, along with data, some extra bits also transferred to make the receiver to identify weather the valid data is coming or not. Usually, in simple Asynchronous serial communication, a start bit and stop bit are added to actual data to indicate the start and end of the data. Then collectively, the start bit, data bit and end bit are referred as data frame or data packet or protocol data unit (PSU) as shown in the below figure. This technique of adding extra bits are referred as framing and extra bits are called frame over head.

Figure 4: Asynchronous Serial Data Frame 


When the receiver device finds the valid start bit, then it understands about the data incoming and receives the data bits. Finally once the receiver finds the stop bit, it will truncate the receiving data bits.

S.No
Synchronous Serial Communication protocol
Asynchronous Serial Communication protocol
1
All the devices are driven with Common Clock.
No Common Clock
2
Block transfer – Stream of bits
Packet transfer – framing required
3
Less complex to implement the hardware with simple shift registers
Design of hardware is complex to identify the valid start bits, data bits and stop bits.
4
Ex:- Mouse connection with PC
Ex:- Com ports on PC, ATM (asynchronous transfer mode) switching.
5
Data (one or multiple bytes) can be sent in block with block header. Synch characters will be sent till the next block is ready. Break characters are sent to indicate the end of the transmission.
The time interval between successive frames is not fixed
6
Relatively high speed
Relatively low speed due to number of bits and time interval or gap between frames
6
Comparatively costly
Comparatively cheap
7
Data block is not fixed
Frame size is fixed

Isochronous serial communication protocol:

It is the combination of both synchronous and asynchronous protocols. In which we can transfer the block of data as asynchronously at random intervals. For example, video streaming uses this isochronous serial communication protocol. This protocol doesn't have error correction mechanism. Error correction may introduce the jitter in such applications.

2 comments :

  1. wow great post. I think the recipient doesn't think about when the information will originate from transmitter and when to get it. Consequently in this convention, alongside information, some additional bits likewise exchanged to make the recipient to distinguish climate the legitimate information is coming or not. For the most part, in basic Asynchronous serial correspondence, a begin bit and stop bit are added to real information to demonstrate the begin and end of the information. I'm doing write my essay At that point all in all, the begin bit, information bit and end bit are alluded as information edge or information bundle or convention information unit

    ReplyDelete
  2. That's interesting. I will reblog it here if you don't mind.

    ReplyDelete

Thanks for visiting NPEDUCATIONS. We will contact you soon

2 comments :

Ryan Leschen said...

wow great post. I think the recipient doesn't think about when the information will originate from transmitter and when to get it. Consequently in this convention, alongside information, some additional bits likewise exchanged to make the recipient to distinguish climate the legitimate information is coming or not. For the most part, in basic Asynchronous serial correspondence, a begin bit and stop bit are added to real information to demonstrate the begin and end of the information. I'm doing write my essay At that point all in all, the begin bit, information bit and end bit are alluded as information edge or information bundle or convention information unit

Robert Welain said...

That's interesting. I will reblog it here if you don't mind.

Post a Comment

Thanks for visiting NPEDUCATIONS. We will contact you soon

If you really like this tutorial, Don't forget to give the comment or please subscribe to the RSS feed by submitting your E-mail or like our Facebook page.
Related Posts Plugin for WordPress, Blogger...

 
Powered by Blogger