SlideShare a Scribd company logo
1 of 28
COMMUNICATION INTERFACE
4 SEM - 18CS44-Microcontrollers & Embedded Systems 5/15/2020
Types:
4 SEM - 18CS44-Microcontrollers & Embedded
Systems
5/15/2020
1. Onboard Communication Interfaces
a. I2C Bus
b. SPI Bus
c. UART
d. 1-Wire Interface
e. Parallel Interface
2. External Communication Interfaces
a. RS-232 C
b. USB
c. Fire wire
d. IrDA
e. Bluetooth
f. Wi-Fi
g. ZigBee
1.Onboard Communication Interfaces
(Device/Board level Communication Interfaces):
a)Inter Integrated Circuit (I2C) Bus:
It is a synchronous bi-directional half-duplex two wire serial
interface bus.
– The I2C bus comprise of two bus lines:
• Serial Clock (SCL line) – responsible for generating synchronization
clock pulses
• Serial Data (SDA line) – responsible for transmitting
– I2C bus is a shared bus system to which many number of I2C devices can be
connected. Devices connected to the I2C bus can act as either 'Master' or
'Slave’.
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
• The 'Master' device is responsible for controlling the communication.
• 'Slave' devices wait for the commands from the master and respond.
• The synchronization clock signal is generated by the 'Master' device only.
• I2C supports multi masters on the same bus
• Both the bus lines should be pulled to the supply voltage using pull-up
resistors. The typical value of resistors used in pull-up is 2.2K.
The sequence of operations for communicating
with an I2C slave device is listed below:
• The master device pulls the clock line (SCL) to 'HIGH'
• The master device pulls the data line (SDA) 'LOW
• The master device sends the address of the ‘slave’
• The master device sends the Read or Write bit
• The master device waits for the acknowledgement bit from the slave
device
• The slave device with the address requested by the master device
responds by sending an acknowledge bit (Bit value 1) over the SDA line
• Upon receiving the acknowledge bit, the Master device starts the
communication.
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
b)Serial Peripheral Interface (SPI) Bus:
– The Serial Peripheral Interface Bus (SPI) is a
synchronous bi-directional full duplex four-wire serial
interface bus.
– The concept of SPI was introduced by Motorola.
– SPI is a single master multi-slave system.
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
SPI requires four signal lines for communication. They are:
• Master Out Slave In (MOSI) – Signal line carrying the data from master to slave
device. It is also known as Slave Input/SIave Data In (SI/SDI)
• Master In Slave Out (MISO) – Signal line carrying the data from slave to master
device. It is also known as Slave Output (SO/SDO)
• Serial Clock (SCLK) – Signal line carrying the clock signals
• Slave Select (SS) – Signal line for slave device select. It is an active low signal
• Master selects the required slave device by asserting the
corresponding slave select signal 'LOW’.
• The serial data transmission through SPI bus is fully configurable
• SPI devices contain a certain set of registers which are Serial
peripheral control register & status register
• SPI works on the principle of 'Shift Register’
• The master and slave devices contain a special shift register for the
data to transmit or receive.
• The shift registers of 'master' and 'slave' devices form a circular
buffer
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
c) Universal Asynchronous Receiver Transmitter (UART):
– Universal Asynchronous Receiver Transmitter (UART) based data transmission is an
asynchronous form of serial data transmission.
– It doesn't require a clock signal to synchronize the transmitting end and receiving
end for transmission.
– Instead it relies upon the pre-defined agreement between the transmitting device
and receiving device.
– The serial communication settings for both transmitter and receiver should be set as
identical.
– The start and stop of communication is indicated through inserting special bits in the
data stream.
– If parity is enabled for communication, the transmitting device adds a parity bit. This
is for error checking
– The UART of the receiving device discards the 'Start', 'Stop' and 'Parity’ bit
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
d)1-Wire Interface:
• 1-wire interface is an asynchronous half-duplex communication
protocol developed by Maxim Dallas Semiconductor
• It makes use of only a single signal line (wire) called DQ
• One of the key features of 1-wire bus is that it allows power to be sent
• Every 1-wire device contains a unique 64bit identification number stored
within it.
• The identifier has three parts: an 8 bit family code, a 48 bit serial number
and an 8 bit CRC.
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
The sequence of operation for communicating with a 1-wire slave device is listed
below:
• The master device sends a 'Reset' pulse on the 1-wire bus.
• The slave device(s) respond with a 'Presence' pulse.
• The master device sends a Net Address Command followed by the 64-bit
address of the device.
• The master device sends a read/write function command bit.
• The master initiates a Read data/Write data from the device or to the device
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
e) Parallel Interface:
• The on-board parallel interface is used for communicating with
peripheral devices which are memory mapped to the host of the system
• The communication through the parallel bus is controlled by the control
signal interface
• Only the host processor has control over the 'Read' and 'Write' control
signals.
• The external device is normally memory mapped to the host processor
and a range of address is assigned to it.
• When the address selected by the processor, the processor then can read
or write from or to the device by asserting the corresponding control line
(RD and WR respectively).
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
COMMUNICATION INTERFACE
2.External Communication Interfaces
(Product level Communication Interfaces):
a) RS-232 C:
Recommended Standard number 232, revision C is a full duplex, wired,
asynchronous serial communication interface. RS-232 supports two
different types of connectors:
•DB-9: 9-Pin connector
•DB-25: 25-Pin connector
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
.
• The RS-232 interface defines various handshaking and control signals for communication
• There are Data Terminal Equipment(DTE) and Data Communication Equipment(DCE) in RS
232.
• If no data flow control is required, only TXD and RXD signal lines and ground line (GND) are
required for data transmission and reception.
• If hardware data flow control is required for serial transmission, various control signal lines
of the RS- 232 connection are used appropriately.
• The Request to Send (RTS),Clear To Send (CTS), Data Terminal Ready(DTR) and Data Set
Ready(DSR) signals co-ordinate the communication between DTE and DCE.
• As per the EIA standard RS-232 C supports baud rates up to 20Kbps (Upper limit 19.2 Kbps)
• The commonly used baud rates by devices are 300bps, 1200bps, 2400bps, 9600bps,
11.52Kbps and 19.2Kbps.
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
b) Universal Serial Bus (USB):
• Universal Serial Bus (USB) is a wired high-speed serial bus for
data communication.
• The USB communication system follows a star topology with a USB
host at the Centre and one or more USB peripheral devices/USB
hosts connected to it.
5/15/2020
4 SEM - 18CS44-Microcontrollers & Embedded
Systems
• USB transmits data in packet format
• The USB communication is a host initiated one.
• The USB host contains a host controller
• The physical connection between a USB peripheral device
and master device is established with a USB cable which
supports communication distance of up to 5 metres
• USB interface has the ability to supply power to the
connecting devices
• It can supply power up to 500 mA at 5 V.
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
 USB supports four different types of data transfers
