SlideShare a Scribd company logo
1 of 40
Download to read offline
ELECTRONIC COMMUNICATION
PROTOCOLS
09EC6656 – HIGH SPEED DIGITAL DESIGN
Seminar on
Theoretical Aspects
Prepared & Presented by:
HARIHARAN K
UCC18ECED08,M.Tech Scholar
Dept. of Electronics DesignTechnology,
NIELIT – Calicut.
Guided by:
JAYARAJ U KIDAV
Scientist/Engineer - ‘D’
NIELIT – Calicut.
OUTLINE
 Introduction
 Why we need Protocol?
 SPI, I2C
 UART
30 April 2019 209EC6656 | SEMINAR ON INTERFACES
INTRODUCTION
 Embedded System :
◦ HARDWARE + SOFTWARE to perform a desired application.
 SYSTEM takes INPUT, processes the same, provides
the desired OUTPUT
 COMMUNICATION is happening!
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 3
- Examples: CAN, I2C, I2S, SPI, Serial, USART,
UART, USB, RS-232, RS-485, Bluetooth,Wi-Fi,
ZigBee, LIN, MQTT, RFID, NFC etc.,
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 4
COMMUNICATION PROTOCOL
- A set of rules and regulations that allow
two electronic devices to connect to exchange
the data with one and another.
- RealWorld Applications:
- Remote Controlled Gadgets
- FileTransfer between PC and Mobile
CATEGORIES
 In terms of communication:
- Serial Communication
- Parallel Communication
 In terms of Peripheral Accessibility:
- Inter System Protocol
Ex: Between a CPU and a Embedded Development board :
USB, UART etc.,
- Intra System Protocol
Ex: Between two devices in a circuit board : SPI, I2C etc.,
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 5
SERIAL vs. PARALLEL
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 6
Contd.,
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 7
Internals of Serial Comm.
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 8
Serial Communication is all about Shift Registers!
Shift registers:
Some D-Flip-Flops serially connected while sharing the same
clock line.
How data is sent serially?
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 9
Transmitter: loading data in
parallel to a shift register, and
shifting it out a bit at a time -
Parallel In Serial Out Shift
Register
Receiver: receiving data a single bit at
a time and when all bits are received,
the shift register can be read in
parallel - Serial In Parallel Out Shift
Register
SERIAL IO
 Serial communication is preferred,
because:
 Few number of wires, less space etc.,
 Cost effective for long distances
 No Crosstalk and Clock Skew effects
 SerialTransmission Modes:
 Synchronous Data Transfer
 Asynchronous DataTransfer
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 10
Synchronous Data Transfer
 Generates the Data Clock and sends it to the receiver which
works accordingly in a synchronized manner.
 Faster and Reliable Mechanism
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 11
Asynchronous Data Transfer
 Generates the data clock internally and no incoming serial clock
signal.
 Proper Communication:TX and RX must be using the same baud
rate - rate at which bits are being sent bps (bits per second).
 Uses Start Bit, Stop Bit and Parity Bit for data reliability.
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 12
TERMINOLOGIES
 MSB/LSB : Sounds familiar, but it’s crucial!
◦ Asynchronous : LSB sent First
◦ Synchronous : MSB sent First
 SIMPLEX - HALF DUPLEX - FULL DUPLEX
 BAUDRATE - Number of symbols (group of bits)
transceived per second.
-TX and RX should obey same baud rate value!
 MASTER/SLAVE Concept: Usually Synchronous.Sometimes, Multi
Master/Slave too!
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 13
SPI
 Serial Peripheral Interface by Motorola in mid-1980’s
 Intra System - Full Duplex, Sync. Serial Communication
Protocol
 4 Pins - 4 wire communication protocol
SCK - Serial Clock
MOSI - Master Out, Slave In
MISO - Master In, Slave Out
CS/SS - Chip Select/Slave Select
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 14
SPI - Two key terms
 CPOL - Clock Polarity
 CPHASE - Clock Phase
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 15
SPI - Two key terms
 CPOL - Clock Polarity
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 16
SPI - Two key terms
 CPHASE - Clock Phase
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 17
Contd.,
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 18
SPI CONFIGURATIONS
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 19
Contd.,
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 20
Contd.,
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 21
Problem under Multi Slave
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 22
Advantages & Disadvantages
 Advantages:
