SlideShare a Scribd company logo
1 of 49
EMBEDDED NETWORKING
A.ARULKUMAR
Asst. Professor
Dept. of Mechatronics Engineering
Kamaraj College of Engg & Tech.
Devices and Communication Buses for
Embedded Networking
• I/O ports – Serial and Parallel
• Interfacing of devices through ports
• Timer
• Real Time Clock
• Networked Embedded Systems
• Serial / Parallel Bus communication protocols
18/03/2020 A.ARULKUMAR- Embedded Networking 2
Hardware units - I/O buses
• Serial Bus examples:
– RS232 (20kBaud)
– CAN (33 kbps)
• Controller Area Network
– Fault tolerant CAN (110
kbps)
– SM I2C (100kbps)
• System Management
– SPI (100 kbps)
• Serial Peripheral Interface
– MicroWire (300 kbps)
– FireWire/IEEE 1394 (400
Mbps, 72m)
– High Speed USB 2.0 (480
Mbps, 25m)
3
A.ARULKUMAR- Embedded Networking
18/03/2020
• Parallel bus examples
• SCSI parallel (40 Mbps),
• Small computer System interface
• Used for interfacing Hard drive,
CDROM, within the system
• Fast SCSI (8M to 80 Mbps) & Ultra
SCSI-3 (8M to 160 Mbps)
• For interfacing more devices to a
processor at higher burst transfer
rates
• PCI
• PCI-X
I/O Port
• To exchange bytes between the processor and external devices
using processor instructions
• Connected using address decoder and system bus
• Addresses of the port-registers used for
– programming the port functions or modes
– reading port status
– writing or reading bytes
• Serial port:
– sync / async,
– input / output / IO
• Parallel port:
– single bit / multibit,
– input / output
18/03/2020
A.ARULKUMAR- Embedded Networking
4
Serial Communication modes
• Half duplex
– Between Modem and telephone line
• Full duplex
– Between Modem and Processor
Serial Communication Protocols
• A protocol is a standard adopted which tells the way in
which the bits of a frame must be sent from a device (or
controller or port or processor) to another device or system
• Protocol identification:
– Type: Sync / Async
– Frame length (variable / fixed)
– Frame contents (Header, address, data, etc.)
– Error control, flow control procedures
• Syncronized communication protocols
– I2C
• Async communication protocols
– RS232
Synchronous serial I/O
• The sender (Master) sends SCLK to the receiver (Slave)
• SCLK can be in the same data line or separate line
• Synchronous serial I/O is used for:
– inter-processor transfers
– streaming data,
– multiprocessor communication,
– writing to CD or hard disk,
– network device output
– serial I/O bus output
– writing to flash memory
• No handshaking. Fixed Clock for synchronized
communication
18/03/2020
A.ARULKUMAR- Embedded Networking
7
Serial communication –
Synchronization methods
18/03/2020
A.ARULKUMAR- Embedded Networking
8
18/03/2020
A.ARULKUMAR- Embedded Networking
9
Asynchronous Serial I/O
• Does not use SCLK but uses handshaking
signals for exchanging data
• Each received byte is not in synchronization.
• Bytes are separated by variable intervals or
phase differences
• E.g. Inputs from Keyboard, mouse, modem
through UART using UART standard format
• Async. Serial ports: E.g. COM1 and COM2
18/03/2020
A.ARULKUMAR- Embedded Networking
10
RS232
• For asynchronous communication between DTE and DCE
(E.g. Modem and UART)
• uses UART standard format for TxD and RxD lines
– logic 1 (Receiver) – 3 V to – 25 V
– logic 0 (Receiver) + 3 V to + 25 V
– logic 1 (Transmitter) – 5 V to – 15 V
– logic 0 (Transmitter) + 5 V to + 15 V
• opposite to that of TTL logic
• wider noise margin to enable long distance communication
• Handshaking signals
– RI, DCD, DSR, DTR, RTS, CTS, DTR
RS232 interface
• Question: What is the difference between Bit rate and Baud rate?
18/03/2020
A.ARULKUMAR- Embedded Networking
14
RS422
• Purpose: To extend RS232
• Point to Point, Multi-drop (RS485 is multi-point as it
can have more than 1 driver)
• Max devices 10 (1 driver and 10 receivers)
• Distance 1500m
• Differential mode signal
• Speed 100 kbps to 10Mbps
• Voltage levels: -6 to +6V
• Mark (1) : Negative voltage
• Space (0) : Positive voltage
RS485
• Used in Industrial control systems for proprietary automation protocols
• Differential signal is used. Hence EMI is suppressed. Used in PLCs
• Voltage level: RS485 driver provides a differential voltage of 1.5V across 54
Ohm load
• Long distance serial communication (1200m) in electrically noisy
environments
• Multiple receivers can be connected in linear bus topology with multi-drop
configuration
• Termination resistors (120 Ohms for twisted pair) are required
• Speed 35 Mbps (10m) 100 kbps (1200m)
• Rule: speed x length < 108
• Master-slave arrangement: master initiates communication
• Full duplex possible with 4 wires
• Can interoperate with RS422
• No specific connector or pinout.
• Asnchronous start-stop method of RS485
communication
• Uses two pins non-inverting pin and inverting
pin
Serial Peripheral Interface (SPI)
• Hardware / Firmware communication protocol
18/03/2020
A.ARULKUMAR- Embedded Networking
21
Synchronised Serial SPI bus connection
Typical SPI Bus Daisychained SPI bus
(three independent slaves) (three cooperative slaves)
18/03/2020
A.ARULKUMAR- Embedded Networking
22
SPI features
• Full-duplex Synchronous communication.
• SCLK, MOSI and MISO signals for serial clock
from master, output from master and input to
master, respectively.
• Device selection as master or slave can be
done by a signal to hardware input SS (Slave
select when 0)
I2C bus
• Inter-Integrated Circuit Bus
• Synchronous Serial Bus
• Interconnecting devices & Circuits within the system
• E.g. Flash memory, touch screen, sensor Ics,
• Master and Slave concept
• Master controls the clock and generates START and STOP signals.
• Slaves simply listen to the bus and act on controls and data that they are
sent.
• The master can send data to a slave or receive data from a slave - slaves do
not transfer data between themselves.
• Multi master operation involves arbitration of the bus (where a master has
to fight to get control of the bus) and clock synchronization (each may a use
a different clock e.g. because of separate crystal clocks for each micro).
18/03/2020
A.ARULKUMAR- Embedded Networking
25
I2C features
• Three standards
– Industrial 100 kbps I2C
– 100 kbps SM I2C
– 400 kbps I2C
• Each device has 7-bit address
• Master can address 127 slaves
• Master has a bus controller or Microcontroller with I2C bus
interface. Each slave can also optionally have I2C bus
controller and processing element.
• A number of masters can be connected on the bus. But, at
a time, there is only one master which initiates a data
transfer on SDA (serial data) line and which transmits the
SCL (serial clock) pulses.
I2C Bits
• START (1) similar to UART
• Address (7) defines the slave address, which is being sent the data frame (of
many bytes) by the master
• R/W (1) defines whether read or write is in progress
• Ack (1) defines whether the present data is an acknowledgment (from slave)
• Data (8) I2C device data byte
• NACK (1) from the receiver. If active then ack is not needed from the slave
• STOP (1) Similar to UART
CAN bus
• Developed by Bosch for automotive industry
• Replaces complex wiring harness with simple two-wire bus
• In USB, large blocks of data transferred point-to-point
• In CAN, many short data broadcast throughout the network.
18/03/2020
A.ARULKUMAR- Embedded Networking
29
CAN Bus - Features
• Network of embedded systems in an automobile
• Interconnects to a CAN controller between line and
host at the node. Connects the physical and data link
layers at the host node.
• The CAN controller has
– BIU consisting of buffer and driver
– Protocol controller
– Status-cum control registers
– Receiver-buffer
– Message objects.
• The above units connect the host node through the
host interface circuit
• Three standards
– 33 kbps CAN,
– 110 kbps Fault Tolerant CAN,
– 1 Mbps High Speed CAN
• CAN protocol
– Carrier Sense Multiple Access with Arbitration on Message Priority basis
• Each distributed node uses
– Twisted Pair Connection up to 40 m for bi-directional data
– Line, which pulls to Logic 1 through a resistor between the line and + 4.5V to
+12V
– Line Idle state Logic 1 (Recessive state)
– a buffer gate between an input pin and the CAN line
• Device Detects Input Presence at the CAN line, pulled down to dominant
or active state (0V) by a sender. The sender device uses a current driver
between the output pin and CAN line to pull down to active state.
• Arbitration concept using Remote Transmission Request (RTR)
– RTR=1: Pkt has data for the destn device
– RTR=0: Pkt has a request for data from destination device
USB
• Serial transmission and reception between host and serial devices such as:
– flash memory cards, pen-like memory devices, digital camera, printer, mouse-
device, PocketPC, video games, Scanner
• Four types of data transfer:
– Controlled data transfer
– Bulk data transfer
– Interrupt driven data transfer
– Iso-synchronous transfer
• Maximum 127 devices can be connected to host
• Three standards:
– USB 1.1 (a low speed 1.5 Mbps 3m channel along with a high speed 12 Mbps
25 meter channel)
– USB 2.0 (high speed 480 Mbps 25m channel)
– Wireless USB (high speed 480 Mbps 3m)
USB & Firewire
• Firewire 400 (400 Mbps)
• USB 2.0 (480 Mbps)
• Firewire 800 (800 Mbps)
18/03/2020
A.ARULKUMAR- Embedded Networking
36
Microwire
• Older than SPI
• Faster than I2C
18/03/2020
A.ARULKUMAR- Embedded Networking
37
UART
• Any serial device can be connected to the computer through UART
18/03/2020
A.ARULKUMAR- Embedded Networking
38
18/03/2020
A.ARULKUMAR- Embedded Networking
39
Parallel Port
• Single bit input and output
– Not generally used
• Multibit input
– ADC
– Encoder
• Multibit output
– Printer
– LCD / LED display
• Multibit I/O
– 8255 PPI
– Touchscreen
Handshaking signals at the Port
• STROBE
• PORT READY
• BUFFER-FULL
• ACKNOWLEDGE
• INTERRUPT REQUEST
Handshaking Procedure for Parallel
Communication
• For input at a port
– Device makes a request to system I/O port – STROBE
– Port sends ack - PORT READY
– Port receives data in receiving buffer
– Port sends INTERRUPT REQUEST to processor indicating receiving-
buffer is full (available for next read)
– Issues INT to processor to enable ISR
• For output at a port
– Processor writes data into transmitting buffer
– Port sends BUFFER FULL to device to inform that buffer is full.
– Device reads message and sends ACKNOWLEDGE
– Port sends INTERRUPT REQUEST to Processor indicating transmitting-
buffer is empty (available for next write)
8255 Programmable Peripheral
Interface
• Four addresses for the PPI port, three for the
ports and one for the control word.
• Three 8-bit ports− port A, B and C.
• Port C programmable to function in bit set
reset mode. Each bit of port C can be set to 1
or reset to 0 by an appropriate control word.
• Alternatively, the ports can be grouped as
Group A (Port A and Port C upper four bits) or
Group B (Port B and Port C lower four bits).
Parallel – ISA Bus
• 16-bit and 8-bit ISA slots
Parallel communication - PCI
• Peripheral Component Interconnect
• 32 pin interface for connecting additional hardware to a system
• 33 MHz speed
• E.g. Add-on boards, Processor / memory systems
• Not generally used in Embedded systems
18/03/2020
A.ARULKUMAR- Embedded Networking
46
Parallel communication – PCI X
• Peripheral component interconnect Extended
• 64 bit operation
• 66 / 100 / 133 MHz speed
18/03/2020
A.ARULKUMAR- Embedded Networking
47
Parallel communication - SCSI
• Small Computer System Interface
• Parallel interface standard for connecting peripherals such as
printers, hard disk, CD ROM drive, etc.
18/03/2020
A.ARULKUMAR- Embedded Networking
48
THANK YOU