– Control transfer : Used by USB system software
– Bulk transfer: Used for sending a block of data
– Isochronous data transfer: Used for real-time data
communication.
– Interrupt transfer: Used for transferring small amount of
data
5/15/2020
4 SEM - 18CS44-Microcontrollers &
Embedded Systems
c) IEEE 1394 (Fire wire):
– IEEE 1394 is a wired, isochronous high-speed serial communication bus.
– It is also known as High Performance Serial Bus (HPSB). It supports 400-
3200Mbps data rate.
– The interface cable supports 3 types of connectors, namely; 4-pin connector, 6-pin
Connector (alpha connector) and 9 pin connector (beta connector).
– The 6 and 9 pin connectors carry power.
– IEEE 1394 doesn't require a host for communicating between devices. For example,
you can directly connect a scanner with a printer for printing
5/15/2020
4 SEM - 18CS44-Microcontrollers & Embedded
Systems
COMMUNICATION INTERFACE
2.External Communication Interfaces
(Product level Communication Interfaces):
d) Infrared (IrDA):
• Infrared (IrDA) is a serial, half duplex, line of sight
based wireless technology for data communication.
• Infrared communication technique uses infrared waves of the
electromagnetic spectrum for transmitting the data.
• It supports point-point and point-to-multipoint communication
• The communication range for IrDA lies in the range 10 cm to 1
m.
• IR supports data rates ranging from 9600bits/second to
16Mbps.
5/15/2020
4 SEM - 18CS44-Microcontrollers & Embedded
Systems
Depending on the speed of data transmission IR is
classified into:
 Serial IR (SIR) – supports data rates ranging from 9600bps to 115.2kbps.
 Medium IR (MIR) – supports data rates of 0.576Mbps and 1.152Mbps.
 Fast IR (FIR) – supports data rates up to 4Mbps.
 Very Fast IR (VFIR) – supports high data rates up to 16Mbps.
 Ultra Fast IR (UFIR) – targeted to support a data rate up to 100Mbps