◦ High Speed Protocol & Full Duplex
Communication
◦ No complexity - Address of the Slave Device
◦ Best Suited for Single Master Single Slave
Configuration
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 23
Advantages & Disadvantages
 Disadvantages:
◦ Pin Count is directly proportional to the
Number of Slave Devices
◦ No Acknowledgement!
◦ Slow speed device determining the speed
Example Devices: LM74 and TMP125
Temperature Sensors with SPI Interface
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 24
I2C
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 25
 Inter Integrated Circuits by Philips in mid-1980’s
 Intra System - Half Duplex Sync. Serial Communication
Protocol
 2 Pins - 2 wire topology
SCK - Serial Clock
SDA - Serial Data
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 26
I2C
I2C - Data Format
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 27
- Register Address + Data
I2C - Advanced Logics
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 28
Advantages:
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 29
Disadvantages:
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 30
I2C Real World Devices:
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 31
I2C vs SPI:
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 32
UART
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 33
Inter System - Async. Serial Communication Protocol
UART - Connection
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 34
UART - Frame
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 35
Advantages
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 36
Disadvantages
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 37
USB vs UART vs USART
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 38
REFERENCES
 “Serial I-O”, Dinesh K. Sharma Electrical Engineering
Department I.I.T. Bombay Mumbai 400 076, (version July 11,
2016)
 https://deepbluembedded.com/uart-pic-microcontroller-
tutorial/
 https://i2c.info/
 https://www.slideshare.net/EmertxeSlides/communication-
protocols-31945098
More References are available in Google andYouTube! Practical
experiments are needed to understand the concepts clearly!
Just search these keywords 
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 39
THANKYOU!
30 April 2019 09EC6656 | SEMINAR ON INTERFACES 40

More Related Content

What's hot (20)

Module 2 ARM CORTEX M3 Instruction Set and Programming
Module 2 ARM CORTEX M3 Instruction Set and ProgrammingModule 2 ARM CORTEX M3 Instruction Set and Programming
Module 2 ARM CORTEX M3 Instruction Set and Programming
 
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
 
UART
UARTUART
UART
 
I2C
I2CI2C
I2C
 
Soc architecture and design
Soc architecture and designSoc architecture and design
Soc architecture and design
 
SPI Bus Protocol
SPI Bus ProtocolSPI Bus Protocol
SPI Bus Protocol
 
ARM Processors
ARM ProcessorsARM Processors
ARM Processors
 
AMBA AHB 5
AMBA AHB 5AMBA AHB 5
AMBA AHB 5
 
Fpga
FpgaFpga
Fpga
 
APB protocol v1.0
APB protocol v1.0APB protocol v1.0
APB protocol v1.0
 
NAVEEN UART BATCH 43
NAVEEN UART BATCH 43NAVEEN UART BATCH 43
NAVEEN UART BATCH 43
 
Introduction to ARM LPC2148
Introduction to ARM LPC2148Introduction to ARM LPC2148
Introduction to ARM LPC2148
 
I2C
I2CI2C
I2C
 
Rs232 485 fundamental
Rs232 485 fundamentalRs232 485 fundamental
Rs232 485 fundamental
 
Asynchronous Serial Communication and standards
Asynchronous Serial Communication and standardsAsynchronous Serial Communication and standards
Asynchronous Serial Communication and standards
 
SPI Protocol
SPI ProtocolSPI Protocol
SPI Protocol
 
Analog to digital converter
Analog to digital converterAnalog to digital converter
Analog to digital converter
 
I2C introduction
I2C introductionI2C introduction
I2C introduction
 
Pcie basic
Pcie basicPcie basic
Pcie basic
 
Spi in arm7(lpc2148)
Spi in arm7(lpc2148)Spi in arm7(lpc2148)
Spi in arm7(lpc2148)
 

Similar to I2C-SPI-UART Basics || Embedded System || Hariharan K

