Documente Academic
Documente Profesional
Documente Cultură
Communication
UNIT - 2
Embedded system functionality aspects
▪ Processing
▪ Transformation of data
▪ Implemented using processors
▪ Storage
▪ Retention of data
▪ Implemented using memory
▪ Communication
▪ Transfer of data between processors and memories
▪ Implemented using buses
▪ Called interfacing
2
Classification of Embedded Systems
TYPES OF EMBEDDED
SYSTEM
SMALL
REAL SCALE
TIME
MEDIUM
STAND SCALE
ALONE
MOBILE
NETWORKED
SOPHISTICATED
02-Nov-19 3
BASED ON PERFORMANCE AND FUNCTIONAL REQUIREMENT
November 2, 2019 4
2. STAND ALONE EMBEDDED SYSTEMS
5
3. NETWORKED EMBEDDED SYSTEMS
November 2, 2019 6
4. MOBILE EMBEDDED SYSTEMS
7
BASED ON THE PERFORMANCE OF THE MICROCONTROLLER
8
Medium Scale Embedded Systems
❑ These types of embedded systems have both hardware and software complexities.
❑ For developing embedded software for medium scale embedded systems, the main
programming tools are C, C++, JAVA, Visual C++, RTOS, debugger, source code
engineering tool, simulator and IDE.
9
Sophisticated Embedded Systems
▪ They are used for cutting-edge applications that need hardware and software
Co-design and components which have to assemble in the final system.
November 2, 2019 10
What is network’s importance in embedded system?
▪ The Advanced HVAC system uses networked thermostats for more accurate
and efficient control of temperature that may change during a day or season.
▪ The home automation system uses wired and wireless networking to control
lights, climate, security, audio and so on.
Embedded Communication
▪ Point-to-point networks
▪ Each node connected to every node
▪ Simple and reliable
▪ Dedicated links make it easy to meet real-time deadlines
▪ Costly due to many wires required
5 Session a) Convert the logical 1’s and 0’s coming from layer 2 into electrical signals.
5 Session a) Error control to compensate for the imperfections of the physical layer.
1 Physical
7 Application OSI REFERENCE MODEL
2 Data Link
1 Physical
7 Application OSI REFERENCE MODEL
2 Data Link
1 Physical
7 Application OSI REFERENCE MODEL
Main topics:
4 Transport
• File Transfer Protocol (FTP)
3 Network • HyperText Transfer Protocol (HTTP)
• Simple Mail Transfer Protocol (SMTP)
• Simple Network Management Protocol (SNMP)
2 Data Link • Network File System (NFS)
• Telnet
1 Physical
SUMMARY
Protocol
▪ No best protocol, depends on applications.
▪ Embedded systems tends to focus on level 1 and 2 of OSI model, for simplicity
and overhead reduction.
▪ Physical link (Layer 1) – transmission medium
▪ Data link (Layer 2) provides Media Access Control (MAC)
Media Access Control (MAC)
Many protocols are taken from computer networks
Token ring
▪ Variations
▪ Reservation CSMA – no. of slots equal to no. of nodes
▪ Not practical if networks has many nodes.
▪ No. of slots less than no. of nodes – randomly allocate slots to nodes.
Media access comparison
•Polling, TDMA, and connection-based protocols are simple, but may not provide
sufficient flexibility for advanced systems.
•Token-based protocols are predictable but can have high overhead and require
complex software to maintain robustness.
•Binary count-down protocols rely heavily on the bit dominance characteristics of the
physical medium.
•CSMA/CD is a poor choice for hard real-time systems with heavy traffic.
•For our embedded systems, we have found that CSMA/CA, and in particular
Reservation CSMA is a good choice.
Media access comparison
Advanced communication principles
1. Layering
▪ Break complexity of communication protocol into pieces easier to design and
understand
▪ Lower levels provide services to higher level
▪ Lower level might work with bits while higher level might work with packets
of data
▪ Physical layer
3. Serial communication
▪ Physical layer transports one bit of data at a time
4. Wireless communication
▪ No physical
75 connection needed for transport at physical layer
2. Parallel communication
▪ Multiple data, control, and possibly power wires
▪ One bit per wire
▪ High data throughput with short distances
▪ Typically used when connecting devices on same IC or same circuit board
▪ Bus must be kept short
▪ long parallel wires result in high capacitance values which requires more
time to charge/discharge
▪ Data misalignment between wires increases as length increases
▪ Higher cost, bulky
76
Parallel Protocols
▪ PCI (Peripheral Component Interconnect)
▪ Originated at Intel 1990 and then administered by PCISIG
▪ First used in 1994
▪ For interconnecting chips, expansion boards, & processor memory subsystem.
▪ Replaced ISA/EISA bus
▪ Transfer rate: 127.2 – 508.6 Mbit/s
▪ 32-bit addressing later extended to 64-bit
▪ Sync bus architecture
▪ ARM
▪ Designed by ARM Corporation
▪ Designed to interface with ARM line of processors.
▪ 32 data/address
▪ Sync data architecture
▪ Transfer rate not specified (function of the clock speed) 77
3. Serial communication
▪ Single data wire, possibly also control and power wires
▪ Words transmitted one bit at a time
▪ Higher data throughput with long distances
▪ Less average capacitance, so more bits per unit of time
▪ Cheaper, less bulky
▪ More complex interfacing logic and communication protocol
▪ Sender needs to decompose word into bits
▪ Receiver needs to recompose bits into word
▪ Control signals often sent on same wire as data increasing protocol complexity
78
Serial Protocols
⚫ I2C (Inter-IC)
⚫ Developed by Philips Semiconductors
⚫ 2 wire bus protocol
⚫ Connect peripheral ICs in electronic systems
⚫ Transfer rate: up to 100 kbit/s, 7-bit address
⚫ Fast mode: 3.4 Mbit/s, 10-bit address
⚫ Flash, RAM, EPROM, Microcontrollers …
⚫ CAN (Controller Area Network)
⚫ For real-time application
⚫ Developed by Robert Bosch GmbH to connect various components of car
⚫ Over twisted pair of wires
⚫ High integrated serial data communication
⚫ Data rate up to 1 Mbit/s
⚫ 11-bit addressing
⚫ Documented in ISO 11898 & ISO 11519-2 79
81
Wireless Protocols
⚫ IrDA (Infrared Data Association)
⚫ IrDA is an international organization
⚫ Designed to support transmission between two devices over short-range point-to-point infrared.
⚫ Rate: 9.6 Kb/s – 4 Mb/s
⚫ Deployed in notebooks, printers, PDAs, cell phones,…
⚫ MS Windows CE 1.0 the first Windows OS support it
⚫ Available on several popular embedded OSs
⚫ Bluetooth
⚫ Use radio frequency
⚫ Within 10 meters
⚫ Doesn’t require a line-of-sight connection
⚫ IEEE 802.11
⚫ IEEE proposed standard for WLAN
⚫ Ad-hoc vs. infrastructure
⚫ PHY and MAC layers
⚫ Data rate: 1Mbps, 2Mbps
⚫ Calls: 2.4 – 2.4835 GHz frequency band (unlicensed band).
⚫ Use CSMA/CA 82
⚫ Signals for transmission: RTS, CTS, and ACK.
Automotive standards
❑ Controller Area Network (CAN)
❑ Event triggered, Arbitration
❑ MIL-STD 1773
❑ Mil-Std-1773 defines a fiber optic bus. This system is widely used for on-board
command and telemetry transfer between military spacecraft components,
subsystems and instruments, and within complex components themselves. 1773
AS, has a dual rate of 1 Mb/s or 20 Mb/s.
❑ ARINC 429
❑ A commercial aircraft data bus. It is widely implemented in the commercial
aircraft avionics industry. Performance is 100Kb/s or 12.5Kb/s.
References
1. Upender B, Koopman P, Embedded communication protocol
options, Proc. to the 5th annual embbeded system conference, 1993
2. Rollins L, Embedded communication
3. Kopetz H, Real-time system design principles for distributed
embedded applications, Kluver, 1997
4. Liu J, Real-time systems, Prentice-Hall, 2000
5. Upender B, Koopman P, Communication protocols for embedded
systems, Embedded systems programming, Nov 1994.
6. Vahid F, Givargis T, Embedded system design a unified
hardware/software introduction, Wiley, 2002
7. Bilstrup U, Real-time communication