IrDA communication, Infrared Light Emitting Diode (LED) is the IR
source for transmitter and at the receiving end a photodiode acts as
the receiver.
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
e) Bluetooth (BT):
– Bluetooth is a low cost, low power, short range wireless technology
for data and voice communication.
– Bluetooth operates at 2.4GHz of the Radio Frequency spectrum and
uses the Frequency Hopping Spread Spectrum (FHSS) technique for
communication.
– It supports a data rate of up to 1Mbps and a range of 30 feet for data
communication.
– Bluetooth communication has two parts – a physical link part and a
protocol part.
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
– Each Bluetooth device will have a 48-bit unique
identification number
– Bluetooth supports point-to-point and point-to-multipoint
wireless communication.
– The point-to-point communication follows the master-slave
relationship.
– Bluetooth is the favorite choice for short range data
communication in handheld embedded devices.
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
f) Wi-Fi:
– Wireless Fidelity is the popular wireless communication
technique for networked communication of devices.
– Wi-Fi follows the IEEE 802.11 standard.
– Wi-Fi is intended for network communication and it supports
Internet Protocol (IP) based communication.
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
• IP address and Wi-Fi router/Wireless Access Point are
required for Wi-Fi based communication.
• Wi-Fi router is responsible for restricting access to the
network, assigning IP address to the devices, routing data
packets to the intended devices.
• Wi-Fi enabled devices will be having wireless adaptor.
• Wi-Fi operates at 2.4GHz or 5GHz of Radio spectrum.
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
g)ZigBee:
• ZigBee is a low power, low cost, wireless network communication protocol
based on the IEEE 802.15.4-2006 standard.
• ZigBee operates worldwide at the unlicensed bands of Radio spectrum, mainly
at 2.400 to 2.484 GHz, 902 to 928 MHz and 868.0 to 868.6 MHz
• ZigBee supports an operating distance of up to 100 metres and a data rate of
20 to 250 Kbps
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
In the ZigBee terminology, each ZigBee device falls under any one
of the following ZigBee device category:
– ZigBee Coordinator (ZC)/Network Coordinator
• The ZigBee coordinator acts as the root of the ZigBee network.
– ZigBee Router (ZR)/Full function Device (FFD)
• Responsible for passing information from device to another device
or to another ZR.
– ZigBee End Device (ZED)/Reduced Function Device (RFD)
• End device containing ZigBee functionality for data
communication.
• It can talk only with a ZR or ZC and doesn't have the capability to
act as a mediator for transferring data from one device to another.
5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems

More Related Content

What's hot

Chapter 3 Charateristics and Quality Attributes of Embedded System
Chapter 3 Charateristics and Quality Attributes of Embedded SystemChapter 3 Charateristics and Quality Attributes of Embedded System
Chapter 3 Charateristics and Quality Attributes of Embedded SystemMoe Moe Myint
 
