Unit-4 ESC
Unit-4 ESC
Embedded Systems
MODULE IV
• Embedded Systems – Definition, Embedded systems vs general computing
systems, Classification of Embedded Systems, Major application areas of
Embedded Systems, Elements of an Embedded System, Core of the
Embedded System, Microprocessor vs Microcontroller, RISC vs CISC
• Sensors and Interfacing – Instrumentation and control systems,
Transducers, Sensors, Actuators, LED, 7-Segment LED Display.
Embedded Systems
• An Electronic/Electro mechanical system which is designed to perform a
specific function and is a combination of both hardware and firmware
(Software).
• E.g. Electronic Toys, Mobile Handsets, Washing Machines, Air Conditioners,
Automotive Control Units, Set Top Box, DVD Player
Contain a General Purpose Operating System (GPOS). May or may not contain an operating system for
functioning.
Applications are alterable (programmable) by user. (The The firmware of the embedded system is
end user can re-install the OS, and add or remove user pre-programmed and it is non-alterable by end-user.
applications).
Performance is the key deciding factor on the selection Application specific requirements (like performance,
of the system. Always “Faster is Better”. power requirements, memory etc) are the key deciding
factors.
Less/not at all tailored towards reduced operating power Highly tailored to take advantage of the power saving
requirements, options for different levels of power modes supported by hardware and Operating System.
management.
Response requirements are not time critical. For certain category of ES, the response time
requirement is highly critical.
Need not be deterministic in execution behavior. Execution behavior is deterministic for few ES like “Hard
Real Time‟ systems.
Classification of Embedded Systems
The criteria used in the classification of embedded systems are:
1. Based on generation.
2. Complexity and performance requirements.
3. Based on deterministic behaviour.
4. Based on triggering.
Classification Based on Generation
• First Generation:
• The early embedded systems were built around 8-bit microprocessors like
8085 and Z80, and 4-bit microcontrollers.
• Simple in hardware circuits with firmware developed in Assembly code.
– Eg: Digital telephone keypads, stepper motor control units etc.
• Second Generation:
• Embedded systems built around 16-bit microprocessors and 8 or 16-bit
microcontrollers.
• The instruction set became much more complex and powerful than the first
generation processors/controllers.
– Eg: Data Acquisition Systems, SCADA (Supervisory control and data acquisition)
systems etc.
• Third Generation:
• ES built around powerful 32-bit processors and 16-bit microcontrollers.
• Application and domain specific processors /controllers like Digital Signal
Processors (DSP) and Application Specific Integrated Circuits (ASICs) came
into the picture.
• The instruction set is more complex and powerful.
– Eg: Robotics, media, industrial process control, networking, etc.
• Fourth Generation:
• Embedded system built around System on Chips (SOC), reconfigurable
processors and multicore processors.
• The fourth generation embedded systems are making use of high
performance real time embedded operating systems for their functioning.
– Eg: Smart phone devices, mobile internet devices (MIDs), etc.
Classification Based on Complexity and
Performance
• Small-Scale Embedded Systems:
• Small-scale ES are usually built around low performance and low cost 8 or 16 bit
microprocessors / microcontrollers.
• These ES are suitable for simple applications and where performance is not time critical.
• It may or may not contain an operating system (OS) for functioning.
– Eg: Electronic toy.
It is a dependent unit. It requires the combination of It is a self contained unit and d o e s n ’ t require
other chips like Timers, Program and data memory external Interrupt Controller, Timer, and UART etc. for
chips, Interrupt controllers etc. for functioning. its functioning.
Most of the time general purpose in design and Mostly application oriented or domain specific.
operation.
Doesn’t contain a built in I/O port. The I/O Port Most of the processors contain multiple built-in I/O
functionality needs to be implemented with the help of ports which can be operated as a single 8 or 16 or 32 bit
external Programmable Peripheral Interface Chips Port or as individual port pins.
Targeted for high end market where performance is Targeted for embedded market where performance is
important. not so critical.
Limited power saving options. Includes lot of power saving features
Large number of registers are available Limited no. of general purpose registers
Programmer needs to write more code to execute a task A programmer can achieve the desired functionality
since the instructions are simpler ones. with a single instruction.
Easier to Pipeline, so high performance can be Low performance Compared to Harvard Architecture.
achieved.
Comparatively high cost. Cheaper.
No memory alignment problems Allows self modifying codes
• Figure (b) shows the arrangement of a control system. This uses negative
feedback in order to regulate and stabilize the output. It thus becomes possible
to set the input or demand (i.e. what we desire the output to be) and leave the
system to regulate itself by comparing it with a signal derived from the output
(via a sensor and appropriate signal conditioning).
• A comparator is used to sense the difference in these two signals and where any
discrepancy is detected the input to the power amplifier is adjusted accordingly.
This signal is referred to as an error signal (it should be zero when the output
exactly matches the demand). The input (demand) is often derived from a
simple potentiometer connected across a stable d.c. voltage source while the
controlled device can take many forms (e.g. a d.c. motor, linear actuator, heater,
etc.).
TRANSDUCERS
• Transducers are devices that convert energy in the form of sound, light, heat, etc.,
into an equivalent electrical signal, or vice versa.
• A loudspeaker is a transducer that converts low frequency electric current into
audible sounds.
• A microphone, on the other hand, is a transducer that performs the reverse
function, i.e. that of converting sound pressure variations into voltage or current.
• Transducers may be used both as inputs to electronic circuits and outputs from
them.
• From the two previous examples, it should be obvious that a loudspeaker is an
output transducer designed for use in conjunction with an audio system.
• A microphone is an input transducer designed for use with a recording or sound
reinforcing system.
SENSORS
• A sensor is a special kind of transducer that is used to generate an input signal to a
measurement, instrumentation or control system. The signal produced by a sensor is
an electrical analogy of a physical quantity, such as distance, velocity,
acceleration, temperature, pressure, light level, etc. The signals returned from a
sensor, together with control inputs from the user or controller (as appropriate) will
subsequently be used to determine the output from the system.
• The choice of sensor is governed by a number of factors including accuracy,
resolution, cost and physical size.
SENSORS
• Sensors can be categorized as either active or passive.
• An active sensor generates a current or voltage output.
• A passive transducer requires a source of current or voltage and it modifies this in
some way (e.g. by virtue of a change in the sensor’s resistance). The result may still
be a voltage or current but it is not generated by the sensor on its own. Sensors can
also be classed as either digital or analogue.
• The output of a digital sensor can exist in only two discrete states, either ‘on’ or
‘off’, ‘low’ or ‘high’, ‘logic 1 or ‘logic 0’, etc.
• The output of an analogue sensor can take any one of an infinite number of voltage
or current levels.
ACTUATORS
1. LED
2. 7-Segment LED Display
Actuator is a form of transducer device (mechanical or electrical) which converts
signals to corresponding physical action (motion). Actuator acts as an output
device.
Eg. Micro motor actuator which adjusts the position of the cushioning element in
the Smart Running shoes from adidas
Wearable Devices – certain smart watches use Ambient Light sensors to detect
surrounding light intensity and adjust the screen brightness for better
readability using electrical / electronic actuators.
INTERFACING A LED