More Related Content

What's hot

I/O port programming in 8051
I/O port programming in 8051I/O port programming in 8051
I/O port programming in 8051ssuser3a47cb
 
Computer architecture
Computer architectureComputer architecture
Computer architectureRishabha Garg
 
MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration AKHIL MADANKAR
 
Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085ShivamSood22
 
8051 Microcontroller I/O ports
8051 Microcontroller I/O ports8051 Microcontroller I/O ports
8051 Microcontroller I/O portsanishgoel
 
Unit-I Basic Embedded System Notes
Unit-I Basic Embedded System NotesUnit-I Basic Embedded System Notes
Unit-I Basic Embedded System NotesDr. Pankaj Zope
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Jismy .K.Jose
 
Arm cortex-m3 by-joe_bungo_arm
Arm cortex-m3 by-joe_bungo_armArm cortex-m3 by-joe_bungo_arm
Arm cortex-m3 by-joe_bungo_armPrashant Ahire
 
8051 Addressing Modes
8051 Addressing Modes8051 Addressing Modes
8051 Addressing ModesSenthil Kumar
 
Computer architecture register transfer languages rtl
Computer architecture register transfer languages rtlComputer architecture register transfer languages rtl
Computer architecture register transfer languages rtlMazin Alwaaly
 
Microcontroller-8051.ppt
Microcontroller-8051.pptMicrocontroller-8051.ppt
Microcontroller-8051.pptDr.YNM
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontrollerSiva Kumar
 
Minimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorMinimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorNikhil Kumar
 

What's hot (20)

I/O port programming in 8051
I/O port programming in 8051I/O port programming in 8051
I/O port programming in 8051
 
ARM CORTEX M3 PPT
ARM CORTEX M3 PPTARM CORTEX M3 PPT
ARM CORTEX M3 PPT
 
Embedded systems basics
Embedded systems basicsEmbedded systems basics
Embedded systems basics
 
Embedded C - Lecture 1
Embedded C - Lecture 1Embedded C - Lecture 1
Embedded C - Lecture 1
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
ARM Processors
ARM ProcessorsARM Processors
ARM Processors
 
MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration
 
8051 interrupts
8051 interrupts8051 interrupts
8051 interrupts
 
PIC Microcontrollers
PIC MicrocontrollersPIC Microcontrollers
PIC Microcontrollers
 
Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085
 
8051 Microcontroller I/O ports
8051 Microcontroller I/O ports8051 Microcontroller I/O ports
8051 Microcontroller I/O ports
 
Communication Protocols (UART, SPI,I2C)
Communication Protocols (UART, SPI,I2C)Communication Protocols (UART, SPI,I2C)
Communication Protocols (UART, SPI,I2C)
 
Unit-I Basic Embedded System Notes
Unit-I Basic Embedded System NotesUnit-I Basic Embedded System Notes
Unit-I Basic Embedded System Notes
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086
 