2. block diagram and components of embedded system
2. block diagram and components of embedded system2. block diagram and components of embedded system
2. block diagram and components of embedded systemVikas Dongre
 
Verilog full adder in dataflow & gate level modelling style.
Verilog full adder in dataflow  & gate level modelling style.Verilog full adder in dataflow  & gate level modelling style.
Verilog full adder in dataflow & gate level modelling style.Omkar Rane
 
Chapter 8 Embedded Hardware Design and Development (second portion)
Chapter 8 Embedded Hardware Design and Development (second portion)Chapter 8 Embedded Hardware Design and Development (second portion)
Chapter 8 Embedded Hardware Design and Development (second portion)Moe Moe Myint
 
Mac protocols
Mac protocolsMac protocols
Mac protocolsjuno susi
 
Target hardware debugging
Target hardware debuggingTarget hardware debugging
Target hardware debuggingShriya Shankar
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...NimeshSingh27
 
Digital Data, Digital Signal | Scrambling Techniques
Digital Data, Digital Signal | Scrambling TechniquesDigital Data, Digital Signal | Scrambling Techniques
Digital Data, Digital Signal | Scrambling TechniquesBiplap Bhattarai
 
Classification of embedded systems
Classification of embedded systemsClassification of embedded systems
Classification of embedded systemsVikas Dongre
 
Keypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerKeypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerSudhanshu Janwadkar
 

What's hot (20)

Chapter 3 Charateristics and Quality Attributes of Embedded System
Chapter 3 Charateristics and Quality Attributes of Embedded SystemChapter 3 Charateristics and Quality Attributes of Embedded System
Chapter 3 Charateristics and Quality Attributes of Embedded System
 
E.s unit 6
E.s unit 6E.s unit 6
E.s unit 6
 
Lambda design rule
Lambda design ruleLambda design rule
Lambda design rule
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
2. block diagram and components of embedded system
2. block diagram and components of embedded system2. block diagram and components of embedded system
2. block diagram and components of embedded system
 
Verilog full adder in dataflow & gate level modelling style.
Verilog full adder in dataflow  & gate level modelling style.Verilog full adder in dataflow  & gate level modelling style.
Verilog full adder in dataflow & gate level modelling style.
 
Spread spectrum
Spread spectrumSpread spectrum
Spread spectrum
 
Equalization
EqualizationEqualization
Equalization
 
Outdoor propagatiom model
Outdoor propagatiom modelOutdoor propagatiom model
Outdoor propagatiom model
 
Chapter 8 Embedded Hardware Design and Development (second portion)
Chapter 8 Embedded Hardware Design and Development (second portion)Chapter 8 Embedded Hardware Design and Development (second portion)
Chapter 8 Embedded Hardware Design and Development (second portion)
 
Mac protocols
Mac protocolsMac protocols
Mac protocols
 
Line coding
Line codingLine coding
Line coding
 
Gsm architecture
Gsm architectureGsm architecture
Gsm architecture
 
Target hardware debugging
Target hardware debuggingTarget hardware debugging
Target hardware debugging
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Embedded System Presentation
Embedded System PresentationEmbedded System Presentation
Embedded System Presentation
 
Digital Data, Digital Signal | Scrambling Techniques
Digital Data, Digital Signal | Scrambling TechniquesDigital Data, Digital Signal | Scrambling Techniques
Digital Data, Digital Signal | Scrambling Techniques
 
Classification of embedded systems
Classification of embedded systemsClassification of embedded systems
Classification of embedded systems
 
Keypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerKeypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 Microcontroller
 

Similar to Communication Interface of The Embedded Systems

Embedded networking
Embedded networkingEmbedded networking
Embedded networkingArul Kumar
 
Physical layer interface & standards
Physical layer interface & standardsPhysical layer interface & standards
Physical layer interface & standardsSrashti Vyas
 
Rs 232 & usb ieee1394 communication
Rs 232 & usb  ieee1394 communicationRs 232 & usb  ieee1394 communication
Rs 232 & usb ieee1394 communicationVijay Kumar
 
