Vous êtes sur la page 1sur 6

Data communication modes

Parity bit : Character bit may include parity bit, set


Data communication modes define behavior of by the transmitter such that the total number of
data flow during communication which is based
ones in the character, including the parity bit, is
on interval of time.
even (even parity) or odd (odd parity). The
When devices are communicating, they must be receiver uses this bit for error detection.
know when ever data has to send or receive (in There are two types of parity bit
period of time). The two devices must establish
and maintain some type of timing between them even parity bit
so that signals are produced, transmitted, and odd parity bit
detected accurately.
Even parity bit - when using even parity, the parity
There are two main alternatives to establishing bit is set to 1 if the number of ones in a given set
and maintaining the timing for the sampling of of bits (not including the parity bit) is odd, making
the signals. These two timing alternatives are the number of ones in the entire set of bits
known as asynchronous and synchronous, also (including the parity bit) even. If the number of
known as data communication modes. ones in a given set of bits is already even, it is set
to a 0.
Data Link Layer : all synchronization occurs on the
data link layer (2nd layer of TCP/IP), where the data an even parity bit will be set to "1" if the number of
in form of frame. 1s + 1 is even

Asynchronous communication- The transmission of Odd parity bit - when using odd parity, the parity
data in which each character is a self-contained bit is set to 1 if the number of ones in a given set
unit with its own start and stop bits. Intervals of bits (not including the parity bit) is even,
between characters may be irregular. keeping the number of ones in the entire set of
bits (including the parity bit) odd. And when the
Start bit inform that transmission has to number of set bits is already odd, the odd parity
start with binary value of 0. bit is set to 0.
Stop bit inform to equipment that an odd parity bit will be set to "1" if the number of
transmission has been stop with binary 1s +1 is odd
value of 1.
at end of transmission no maximum value
When no character is being transmitted, is specified, because the stop element is
the line between transmitter and receiver the same as the idle state, the transmitter
is in an idle state (binary 1 level). will continue to transmit the stop element
A minimum length for the stop element is until it is ready to send the next character.
specified, and this is usually 1, 1.5, or 2 Synchronous communication- The transmission of
times the duration of an ordinary bit. data in block set and time intervals between
Data contain may be 5 -8 character bits. characters may be regular.

each block of data is formatted as a frame


that includes a starting and an ending
flag, and is transmitted in a steady stream
without start and stop codes.
Characteristic Asynchronous Synchronous
Clock speed : time interval (clock speed) must be
synchronized, to prevent timing drift between Transmission Used serial Used parallel
transmitter and receiver; techniques communication communication
can use separate clock line Comparative Data transmit one Data transmit block
embed clock signal in data capacity character at one time (bunch of character) at
one time
By adding clock line add specific time of break
between sender and receiver. Distance Farther (long) Shorter
limitation
By adding clock signal add clock information in
frame. Sync method Start and stop bit Clock speed
In synchronous transmission, there is Comparative Low speed due to More efficient due to
another level of synchronization required, speed serial transmission parallel transmission
to allow the receiver to determine the
beginning and end of a block of data. Costing Simple and cheap Much cost due to
mechanism
each block begins with a preamble bit
pattern (opening flag) and generally ends Bandwidth loss 20% to 30% over 5% over capacity
with a post-amble bit pattern (closing flag). capacity

preamble bit The preamble is a 64-bit (8


byte) field that contains a synchronization
pattern consisting of alternating ones and Data communication ports
zeros and ending with two consecutive ones.
After synchronization is established, the For interconnection with other device every data
preamble is used to locate the first bit of the communication device have specific port /
packet. The preamble is generated by the LAN interface, by data communication mechanism
interface card. two types of ports are available;

post-amble bit commonly used end of Serial port- a serial port is a serial communication
synchronous transmission. physical interface through which information
transfers in or out one bit at a time.
Control bit : start control bit contain
destination MAC, source MAC, and protocol; Parallel port- a parallel port is a parallel
and similar stop control bit contain CRC communication physical interface. It is also
information. known as a printer port or centronics port.

Comparison - some comparison between Parallel port is standard of IBM known as (DB-25)
asynchronous communication and Synchronous 25-pin combinations. Some available speed of
communication as follow; parallel ports;

o Bi-directional 150 Kbps

o EPP 1.5 Mbps

o ECP 2.5 Mbps

o EPP PCI 4.5 Mbps


UART- Universal asynchronous USRT- Universal synchronous
receiver/transmitter receiver/transmitter
Asynchronous- no clocking information is Synchronous- clocking information is
transferred between DTE and DCE transferred between DTE and DCE

Primary functions of UART: Primary functions of UART:

To perform serial to parallel and To perform serial to parallel and


vice-versa vice-versa

To perform error detection(parity To perform error detection(parity


bits) bits)

To insert and detect start/stop To insert and detect SYN


bits characters(difference between
USRT& UART)
Hardware consists of 2 sections:

Transmitter Serial Interface


receiver Serial communication is the most

Control word- to indicate no of bits, nature of simplistic form of communication between two
parity, and the no of stop bits. devices.

RS-232 is a standard by which two serial


devices communicate
Timing diagram of UART
The connection must be no longer
TBMT-Transmit Buffer Empty than 50 feet.

TD-Transmit Data Transmission voltages are 15V


and +15V.
TDS-Transmit Data Strobe
It is designed around transmission
TEOC-Transmit End of Char of characters (of 7 bits of length).
TSO-Transmit serial out Defines a 25 wire cable with a DB
25S/9S connector.
Timing diagram of UART Receiver
Data rate of up-to 20kbps for a
RSI-receive serial input
distance of 50ft
RDA-receive data available
driver, terminator, noise margin
RPE- receive parity error
Parallel interface
SWE- status word enable
Transfers data between two devices eight
RDE-receive data enable or more bits at a time.
RDAR-receive data available Also referred to as serial by word
Reset transmission
advantage: faster transmission High band channel-answer
channel
Disadvantage: higher cost for
transmission Circuit which originates the call has to
transmit on low band and the receiver has
Eg: Centronics parallel interface, IEEE 488
to respond on the high band channel
bus
Synchronous modems
Types of modems
Used for medium and high speed
Broad classification can be made as: modems
Synchronous modems: For medium speed:
Clocking information is recovered QPSK for 2.4Kbps(eg: Bell Systems
at the receiver 201C)
Use PSK or QAM modulation 8-PSK for 4.8 Kbps(eg: Bell
technique Systems208A)
Used for mostly medium and high Both are full duplex, 4 wire
speed applications(up to systems
57.6kbps)
For high speed:
Asynchronous modems:
16-QAM for a 9.6Kbps(eg: Bell
No clocking information is sent Systems 209A)
Mostly use ASK/ FSK Full duplex, four wire
Restricted to use for low speed transmission
applications(< 2.4 kbps) Sometimes asynchronous data format is
Example of asynchronous modems are Bell used in a synchronous modem, this is
Systems 202 T/S modems, uses FSK referred to as isochronous transmission

202 T- full duplex, four wire Additional requirements for synchronous


modems:
operation

202 S- half duplex, two wire Since the medium and high speed modems are
operation synchronous, these modems contain the
following additional hardware:
202T modems use 1700Hz carrier
clock recovery
Another modem standard is Bell Systems
103 modems, has full duplex over a two scramblers and descrambler circuit
wire line at a rate of 300bps equalizers
Has 2 data channels,(low band/ high
band) with each mark & space frequency

Low band channel- originate


channel

Vous aimerez peut-être aussi