Vous êtes sur la page 1sur 30

In the name of ALLAH ALMIGHTY the most beneficent, the

most merciful

Serial Data Communication

Group Members

Tahir Mubeen Shams


Ameer Hamza
Touseeq inam

Computer Aided Design


Embedded Systems

Serial Data Communication


LabView (Using NI-VISA to Communicate with Your Serial Instrument)

Definition of serial communication :

In telecommunication and computer


science,serial communicationis the
process of sending data one bit at a time,
sequentially, over acommunicationchannel
or computer bus. This is in contrast to
parallelcommunication, where several bits
are sent as a whole, on a link with several parallel
channels.

A basic serial instrument


control system consists of three
parts:
1. PC with a serial port
2. Serial cable
3. Serial instrument (Serialis a common device communication
protocol forinstrumentcontrol because most computers and many
remoteinstrumentsinclude at least oneserialport. Single applications can
be used across a variety ofinstrumentswith few modifications, reducing
programming and test time

Data Transmission Tree

Data Transmission
Parallel

Serial

Synchronous

Asynchronous

Serial Transfer

Parallel Transfer

Serial Communication

Serial = one after the other

Serial Communication = sending one bit at a time over a


channel
Data is sent and received one bit at a time
Transmission on single wire
Serial
Communication
Byte
b0 b1 b2
b3 b4 b5
b6 b7

b0

b1

b2

b3

b4

b5

b6

b7

Byte
b0 b1 b2
b3 b4 b5
b6 b7

Parallel Communication

Parallel Communication = several bits sent at a time on


several parallel channels
Data is sent and received more than one bit at a time
Transmission on multiple wires
Parallel Communication
b0
Byte
b0
b1
b2
b3
b4
b5
b6
b7

b1

Byte

b2

b0
b1
b2
b3
b4
b5
b6
b7

b3
b4
b5
b6
b7

Parallel Transmission
Transmission of information over multiple links between two points
Multiple electronic links

Multiple
links

Data Transmission
Parallel

Serial
Cost

Cheap

Expensive

Speed

Slow

Fast

Transmission
Amount

Single bit

8 bits (8 data lines)


Transmitter & Receiver

Transmission
Lines
Transmission
Distance

One line to transmit


one to receive
Long distance

Example

8 lines for simultaneous


transmission
Short distance
(synchronization)
Printer Connection

Modem

Definition: Synchronous
Sender and receiver have their clocks synchronized
Transmissions occur at specified intervals
Advantage:

Faster

Definition: Asynchronous
Devices are not synchronized
Transmissions happen at unpredicted intervals
Advantages:

Simpler

More robust

Which type should I use?

Advantages of Serial Communication

For long distances.

Low Cost.

Disadvantages of Serial Communication


The speed of serial Communication is very
slow than parallel communication.
14

Advantages of Parallel Communication

The speed of parallel Communication is very


high than serial communication.

Disadvantages of Parallel
Communication

For Short distances.


High Cost.

15

Serial Communication Implementation

Popular implementation found in older and some newer computers is known


as the RS-232 serial connection found in microcomputers

Newer type of serial connections

Universal Serial Bus (USB)

RS-232 (Physical Connector)

17

Advantages of RS-232:

Simple wiring and connectors

Widely available

Low cost

Most embedded processor include this interface

Software to implement a serial port is easy

Disadvantages of RS-232:

Incompatibilities in wiring and configuration between devices

Short cable lengths

Subject to noise interference

Low data rates

Many different software protocols

Definitions
Start Bit

Signals the beginning of the data word

A low bit after a series of high bits

Data Bits

The meat of the transmission

Usually 7 or 8 bits

Definitions Continued
Parity Bit

An error check bit placed after the data bits

Can be high or low depending on whether odd parity or


even parity is specified

Stop Bit/s

One or two high bits that signal the end or the data word

Data Word

Start Bit, Data Bits, Parity Bit, & Stop Bit/s

BAUD RATE

BIT RATE

Baud Rate

Baud Rate = bits transferred/second

baud rate INCLUDES start, stop, and parity

bit rate refers to JUST data bits transferred per second (may include
parity)

baud rate > bit rate

GUI of Project
Enter the
transmitted Words

Display Received
Words

Configure Com port

Ready Button

Reset Button

Enter Regular
Expression

Display the length of


input

Display Nbr# of
Total inputs

Display Nbr# of Match


words

Flow Chart

Feedback:
From this project we learn how we can send n receive data from sys to another
By the use of cable but we can do this project without cables or any type of wires
Such as Wi-Fi band ,Bluetooth band . Then transmitting and receiving data will be fast.
By enhaciment this project we can

Future Enhancement:
Bar code scanners and other point of sale devices
Test and measuring equipment such as digital multimeters and weighing systems
Updating firmware on various consumer devices.
Software debuggers that run on a second computer.
Industrial field buses
Printers
Computer terminal, teletype
Older digital cameras
Serial mouse
Serial keyboard

Conclusion:
This project can be used extensively inorder to establish adhoc networks between
systems. It
provides a cheaper alternative for ethernet cards in situations where we are forced
to establish a network temporarily for some specific purpose.Even though the serial
port network is slow as compared to the ethernetcard, but provided the cost
benefits it can be used very effectively.
Besides this, this project is also a good example for those who are interested in
understanding the complexities of the network interface. This project provides a
study model for those interested in networking. Since the serial ports are used for
communication, the data transmission rate is low. But the project demonstrate how
powerful the network drivers are.

Vous aimerez peut-être aussi