SlideShare a Scribd company logo
ADITYA COLLEGE OF ENGINEERING
7 & TECHNOLOGY(A)
Learning Outcomes
At the end of this lecture, Student will be able to:
LO 1 : Understand the classification of Embedded Systems
Embedded System:
An embedded system is an electronic/electro-mechanical system designed to perform a specific
function and is combination of both hardware and firmware (software). The program
instructions written for embedded systems are referred to as firmware, and are stored in Read-
Only-Memory or Flash memory
ES are becoming an inevitable part of any product or equipment in all fields
including household appliances, telecommunications, medical equipment, industrial
control, consumer products, etc.
Comparison of General Purpose Computing System & ES
History of Embedded Systems:
The first recognized embedded system is theApollo Guidance
Computer(AGC) developed by MIT Instrumentation laboratory.
AGC was designed on 4K words of ROM & 256 words of RAM.
The clock frequency of first microchip used inAGC was 1.024
MHz
The computing unit ofAGC consists of 11 instructions and 16 bit
word logic
ADITYA
It Uses 5000 number of ICs such as 3 input NOR gates designed with RTL logic.
The User Interface ofAGC is known as DSKY(display/keyboard) which resembles a calculator
type keypad with array of numerals.
It have two modules. 1.Command Module
2.Lunar Excursion Module
The first mass-produced embedded system was guidance computer for the Minuteman-I
missile in 1961.
In the year 1971 Intel introduced the world's first microprocessor chip called the 4004, was
designed for use in business calculators. It was produced by the Japanese company Busicom.
CLASSIFICATION OF EMBEDDED SYSTEMS
The classification of embedded system is based on following
criteria’s:
On generation
On complexity & performance
On deterministic behavior
On triggering
Based On Generation
First
Generation
Second
Generation
Third
Generation
Fourth
Generation
Embedded
Systems
Based On Complexity and Performance
Embedded
System
Small Scale Medium Scale Large Scale
Based On Deterministic Behaviour
Embedded
System
Soft Real Time
Systems
Hard Real
Time Systems
Based On triggering
Embedded
System
Event
Triggered
Time triggered
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
Consumer electronics: Camcorders, Digital cameras, etc.
Household appliances: Television, DVD players, washing machine, fridge, microwave oven, etc.
Home automation and security systems: Air conditioners, sprinklers, intruder detection alarms,
closed circuit television cameras, fire alarms, etc.
Automotive industry: Anti-lock breaking systems (ABS), engine control, ignition systems,
automatic navigation systems, etc.
Telecom: Cellular telephones, telephone switches, handset multimedia applications, etc.
Computer peripherals: Printers, scanners, fax machines, etc.
Card Readers: Barcode, smart card readers, hand held devices, etc
Computer Networking Systems: Network Routers, Switches, Hubs, Firewalls etc.
Health Care: Different Kinds of Scanners, EEG, ECG Machines etc.
Measurement & Instrumentation: Digital multi meters, Digital CROs, LogicAnalyzers PLC
systems
Banking & Retail: Automatic Teller Machines (ATM) and Currency counters, Point of Sales (POS)
PURPOSE OF EMBEDDED SYSTEM
Each Embedded Systems is designed to serve the purpose of any one or a combination of the
following tasks.
Data Collection/Storage/Representation
Data Communication
Data (Signal) Processing
Monitoring
Control
Application Specific User Interface
Data Collection/Storage/Representation
Performs acquisition of data from the external world.
The collected data can be either
analog or digital
Data collection is usually done for storage, analysis,
manipulation and transmission
The collected data may be stored directly in the
system or may be transmitted to some other systems or
it may be processed by the system or it may be deleted
instantly after giving a meaningful representation .
Data Communication
Embedded Data communication systems are deployed in
applications ranging from complex satellite communication systems to
simple home networking systems .
Embedded Data communication systems are dedicated for data
communication
The data communication can happen through a wired interface (like
Ethernet, RS-232C/USB/IEEE1394 etc) or wireless interface (like Wi-
Fi, GSM,/GPRS, Bluetooth, ZigBee etc).
Network hubs, Routers, switches, Modems etc are typical examples
for dedicated data transmission embedded systems.
Data signal processing
Embedded systems with Signal processing
functionalities are employed in applications demanding
signal processing like Speech coding, synthesis, audio
video codec, transmission applications etc.
Computational intensive systems
Employs Digital Signal Processors (DSPs)
A digital hearing aid is a typical example of an
embedded system employing data processing.
Digital hearing aid improves the hearing capacity of
hearing impaired person
Monitoring
All embedded products coming under the
medical domain are with monitoring
functions.
Electro cardiogram machine is intended to do the
monitoring of the heartbeat of a patient but it cannot
impose control over the heartbeat.
Other examples with monitoring function are digital
CRO, digital multimeters, and logic analyzers.
Control
A system with control functionality contains both
sensors and actuators.
Sensors are connected to the input port for capturing
the changes in environmental variable.
The actuators connected to the output port are
controlled according to the changes in the input variable.
Air conditioner system used to control the room
temperature to a specified limit is a typical example for
CONTROL purpose.
Application specific user interface
Buttons, switches, keypad, lights, bells, display
units etc are application specific user interfaces.
Mobile phone is an example of application specific
user interface.
In mobile phone the user interface is provided
through the keypad, system speaker, vibration alert
etc.
ADITYA COLLEGE OF ENGINEERING
& TECHNOLOGY(A)
The Typical embedded system
Elements of Embedded Systems
A typical embedded system contains a single chip
controller which acts as the master brain of the
system. Diagrammatically an embedded system
can be represented as follows:
microcontroller
The controller can be a Microprocessor or a
or a Field Programmable Gate
Signal
Array (FPGA) device or a Digital
Processor(DSP) or an Application Specific
Specific
Integrated Circuit (ASIC)/ Application
Standard Product (ASSP).
Embedded hardware/software systems are basically designed to regulate a physical variable or to manipulate
the state of some devices by sending some control signals to the Actuators or devices connected to the o/p ports
of the system, in response to the input signals provided by the end users or Sensors which are connected to the
input ports.
Keyboards, push button switches, etc. are examples for common user interface input devices whereas LEDs,
liquid crystal displays, piezoelectric buzzers, etc. are examples for common user interface output devices for a
typical embedded system.
The Memory of the system is responsible for holding the control algorithm and other important configuration
detail. For most of the embedded Systems ,the memory for storing algorithm or configuration data is of Fixed
Type.
Core Of the Embedded System
The core of the embedded system falls into any of the following categories
1.General Purpose and Domain Specific Processors
i . Microprocessors
ii. Microcontrollers
iii. Digital Signal Processors
2.Application Specific Integrated Circuits (ASICs)
3. Programmable Logic Devices (PLDs)
4. Commercial off-the-shelf Components (COTS)
General Purpose and Domain Specific Processors
Microprocessor:
A silicon chip representing a Central Processing Unit (CPU), which is capable of performing
arithmetic as well as logical operations according to a pre-defined set of Instructions, which is
specific to the manufacturer .
In general the CPU contains the Arithmetic and Logic Unit (ALU), Control Unit and Working
registers.
Microprocessor is a dependant unit and it requires the combination of other hardware like
Memory, Timer Unit, and Interrupt Controller etc for proper functioning.
MICRO CONTROLLERS
A highly integrated silicon chip containing a CPU, scratch pad RAM, Special and General purpose Register
Arrays, On Chip ROM/FLASH memory for program storage, Timer and Interrupt control units and dedicated I/O
ports
Microcontrollers can be considered as a super set of Microprocessors
Microcontroller can be general purpose (like Intel 8051, designed for generic applications and domains) or
application specific (Like Automotive AVR from Atmel Corporation. Designed specifically for automotive
applications)
Since a microcontroller contains all the necessary functional blocks for independent working, they found
greater place in the embedded domain in place of microprocessors
 Microcontrollers are cheap, cost effective and are readily available in the market
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
General Purpose Processor (GPP) Vs Application Specific Instruction Set Processor (ASIP)
General Purpose Processor or GPP is a processor designed for general computational tasks
Application Specific Instruction Set processors (ASIPs) are processors with architecture and
instruction set optimized to specific domain/application requirements like Network processing,
Automotive, Telecom, media applications, digital signal processing, control applications etc.
• DSPs are powerful special purpose
8/16/32 bit microprocessors
designed specifically to meet the
computational demands and power
constraints of today's embedded
audio, video, and communications
applications.
• Digital signal processors are 2 to 3
times faster than the
purpose microprocessors
general
in signal
processing applications.
Digital Signal Processors
A typical digital signal processor incorporates the following key units
Program Memory : Memory for storing the program required by DSP to process the data.
Data Memory : Working memory for storing temporary variables/information and data/signal
to be processed.
Computational Engine : Performs the signal/math processing , accessing the program from the
Program Memory and the data from the Data Memory.
I/O Unit :Acts as an interface between the outside world and DSP. It is responsible for
capturing signals to be processed and delivering the processed signals
Application areas : Audio video signal processing, telecommunication and multimedia applications.
DSP employs a large amount of real-time calculations, Sum of products (SOP) calculation,
convolution, fast Fourier transform (FFT), discrete Fourier transform (DFT), etc. are some of
the operations performed by digital signal processors.
RISC vs. CISC Processors/Controllers
RISC vs. CISC Processors/Controllers
Harvard Architecture Vs Von-Neumann Architecture
Big-Endian vs. Little Endian Processors/Controllers
Endianness specifies the order in which a sequence of bytes are stored in computer memory
Little-endian is an order in which the lower-order byte of the data is stored in memory at the
lowest address and the higher order Byte at the HighestAddress.
Big-endian means the higher-order byte of the data is stored in memory at the lowest address, and
the lower-order byte at the highest address.
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
Load Store Operation & Instruction Pipelining
Application Specific Integrated Circuit (ASIC)
Amicrochip designed to perform a specific or unique application. It is used as replacement to
conventional general purpose logic chips.
Programmable Logic Devices (PLDs)
Logic devices provide specific functions, including device-to-device interfacing, data communication, signal
processing, data display, timing and control operations, and almost every other function a system must perform.
Logic devices can be classified into two broad categories - Fixed and Programmable. The circuits in a fixed logic
device are permanent, they perform one function or set of functions - once manufactured, they cannot be changed
Field Programmable GateArrays (FPGAs) and Complex Programmable Logic Devices (CPLDs) are the two major
types of programmable logic devices
Commercial off the Shelf Component (COTS)
COTS products are designed in such a way to provide easy integration and interoperability with
existing system components
The major advantage of using COTS is that
they are readily available in the market, cheap
and a developer can cut down his/her
development time to a great extend.
MEMORY
Memory is an important part of an embedded system. The memory used in embedded system can
be either Program Storage Memory (ROM) or Data memory (RAM)
Certain Embedded processors/controllers contain built in program memory and data memory and
this memory is known as on-chip memory
Certain Embedded processors/controllers do not contain sufficient memory inside the chip and
requires external memory called off-chip memory or external memory.
Programme Storage Memory
Stores the program instructions
Retains its contents even after the power to it is turned off. It is generally known as Non volatile
storage memory
Read-Write Memory/Random Access Memory (RAM)
The RandomAccess Memory (RAM) is the data memory or working memory of the controller/processor.
 Controller/processor can read from it and write to it.
 RAM is volatile, meaning when the power is turned off, all the contents are destroyed.