wind based measurement and uncertainity using kalman filtering
wind based measurement and uncertainity using kalman filteringwind based measurement and uncertainity using kalman filtering
wind based measurement and uncertainity using kalman filteringPrasanna Nataraj
 
IRJET- Data Acquisition using Tensile Strength Testing Machine
IRJET- Data Acquisition using Tensile Strength Testing MachineIRJET- Data Acquisition using Tensile Strength Testing Machine
IRJET- Data Acquisition using Tensile Strength Testing MachineIRJET Journal
 
IRJET- FPGA Implementation of Efficient Muf Gate based Multipliers
IRJET-  	  FPGA Implementation of Efficient Muf Gate based MultipliersIRJET-  	  FPGA Implementation of Efficient Muf Gate based Multipliers
IRJET- FPGA Implementation of Efficient Muf Gate based MultipliersIRJET Journal
 
IRJET- Review on Performance of OTA Structure
IRJET- Review on Performance of OTA StructureIRJET- Review on Performance of OTA Structure
IRJET- Review on Performance of OTA StructureIRJET Journal
 
IRJET - Realization of Power Optimised Carry Skip Adder using AOI Logic
IRJET -  	  Realization of Power Optimised Carry Skip Adder using AOI LogicIRJET -  	  Realization of Power Optimised Carry Skip Adder using AOI Logic
IRJET - Realization of Power Optimised Carry Skip Adder using AOI LogicIRJET Journal
 
e-SIM Technology || Electronics || Hariharan K
e-SIM Technology || Electronics || Hariharan Ke-SIM Technology || Electronics || Hariharan K
e-SIM Technology || Electronics || Hariharan KHariharan Krishnan
 
CCNA Course Training Presentation
CCNA Course Training PresentationCCNA Course Training Presentation
CCNA Course Training PresentationRohit Singh
 
IRJET- Analysis of Slotted CSMA/CA of IEEE 802.15.4
IRJET- Analysis of Slotted CSMA/CA of IEEE 802.15.4IRJET- Analysis of Slotted CSMA/CA of IEEE 802.15.4
IRJET- Analysis of Slotted CSMA/CA of IEEE 802.15.4IRJET Journal
 
Computer Interface for Electroluminescence (EL)
Computer Interface for Electroluminescence (EL)Computer Interface for Electroluminescence (EL)
Computer Interface for Electroluminescence (EL)Editor IJCATR
 
Design and Performance Analysis of 8 x 8 Network on Chip Router
Design and Performance Analysis of 8 x 8 Network on Chip RouterDesign and Performance Analysis of 8 x 8 Network on Chip Router
Design and Performance Analysis of 8 x 8 Network on Chip RouterIRJET Journal
 
Railway Industrial Training Report
Railway Industrial Training ReportRailway Industrial Training Report
Railway Industrial Training ReportLokesh Parihar
 
IRJET- Wireless Gas Leak Detection and Localization for Remote Vehicles using...
IRJET- Wireless Gas Leak Detection and Localization for Remote Vehicles using...IRJET- Wireless Gas Leak Detection and Localization for Remote Vehicles using...
IRJET- Wireless Gas Leak Detection and Localization for Remote Vehicles using...IRJET Journal
 
Low power cmos binary counter using conventional flip flops
Low power cmos binary counter using conventional flip   flopsLow power cmos binary counter using conventional flip   flops
Low power cmos binary counter using conventional flip flopsIAEME Publication
 
IRJET- Household IOT based Air Pollution Controlling and Monitoring System us...
IRJET- Household IOT based Air Pollution Controlling and Monitoring System us...IRJET- Household IOT based Air Pollution Controlling and Monitoring System us...
IRJET- Household IOT based Air Pollution Controlling and Monitoring System us...IRJET Journal
 
IRJET- A Study on: Wireless Sensing Network (WSN) Gas Leakage Detection S...
IRJET-  	  A Study on: Wireless Sensing Network (WSN) Gas Leakage Detection S...IRJET-  	  A Study on: Wireless Sensing Network (WSN) Gas Leakage Detection S...
IRJET- A Study on: Wireless Sensing Network (WSN) Gas Leakage Detection S...IRJET Journal
 