Embedded real time-systems communication
Embedded real time-systems communicationEmbedded real time-systems communication
Embedded real time-systems communicationVijay Kumar
 
EXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptxEXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptxNaveenK365392
 
communication interfaces-Embedded real time systems
communication interfaces-Embedded real time systemscommunication interfaces-Embedded real time systems
communication interfaces-Embedded real time systemsRaghunath reddy
 
Embedded sysyetm components
Embedded sysyetm componentsEmbedded sysyetm components
Embedded sysyetm componentslambanaveen
 
UNIT- 3.pptx
UNIT- 3.pptxUNIT- 3.pptx
UNIT- 3.pptxBASKARS53
 
Design and Verification of the UART and SPI protocol using UVM
Design and Verification of the UART and SPI protocol using UVMDesign and Verification of the UART and SPI protocol using UVM
Design and Verification of the UART and SPI protocol using UVMIRJET Journal
 
serial_busses_i2c.pptx
serial_busses_i2c.pptxserial_busses_i2c.pptx
serial_busses_i2c.pptxSKUP1
 
I2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication ProtocolI2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication ProtocolAnkur Soni
 

Similar to Communication Interface of The Embedded Systems (20)

Embedded networking
Embedded networkingEmbedded networking
Embedded networking
 
Chapter 3 esy
Chapter 3 esy Chapter 3 esy
Chapter 3 esy
 
Computer Interfaces
Computer Interfaces Computer Interfaces
Computer Interfaces
 
Physical layer interface & standards
Physical layer interface & standardsPhysical layer interface & standards
Physical layer interface & standards
 
Rs 232 & usb ieee1394 communication
Rs 232 & usb  ieee1394 communicationRs 232 & usb  ieee1394 communication
Rs 232 & usb ieee1394 communication
 
Embedded real time-systems communication
Embedded real time-systems communicationEmbedded real time-systems communication
Embedded real time-systems communication
 
EXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptxEXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptx
 
communication interfaces-Embedded real time systems
communication interfaces-Embedded real time systemscommunication interfaces-Embedded real time systems
communication interfaces-Embedded real time systems
 
Ch09 system administration
Ch09 system administration Ch09 system administration
Ch09 system administration
 
Embedded sysyetm components
Embedded sysyetm componentsEmbedded sysyetm components
Embedded sysyetm components
 
UNIT- 3.pptx
UNIT- 3.pptxUNIT- 3.pptx
UNIT- 3.pptx
 
Serial Busses.pptx
Serial Busses.pptxSerial Busses.pptx
Serial Busses.pptx
 
Design and Verification of the UART and SPI protocol using UVM
Design and Verification of the UART and SPI protocol using UVMDesign and Verification of the UART and SPI protocol using UVM
Design and Verification of the UART and SPI protocol using UVM
 
Project_intership
Project_intershipProject_intership
Project_intership
 
Project_intership
Project_intershipProject_intership
Project_intership
 
serial_busses_i2c.pptx
serial_busses_i2c.pptxserial_busses_i2c.pptx
serial_busses_i2c.pptx
 
Bus interface 8086
Bus interface 8086Bus interface 8086
Bus interface 8086
 
serial.ppt
serial.pptserial.ppt
serial.ppt
 
serial.ppt
serial.pptserial.ppt
serial.ppt
 
I2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication ProtocolI2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication Protocol
 

More from VijayKumar5738

Quality attributes of Embedded Systems
Quality attributes of Embedded Systems Quality attributes of Embedded Systems
Quality attributes of Embedded Systems VijayKumar5738
 
Characteristics of Embedded Systems
Characteristics of Embedded Systems Characteristics of Embedded Systems
Characteristics of Embedded Systems VijayKumar5738
 
Purpose of Embedded Systems
Purpose of Embedded Systems Purpose of Embedded Systems
Purpose of Embedded Systems VijayKumar5738
 