Arm cortex-m3 by-joe_bungo_arm
Arm cortex-m3 by-joe_bungo_armArm cortex-m3 by-joe_bungo_arm
Arm cortex-m3 by-joe_bungo_arm
 
8051 Addressing Modes
8051 Addressing Modes8051 Addressing Modes
8051 Addressing Modes
 
Computer architecture register transfer languages rtl
Computer architecture register transfer languages rtlComputer architecture register transfer languages rtl
Computer architecture register transfer languages rtl
 
Microcontroller-8051.ppt
Microcontroller-8051.pptMicrocontroller-8051.ppt
Microcontroller-8051.ppt
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
 
Minimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorMinimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 Microprocessor
 

Similar to Embedded networking

serial_busses_i2c.pptx
serial_busses_i2c.pptxserial_busses_i2c.pptx
serial_busses_i2c.pptxSKUP1
 
Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems VijayKumar5738
 
I2C And SPI Part-23
I2C And  SPI Part-23I2C And  SPI Part-23
I2C And SPI Part-23Techvilla
 
Inter intergrated circuits-communication protocol
Inter intergrated circuits-communication protocolInter intergrated circuits-communication protocol
Inter intergrated circuits-communication protocolRevathi Subramaniam
 
Deepu Kumar Shah.pptx
Deepu Kumar Shah.pptxDeepu Kumar Shah.pptx
Deepu Kumar Shah.pptxDeepuShah
 
Embedded sysyetm components
Embedded sysyetm componentsEmbedded sysyetm components
Embedded sysyetm componentslambanaveen
 
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
 
Switched networks (LAN Switching – Switches)
Switched networks (LAN Switching – Switches)Switched networks (LAN Switching – Switches)
Switched networks (LAN Switching – Switches)Fleurati
 
communication interfaces-Embedded real time systems
communication interfaces-Embedded real time systemscommunication interfaces-Embedded real time systems
communication interfaces-Embedded real time systemsRaghunath reddy
 
