Embeded Systems Unit 1
Embeded Systems Unit 1
Embeded Systems Unit 1
COMPONENTS
What is an embedded system
• An embedded system is an electronic/electro-
mechanical system designed to perform a
specific function and is a combination of both
hardware and firmware (software)
EMBEDDED SYSTEM
• To perform a specific function
• Combination of both h/w and s/w
• May or may not contain an O.S
• The firmware of the embedded system is pre-
programmed and it is non alterable by the end user
CLASSIFICATION OF ES
• 1. Based on generation
• 2. Complexity & performance requirements
• 3. Based on deterministic behavior
• 4. Based on triggering
1. CLASSIFICATION BASED ON GENERATION
• Datacollection/storage/representation/analysis/
manipulation/transmission
• Data communication
• Data processing
• Monitoring
• Control
• Application specific user interface
ELEMENTS OF AN EMBEDDED SYSTEM
communication
MEMORY interface
Other
supporting
IC s and
subsystem
s
CORE OF THE EMBEDDED SYSTEM
• The core of the embedded system falls in to
any one of the following categories
1. general purpose and domain specific
processors ( µp, µC, DSP )
2. ASIC(Application specific IC)
3. programmable logic devices (PLD)
4. commercial off-the-shelf components
(COTS)
GPP vs. ASIP
• General purpose processor :
Designed for general computational tasks
E.g.. Processor in the laptop
High volume production
Unit cost for a chip is low
• ASIP instruction set and architecture
optimized to specific application
• ASIP arises when the GPP are unable to
meet the application needs
µP Vs µC µC
µP
Representing a CPU performing Highly integrated chip that contains
ALU operations according to a pre CPU, RAM, on chip ROM , timer etc
defined set of instructions
It is a self contained unit
It is a dependent unit requires
other chips like timers , memory
chips etc
Most of the processors contain multiple
Doesn't contain built in I/O port built in I/O ports
Large no. of registers are available Limited no. of registers are available
Programmer needs to write more code to Programmer can achieve the same with a single
execute a task instruction
Separate buses for instruction and data Single shared bus for instruction and data
Big endian
Byte 3
Base address + 0 Big endian – higher order
Base address +1 Byte 2 byte of data at lowest
Base address+2 Byte 1 address
Base address+3
Byte 0
Load and store operation
• Load – content of memory location loaded to a register
• Stored- stores the content of data from the specified
register to specified memory
• E.g.. Add contents of memory locations x,y and store
the result in location z
load R1,x
load R2,y
add R3,R1,R2
store R3,z
Instruction pipelining
• conventional instruction execution –fetch-
decode-execute
• Instruction pipelining refers to the
overlapped execution of instructions
• Processing speed can be increased
ASIC
• A micro chip designed to perform a unique
application
• It integrates several functions to a single chip
and there by reduces the cost
• Consumes a very small area and there by
helps in the design of smaller systems
• Can be pre-fabricated or custom fabricated
• Profitable only for large volume productions
Programmable logic devices
• Logic devices can be classified into two (fixed and
programmable)
• Circuits in fixed logic device are permanent- (for one
function or set of functions) –they can not be changed
• PLD offer customers a wide range of logic capacity,
features, speed etc.
• final design is completed much faster than that of fixed
logic device
• During design phase customers can change the circuitry as
often as they want
• PLDs are based on re-writable memory
• Once design is final customers can go into many PLDs as
they need
CPLD AND FPGA
• Two major types of PLDs are field programmable gate
arrays and complex programmable logic devices
• FPGA – highest logic density, most features, highest
performance
• Offers built in h/w processors, clk management
systems, device to device signaling
• Used in wide range of applications telecom, DSP etc
• CPLD - Small amount of logic density
• Offer very predictable timing characteristics and so ideal
for critical control applications
• Usually requires low amount of power
• Very inexpensive
• Ideal for cost-sensitive, battery operated
• Ideal of portable applications such as mobile phones
Advantages of PLD
• Offer customers much more flexibility during
design cycle
• Do not require long lead time for production
part
• Allows customers to orders just number of
parts they need, when they need them
• Can be reprogrammed. To add new feature
simply upload a new programming file to the
PLD via internet
Commercial off-the-shelf components-
COTS
• Provides easy integration and interoperability with
existing system components.
• May be developed around a general purpose/domain
specific processor/application specific processor
• E.g.- remote controlled toy car control units like RF
circuitry part, ADC , UV detectors etc.
• Readily available in the market
• Cheap
• Developer can cut down development time
• since no operational and manufacturing standards end
user should stick to a particular vendor for a particular
COTs
• Manufacturer of the COTS component may withdraw
the product at any time
Memory
• On-chip and off-chip memory
• Program storage memory-nonvolatile
Actuators:
Which converts signals to corresponding
physical action.
Acts as o/p device
i/o subsystems
• Facilitates the interaction o the embedded system with the
external world
LED:
• o/p device
• Pn junction diode
• Anode to +ve terminal and cathode to –ve terminal
• A resistor in series to limit the current
7 segment LED display
• o/p device to display alphanumeric characters
• 8 LEDs
• a- g segments
• Two configurations- common anode and common cathode
• Used for low cost application
Optocoupler
• To isolate two parts or a circuit (for suppressing
interference in data communication, high voltage
separation etc)
• Combines a LED and a photo-transistor in a single
package
• Can be used in i/p and o/p circuits
Stepper motor
• Electro- mechanical device which generates
discrete displacement in response to dc electrical
signals
• Dc motor gives continuous rotation
• Consumer electronic products, robotics control,
paper feed mechanism of a printer
• Two phase stepper motor is classified into
two.
• Uni polar and bi polar
• Unipolar: contains two winding per phase
• Direction of rotation is controlled by changing
direction of current
• Current in one direction flows through one
coil and in opposite direction through the
other coil
• Bipolar:
• Contains single winding per phase for
reversing the motor rotation the current flow
through the winding is reversed.
• The stepping of stepper motor can be
implemented by changing sequence of
activation of the stator windings
Different stepping modes
• Full step: both phases are energized simultaneously
Step Coil a Coil b Coil c Coil d
1 H H L L
2 L H H L
3l L L H H
4 H L L H
• Backbone is PCB
• After finalizing the components and the
connection a schematic design is created and
PCB is fabricated
• Apart from subsystems You can have resistor,
capacitor, diodes etc on your board
Characteristics of an embedded
system
• Unlike general purpose computing system, embedded system
posses certain specific characteristics and these are unique.
Application and domain specific: embedded systems are developed
to do the intended functions only
• They can not be used for any purpose
• You can not replace an embedded control unit developed for a
particular domain say telecom with another control unit designed
to sey another domain like consumer electronics
Reactive and real time: emb.sys. are in constant interaction to the
real world
• Any changes happening in the real world (event)are captured by
the sensors or i/p devices
• The event may be periodic or unpredicted one(should not miss)
• So emb.sys. are generally reactive
• Timing behavior or the system should be deterministic
• Should not miss deadlines
Operates in harsh environment: the environment in which the
emb.sys. deployed may be a dusty one or high temperature
zone
• System placed in such areas should be capable to with stand
all operating conditions
• Distributed: emb.sys. may be a part of larger system
• Automatic vending m/c contains card reader, vending unit
etc.
• They are independent but work together to achieve a
common goal
Small size and weight: size, weight, shape etc will be one of the
deciding factors to choose a product
• Most applications demands small sized and low weight
products
Power concerns: designed in such a way as to minimize the heat
dissipation
• May require cooling fan which occupies additional space
• Even it’s a critical constraint battery operated systems, more
the power consumption the less the battery life
Quality attributes of ES
• QA 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 end product
• Operational QA
• Non-operational QA
Operational quality attributes
• Attributes related to e.s when it is in the operational mode or online
mode
Response: quickness of the system
• How fast the system is tracking the changes in input variables
• In flight control application any response delay in the system will create
potential damages to the safety of the flight
• Response time for a toy is not time critical
Throughput: efficiency of the system
• Rate of production or operation of a defined process
• Rates can be expressed in terms of units of products , batched
produced, or any other meaningful measurements.
• Generally measured in terms of benchmark (reference point)
Reliability: how much % you can rely upon the proper functioning of sys.
Mean time between failure MTBF (frq of failure in hr/wk/mon) & mean
time to repair MTTR ( how long the system is allowed to be out of order
Maintainability: deals with the support and
maintenance to the end user in the case of
technical issues and failures or on the basis of a
routine checkup
• As reliability increases maintainability reduced
• Two types (preventive or corrective maintenance)
• User should replace the cartridge after n number of
printouts (scheduled / periodic /preventive)
• If paper feeding part of the printer fails required
immediate repairs (maintenance to unexpected
failure/ corrective)
• Ideal value for availability is expressed
Security : confidentiality( from
unauthorized disclosure), integrity ( from
unauthorized modification) , availability
( from unauthorized users)