More from VijayKumar5738 (6)

Quality attributes of Embedded Systems
Quality attributes of Embedded Systems Quality attributes of Embedded Systems
Quality attributes of Embedded Systems
 
Characteristics of Embedded Systems
Characteristics of Embedded Systems Characteristics of Embedded Systems
Characteristics of Embedded Systems
 
Sensors and Actuators
Sensors and ActuatorsSensors and Actuators
Sensors and Actuators
 
Core of the ES
Core of the ESCore of the ES
Core of the ES
 
Purpose of Embedded Systems
Purpose of Embedded Systems Purpose of Embedded Systems
Purpose of Embedded Systems
 
ES components
ES componentsES components
ES components
 

Recently uploaded

Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIEduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIkoyaldeepu123
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 

Recently uploaded (20)

Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AIEduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AI
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 

Communication Interface of The Embedded Systems

  • 1. COMMUNICATION INTERFACE 4 SEM - 18CS44-Microcontrollers & Embedded Systems 5/15/2020
  • 2. Types: 4 SEM - 18CS44-Microcontrollers & Embedded Systems 5/15/2020 1. Onboard Communication Interfaces a. I2C Bus b. SPI Bus c. UART d. 1-Wire Interface e. Parallel Interface 2. External Communication Interfaces a. RS-232 C b. USB c. Fire wire d. IrDA e. Bluetooth f. Wi-Fi g. ZigBee
  • 3. 1.Onboard Communication Interfaces (Device/Board level Communication Interfaces): a)Inter Integrated Circuit (I2C) Bus: It is a synchronous bi-directional half-duplex two wire serial interface bus. – The I2C bus comprise of two bus lines: • Serial Clock (SCL line) – responsible for generating synchronization clock pulses • Serial Data (SDA line) – responsible for transmitting – I2C bus is a shared bus system to which many number of I2C devices can be connected. Devices connected to the I2C bus can act as either 'Master' or 'Slave’. 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 4. 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems • The 'Master' device is responsible for controlling the communication. • 'Slave' devices wait for the commands from the master and respond. • The synchronization clock signal is generated by the 'Master' device only. • I2C supports multi masters on the same bus • Both the bus lines should be pulled to the supply voltage using pull-up resistors. The typical value of resistors used in pull-up is 2.2K.
  • 5. The sequence of operations for communicating with an I2C slave device is listed below: • The master device pulls the clock line (SCL) to 'HIGH' • The master device pulls the data line (SDA) 'LOW • The master device sends the address of the ‘slave’ • The master device sends the Read or Write bit • The master device waits for the acknowledgement bit from the slave device • The slave device with the address requested by the master device responds by sending an acknowledge bit (Bit value 1) over the SDA line • Upon receiving the acknowledge bit, the Master device starts the communication. 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 6. b)Serial Peripheral Interface (SPI) Bus: – The Serial Peripheral Interface Bus (SPI) is a synchronous bi-directional full duplex four-wire serial interface bus. – The concept of SPI was introduced by Motorola. – SPI is a single master multi-slave system. 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 7. 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems SPI requires four signal lines for communication. They are: • Master Out Slave In (MOSI) – Signal line carrying the data from master to slave device. It is also known as Slave Input/SIave Data In (SI/SDI) • Master In Slave Out (MISO) – Signal line carrying the data from slave to master device. It is also known as Slave Output (SO/SDO) • Serial Clock (SCLK) – Signal line carrying the clock signals • Slave Select (SS) – Signal line for slave device select. It is an active low signal
  • 8. • Master selects the required slave device by asserting the corresponding slave select signal 'LOW’. • The serial data transmission through SPI bus is fully configurable • SPI devices contain a certain set of registers which are Serial peripheral control register & status register • SPI works on the principle of 'Shift Register’ • The master and slave devices contain a special shift register for the data to transmit or receive. • The shift registers of 'master' and 'slave' devices form a circular buffer 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 9. c) Universal Asynchronous Receiver Transmitter (UART): – Universal Asynchronous Receiver Transmitter (UART) based data transmission is an asynchronous form of serial data transmission. – It doesn't require a clock signal to synchronize the transmitting end and receiving end for transmission. – Instead it relies upon the pre-defined agreement between the transmitting device and receiving device. – The serial communication settings for both transmitter and receiver should be set as identical. – The start and stop of communication is indicated through inserting special bits in the data stream. – If parity is enabled for communication, the transmitting device adds a parity bit. This is for error checking – The UART of the receiving device discards the 'Start', 'Stop' and 'Parity’ bit 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 10. 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 11. d)1-Wire Interface: • 1-wire interface is an asynchronous half-duplex communication protocol developed by Maxim Dallas Semiconductor • It makes use of only a single signal line (wire) called DQ • One of the key features of 1-wire bus is that it allows power to be sent • Every 1-wire device contains a unique 64bit identification number stored within it. • The identifier has three parts: an 8 bit family code, a 48 bit serial number and an 8 bit CRC. 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 12. The sequence of operation for communicating with a 1-wire slave device is listed below: • The master device sends a 'Reset' pulse on the 1-wire bus. • The slave device(s) respond with a 'Presence' pulse. • The master device sends a Net Address Command followed by the 64-bit address of the device. • The master device sends a read/write function command bit. • The master initiates a Read data/Write data from the device or to the device 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 13. e) Parallel Interface: • The on-board parallel interface is used for communicating with peripheral devices which are memory mapped to the host of the system • The communication through the parallel bus is controlled by the control signal interface • Only the host processor has control over the 'Read' and 'Write' control signals. • The external device is normally memory mapped to the host processor and a range of address is assigned to it. • When the address selected by the processor, the processor then can read or write from or to the device by asserting the corresponding control line (RD and WR respectively). 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 14. 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 15. COMMUNICATION INTERFACE 2.External Communication Interfaces (Product level Communication Interfaces): a) RS-232 C: Recommended Standard number 232, revision C is a full duplex, wired, asynchronous serial communication interface. RS-232 supports two different types of connectors: •DB-9: 9-Pin connector •DB-25: 25-Pin connector 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems .
  • 16. • The RS-232 interface defines various handshaking and control signals for communication • There are Data Terminal Equipment(DTE) and Data Communication Equipment(DCE) in RS 232. • If no data flow control is required, only TXD and RXD signal lines and ground line (GND) are required for data transmission and reception. • If hardware data flow control is required for serial transmission, various control signal lines of the RS- 232 connection are used appropriately. • The Request to Send (RTS),Clear To Send (CTS), Data Terminal Ready(DTR) and Data Set Ready(DSR) signals co-ordinate the communication between DTE and DCE. • As per the EIA standard RS-232 C supports baud rates up to 20Kbps (Upper limit 19.2 Kbps) • The commonly used baud rates by devices are 300bps, 1200bps, 2400bps, 9600bps, 11.52Kbps and 19.2Kbps. 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 17. b) Universal Serial Bus (USB): • Universal Serial Bus (USB) is a wired high-speed serial bus for data communication. • The USB communication system follows a star topology with a USB host at the Centre and one or more USB peripheral devices/USB hosts connected to it. 5/15/2020 4 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 18. • USB transmits data in packet format • The USB communication is a host initiated one. • The USB host contains a host controller • The physical connection between a USB peripheral device and master device is established with a USB cable which supports communication distance of up to 5 metres • USB interface has the ability to supply power to the connecting devices • It can supply power up to 500 mA at 5 V. 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 19.  USB supports four different types of data transfers – Control transfer : Used by USB system software – Bulk transfer: Used for sending a block of data – Isochronous data transfer: Used for real-time data communication. – Interrupt transfer: Used for transferring small amount of data 5/15/2020 4 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 20. c) IEEE 1394 (Fire wire): – IEEE 1394 is a wired, isochronous high-speed serial communication bus. – It is also known as High Performance Serial Bus (HPSB). It supports 400- 3200Mbps data rate. – The interface cable supports 3 types of connectors, namely; 4-pin connector, 6-pin Connector (alpha connector) and 9 pin connector (beta connector). – The 6 and 9 pin connectors carry power. – IEEE 1394 doesn't require a host for communicating between devices. For example, you can directly connect a scanner with a printer for printing 5/15/2020 4 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 21. COMMUNICATION INTERFACE 2.External Communication Interfaces (Product level Communication Interfaces): d) Infrared (IrDA): • Infrared (IrDA) is a serial, half duplex, line of sight based wireless technology for data communication. • Infrared communication technique uses infrared waves of the electromagnetic spectrum for transmitting the data. • It supports point-point and point-to-multipoint communication • The communication range for IrDA lies in the range 10 cm to 1 m. • IR supports data rates ranging from 9600bits/second to 16Mbps. 5/15/2020 4 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 22. Depending on the speed of data transmission IR is classified into:  Serial IR (SIR) – supports data rates ranging from 9600bps to 115.2kbps.  Medium IR (MIR) – supports data rates of 0.576Mbps and 1.152Mbps.  Fast IR (FIR) – supports data rates up to 4Mbps.  Very Fast IR (VFIR) – supports high data rates up to 16Mbps.  Ultra Fast IR (UFIR) – targeted to support a data rate up to 100Mbps IrDA communication, Infrared Light Emitting Diode (LED) is the IR source for transmitter and at the receiving end a photodiode acts as the receiver. 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 23. e) Bluetooth (BT): – Bluetooth is a low cost, low power, short range wireless technology for data and voice communication. – Bluetooth operates at 2.4GHz of the Radio Frequency spectrum and uses the Frequency Hopping Spread Spectrum (FHSS) technique for communication. – It supports a data rate of up to 1Mbps and a range of 30 feet for data communication. – Bluetooth communication has two parts – a physical link part and a protocol part. 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 24. – Each Bluetooth device will have a 48-bit unique identification number – Bluetooth supports point-to-point and point-to-multipoint wireless communication. – The point-to-point communication follows the master-slave relationship. – Bluetooth is the favorite choice for short range data communication in handheld embedded devices. 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 25. f) Wi-Fi: – Wireless Fidelity is the popular wireless communication technique for networked communication of devices. – Wi-Fi follows the IEEE 802.11 standard. – Wi-Fi is intended for network communication and it supports Internet Protocol (IP) based communication. 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 26. • IP address and Wi-Fi router/Wireless Access Point are required for Wi-Fi based communication. • Wi-Fi router is responsible for restricting access to the network, assigning IP address to the devices, routing data packets to the intended devices. • Wi-Fi enabled devices will be having wireless adaptor. • Wi-Fi operates at 2.4GHz or 5GHz of Radio spectrum. 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 27. g)ZigBee: • ZigBee is a low power, low cost, wireless network communication protocol based on the IEEE 802.15.4-2006 standard. • ZigBee operates worldwide at the unlicensed bands of Radio spectrum, mainly at 2.400 to 2.484 GHz, 902 to 928 MHz and 868.0 to 868.6 MHz • ZigBee supports an operating distance of up to 100 metres and a data rate of 20 to 250 Kbps 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems
  • 28. In the ZigBee terminology, each ZigBee device falls under any one of the following ZigBee device category: – ZigBee Coordinator (ZC)/Network Coordinator • The ZigBee coordinator acts as the root of the ZigBee network. – ZigBee Router (ZR)/Full function Device (FFD) • Responsible for passing information from device to another device or to another ZR. – ZigBee End Device (ZED)/Reduced Function Device (RFD) • End device containing ZigBee functionality for data communication. • It can talk only with a ZR or ZC and doesn't have the capability to act as a mediator for transferring data from one device to another. 5/15/20204 SEM - 18CS44-Microcontrollers & Embedded Systems