Documente Academic
Documente Profesional
Documente Cultură
Communication Protocols
(1) PARALLEL DATA TRANSMISSION
IEEE-488 Parallel (HPIB or GPIB )
Centronics Parallel Protocol (Printer )
SCSI
IDE
ISA (Industrial Standard Architecture, 16 bit)
PCI (Referral Component Interconnect, 32 bit)
AGP
(2) SERIAL DATA TRANSMISSION
RS 232
RS 422
RS 485
UART (Universal Asynchronous receiver-transmitter)
USART (Universal Synchronous- Asynchronous receiver-transmitter)
MIDI
IEEE1394, also called "FireWire"
CAN (Controller Area Network)
USB (Universal Serial Bus)
I2C (Inter Integrated Circuit) -- Philips
SPI (Serial Peripheral Interface bus)
Micro-wire
Ethernet
Fiber optics
Bluetooth
WiFi
SUB SECTIONS TO PARALLEL AND SERIAL PROTOCOLS
Wired connections
Wireless connections
Radio Frequency (RF)
Infrared (IR)
HOW TO SELECTION A PROTOCOL OR TO DEVELOP YOUR OWN
Amount of data
Speed of processor
Hardware or software implementation
Number of available pins
Number of sensor
Parallel Communication
Interface (PCI)
Serial Communication
Interface (SCI)
Synchronous
Asynchronous
eight pins limits communication to half-duplex, meaning that information can only travel in one direction
at a time. But pins 18 through 25, originally just used as grounds, can be used as data pins also. This
allows for full-duplex (both directions at the same time) communication.
Enhanced Parallel Port (EPP) was created by Intel, Xircom, and Zenith in 1991. EPP allows for much
more data, 500 kilobytes (KB) to 2 megabytes (MB), to be transferred each second. It was targeted
specifically for non-printer devices that would attach to the parallel port, particularly storage devices that
needed the highest possible transfer rate.
Close on the heels of the introduction of EPP, Microsoft and Hewlett Packard jointly announced a
specification called Extended Capabilities Port (ECP) in 1992. While EPP was geared toward other
devices, ECP was designed to provide improved speed and functionality for printers.
In 1994, the IEEE 1284 standard was released. It included the two specifications for parallel port devices,
EPP and ECP. In order for them to work, both the operating system and the device must support the
required specification. This is seldom a problem today since most computers support SPP, ECP and EPP
and will detect which mode needs to be used, depending on the attached device. If you need to manually
select a mode, you can do so through the BIOS (Basic Input/Output System) on most computers.
RS-232
RS-232C is the oldest and most popular serial communication standard. It is the standard used on PC
COM port hardware. It is designed to connect two systems only and is "single ended", meaning that it
uses one wire for data and one for ground. It is a robust interface with speeds to 115,200 baud and will
withstand a short circuit between any 2 pins. Maximum signal voltages are 15 volts. Cable length
depends on baud rate but is typically 50 feet maximum.
Examples
Ex 1: A synchronous data transmission system is operating at 9600 baud. How long is each bit?
Solution: Since in a synchronous data transmission system, the baud rate is same as bps (bit per second) ,
thus at 9600 bps, each bit takes 1/9600 seconds or about 104 s.
Ex 2: Suppose the number 45 in hex is to be transmitted in an 8-bit asynchronous format with odd
parity. Sketch the output.
Solution: the number 45 in hex is 01000101 in binary. Keep in mind that the data is sent least
significant bit (LSB) first, the result is displayed below. Since there are already three 1s in the data word,
the parity bit would be set to zero to mean the parity odd.
(Usually in the PC environment you will find 7 or 8 bit words, the first is to accommodate all upper and
lower case text characters in ASCII codes (the 127 characters), the latter one is used to exactly correspond
to one byte. By convention, the least significant bit of the word is sent first and the most significant bit is
sent last. When communicating the sender encodes the each word by adding a start bit in front and 1 or 2
stop bits at the end.
Sometimes it will add a parity bit between the last bit of the word and the first stop bit, this used as a data
integrity check. This is often referred to as a data frame. Five different parity bits can be used, the mark
parity bit is always set at a logical 1, the space parity bit is always set at a logical 0, the even parity bit
is set to logical 1 by counting the number of bits in the word and determining if the result is even, in the
odd parity bit, the parity bit is set to logical 1 if the result is odd. The later two methods offer a means of
detecting bit level transmission errors. Note that you don't have to use parity bits, thus eliminating 1 bit in
each frame, this is often referred to as non parity bit frame).
Most equipment using RS-232 serial ports use a DB-25 type connector, while many PCs today use DB-9
connectors since all you need in asynchronous mode is 9 signals, as shown in Figure 2. Normally the
male connector is on the DTE side and the female connector is on the DCE side even if this is not always
the case.
CIRCUIT
V.24 CIRCUIT
#
DB-25 Pin #
DB-9 Pin #
SIGNAL NAME
AA
101
Protective Ground
AB
102
Signal Ground
BA
103
Transmitted Data
BB
104
Received Data
CA
105
Request to send
CB
106
Clear to send
CC
107
CD
108
20
CE
125
22
Ring detector
CF
109
Carrier detect
CG
110
21
CH / CI
111 / 112
23
DA
113
24
DB
114
15
DD
115
17
SBA
118
14
Secondary TX
SBB
119
16
Secondary RX
SCA
120
19
Secondary RTS
SCB
121
13
Secondary CTS
SCF
122
12
Secondary CD
10
11
N/C
18
N/C
25
N/C
adopted in 1960 by the Electronic Industries Association (EIA). The DTE is the terminal or computer
and the DCE is the modem or other communication devices.
History
RS-232 was originally adopted in 1960 by the Electronic Industries Association (EIA). The standard
evolved over the years and in 1969 the third revision (RS-232C) was to be the standard of choice of PC
makers. In 1987 a fourth revision was adopted (RS-232D also known as EIA-232D). In most part of this
new revision, they added 3 additional test lines. In this lecture note you will see several parts of the
original RS-232C standard and mostly the ones used in the PC world.