Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

05EC 7055-Embedded Networking

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 25

05EC 7055- Embedded Networking

MODULE – I EMBEDDED NETWORKING REQUIREMENTS

Introduction to Network for Embedded Systems

Introduction to buses and protocols for embedded


networking: CAN Bus, I2C, SPI, USB, Ethernet protocol, TCP/IP
Protocol

Internet connectivity over an Ethernet connection,

Wireless - Bluetooth, ZigBee standard.


Introduction to Network for Embedded Systems

◎ DES
◎ What is Networking
◎ Why we need networking
- Reduce computing power
- Data reduction
- Modularity
- Easy debugging
- Develop fault tolerant system
DISTRIBUTED EMBEDDED ARCHITECTURES
DISTRIBUTED EMBEDDED ARCHITECTURES

◎ Why Distributed Architecture –


Eg:Deadlines for processing the data
Diagnose problems in another part
NETWORK ABSTRACTIONS
Introduction to Network for Embedded Systems

Distributed embedded computing:


◎ The I2C bus used in microcontroller-based systems.
◎ The Controller Area Network (CAN) bus was developed for
automotive electronics. It provides mega bit rates and can handle
large numbers of devices.
◎ Ethernet and variations of standard Ethernet are used for a
variety of control applications.
I2C BUS
◎ Link microcontrollers
◎ low cost, easy to implement and of moderate speed
I2C BUS – Electrical Interface
I2C BUS
◎ Multimaster bus

◎ Slave device to stretch a clock signal during a read from a slave.

◎ Every I2C device has an address - A device address is 7 bits in the


standard I2C but the extended I2C allows 10-bit addresses

◎ 0000000 is used to signal a general call or bus broadcast

◎ 11110XX is reserved for the extended 10-bit addressing scheme


I2C Protocol - Bus transaction
◎ series of 1-byte transmissions and an address
followed by one or more data bytes
◎ Data-push programming style

◎ Address transmission: 7-bit address and 1 bit for


data direction.
- 0 for writing from the master to the slave
- 1 for reading from the slave to the master.
I2C Protocol

◎ A bus transaction is initiated by a START signal and completed with an END


signal.
◎ A START is signalled by leaving the SCL high and sending a 1 to 0 transition
on SDL.
◎ A END is signalled by setting the SCL high and sending a 0 to 1 transition on
SDL.

◎ The transmission starts when SDL is pulled low while SCL remains high.
I2C Protocol
I2C Protocol – Extended addressing

◎ 11110XX is reserved for the extended 10-bit addressing scheme

◎ 2 upper bit of device address and R/W bit

◎ Second byte – lower 8 bit of address


I2C Interface in a microcontroller
SPI (serial Peripheral Interface) Protocol

◎ Serial data transfer protocol – synchronous and full duplex b/w MCU and
peripheral

◎ Single master multi slave system

◎ Master slave protocol – Master generate clock and initiate data transfer
ie data transfer is bi directional simultaneously.
SPI (serial Peripheral Interface) Protocol
SPI (serial Peripheral Interface) Protocol
SPI (serial Peripheral Interface) Protocol
SPI (serial Peripheral Interface) Protocol

◎ Operate at high speed but no ACK signal


◎ Best with single slave system
◎ Clock freq upto 70MHz
◎ EEPROM, Flash memory, LCD drivers, serial ADC use SPI
◎ MCU like ARM, PIC have SPI as standard feature
CAN (Controller Area Network) Protocol

◎ 3 std. versions:
Low speed CAN – 125kbps- 11 bit identifier
Standard CAN 2.0 A – 1Mbps - 11 bit identifier
Extended CAN 2.0 B – 1Mbps - 29 bit identifier

CAN NODE
CAN PROTOCOL

◎ Message based protocol – one:many


◎ Identifiers in message
◎ One node at a time - Acceptance filtering
◎ Many nodes – Arbitration
◎ In identifiers - Dominant / Recessive bits –
0/1 – wired AND
◎ CSMA/ CD
CAN Signals and Data frame

You might also like