SRAM DRAM
SRAM Vs DRAM
Input-Output Ports
Sensors & Actuators
Embedded system is in constant interaction with the real world
• Controlling/monitoring functions executed by the embedded system is achieved in accordance
with the changes happening to the Real World.
•The changes in the system environment or variables are detected by the sensors connected to
the input port of the embedded system.
• If the embedded system is designed for any controlling purpose, the system will produce some
changes in controlling variable to bring the controlled variable to the desired value.
• It is achieved through an actuator connected to the out port of the embedded system.
At the end of this lecture, Student will be able to:
LO 1 : Understand the role of Sensors,Actuators and their Interfacing with I/O subsystems of
an Embedded System
Learning Outcome
Sensors
A transducer device which converts energy from one form to another for any measurement or control
purpose. Sensors acts as input device
Ex:. Hall Effect Sensor which measures the distance between the cushion and magnet in the Smart
Running shoes from adidas
Example: IR, humidity , PIR(passive infra red) , ultrasonic , piezoelectric , smoke sensors
A form of transducer device (mechanical or
electrical) which converts signals to
corresponding physical action (motion).
Actuator acts as an output device
Example: Micro motor actuator which
adjusts the position of the cushioning
element in the Smart Running shoes from
adidas
Actuator
I/O Subsystem
 The I/O subsystem of the embedded system facilitates the interaction of the embedded
system with the external world.
 The interaction happens through the sensors and actuators connected to the input and output
ports respectively of the embedded system.
 The sensors may not be directly interfaced to the input ports, instead they may be interfaced
through signal conditioning and translating systems likeADC, optocouplers, etc.
 Light Emitting Diode (LED)
 7-Segment LED Display
 Optocoupler
 Stepper Motor
 Relay
 Piezo Buzzer
 Push Button Switch
 Keyboard
 Programmable Peripheral Interface (PPI)
Light Emitting Diode (LED)
 LED is an important output device for visual indication in any embedded system. LED can be
used as an indicator for the status of various signals or situations. Typical examples are
indicating the presence of power conditions like ‘Device ON’, ‘Battery low’ or ‘Charging of
battery’for a battery operated handheld embedded devices.
 LED is a p-n junction diode and it contains an anode and a cathode. For proper functioning of
the LED, the anode of it should be connected to +ve terminal of the supply voltage and cathode
to the –ve terminal of the supply voltage. The current flowing through the LED must be
limited to a value below the maximum current that it can conduct. A resistor is used in series
between the power supply and the LED to limit the current through the LED.
Figure. LED Interfacing
7- Segment LED Display
The 7-segment LED display is an output device for displaying alphanumeric characters. It
contains 8 light-emitting diode (LED) segments arranged in a special form. Out of the 8 LED
segments, 7 are used for displaying alphanumeric characters and 1 is used for representing
‘decimal point’in decimal numberdisplay.
The LED segments are namedAto G and the decimal point LED segment is named as DP.
 The 7-segment LED displays are available in two different configurations, namely; Common Anode