Fpga implementation of multi protocol data
Fpga implementation of multi protocol dataFpga implementation of multi protocol data
Fpga implementation of multi protocol dataeSAT Publishing House
 
IRJET- Power Line Carrier Communication
IRJET- Power Line Carrier CommunicationIRJET- Power Line Carrier Communication
IRJET- Power Line Carrier CommunicationIRJET Journal
 
Design and Implementation of Secured Wireless Communication Using Raspberry Pi
Design and Implementation of Secured Wireless Communication Using Raspberry PiDesign and Implementation of Secured Wireless Communication Using Raspberry Pi
Design and Implementation of Secured Wireless Communication Using Raspberry PiIRJET Journal
 
IRJET- A Novel Design of Flip Flop and its Application in Up Counter
IRJET-  	  A Novel Design of Flip Flop and its Application in Up CounterIRJET-  	  A Novel Design of Flip Flop and its Application in Up Counter
IRJET- A Novel Design of Flip Flop and its Application in Up CounterIRJET Journal
 

Similar to I2C-SPI-UART Basics || Embedded System || Hariharan K (20)

wind based measurement and uncertainity using kalman filtering
wind based measurement and uncertainity using kalman filteringwind based measurement and uncertainity using kalman filtering
wind based measurement and uncertainity using kalman filtering
 
IRJET- Data Acquisition using Tensile Strength Testing Machine
IRJET- Data Acquisition using Tensile Strength Testing MachineIRJET- Data Acquisition using Tensile Strength Testing Machine
IRJET- Data Acquisition using Tensile Strength Testing Machine
 
IRJET- FPGA Implementation of Efficient Muf Gate based Multipliers
IRJET-  	  FPGA Implementation of Efficient Muf Gate based MultipliersIRJET-  	  FPGA Implementation of Efficient Muf Gate based Multipliers
IRJET- FPGA Implementation of Efficient Muf Gate based Multipliers
 
IRJET- Review on Performance of OTA Structure
IRJET- Review on Performance of OTA StructureIRJET- Review on Performance of OTA Structure
IRJET- Review on Performance of OTA Structure
 
IRJET - Realization of Power Optimised Carry Skip Adder using AOI Logic
IRJET -  	  Realization of Power Optimised Carry Skip Adder using AOI LogicIRJET -  	  Realization of Power Optimised Carry Skip Adder using AOI Logic
IRJET - Realization of Power Optimised Carry Skip Adder using AOI Logic
 
e-SIM Technology || Electronics || Hariharan K
e-SIM Technology || Electronics || Hariharan Ke-SIM Technology || Electronics || Hariharan K
e-SIM Technology || Electronics || Hariharan K
 
CCNA Course Training Presentation
CCNA Course Training PresentationCCNA Course Training Presentation
CCNA Course Training Presentation
 
IRJET- Analysis of Slotted CSMA/CA of IEEE 802.15.4
IRJET- Analysis of Slotted CSMA/CA of IEEE 802.15.4IRJET- Analysis of Slotted CSMA/CA of IEEE 802.15.4
IRJET- Analysis of Slotted CSMA/CA of IEEE 802.15.4
 
Computer Interface for Electroluminescence (EL)
Computer Interface for Electroluminescence (EL)Computer Interface for Electroluminescence (EL)
Computer Interface for Electroluminescence (EL)
 
Final Report Content
Final Report ContentFinal Report Content
Final Report Content
 
Design and Performance Analysis of 8 x 8 Network on Chip Router
Design and Performance Analysis of 8 x 8 Network on Chip RouterDesign and Performance Analysis of 8 x 8 Network on Chip Router
Design and Performance Analysis of 8 x 8 Network on Chip Router
 
Railway Industrial Training Report
Railway Industrial Training ReportRailway Industrial Training Report
Railway Industrial Training Report
 
IRJET- Wireless Gas Leak Detection and Localization for Remote Vehicles using...
IRJET- Wireless Gas Leak Detection and Localization for Remote Vehicles using...IRJET- Wireless Gas Leak Detection and Localization for Remote Vehicles using...
IRJET- Wireless Gas Leak Detection and Localization for Remote Vehicles using...
 