Smart Grid & Energy Management Products
Smart Grid & Energy Management ProductsSmart Grid & Energy Management Products
Smart Grid & Energy Management ProductsP R S V
 

Similar to Embedded networking (20)

serial_busses_i2c.pptx
serial_busses_i2c.pptxserial_busses_i2c.pptx
serial_busses_i2c.pptx
 
Serial Busses.pptx
Serial Busses.pptxSerial Busses.pptx
Serial Busses.pptx
 
serial.ppt
serial.pptserial.ppt
serial.ppt
 
serial.ppt
serial.pptserial.ppt
serial.ppt
 
Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems
 
Chapter 3 esy
Chapter 3 esy Chapter 3 esy
Chapter 3 esy
 
Communication protocols
Communication protocolsCommunication protocols
Communication protocols
 
I2C And SPI Part-23
I2C And  SPI Part-23I2C And  SPI Part-23
I2C And SPI Part-23
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
Inter intergrated circuits-communication protocol
Inter intergrated circuits-communication protocolInter intergrated circuits-communication protocol
Inter intergrated circuits-communication protocol
 
Deepu Kumar Shah.pptx
Deepu Kumar Shah.pptxDeepu Kumar Shah.pptx
Deepu Kumar Shah.pptx
 
Embedded sysyetm components
Embedded sysyetm componentsEmbedded sysyetm components
Embedded sysyetm components
 
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
 
Computer Interfaces
Computer Interfaces Computer Interfaces
Computer Interfaces
 
Switched networks (LAN Switching – Switches)
Switched networks (LAN Switching – Switches)Switched networks (LAN Switching – Switches)
Switched networks (LAN Switching – Switches)
 
USART
USARTUSART
USART
 
SPI Bus Protocol
SPI Bus ProtocolSPI Bus Protocol
SPI Bus Protocol
 
iot-component-dimensioning
iot-component-dimensioningiot-component-dimensioning
iot-component-dimensioning
 
communication interfaces-Embedded real time systems
communication interfaces-Embedded real time systemscommunication interfaces-Embedded real time systems
communication interfaces-Embedded real time systems
 
Smart Grid & Energy Management Products
Smart Grid & Energy Management ProductsSmart Grid & Energy Management Products
Smart Grid & Energy Management Products
 

More from Arul Kumar

Programmable Logic Controller
Programmable Logic ControllerProgrammable Logic Controller
Programmable Logic ControllerArul Kumar
 
Smart Grid Applications
Smart Grid ApplicationsSmart Grid Applications
Smart Grid ApplicationsArul Kumar
 
Smart Grid Domains and Zones
Smart Grid Domains and ZonesSmart Grid Domains and Zones
Smart Grid Domains and ZonesArul Kumar
 
Advanced metering infrastructure (AMI)
Advanced metering infrastructure (AMI)Advanced metering infrastructure (AMI)
Advanced metering infrastructure (AMI)Arul Kumar
 
Smart Grid Advanced Metering Infrastructure
Smart Grid Advanced Metering InfrastructureSmart Grid Advanced Metering Infrastructure
Smart Grid Advanced Metering InfrastructureArul Kumar
 
Smart Grid communications
Smart Grid communicationsSmart Grid communications
Smart Grid communicationsArul Kumar
 
Types of Process control system
Types of Process control systemTypes of Process control system
Types of Process control systemArul Kumar
 
Neural networks
Neural networksNeural networks
Neural networksArul Kumar
 
Fuzzy logic control
Fuzzy logic controlFuzzy logic control
Fuzzy logic controlArul Kumar
 

More from Arul Kumar (10)

Programmable Logic Controller
Programmable Logic ControllerProgrammable Logic Controller
Programmable Logic Controller
 
Smart Grid Applications
Smart Grid ApplicationsSmart Grid Applications
Smart Grid Applications
 
Smart Grid Domains and Zones
Smart Grid Domains and ZonesSmart Grid Domains and Zones
Smart Grid Domains and Zones
 
Advanced metering infrastructure (AMI)
Advanced metering infrastructure (AMI)Advanced metering infrastructure (AMI)
Advanced metering infrastructure (AMI)
 