and Common Cathode. In the common anode configuration, the anodes of the 8 segments are
connected commonly whereas in the common cathode configuration, the 8 LED segments share a
common cathode line.
applications like, Public
7-segment LED display is a popular choice for low cost embedded
telephone call monitoring devices, point of sale terminals, etc.
Optocoupler
Optocoupler is a solid state device to isolate two parts of a circuit. Optocoupler combines an LED and a
photo-transistor in a single housing (package). Figure illustrates the functioning of an optocoupler
device.
Figure.An optocouplerdevice
In Electronic circuits an optocoupler is used for suppressing interference data communication,circuit
isolation,high voltage separation, simultaneous separation and signal intensification,etc.
Optocouplers can be used in either input circuits or in outputcircuits. Figure illustrates the usage of
optocoupler in input circuit and output circuit of an embedded system with a microcontroller as the
system core.
Stepper Motor
Stepper motor is an electro mechanical device which generates
discrete displacement (motion) in response to dc electrical signals
It differs from the normal dc motor in its operation. The dc motor
produces continuous rotation on applying dc voltage whereas a stepper
motor produces discrete rotation in response to the dc voltage applied to
it
Stepper motors are widely used in industrial embedded applications,
consumer electronic products and robotics control systems
The paper feed mechanism of a printer/fax makes use of stepper
motors for its functioning.
RELAY
An electro mechanical device which acts as dynamic path selectors for signals and power.
The “Relay‟ unit contains a relay coil made up of insulated wire on a metal core and a metal
armature with one or more contacts.
“Relay‟ works on electromagnetic principle.
When a voltage is applied to the relay coil, current flows through the coil, which in turn
generates a magnetic field.
Piezo Buzzer
It is a piezoelectric device for generating
audio indications in embedded applications.
•A Piezo buzzer contains a piezoelectric
diaphragm which produces audible sound in
response to the voltage applied to it.
• Piezoelectric buzzers are available in two
types
1.Self-driving 2.External driving
Push button switch
Push Button switch is an input device.
Push button switch comes in two configurations,
namely “Push to Make‟ and „Push to Break‟.
The switch is normally in the open state and it makes a
circuit contact when it is pushed or pressed in the „Push
to Make‟ configuration.
In the „Push to Break‟ configuration, the switch
normally in the closed state and it breaks the circuit
contact when it is pushed or pressed .
The push button stays in the „closed‟ (For Push to
Make type) or „open‟ (For Push to Break type) state as
long as it is kept in the pushed state and it breaks/makes
the circuit connection when it is released.
KEYBOARD
Programmable Peripheral Interface
PPI devices are used for extending I/O capabilities of Processors/Controllers.
8255 is a popular PPI for 8 bit Processors/Controllers.
8255 supports 24 I/O pins grouped as 3- Eight bit Ports (PortA, Port B, Port C)
Control Word Format
Communication Interface
Communication Interface
Communication interface is essential for communicating with various subsystems of the
embedded system and with the external world
The communication interface can be viewed in two different perspectives; namely;
1. Device/board level communication interface (Onboard Communication Interface)
2. Product level communication interface (External Communication Interface)
The communication channel which interconnects the various components within an embedded
product is referred as Device/board level communication interface (Onboard Communication
Interface)
Examples: Serial interfaces like I2C, SPI, UART, 1-Wire etc and Parallel bus interface
Device/board level communication interface (Onboard Communication Interface)
The “Product level communication interface‟ (External Communication Interface) is responsible
for data transfer between the embedded system and other devices or modules.
The external communication interface can be either wired media or wireless media and it can be
a serial or parallel interface.
Examples for wireless communication interface: Infrared (IR), Bluetooth (BT), Wireless LAN
(Wi-Fi), Radio Frequency waves (RF), GPRS etc.
Examples for wired interfaces: RS-232C/RS-422/RS 485, USB, Ethernet (TCP-IP), IEEE 1394
port, Parallel port etc.
Product level communication interface (External Communication Interface)
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
Onboard Communication Interfaces
Onboard Communication Interface refers to the different communication channels/buses for
interconnecting the various integrated circuits and other peripherals within the embedded
system.
The various interfaces for onboard communication are as follows:
i. Inter Integrated Circuit (I2C) Bus
ii. Serial Peripheral Interface (SPI) Bus
iii. UniversalAsynchronous Receiver Transmitter (UART)
iv. 1-Wire Interface
v. Parallel Interface
Inter Integrated Circuit (I2C) Bus
The Inter Integrated Circuit Bus is a synchronous bi-directional half duplex two wire serial interface bus.
The I2C bus comprise of two bus lines, namely; Serial Clock-SCL and Serial Data-SDA.
SCL line is responsible for generating synchronization clock pulses and SDA is responsible for
transmitting the serial data across devices.
Devices connected to the I2C bus can act as either ‘Master’device or ‘Slave’device.
The ‘Master’device is responsible for controlling the communication by initiating/terminating
data transfer, sending data and generating necessary synchronization clock pulses.
‘Slave’ devices wait for the commands from the master and respond upon receiving the
commands. ‘Master’ and ‘Slave’ devices can act as either transmitter or receiver. I2C supports
multi masters on the same bus.
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
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 is introduced by Motorola.SPI is a single master multi-slave
system.
It is possible to have a system where more than one SPI device can be master, provided the
condition only one master device is active at any given point of time, is satisfied.
SPI is used to send data between Microcontrollers and small peripherals such as shift
registers, sensors, and SD cards.
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/Slave 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.
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
I2C V/S SPI
1-wire interface (protocol)
1-Wire interface is an asynchronous Half Duplex Communication Protocol developed by
maxim Dallas Semi conductor .
It uses a single signal line called DQ for communication and follows the master slave
communication Model.
One of the Key feature of 1-Wire bus is that it allows power to be sent along the signal wire.
The 1 wire interface supports single master and one or more slave devices on the bus.
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
Parallel Interference
In data transmission, parallel communication is a method of conveying multiple binary digits
(bits) simultaneously. It contrasts with communication. The communication channel is the number
of electrical conductors used at the physical layer to convey bits.
Parallel communication implies more than one such conductor. For example, an 8-bit parallel
channel will convey eight bits (or a byte) simultaneously, whereas a serial channel would convey
those same bits sequentially, one at a time. Parallel communication is and always has been widely
used within integrated circuits, in peripheral buses, and in memory devices such as RAM.
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
Universal Asynchronous Receiver Transmitter(UART)
Product level communication interface (External Communication Interface)
The Product level communication interface‟ (External Communication Interface) is responsible for data transfer
between the embedded system and other devices or modules
It is classified into two types
1. Wired communication interface
2. Wireless communication interface:
3. Wired communication interface: Wired communication interface is an interface used to transfer
information over a wired network.
2. Wireless communication interface : Wireless communication interface is an interface used to transmission
of information over a distance without help of wires, cables or any other forms of electrical conductors.
RS-232C/RS-422/RS 485
RS-232 C (Recommended Standard number 232, revision C from the Electronic Industry Association) is a
legacy, full duplex, wired, asynchronous serial communication interface
RS-232 extends the UART communication signals for external data communication.
UART uses the standard TTL/CMOS logic (Logic „High‟ corresponds to bit value 1 and Logic „LOW‟
corresponds to bit value 0) for bit transmission whereas RS232 use the EIAstandard for bit transmission.
As per EIA standard, a logic „0‟ is represented with voltage between +3 and +25V and a logic „1‟ is
represented with voltage between -3 and -25V.
In EIAstandard, logic „0‟ is known as „Space‟ and logic „1‟ as „Mark‟.
The RS232 interface define various handshaking and control signals for communication apart from
the „Transmit‟ and „Receive‟ signal lines for data communication
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
RS-232 supports two different types of connectors, namely; DB-9: 9-Pin connector and DB-25: 25-Pinconnector.
DB-25
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
Universal Serial Bus (USB) is a wired high speed serial bus for
data communication. The USB host can support connections up
to 127, including slave peripheral devices and other USB hosts
Universal Serial Bus (USB)
IEEE 1394 (Firewire
IEEE 1394 (Firewire) is a wired, iso synchronous high speed serial communication bus. It is also
known as High Performance Serial Bus (HPSB).
IEEE 1394 is a popular communication interface for connecting embedded devices like Digital Camera,
Camcorder, Scanners to desktop computers for data transfer and storage.
Unlike USB interface, IEEE 1394 doesn’t require a host for communicating between devices. For
example, you can directly connect a scanner with a printer for printing. The data rate supported by 1394 is
far higher than the one supported by USB 2.0 interface. The 1394 hardware implementation is much
costlier than USB Implementation
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
Infrared Data Association (IrDA)
Infrared (IrDA) is a serial, half duplex, line of sight based wireless technology for data
communication between devices. It is in use from the olden days of communication and you may be
very familiar with it.
The remote control of your TV, VCD player, etc works on Infrared data communication principle.
Bluetooth (BT)
Bluetooth is a low cost, low power, short range wireless technology for data and voice communication.
Bluetooth supports point-to-point (device to device) and point-to-multipoint (device to multiple device
broadcasting) wireless communication.
A Bluetooth device can function as either master or slave. When a network is formed with one Bluetooth
device as master and more than one device as slaves, it is called a Piconet. A Piconet supports a maximum
of seven slave devices.
Bluetooth is the favorite choice for short range data communication in handheld embedded devices.
Bluetooth technology is very popular among cell phone users as they are the easiest communication channel
for transferring ringtones, music files, pictures, media files, etc between neighboring Bluetooth enabled
phones.
It supports a data rate of up to 1 Mbps and a range of approximately 30 feet for data communication
Wi-Fi
Wi-Fi or Wireless Fidelity is the popular wireless
communication technique for networked communication of
devices. Wi-Fi is intended for network communication and
it supports Internet Protocol (IP) based communication. It is
essential to have device identities in a multipoint
communication to address specific devices for data
communication.
Wi-Fi based communications require an intermediate
agent called Wi-Fi router/Wireless access point to manage
the communications.
Wi-Fi supports data rates ranging from 1 Mbps to 150
Mbps and offers a range of 100 to 300 feet.
ZigBee
ZigBee is a low power, low cost, wireless network
communication protocol based on the IEEE 802.15.4-
2006 standard.
ZigBee is targeted for low power, low data rate and
secure applications for Wireless Personal Area
Networking (WPAN).
 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.6MHz.
ZigBee supports an operating distance of up to 100
meters and a data rate of 20 to 250Kbps.
ZigBee device categories are as follows:
ZigBee Coordinator (ZC)/Network Coordinator: The ZigBee coordinator acts as the root of the
ZigBee network. The ZC is responsible for initiating the ZigBee network and it has the capability to
store information about the 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.
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
General Packet Radio Service (GPRS)
GPRS is a communication
technique for transferring data over a
mobile communication network like
GSM.
GPRS supports a theoretical
maximum transfer rate of 171.2 kbps.
The GPRS communication divides
the channel into 8 timeslots and
transmits data over the available
channel.
Characteristics of Embedded systems
1. Application and domain specific
2. Reactive and Real Time
3. Operates in harsh environments
4. Distributed
5. Small Size and weight
6. Power concerns
Quality Attributes of Embedded Systems
Quality attributes are the non-functional requirements that need to be documented properly in any
system design.
If the quality attributes are more concrete and measurable, it will give a positive impact on the
system development process and the end product.
The various quality attributes that needs to be addressed in any embedded system development are
broadly classified into two, namely
i. Operational QualityAttributes
ii. Non-Operational QualityAttributes
Operational Quality Attributes
The operational quality attributes represent the relevant quality attributes related to the embedded system
when it is in the operational mode or ‘online’ mode. The important quality attributes coming under this
category are listed below:
i. Response
ii. Throughput
iii. Reliability
iv. Maintainability
v. Security
vi. Safety
Non Operational Attributes
The quality attributes that needs to be addressed for the product ‘not’ on the basic of operational aspects are
grouped under this category. The important quality attributes coming under this category are listed below:
i. Testability & Debug-ability
ii. Evolvability
iii. Portability
iv. Time to prototype and market
v. Per unit and total cost
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
Washing Machine-Application-Specific Embedded System
Washing Machine is a typical example of an embedded system providing extensive support in home
automation applications.
An embedded system contains sensors, actuators, control unit and application-specific user interfaces
like keyboards, display units, etc.
You can see all these components in a washing machine if you have a closer look at it. Some of them
are visible and some of them may be invisible to you.
The actuator part of washing machine consists of a motorized agitator, tumble tub, water drawing pump and
inlet valve to control the flow of water into the unit.
The sensor part consists of the water temperature sensor, level sensor, etc.
The control part contains a microprocessor/controller based board with interfaces to the sensors and actuators.
The sensor data is fed back to the control unit and the control unit generates the necessary actuator outputs.
The control unit also provides connectivity to user interfaces like keypad for setting the washing time, selecting
the type of material to be washed like light, medium, heavy duty, etc.
User feedback is reflected through the display unit and LEDs connected to the control board.
R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1
The integrated control panel consists of a microprocessor/controller based board with I/O interfaces and a control
algorithm running in it.
Input interface includes the keyboard which consists of wash type selector namely Wash, Spin and Rinse, cloth
type selector namely Light, Medium, Heavy duty and washing time setting, etc.
The output interface consists of LED/LCD displays, status indication LEDs, etc. connected to the I/O bus of the
controller.
It is to be noted that this interface may vary from manufacturer to manufacturer and model to model.
The other types of I/O interfaces which are invisible to the end user are different kinds of sensor interfaces, namely,
water temperature sensor, water level sensor, etc. and actuator interface including motor control
for agitator and tub movement control, inlet water flow control, etc.
Automotive-Domain-Specific Examples of Embedded System
The major application domains of embedded systems are consumer, industrial,
automotive, telecom, etc. of which telecom and automotive industry holds a big market
share.
Inner Workings of Automotive Embedded Systems
Automotive embedded systems are the one where electronics take control over the mechanical systems.
The presence of automotive embedded system in a vehicle varies from simple mirror and wiper controls to
complex air bag controller and antilock brake systems (ABS).
Automotive embedded systems are normally built around microcontrollers or DSPs or a hybrid of the two and are
generally known as Electronic Control Units (ECUs).
The various types of electronic control units (ECUs) used in the automotive embedded industry can be broadly
classified into two-High speed embedded control units and Low speed embedded control units.
High speed Electronic Control Units (HECUs) : High speed electronic control units (HECUs) are deployed
in critical control units requiring fast response, like fuel injection systems, antilock brake systems, etc.
Low speed Electronic Control Units (LECUs) : Low speed electronic control units are deployed in
applications where response time is not so critical. They are generally built around low cost
microprocessors/microcontrollers and digital signal processors. Audio controllers, passenger and driver door locks,
door glass controls, etc., are examples for LECUs.
Automotive Communication Buses
Automotive applications use serial buses for communication.
ControllerArea Network (CAN), Local Interconnect Network (LIN), Media
Oriented System Transport (MOST) bus, etc. are the important automotive
communication buses.
CAN is an event driven serial protocol interface with support for error handling
in data transmission. It is generally employed in safety system like airbag control,
powertrain systems like engine control andAntilock Brake Systems.
LIN bus is a single master multiple slave (up to 16 independent slave nodes)
communication interface. LIN is a low speed, single wire communication interface
with support for data rates up to 20 kbps and is used for sensor/actuator interfacing.
The Media Oriented System Transport (MOST) bus is targeted for automotive
audio video equipment interfacing. MOST bus is a multimedia fiber-optic point-to
point network implemented in a star, ring or daisy chained topology over optical
fibers cables.

More Related Content

PPT
8085 Architecture & Memory Interfacing1
PDF
Delays in verilog
PDF
Notes 2D-Transformation Unit 2 Computer graphics
PDF
Control Unit Design
PPTX
Design of Accumulator Unit
PDF
Arithmetic Unit Addition Subtraction Multiplication and Division
PDF
Describr the features of pentium microppr
PPTX
Wavelet Transform and DSP Applications
8085 Architecture & Memory Interfacing1
Delays in verilog
Notes 2D-Transformation Unit 2 Computer graphics
Control Unit Design
Design of Accumulator Unit
Arithmetic Unit Addition Subtraction Multiplication and Division
Describr the features of pentium microppr
Wavelet Transform and DSP Applications

What's hot (20)

DOCX
Control Units : Microprogrammed and Hardwired:control unit
PDF
Question Bank Microprocessor 8085
PPTX
What is Cache and how it works
PPTX
Memory interfacing
PPT
Memory & I/O interfacing
PPTX
Embedded systems
PPT
Assembly language programming_fundamentals 8086
PDF
8155 PPI
PPT
Z buffer
PPTX
Chapter 8 Embedded Hardware Design and Development (second portion)
DOCX
UNIT-II CPLD & FPGA Architectures and Applications
PPT
Demultiplexing of buses of 8085 microprocessor
PDF
Artificial Neural Networks (ANNs) - XOR - Step-By-Step
PPTX
Combinational circuit
PPTX
Transistor Transistor Logic
PPTX
Automatic chocolate vending machine using mucos rtos ppt
PDF
Basic blocks and flow graph in Compiler Construction
PPT
Graphics inputdevices
PDF
Question Bank microcontroller 8051
Control Units : Microprogrammed and Hardwired:control unit
Question Bank Microprocessor 8085
What is Cache and how it works
Memory interfacing
Memory & I/O interfacing
Embedded systems
Assembly language programming_fundamentals 8086
8155 PPI
Z buffer
Chapter 8 Embedded Hardware Design and Development (second portion)
UNIT-II CPLD & FPGA Architectures and Applications
Demultiplexing of buses of 8085 microprocessor
Artificial Neural Networks (ANNs) - XOR - Step-By-Step
Combinational circuit
Transistor Transistor Logic
Automatic chocolate vending machine using mucos rtos ppt
Basic blocks and flow graph in Compiler Construction
Graphics inputdevices
Question Bank microcontroller 8051
Ad

Similar to R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1 (20)

PPTX
Embedded systems - UNIT-1 - Mtech
PPTX
Embedded System Real Time Operating System (ERTS) I unit by vijay
PDF
Introduction to EMBEDDED SYSTEM.pdf
PPTX
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I Introduction to Embedded Systems
DOCX
Embedded System
PDF
Introduction to Embedded Systems
PDF
EIOT Unit 1n.pdf
PDF
ARC_INTRODUCTION OF EMBEDDED SYSTEMS(UNIT 1).pdf
PDF
MODULE4_MES.pdf
PPTX
Embedded systems
PDF
Aauca_Sistemas_Embebidos_Nota_1DR JS.pdf
PDF
ECE_Embeded_Systems_Lecture_Notes of .pdf
PPTX
Introduction to embedded systems
PPTX
Lecture 1 PPT - Introduction to Embedded Systems.pptx
PPT
21CS43-Microcontroller and Embedded Systems - Mod 4 Notes
PPT
Architecture offffffffffffff ESD-ppt.ppt
PPTX
Unit 1 - Introduction
PPTX
ELN_3modul.pptx
PPTX
Introduction to Embedded Systems.pptx
Embedded systems - UNIT-1 - Mtech
Embedded System Real Time Operating System (ERTS) I unit by vijay
Introduction to EMBEDDED SYSTEM.pdf
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I Introduction to Embedded Systems
Embedded System
Introduction to Embedded Systems
EIOT Unit 1n.pdf
ARC_INTRODUCTION OF EMBEDDED SYSTEMS(UNIT 1).pdf
MODULE4_MES.pdf
Embedded systems
Aauca_Sistemas_Embebidos_Nota_1DR JS.pdf
ECE_Embeded_Systems_Lecture_Notes of .pdf
Introduction to embedded systems
Lecture 1 PPT - Introduction to Embedded Systems.pptx
21CS43-Microcontroller and Embedded Systems - Mod 4 Notes
Architecture offffffffffffff ESD-ppt.ppt
Unit 1 - Introduction
ELN_3modul.pptx
Introduction to Embedded Systems.pptx
Ad

Recently uploaded (20)

PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
PPT on Performance Review to get promotions
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
Digital Logic Computer Design lecture notes
PPTX
additive manufacturing of ss316l using mig welding
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
composite construction of structures.pdf
PPTX
web development for engineering and engineering
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPTX
Sustainable Sites - Green Building Construction
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPT
Mechanical Engineering MATERIALS Selection
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
CH1 Production IntroductoryConcepts.pptx
PPT on Performance Review to get promotions
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Digital Logic Computer Design lecture notes
additive manufacturing of ss316l using mig welding
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
composite construction of structures.pdf
web development for engineering and engineering
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Internet of Things (IOT) - A guide to understanding
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Arduino robotics embedded978-1-4302-3184-4.pdf
Sustainable Sites - Green Building Construction
Embodied AI: Ushering in the Next Era of Intelligent Systems
Mechanical Engineering MATERIALS Selection
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...

R20 REGULATION JNTUK EMBEDDED SYSTEMS UNIT-1

  • 1. ADITYA COLLEGE OF ENGINEERING 7 & TECHNOLOGY(A)
  • 2. Learning Outcomes At the end of this lecture, Student will be able to: LO 1 : Understand the classification of Embedded Systems
  • 3. Embedded System: An embedded system is an electronic/electro-mechanical system designed to perform a specific function and is combination of both hardware and firmware (software). The program instructions written for embedded systems are referred to as firmware, and are stored in Read- Only-Memory or Flash memory
  • 4. ES are becoming an inevitable part of any product or equipment in all fields including household appliances, telecommunications, medical equipment, industrial control, consumer products, etc.
  • 5. Comparison of General Purpose Computing System & ES
  • 6. History of Embedded Systems: The first recognized embedded system is theApollo Guidance Computer(AGC) developed by MIT Instrumentation laboratory. AGC was designed on 4K words of ROM & 256 words of RAM. The clock frequency of first microchip used inAGC was 1.024 MHz The computing unit ofAGC consists of 11 instructions and 16 bit word logic ADITYA
  • 7. It Uses 5000 number of ICs such as 3 input NOR gates designed with RTL logic. The User Interface ofAGC is known as DSKY(display/keyboard) which resembles a calculator type keypad with array of numerals. It have two modules. 1.Command Module 2.Lunar Excursion Module The first mass-produced embedded system was guidance computer for the Minuteman-I missile in 1961. In the year 1971 Intel introduced the world's first microprocessor chip called the 4004, was designed for use in business calculators. It was produced by the Japanese company Busicom.
  • 8. CLASSIFICATION OF EMBEDDED SYSTEMS The classification of embedded system is based on following criteria’s: On generation On complexity & performance On deterministic behavior On triggering
  • 10. Based On Complexity and Performance Embedded System Small Scale Medium Scale Large Scale
  • 11. Based On Deterministic Behaviour Embedded System Soft Real Time Systems Hard Real Time Systems
  • 14. Consumer electronics: Camcorders, Digital cameras, etc. Household appliances: Television, DVD players, washing machine, fridge, microwave oven, etc. Home automation and security systems: Air conditioners, sprinklers, intruder detection alarms, closed circuit television cameras, fire alarms, etc. Automotive industry: Anti-lock breaking systems (ABS), engine control, ignition systems, automatic navigation systems, etc. Telecom: Cellular telephones, telephone switches, handset multimedia applications, etc.
  • 15. Computer peripherals: Printers, scanners, fax machines, etc. Card Readers: Barcode, smart card readers, hand held devices, etc Computer Networking Systems: Network Routers, Switches, Hubs, Firewalls etc. Health Care: Different Kinds of Scanners, EEG, ECG Machines etc. Measurement & Instrumentation: Digital multi meters, Digital CROs, LogicAnalyzers PLC systems Banking & Retail: Automatic Teller Machines (ATM) and Currency counters, Point of Sales (POS)
  • 16. PURPOSE OF EMBEDDED SYSTEM Each Embedded Systems is designed to serve the purpose of any one or a combination of the following tasks. Data Collection/Storage/Representation Data Communication Data (Signal) Processing Monitoring Control Application Specific User Interface
  • 17. Data Collection/Storage/Representation Performs acquisition of data from the external world. The collected data can be either analog or digital Data collection is usually done for storage, analysis, manipulation and transmission The collected data may be stored directly in the system or may be transmitted to some other systems or it may be processed by the system or it may be deleted instantly after giving a meaningful representation .
  • 18. Data Communication Embedded Data communication systems are deployed in applications ranging from complex satellite communication systems to simple home networking systems . Embedded Data communication systems are dedicated for data communication The data communication can happen through a wired interface (like Ethernet, RS-232C/USB/IEEE1394 etc) or wireless interface (like Wi- Fi, GSM,/GPRS, Bluetooth, ZigBee etc). Network hubs, Routers, switches, Modems etc are typical examples for dedicated data transmission embedded systems.
  • 19. Data signal processing Embedded systems with Signal processing functionalities are employed in applications demanding signal processing like Speech coding, synthesis, audio video codec, transmission applications etc. Computational intensive systems Employs Digital Signal Processors (DSPs) A digital hearing aid is a typical example of an embedded system employing data processing. Digital hearing aid improves the hearing capacity of hearing impaired person
  • 20. Monitoring All embedded products coming under the medical domain are with monitoring functions. Electro cardiogram machine is intended to do the monitoring of the heartbeat of a patient but it cannot impose control over the heartbeat. Other examples with monitoring function are digital CRO, digital multimeters, and logic analyzers.
  • 21. Control A system with control functionality contains both sensors and actuators. Sensors are connected to the input port for capturing the changes in environmental variable. The actuators connected to the output port are controlled according to the changes in the input variable. Air conditioner system used to control the room temperature to a specified limit is a typical example for CONTROL purpose.
  • 22. Application specific user interface Buttons, switches, keypad, lights, bells, display units etc are application specific user interfaces. Mobile phone is an example of application specific user interface. In mobile phone the user interface is provided through the keypad, system speaker, vibration alert etc.
  • 23. ADITYA COLLEGE OF ENGINEERING & TECHNOLOGY(A) The Typical embedded system
  • 24. Elements of Embedded Systems A typical embedded system contains a single chip controller which acts as the master brain of the system. Diagrammatically an embedded system can be represented as follows: microcontroller The controller can be a Microprocessor or a or a Field Programmable Gate Signal Array (FPGA) device or a Digital Processor(DSP) or an Application Specific Specific Integrated Circuit (ASIC)/ Application Standard Product (ASSP).
  • 25. Embedded hardware/software systems are basically designed to regulate a physical variable or to manipulate the state of some devices by sending some control signals to the Actuators or devices connected to the o/p ports of the system, in response to the input signals provided by the end users or Sensors which are connected to the input ports. Keyboards, push button switches, etc. are examples for common user interface input devices whereas LEDs, liquid crystal displays, piezoelectric buzzers, etc. are examples for common user interface output devices for a typical embedded system. The Memory of the system is responsible for holding the control algorithm and other important configuration detail. For most of the embedded Systems ,the memory for storing algorithm or configuration data is of Fixed Type.
  • 26. Core Of the Embedded System The core of the embedded system falls into any of the following categories 1.General Purpose and Domain Specific Processors i . Microprocessors ii. Microcontrollers iii. Digital Signal Processors 2.Application Specific Integrated Circuits (ASICs) 3. Programmable Logic Devices (PLDs) 4. Commercial off-the-shelf Components (COTS)
  • 27. General Purpose and Domain Specific Processors Microprocessor: A silicon chip representing a Central Processing Unit (CPU), which is capable of performing arithmetic as well as logical operations according to a pre-defined set of Instructions, which is specific to the manufacturer . In general the CPU contains the Arithmetic and Logic Unit (ALU), Control Unit and Working registers. Microprocessor is a dependant unit and it requires the combination of other hardware like Memory, Timer Unit, and Interrupt Controller etc for proper functioning.
  • 28. MICRO CONTROLLERS A highly integrated silicon chip containing a CPU, scratch pad RAM, Special and General purpose Register Arrays, On Chip ROM/FLASH memory for program storage, Timer and Interrupt control units and dedicated I/O ports Microcontrollers can be considered as a super set of Microprocessors Microcontroller can be general purpose (like Intel 8051, designed for generic applications and domains) or application specific (Like Automotive AVR from Atmel Corporation. Designed specifically for automotive applications) Since a microcontroller contains all the necessary functional blocks for independent working, they found greater place in the embedded domain in place of microprocessors  Microcontrollers are cheap, cost effective and are readily available in the market
  • 30. General Purpose Processor (GPP) Vs Application Specific Instruction Set Processor (ASIP) General Purpose Processor or GPP is a processor designed for general computational tasks Application Specific Instruction Set processors (ASIPs) are processors with architecture and instruction set optimized to specific domain/application requirements like Network processing, Automotive, Telecom, media applications, digital signal processing, control applications etc.
  • 31. • DSPs are powerful special purpose 8/16/32 bit microprocessors designed specifically to meet the computational demands and power constraints of today's embedded audio, video, and communications applications. • Digital signal processors are 2 to 3 times faster than the purpose microprocessors general in signal processing applications. Digital Signal Processors
  • 32. A typical digital signal processor incorporates the following key units Program Memory : Memory for storing the program required by DSP to process the data. Data Memory : Working memory for storing temporary variables/information and data/signal to be processed. Computational Engine : Performs the signal/math processing , accessing the program from the Program Memory and the data from the Data Memory. I/O Unit :Acts as an interface between the outside world and DSP. It is responsible for capturing signals to be processed and delivering the processed signals
  • 33. Application areas : Audio video signal processing, telecommunication and multimedia applications. DSP employs a large amount of real-time calculations, Sum of products (SOP) calculation, convolution, fast Fourier transform (FFT), discrete Fourier transform (DFT), etc. are some of the operations performed by digital signal processors.
  • 34. RISC vs. CISC Processors/Controllers
  • 35. RISC vs. CISC Processors/Controllers
  • 36. Harvard Architecture Vs Von-Neumann Architecture
  • 37. Big-Endian vs. Little Endian Processors/Controllers Endianness specifies the order in which a sequence of bytes are stored in computer memory Little-endian is an order in which the lower-order byte of the data is stored in memory at the lowest address and the higher order Byte at the HighestAddress. Big-endian means the higher-order byte of the data is stored in memory at the lowest address, and the lower-order byte at the highest address.
  • 39. Load Store Operation & Instruction Pipelining
  • 40. Application Specific Integrated Circuit (ASIC) Amicrochip designed to perform a specific or unique application. It is used as replacement to conventional general purpose logic chips.
  • 41. Programmable Logic Devices (PLDs) Logic devices provide specific functions, including device-to-device interfacing, data communication, signal processing, data display, timing and control operations, and almost every other function a system must perform. Logic devices can be classified into two broad categories - Fixed and Programmable. The circuits in a fixed logic device are permanent, they perform one function or set of functions - once manufactured, they cannot be changed Field Programmable GateArrays (FPGAs) and Complex Programmable Logic Devices (CPLDs) are the two major types of programmable logic devices
  • 42. Commercial off the Shelf Component (COTS) COTS products are designed in such a way to provide easy integration and interoperability with existing system components The major advantage of using COTS is that they are readily available in the market, cheap and a developer can cut down his/her development time to a great extend.
  • 43. MEMORY Memory is an important part of an embedded system. The memory used in embedded system can be either Program Storage Memory (ROM) or Data memory (RAM) Certain Embedded processors/controllers contain built in program memory and data memory and this memory is known as on-chip memory Certain Embedded processors/controllers do not contain sufficient memory inside the chip and requires external memory called off-chip memory or external memory.
  • 44. Programme Storage Memory Stores the program instructions Retains its contents even after the power to it is turned off. It is generally known as Non volatile storage memory
  • 45. Read-Write Memory/Random Access Memory (RAM) The RandomAccess Memory (RAM) is the data memory or working memory of the controller/processor.  Controller/processor can read from it and write to it.  RAM is volatile, meaning when the power is turned off, all the contents are destroyed.
  • 49. Sensors & Actuators Embedded system is in constant interaction with the real world • Controlling/monitoring functions executed by the embedded system is achieved in accordance with the changes happening to the Real World. •The changes in the system environment or variables are detected by the sensors connected to the input port of the embedded system. • If the embedded system is designed for any controlling purpose, the system will produce some changes in controlling variable to bring the controlled variable to the desired value. • It is achieved through an actuator connected to the out port of the embedded system.
  • 50. At the end of this lecture, Student will be able to: LO 1 : Understand the role of Sensors,Actuators and their Interfacing with I/O subsystems of an Embedded System Learning Outcome
  • 51. Sensors A transducer device which converts energy from one form to another for any measurement or control purpose. Sensors acts as input device Ex:. Hall Effect Sensor which measures the distance between the cushion and magnet in the Smart Running shoes from adidas Example: IR, humidity , PIR(passive infra red) , ultrasonic , piezoelectric , smoke sensors
  • 52. A form of transducer device (mechanical or electrical) which converts signals to corresponding physical action (motion). Actuator acts as an output device Example: Micro motor actuator which adjusts the position of the cushioning element in the Smart Running shoes from adidas Actuator
  • 53. I/O Subsystem  The I/O subsystem of the embedded system facilitates the interaction of the embedded system with the external world.  The interaction happens through the sensors and actuators connected to the input and output ports respectively of the embedded system.  The sensors may not be directly interfaced to the input ports, instead they may be interfaced through signal conditioning and translating systems likeADC, optocouplers, etc.
  • 54.  Light Emitting Diode (LED)  7-Segment LED Display  Optocoupler  Stepper Motor  Relay  Piezo Buzzer  Push Button Switch  Keyboard  Programmable Peripheral Interface (PPI)
  • 55. Light Emitting Diode (LED)  LED is an important output device for visual indication in any embedded system. LED can be used as an indicator for the status of various signals or situations. Typical examples are indicating the presence of power conditions like ‘Device ON’, ‘Battery low’ or ‘Charging of battery’for a battery operated handheld embedded devices.  LED is a p-n junction diode and it contains an anode and a cathode. For proper functioning of the LED, the anode of it should be connected to +ve terminal of the supply voltage and cathode to the –ve terminal of the supply voltage. The current flowing through the LED must be limited to a value below the maximum current that it can conduct. A resistor is used in series between the power supply and the LED to limit the current through the LED.
  • 57. 7- Segment LED Display The 7-segment LED display is an output device for displaying alphanumeric characters. It contains 8 light-emitting diode (LED) segments arranged in a special form. Out of the 8 LED segments, 7 are used for displaying alphanumeric characters and 1 is used for representing ‘decimal point’in decimal numberdisplay. The LED segments are namedAto G and the decimal point LED segment is named as DP.
  • 58.  The 7-segment LED displays are available in two different configurations, namely; Common Anode and Common Cathode. In the common anode configuration, the anodes of the 8 segments are connected commonly whereas in the common cathode configuration, the 8 LED segments share a common cathode line.
  • 59. applications like, Public 7-segment LED display is a popular choice for low cost embedded telephone call monitoring devices, point of sale terminals, etc.
  • 60. Optocoupler Optocoupler is a solid state device to isolate two parts of a circuit. Optocoupler combines an LED and a photo-transistor in a single housing (package). Figure illustrates the functioning of an optocoupler device. Figure.An optocouplerdevice
  • 61. In Electronic circuits an optocoupler is used for suppressing interference data communication,circuit isolation,high voltage separation, simultaneous separation and signal intensification,etc. Optocouplers can be used in either input circuits or in outputcircuits. Figure illustrates the usage of optocoupler in input circuit and output circuit of an embedded system with a microcontroller as the system core.
  • 62. Stepper Motor Stepper motor is an electro mechanical device which generates discrete displacement (motion) in response to dc electrical signals It differs from the normal dc motor in its operation. The dc motor produces continuous rotation on applying dc voltage whereas a stepper motor produces discrete rotation in response to the dc voltage applied to it Stepper motors are widely used in industrial embedded applications, consumer electronic products and robotics control systems The paper feed mechanism of a printer/fax makes use of stepper motors for its functioning.
  • 63. RELAY An electro mechanical device which acts as dynamic path selectors for signals and power. The “Relay‟ unit contains a relay coil made up of insulated wire on a metal core and a metal armature with one or more contacts. “Relay‟ works on electromagnetic principle. When a voltage is applied to the relay coil, current flows through the coil, which in turn generates a magnetic field.
  • 64. Piezo Buzzer It is a piezoelectric device for generating audio indications in embedded applications. •A Piezo buzzer contains a piezoelectric diaphragm which produces audible sound in response to the voltage applied to it. • Piezoelectric buzzers are available in two types 1.Self-driving 2.External driving
  • 65. Push button switch Push Button switch is an input device. Push button switch comes in two configurations, namely “Push to Make‟ and „Push to Break‟. The switch is normally in the open state and it makes a circuit contact when it is pushed or pressed in the „Push to Make‟ configuration. In the „Push to Break‟ configuration, the switch normally in the closed state and it breaks the circuit contact when it is pushed or pressed . The push button stays in the „closed‟ (For Push to Make type) or „open‟ (For Push to Break type) state as long as it is kept in the pushed state and it breaks/makes the circuit connection when it is released.
  • 67. Programmable Peripheral Interface PPI devices are used for extending I/O capabilities of Processors/Controllers. 8255 is a popular PPI for 8 bit Processors/Controllers. 8255 supports 24 I/O pins grouped as 3- Eight bit Ports (PortA, Port B, Port C)
  • 70. Communication Interface Communication interface is essential for communicating with various subsystems of the embedded system and with the external world The communication interface can be viewed in two different perspectives; namely; 1. Device/board level communication interface (Onboard Communication Interface) 2. Product level communication interface (External Communication Interface)
  • 71. The communication channel which interconnects the various components within an embedded product is referred as Device/board level communication interface (Onboard Communication Interface) Examples: Serial interfaces like I2C, SPI, UART, 1-Wire etc and Parallel bus interface Device/board level communication interface (Onboard Communication Interface)
  • 72. The “Product level communication interface‟ (External Communication Interface) is responsible for data transfer between the embedded system and other devices or modules. The external communication interface can be either wired media or wireless media and it can be a serial or parallel interface. Examples for wireless communication interface: Infrared (IR), Bluetooth (BT), Wireless LAN (Wi-Fi), Radio Frequency waves (RF), GPRS etc. Examples for wired interfaces: RS-232C/RS-422/RS 485, USB, Ethernet (TCP-IP), IEEE 1394 port, Parallel port etc. Product level communication interface (External Communication Interface)
  • 74. Onboard Communication Interfaces Onboard Communication Interface refers to the different communication channels/buses for interconnecting the various integrated circuits and other peripherals within the embedded system. The various interfaces for onboard communication are as follows: i. Inter Integrated Circuit (I2C) Bus ii. Serial Peripheral Interface (SPI) Bus iii. UniversalAsynchronous Receiver Transmitter (UART) iv. 1-Wire Interface v. Parallel Interface
  • 75. Inter Integrated Circuit (I2C) Bus The Inter Integrated Circuit Bus is a synchronous bi-directional half duplex two wire serial interface bus. The I2C bus comprise of two bus lines, namely; Serial Clock-SCL and Serial Data-SDA. SCL line is responsible for generating synchronization clock pulses and SDA is responsible for transmitting the serial data across devices. Devices connected to the I2C bus can act as either ‘Master’device or ‘Slave’device. The ‘Master’device is responsible for controlling the communication by initiating/terminating data transfer, sending data and generating necessary synchronization clock pulses. ‘Slave’ devices wait for the commands from the master and respond upon receiving the commands. ‘Master’ and ‘Slave’ devices can act as either transmitter or receiver. I2C supports multi masters on the same bus.
  • 77. 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 is introduced by Motorola.SPI is a single master multi-slave system. It is possible to have a system where more than one SPI device can be master, provided the condition only one master device is active at any given point of time, is satisfied. SPI is used to send data between Microcontrollers and small peripherals such as shift registers, sensors, and SD cards.
  • 78. 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/Slave 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.
  • 81. 1-wire interface (protocol) 1-Wire interface is an asynchronous Half Duplex Communication Protocol developed by maxim Dallas Semi conductor . It uses a single signal line called DQ for communication and follows the master slave communication Model. One of the Key feature of 1-Wire bus is that it allows power to be sent along the signal wire. The 1 wire interface supports single master and one or more slave devices on the bus.
  • 83. Parallel Interference In data transmission, parallel communication is a method of conveying multiple binary digits (bits) simultaneously. It contrasts with communication. The communication channel is the number of electrical conductors used at the physical layer to convey bits. Parallel communication implies more than one such conductor. For example, an 8-bit parallel channel will convey eight bits (or a byte) simultaneously, whereas a serial channel would convey those same bits sequentially, one at a time. Parallel communication is and always has been widely used within integrated circuits, in peripheral buses, and in memory devices such as RAM.
  • 85. Universal Asynchronous Receiver Transmitter(UART)
  • 86. Product level communication interface (External Communication Interface) The Product level communication interface‟ (External Communication Interface) is responsible for data transfer between the embedded system and other devices or modules It is classified into two types 1. Wired communication interface 2. Wireless communication interface: 3. Wired communication interface: Wired communication interface is an interface used to transfer information over a wired network. 2. Wireless communication interface : Wireless communication interface is an interface used to transmission of information over a distance without help of wires, cables or any other forms of electrical conductors.
  • 87. RS-232C/RS-422/RS 485 RS-232 C (Recommended Standard number 232, revision C from the Electronic Industry Association) is a legacy, full duplex, wired, asynchronous serial communication interface RS-232 extends the UART communication signals for external data communication. UART uses the standard TTL/CMOS logic (Logic „High‟ corresponds to bit value 1 and Logic „LOW‟ corresponds to bit value 0) for bit transmission whereas RS232 use the EIAstandard for bit transmission. As per EIA standard, a logic „0‟ is represented with voltage between +3 and +25V and a logic „1‟ is represented with voltage between -3 and -25V. In EIAstandard, logic „0‟ is known as „Space‟ and logic „1‟ as „Mark‟. The RS232 interface define various handshaking and control signals for communication apart from the „Transmit‟ and „Receive‟ signal lines for data communication
  • 89. RS-232 supports two different types of connectors, namely; DB-9: 9-Pin connector and DB-25: 25-Pinconnector. DB-25
  • 92. Universal Serial Bus (USB) is a wired high speed serial bus for data communication. The USB host can support connections up to 127, including slave peripheral devices and other USB hosts Universal Serial Bus (USB)
  • 93. IEEE 1394 (Firewire IEEE 1394 (Firewire) is a wired, iso synchronous high speed serial communication bus. It is also known as High Performance Serial Bus (HPSB). IEEE 1394 is a popular communication interface for connecting embedded devices like Digital Camera, Camcorder, Scanners to desktop computers for data transfer and storage. Unlike USB interface, IEEE 1394 doesn’t require a host for communicating between devices. For example, you can directly connect a scanner with a printer for printing. The data rate supported by 1394 is far higher than the one supported by USB 2.0 interface. The 1394 hardware implementation is much costlier than USB Implementation
  • 97. Infrared Data Association (IrDA) Infrared (IrDA) is a serial, half duplex, line of sight based wireless technology for data communication between devices. It is in use from the olden days of communication and you may be very familiar with it. The remote control of your TV, VCD player, etc works on Infrared data communication principle.
  • 98. Bluetooth (BT) Bluetooth is a low cost, low power, short range wireless technology for data and voice communication. Bluetooth supports point-to-point (device to device) and point-to-multipoint (device to multiple device broadcasting) wireless communication. A Bluetooth device can function as either master or slave. When a network is formed with one Bluetooth device as master and more than one device as slaves, it is called a Piconet. A Piconet supports a maximum of seven slave devices. Bluetooth is the favorite choice for short range data communication in handheld embedded devices. Bluetooth technology is very popular among cell phone users as they are the easiest communication channel for transferring ringtones, music files, pictures, media files, etc between neighboring Bluetooth enabled phones. It supports a data rate of up to 1 Mbps and a range of approximately 30 feet for data communication
  • 99. Wi-Fi Wi-Fi or Wireless Fidelity is the popular wireless communication technique for networked communication of devices. Wi-Fi is intended for network communication and it supports Internet Protocol (IP) based communication. It is essential to have device identities in a multipoint communication to address specific devices for data communication. Wi-Fi based communications require an intermediate agent called Wi-Fi router/Wireless access point to manage the communications. Wi-Fi supports data rates ranging from 1 Mbps to 150 Mbps and offers a range of 100 to 300 feet.
  • 100. ZigBee ZigBee is a low power, low cost, wireless network communication protocol based on the IEEE 802.15.4- 2006 standard. ZigBee is targeted for low power, low data rate and secure applications for Wireless Personal Area Networking (WPAN).  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.6MHz. ZigBee supports an operating distance of up to 100 meters and a data rate of 20 to 250Kbps.
  • 101. ZigBee device categories are as follows: ZigBee Coordinator (ZC)/Network Coordinator: The ZigBee coordinator acts as the root of the ZigBee network. The ZC is responsible for initiating the ZigBee network and it has the capability to store information about the 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.
  • 103. General Packet Radio Service (GPRS) GPRS is a communication technique for transferring data over a mobile communication network like GSM. GPRS supports a theoretical maximum transfer rate of 171.2 kbps. The GPRS communication divides the channel into 8 timeslots and transmits data over the available channel.
  • 104. Characteristics of Embedded systems 1. Application and domain specific 2. Reactive and Real Time 3. Operates in harsh environments 4. Distributed 5. Small Size and weight 6. Power concerns
  • 105. Quality Attributes of Embedded Systems Quality attributes are the non-functional requirements that need to be documented properly in any system design. If the quality attributes are more concrete and measurable, it will give a positive impact on the system development process and the end product. The various quality attributes that needs to be addressed in any embedded system development are broadly classified into two, namely i. Operational QualityAttributes ii. Non-Operational QualityAttributes
  • 106. Operational Quality Attributes The operational quality attributes represent the relevant quality attributes related to the embedded system when it is in the operational mode or ‘online’ mode. The important quality attributes coming under this category are listed below: i. Response ii. Throughput iii. Reliability iv. Maintainability v. Security vi. Safety
  • 107. Non Operational Attributes The quality attributes that needs to be addressed for the product ‘not’ on the basic of operational aspects are grouped under this category. The important quality attributes coming under this category are listed below: i. Testability & Debug-ability ii. Evolvability iii. Portability iv. Time to prototype and market v. Per unit and total cost
  • 109. Washing Machine-Application-Specific Embedded System Washing Machine is a typical example of an embedded system providing extensive support in home automation applications. An embedded system contains sensors, actuators, control unit and application-specific user interfaces like keyboards, display units, etc. You can see all these components in a washing machine if you have a closer look at it. Some of them are visible and some of them may be invisible to you.
  • 110. The actuator part of washing machine consists of a motorized agitator, tumble tub, water drawing pump and inlet valve to control the flow of water into the unit. The sensor part consists of the water temperature sensor, level sensor, etc. The control part contains a microprocessor/controller based board with interfaces to the sensors and actuators. The sensor data is fed back to the control unit and the control unit generates the necessary actuator outputs. The control unit also provides connectivity to user interfaces like keypad for setting the washing time, selecting the type of material to be washed like light, medium, heavy duty, etc. User feedback is reflected through the display unit and LEDs connected to the control board.
  • 112. The integrated control panel consists of a microprocessor/controller based board with I/O interfaces and a control algorithm running in it. Input interface includes the keyboard which consists of wash type selector namely Wash, Spin and Rinse, cloth type selector namely Light, Medium, Heavy duty and washing time setting, etc. The output interface consists of LED/LCD displays, status indication LEDs, etc. connected to the I/O bus of the controller. It is to be noted that this interface may vary from manufacturer to manufacturer and model to model. The other types of I/O interfaces which are invisible to the end user are different kinds of sensor interfaces, namely, water temperature sensor, water level sensor, etc. and actuator interface including motor control for agitator and tub movement control, inlet water flow control, etc.
  • 113. Automotive-Domain-Specific Examples of Embedded System The major application domains of embedded systems are consumer, industrial, automotive, telecom, etc. of which telecom and automotive industry holds a big market share.
  • 114. Inner Workings of Automotive Embedded Systems Automotive embedded systems are the one where electronics take control over the mechanical systems. The presence of automotive embedded system in a vehicle varies from simple mirror and wiper controls to complex air bag controller and antilock brake systems (ABS). Automotive embedded systems are normally built around microcontrollers or DSPs or a hybrid of the two and are generally known as Electronic Control Units (ECUs).
  • 115. The various types of electronic control units (ECUs) used in the automotive embedded industry can be broadly classified into two-High speed embedded control units and Low speed embedded control units. High speed Electronic Control Units (HECUs) : High speed electronic control units (HECUs) are deployed in critical control units requiring fast response, like fuel injection systems, antilock brake systems, etc. Low speed Electronic Control Units (LECUs) : Low speed electronic control units are deployed in applications where response time is not so critical. They are generally built around low cost microprocessors/microcontrollers and digital signal processors. Audio controllers, passenger and driver door locks, door glass controls, etc., are examples for LECUs.
  • 116. Automotive Communication Buses Automotive applications use serial buses for communication. ControllerArea Network (CAN), Local Interconnect Network (LIN), Media Oriented System Transport (MOST) bus, etc. are the important automotive communication buses. CAN is an event driven serial protocol interface with support for error handling in data transmission. It is generally employed in safety system like airbag control, powertrain systems like engine control andAntilock Brake Systems.
  • 117. LIN bus is a single master multiple slave (up to 16 independent slave nodes) communication interface. LIN is a low speed, single wire communication interface with support for data rates up to 20 kbps and is used for sensor/actuator interfacing. The Media Oriented System Transport (MOST) bus is targeted for automotive audio video equipment interfacing. MOST bus is a multimedia fiber-optic point-to point network implemented in a star, ring or daisy chained topology over optical fibers cables.