Low power cmos binary counter using conventional flip flops
Low power cmos binary counter using conventional flip   flopsLow power cmos binary counter using conventional flip   flops
Low power cmos binary counter using conventional flip flops
 
IRJET- Household IOT based Air Pollution Controlling and Monitoring System us...
IRJET- Household IOT based Air Pollution Controlling and Monitoring System us...IRJET- Household IOT based Air Pollution Controlling and Monitoring System us...
IRJET- Household IOT based Air Pollution Controlling and Monitoring System us...
 
IRJET- A Study on: Wireless Sensing Network (WSN) Gas Leakage Detection S...
IRJET-  	  A Study on: Wireless Sensing Network (WSN) Gas Leakage Detection S...IRJET-  	  A Study on: Wireless Sensing Network (WSN) Gas Leakage Detection S...
IRJET- A Study on: Wireless Sensing Network (WSN) Gas Leakage Detection S...
 
Fpga implementation of multi protocol data
Fpga implementation of multi protocol dataFpga implementation of multi protocol data
Fpga implementation of multi protocol data
 
IRJET- Power Line Carrier Communication
IRJET- Power Line Carrier CommunicationIRJET- Power Line Carrier Communication
IRJET- Power Line Carrier Communication
 
Design and Implementation of Secured Wireless Communication Using Raspberry Pi
Design and Implementation of Secured Wireless Communication Using Raspberry PiDesign and Implementation of Secured Wireless Communication Using Raspberry Pi
Design and Implementation of Secured Wireless Communication Using Raspberry Pi
 
IRJET- A Novel Design of Flip Flop and its Application in Up Counter
IRJET-  	  A Novel Design of Flip Flop and its Application in Up CounterIRJET-  	  A Novel Design of Flip Flop and its Application in Up Counter
IRJET- A Novel Design of Flip Flop and its Application in Up Counter
 

Recently uploaded

Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
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
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
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 Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 

Recently uploaded (20)

Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
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
 
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
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
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
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 