Smart Grid Advanced Metering Infrastructure
Smart Grid Advanced Metering InfrastructureSmart Grid Advanced Metering Infrastructure
Smart Grid Advanced Metering Infrastructure
 
Smart Grid communications
Smart Grid communicationsSmart Grid communications
Smart Grid communications
 
Types of Process control system
Types of Process control systemTypes of Process control system
Types of Process control system
 
Neural networks
Neural networksNeural networks
Neural networks
 
Fuzzy logic control
Fuzzy logic controlFuzzy logic control
Fuzzy logic control
 
Scada
ScadaScada
Scada
 

Recently uploaded

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
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
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
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage examplePragyanshuParadkar1
 
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
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
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
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
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
 
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
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 

Recently uploaded (20)

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
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
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...
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage example
 
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
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
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
 
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
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
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
 
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
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 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
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 

Embedded networking

  • 1. EMBEDDED NETWORKING A.ARULKUMAR Asst. Professor Dept. of Mechatronics Engineering Kamaraj College of Engg & Tech.
  • 2. Devices and Communication Buses for Embedded Networking • I/O ports – Serial and Parallel • Interfacing of devices through ports • Timer • Real Time Clock • Networked Embedded Systems • Serial / Parallel Bus communication protocols 18/03/2020 A.ARULKUMAR- Embedded Networking 2
  • 3. Hardware units - I/O buses • Serial Bus examples: – RS232 (20kBaud) – CAN (33 kbps) • Controller Area Network – Fault tolerant CAN (110 kbps) – SM I2C (100kbps) • System Management – SPI (100 kbps) • Serial Peripheral Interface – MicroWire (300 kbps) – FireWire/IEEE 1394 (400 Mbps, 72m) – High Speed USB 2.0 (480 Mbps, 25m) 3 A.ARULKUMAR- Embedded Networking 18/03/2020 • Parallel bus examples • SCSI parallel (40 Mbps), • Small computer System interface • Used for interfacing Hard drive, CDROM, within the system • Fast SCSI (8M to 80 Mbps) & Ultra SCSI-3 (8M to 160 Mbps) • For interfacing more devices to a processor at higher burst transfer rates • PCI • PCI-X
  • 4. I/O Port • To exchange bytes between the processor and external devices using processor instructions • Connected using address decoder and system bus • Addresses of the port-registers used for – programming the port functions or modes – reading port status – writing or reading bytes • Serial port: – sync / async, – input / output / IO • Parallel port: – single bit / multibit, – input / output 18/03/2020 A.ARULKUMAR- Embedded Networking 4
  • 5. Serial Communication modes • Half duplex – Between Modem and telephone line • Full duplex – Between Modem and Processor
  • 6. Serial Communication Protocols • A protocol is a standard adopted which tells the way in which the bits of a frame must be sent from a device (or controller or port or processor) to another device or system • Protocol identification: – Type: Sync / Async – Frame length (variable / fixed) – Frame contents (Header, address, data, etc.) – Error control, flow control procedures • Syncronized communication protocols – I2C • Async communication protocols – RS232
  • 7. Synchronous serial I/O • The sender (Master) sends SCLK to the receiver (Slave) • SCLK can be in the same data line or separate line • Synchronous serial I/O is used for: – inter-processor transfers – streaming data, – multiprocessor communication, – writing to CD or hard disk, – network device output – serial I/O bus output – writing to flash memory • No handshaking. Fixed Clock for synchronized communication 18/03/2020 A.ARULKUMAR- Embedded Networking 7
  • 8. Serial communication – Synchronization methods 18/03/2020 A.ARULKUMAR- Embedded Networking 8
  • 10. Asynchronous Serial I/O • Does not use SCLK but uses handshaking signals for exchanging data • Each received byte is not in synchronization. • Bytes are separated by variable intervals or phase differences • E.g. Inputs from Keyboard, mouse, modem through UART using UART standard format • Async. Serial ports: E.g. COM1 and COM2 18/03/2020 A.ARULKUMAR- Embedded Networking 10
  • 11.
  • 12. RS232 • For asynchronous communication between DTE and DCE (E.g. Modem and UART) • uses UART standard format for TxD and RxD lines – logic 1 (Receiver) – 3 V to – 25 V – logic 0 (Receiver) + 3 V to + 25 V – logic 1 (Transmitter) – 5 V to – 15 V – logic 0 (Transmitter) + 5 V to + 15 V • opposite to that of TTL logic • wider noise margin to enable long distance communication • Handshaking signals – RI, DCD, DSR, DTR, RTS, CTS, DTR
  • 13.
  • 14. RS232 interface • Question: What is the difference between Bit rate and Baud rate? 18/03/2020 A.ARULKUMAR- Embedded Networking 14
  • 15. RS422 • Purpose: To extend RS232 • Point to Point, Multi-drop (RS485 is multi-point as it can have more than 1 driver) • Max devices 10 (1 driver and 10 receivers) • Distance 1500m • Differential mode signal • Speed 100 kbps to 10Mbps • Voltage levels: -6 to +6V • Mark (1) : Negative voltage • Space (0) : Positive voltage
  • 16.
  • 17. RS485 • Used in Industrial control systems for proprietary automation protocols • Differential signal is used. Hence EMI is suppressed. Used in PLCs • Voltage level: RS485 driver provides a differential voltage of 1.5V across 54 Ohm load • Long distance serial communication (1200m) in electrically noisy environments • Multiple receivers can be connected in linear bus topology with multi-drop configuration • Termination resistors (120 Ohms for twisted pair) are required • Speed 35 Mbps (10m) 100 kbps (1200m) • Rule: speed x length < 108 • Master-slave arrangement: master initiates communication • Full duplex possible with 4 wires • Can interoperate with RS422 • No specific connector or pinout.
  • 18.
  • 19.
  • 20. • Asnchronous start-stop method of RS485 communication • Uses two pins non-inverting pin and inverting pin
  • 21. Serial Peripheral Interface (SPI) • Hardware / Firmware communication protocol 18/03/2020 A.ARULKUMAR- Embedded Networking 21
  • 22. Synchronised Serial SPI bus connection Typical SPI Bus Daisychained SPI bus (three independent slaves) (three cooperative slaves) 18/03/2020 A.ARULKUMAR- Embedded Networking 22
  • 23. SPI features • Full-duplex Synchronous communication. • SCLK, MOSI and MISO signals for serial clock from master, output from master and input to master, respectively. • Device selection as master or slave can be done by a signal to hardware input SS (Slave select when 0)
  • 24.
  • 25. I2C bus • Inter-Integrated Circuit Bus • Synchronous Serial Bus • Interconnecting devices & Circuits within the system • E.g. Flash memory, touch screen, sensor Ics, • Master and Slave concept • Master controls the clock and generates START and STOP signals. • Slaves simply listen to the bus and act on controls and data that they are sent. • The master can send data to a slave or receive data from a slave - slaves do not transfer data between themselves. • Multi master operation involves arbitration of the bus (where a master has to fight to get control of the bus) and clock synchronization (each may a use a different clock e.g. because of separate crystal clocks for each micro). 18/03/2020 A.ARULKUMAR- Embedded Networking 25
  • 26.
  • 27. I2C features • Three standards – Industrial 100 kbps I2C – 100 kbps SM I2C – 400 kbps I2C • Each device has 7-bit address • Master can address 127 slaves • Master has a bus controller or Microcontroller with I2C bus interface. Each slave can also optionally have I2C bus controller and processing element. • A number of masters can be connected on the bus. But, at a time, there is only one master which initiates a data transfer on SDA (serial data) line and which transmits the SCL (serial clock) pulses.
  • 28. I2C Bits • START (1) similar to UART • Address (7) defines the slave address, which is being sent the data frame (of many bytes) by the master • R/W (1) defines whether read or write is in progress • Ack (1) defines whether the present data is an acknowledgment (from slave) • Data (8) I2C device data byte • NACK (1) from the receiver. If active then ack is not needed from the slave • STOP (1) Similar to UART
  • 29. CAN bus • Developed by Bosch for automotive industry • Replaces complex wiring harness with simple two-wire bus • In USB, large blocks of data transferred point-to-point • In CAN, many short data broadcast throughout the network. 18/03/2020 A.ARULKUMAR- Embedded Networking 29
  • 30. CAN Bus - Features • Network of embedded systems in an automobile • Interconnects to a CAN controller between line and host at the node. Connects the physical and data link layers at the host node. • The CAN controller has – BIU consisting of buffer and driver – Protocol controller – Status-cum control registers – Receiver-buffer – Message objects. • The above units connect the host node through the host interface circuit
  • 31.
  • 32. • Three standards – 33 kbps CAN, – 110 kbps Fault Tolerant CAN, – 1 Mbps High Speed CAN • CAN protocol – Carrier Sense Multiple Access with Arbitration on Message Priority basis • Each distributed node uses – Twisted Pair Connection up to 40 m for bi-directional data – Line, which pulls to Logic 1 through a resistor between the line and + 4.5V to +12V – Line Idle state Logic 1 (Recessive state) – a buffer gate between an input pin and the CAN line • Device Detects Input Presence at the CAN line, pulled down to dominant or active state (0V) by a sender. The sender device uses a current driver between the output pin and CAN line to pull down to active state.
  • 33. • Arbitration concept using Remote Transmission Request (RTR) – RTR=1: Pkt has data for the destn device – RTR=0: Pkt has a request for data from destination device
  • 34. USB • Serial transmission and reception between host and serial devices such as: – flash memory cards, pen-like memory devices, digital camera, printer, mouse- device, PocketPC, video games, Scanner • Four types of data transfer: – Controlled data transfer – Bulk data transfer – Interrupt driven data transfer – Iso-synchronous transfer • Maximum 127 devices can be connected to host • Three standards: – USB 1.1 (a low speed 1.5 Mbps 3m channel along with a high speed 12 Mbps 25 meter channel) – USB 2.0 (high speed 480 Mbps 25m channel) – Wireless USB (high speed 480 Mbps 3m)
  • 35.
  • 36. USB & Firewire • Firewire 400 (400 Mbps) • USB 2.0 (480 Mbps) • Firewire 800 (800 Mbps) 18/03/2020 A.ARULKUMAR- Embedded Networking 36
  • 37. Microwire • Older than SPI • Faster than I2C 18/03/2020 A.ARULKUMAR- Embedded Networking 37
  • 38. UART • Any serial device can be connected to the computer through UART 18/03/2020 A.ARULKUMAR- Embedded Networking 38
  • 40. Parallel Port • Single bit input and output – Not generally used • Multibit input – ADC – Encoder • Multibit output – Printer – LCD / LED display • Multibit I/O – 8255 PPI – Touchscreen
  • 41.
  • 42. Handshaking signals at the Port • STROBE • PORT READY • BUFFER-FULL • ACKNOWLEDGE • INTERRUPT REQUEST
  • 43. Handshaking Procedure for Parallel Communication • For input at a port – Device makes a request to system I/O port – STROBE – Port sends ack - PORT READY – Port receives data in receiving buffer – Port sends INTERRUPT REQUEST to processor indicating receiving- buffer is full (available for next read) – Issues INT to processor to enable ISR • For output at a port – Processor writes data into transmitting buffer – Port sends BUFFER FULL to device to inform that buffer is full. – Device reads message and sends ACKNOWLEDGE – Port sends INTERRUPT REQUEST to Processor indicating transmitting- buffer is empty (available for next write)
  • 44. 8255 Programmable Peripheral Interface • Four addresses for the PPI port, three for the ports and one for the control word. • Three 8-bit ports− port A, B and C. • Port C programmable to function in bit set reset mode. Each bit of port C can be set to 1 or reset to 0 by an appropriate control word. • Alternatively, the ports can be grouped as Group A (Port A and Port C upper four bits) or Group B (Port B and Port C lower four bits).
  • 45. Parallel – ISA Bus • 16-bit and 8-bit ISA slots
  • 46. Parallel communication - PCI • Peripheral Component Interconnect • 32 pin interface for connecting additional hardware to a system • 33 MHz speed • E.g. Add-on boards, Processor / memory systems • Not generally used in Embedded systems 18/03/2020 A.ARULKUMAR- Embedded Networking 46
  • 47. Parallel communication – PCI X • Peripheral component interconnect Extended • 64 bit operation • 66 / 100 / 133 MHz speed 18/03/2020 A.ARULKUMAR- Embedded Networking 47
  • 48. Parallel communication - SCSI • Small Computer System Interface • Parallel interface standard for connecting peripherals such as printers, hard disk, CD ROM drive, etc. 18/03/2020 A.ARULKUMAR- Embedded Networking 48