Communication Protocals
Communication Protocals
Systems
Types, Advantages & Disadvantages
Communication Protocols are a set of rules that allow two or
more communication systems to communicate data via any physical medium.
The rules, regulations, synchronization between communication systems,
syntax to be followed and semantics are all defined by the term protocol.
Protocols can be implemented by both hardware and software or combination
of both. Analog and digital communication systems use various
communication protocols widely. In addition, each protocol has its own
application area.
In this case, the components have to communicate with each other to provide
the anticipated output. Each communicating entity should agree to some
protocol to exchange information. Many different protocols are available for
embedded systems and are deployed depending upon the application area.
Fig. 1 – Introduction to Communication Protocols
USB associates NRZI (Non Return to Zero Invert) encoding scheme to transmit
data with sync field to synchronize the host system and receiver clock signals.
UART is also two-wired i.e., the serial data is handled by Tx (Transmitter) and
Rx (Receiver) pins.
When receiver end detects the start bit, it starts to read the data bits at specific
baud rate meaning both transmitting and receiving peripherals should work
under same baud rate. UART works under half duplex communication mode
meaning it either transmits or receives at a time.
UART works under full duplex communication mode meaning it can transmit
and receive data at same time.
Example: Telecommunications
• I2C Protocol
• SPI Protocol
• CAN Protocol
I2C necessitates two wires SDA (Serial Data Line) and SCL (Serial Clock Line)
to carry information between devices. These two active wires are said to be
bidirectional.
Once the slave device is ready, communication starts between master and
slave devices. One bit acknowledgment is replied by the receiver if transmitter
transmits 1 byte (8 bits) of data. A stop condition is issued at the end of
communication between devices.
Fig. 8 – Start and Stop Condition of I2C Communication Protocols
The communication is established between the selected slave and the master
device as soon as appropriate slave device is selected.
SPI is a full duplex communication protocol. SPI doesn’t limit data transfer to
8 bit words.
• Automotive oriented
• Bit complex protocol