I2C-SPI-UART Basics || Embedded System || Hariharan K

  • 1. ELECTRONIC COMMUNICATION PROTOCOLS 09EC6656 – HIGH SPEED DIGITAL DESIGN Seminar on Theoretical Aspects Prepared & Presented by: HARIHARAN K UCC18ECED08,M.Tech Scholar Dept. of Electronics DesignTechnology, NIELIT – Calicut. Guided by: JAYARAJ U KIDAV Scientist/Engineer - ‘D’ NIELIT – Calicut.
  • 2. OUTLINE  Introduction  Why we need Protocol?  SPI, I2C  UART 30 April 2019 209EC6656 | SEMINAR ON INTERFACES
  • 3. INTRODUCTION  Embedded System : ◦ HARDWARE + SOFTWARE to perform a desired application.  SYSTEM takes INPUT, processes the same, provides the desired OUTPUT  COMMUNICATION is happening! 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 3
  • 4. - Examples: CAN, I2C, I2S, SPI, Serial, USART, UART, USB, RS-232, RS-485, Bluetooth,Wi-Fi, ZigBee, LIN, MQTT, RFID, NFC etc., 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 4 COMMUNICATION PROTOCOL - A set of rules and regulations that allow two electronic devices to connect to exchange the data with one and another. - RealWorld Applications: - Remote Controlled Gadgets - FileTransfer between PC and Mobile
  • 5. CATEGORIES  In terms of communication: - Serial Communication - Parallel Communication  In terms of Peripheral Accessibility: - Inter System Protocol Ex: Between a CPU and a Embedded Development board : USB, UART etc., - Intra System Protocol Ex: Between two devices in a circuit board : SPI, I2C etc., 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 5
  • 6. SERIAL vs. PARALLEL 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 6
  • 7. Contd., 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 7
  • 8. Internals of Serial Comm. 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 8 Serial Communication is all about Shift Registers! Shift registers: Some D-Flip-Flops serially connected while sharing the same clock line.
  • 9. How data is sent serially? 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 9 Transmitter: loading data in parallel to a shift register, and shifting it out a bit at a time - Parallel In Serial Out Shift Register Receiver: receiving data a single bit at a time and when all bits are received, the shift register can be read in parallel - Serial In Parallel Out Shift Register
  • 10. SERIAL IO  Serial communication is preferred, because:  Few number of wires, less space etc.,  Cost effective for long distances  No Crosstalk and Clock Skew effects  SerialTransmission Modes:  Synchronous Data Transfer  Asynchronous DataTransfer 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 10
  • 11. Synchronous Data Transfer  Generates the Data Clock and sends it to the receiver which works accordingly in a synchronized manner.  Faster and Reliable Mechanism 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 11
  • 12. Asynchronous Data Transfer  Generates the data clock internally and no incoming serial clock signal.  Proper Communication:TX and RX must be using the same baud rate - rate at which bits are being sent bps (bits per second).  Uses Start Bit, Stop Bit and Parity Bit for data reliability. 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 12
  • 13. TERMINOLOGIES  MSB/LSB : Sounds familiar, but it’s crucial! ◦ Asynchronous : LSB sent First ◦ Synchronous : MSB sent First  SIMPLEX - HALF DUPLEX - FULL DUPLEX  BAUDRATE - Number of symbols (group of bits) transceived per second. -TX and RX should obey same baud rate value!  MASTER/SLAVE Concept: Usually Synchronous.Sometimes, Multi Master/Slave too! 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 13
  • 14. SPI  Serial Peripheral Interface by Motorola in mid-1980’s  Intra System - Full Duplex, Sync. Serial Communication Protocol  4 Pins - 4 wire communication protocol SCK - Serial Clock MOSI - Master Out, Slave In MISO - Master In, Slave Out CS/SS - Chip Select/Slave Select 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 14
  • 15. SPI - Two key terms  CPOL - Clock Polarity  CPHASE - Clock Phase 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 15
  • 16. SPI - Two key terms  CPOL - Clock Polarity 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 16
  • 17. SPI - Two key terms  CPHASE - Clock Phase 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 17
  • 18. Contd., 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 18
  • 19. SPI CONFIGURATIONS 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 19
  • 20. Contd., 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 20
  • 21. Contd., 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 21
  • 22. Problem under Multi Slave 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 22
  • 23. Advantages & Disadvantages  Advantages: ◦ High Speed Protocol & Full Duplex Communication ◦ No complexity - Address of the Slave Device ◦ Best Suited for Single Master Single Slave Configuration 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 23
  • 24. Advantages & Disadvantages  Disadvantages: ◦ Pin Count is directly proportional to the Number of Slave Devices ◦ No Acknowledgement! ◦ Slow speed device determining the speed Example Devices: LM74 and TMP125 Temperature Sensors with SPI Interface 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 24
  • 25. I2C 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 25  Inter Integrated Circuits by Philips in mid-1980’s  Intra System - Half Duplex Sync. Serial Communication Protocol  2 Pins - 2 wire topology SCK - Serial Clock SDA - Serial Data
  • 26. 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 26 I2C
  • 27. I2C - Data Format 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 27 - Register Address + Data
  • 28. I2C - Advanced Logics 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 28
  • 29. Advantages: 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 29
  • 30. Disadvantages: 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 30
  • 31. I2C Real World Devices: 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 31
  • 32. I2C vs SPI: 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 32
  • 33. UART 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 33 Inter System - Async. Serial Communication Protocol
  • 34. UART - Connection 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 34
  • 35. UART - Frame 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 35
  • 36. Advantages 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 36
  • 37. Disadvantages 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 37
  • 38. USB vs UART vs USART 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 38
  • 39. REFERENCES  “Serial I-O”, Dinesh K. Sharma Electrical Engineering Department I.I.T. Bombay Mumbai 400 076, (version July 11, 2016)  https://deepbluembedded.com/uart-pic-microcontroller- tutorial/  https://i2c.info/  https://www.slideshare.net/EmertxeSlides/communication- protocols-31945098 More References are available in Google andYouTube! Practical experiments are needed to understand the concepts clearly! Just search these keywords  30 April 2019 09EC6656 | SEMINAR ON INTERFACES 39
  • 40. THANKYOU! 30 April 2019 09EC6656 | SEMINAR ON INTERFACES 40