Unit 3
Unit 3
I/O communication
Contents
• Devices and communication buses:
• Types of I/O communication, types of serial
communication, Serial protocols, Devices and
buses- RS-232C, RS-485, HDLC, SPI, SCI, SIP,
SDIO. Parallel ports and interfacing. Parallel
device protocols: ISA, PCI, PCI/X, ARM bus,
Wireless devices.
Communication Types
• Modes of Communication
– Full Duplex
– Half Duplex
RXD RECEIVER
GND GROUND
• Now, from DTE source, the RTS generates the
request to send the data. Then from the other
side DCE, the CTS, clears the path for
receiving the data. After clearing a path, it will
give a signal to RTS of the DTE source to send
the signal. Then the bits are transmitted from
DTE to DCE.
• Now again from DCE source, the request can
be generated by RTS and CTS of DTE sources
clears the path for receiving the data and gives
a signal to send the data. This is the whole
process through which data transmission
takes place.
Limitation of RS 232
• Repeaters
Application
• Computer & Automation System
• SCSI-2 & SCSI-3 uses this specification to
implement the Physical layer for Data
transmission between a Controller & Disk
drive.
• Used in commercial aircraft cabins vehicle bus
• In theatre to control lighting
• To implement industrial control system
• To implement used in building automation
• Used in model railways
High Level Data Link Control
• HDLC (High-level Data Link Control) is a group
of protocols or rules for transmitting data
between network points (sometimes called
nodes). In HDLC, data is organized into a unit
(called a frame) and sent across a network to
a destination that verifies its successful arrival.
The HDLC protocol also manages the flow or
pacing at which data is sent.
• HDLC is one of the most commonly-used
protocols in what is layer 2 of the industry
communication reference model called Open
Systems Interconnection (OSI). (Layer 1 is the
detailed physical level that involves actually
generating and receiving the electronic
signals.
• Layer 3 is the higher level that has knowledge
about the network, including access to router
tables that indicate where to forward or send
data. On sending, programming in layer 3
creates a frame that usually contains source
and destination network addresses. HDLC
(layer 2) encapsulates the layer 3 frame,
adding data link control information to a
new, larger frame.
High Level Data Link Control
• It is a bit oriented code transparent synchronous
data link layer protocol.
• Provides both connection oriented & connection
less.
• HDLC can be used for Point-Multipoint connection
• Master-slave Mode
• Normal Response Mode
• Asynchronous Balanced Mode
• Based on SDLC Protocol
Framing
• Frames can be transmitted over synchronous
& Asynchronous serial communication link.
• Unique sequence of bits used as a frame
delimiter.
• Synchronous Framing
– Bit Stuffing
• Asynchronous Framing
Structure
N(R) N(S)
Receive Sequence no P/F Send Sequence no 0 I-frame
N(R)
Receive Sequence no P/F Type 0 1 S-Frame
N(R) Extended
Receive Sequence no P/F 0 0 0 0 Type 0 1 S-Frame
Serial Peripheral Interface
• Master-Slave Architecture
• SCLK
• MOSI
• MISO
• SS
Session Initiation Protocol
• SIP is a text based protocol (HTTP & SMTP)
• SIP is a signaling protocol used for Initiating,
Maintaining & Terminating real time sessions
that include Voice,Video & Messaging
applications.
• Used for signaling & controlling multimedia
communication session.
• The protocol defines the specific format of
messages exchanged & sequence for
communication.
• SIP can be used with the
– User Datagram Protocol
– Transmission Control Protocol
– Stream Control Transmission Protocol
• For the transmission of media streams SIP
employs
– Real Time Transport Protocol(RTP)
– Secure Real Time Transport Protocol(SRTP)
– For secure transmission of SIP message over
insecure network links the protocol may be
encrypted with Transport Layer Security