1 Overview PDF
1 Overview PDF
Dr. SOUMYA J
Department Of EEE
10-Aug-19 1
Plan of The Course
• Introduction
• Task Scheduling:
Uniprocessors
Multiprocessors
• Commercial Real-Time Operating
Systems
• Real-time communications
• Real-time databases
10-Aug-19 2
Text Book
Jane Liu W. S.: Real-Time Systems,
Pearson Education, India 2003
10-Aug-19 3
Reference Books
• Laplante Phillip A.: Real-Time System
Design and Analysis. Third Edition
PHI 2005.
• C. Krishna and K. Shin, Real-Time
Systems, McGraw-Hill, 2000
10-Aug-19 5
Technology Advancements
Decade Technology
’60s Mainframes
’70s Mini Computers
’80s Personal Computers
’90s Internet and mobile phones
’00s Internet-enabled
Source: IDC Embedded appliances
10-Aug-19 9
What is Real-Time?
• Real-time is a quantitative notion of
time measured using a physical clock.
Example: After a certain event occurs
(temperature exceeds 500 degrees) the
corresponding action (coolant shower)
must complete within 100mSec.
• This is in contrast to the qualitative
notion of time:
Expressed using notions such as before,
after, sometime, eventually, etc.
10-Aug-19 10
Embedded System Applications
Industrial
• Chemical Plant Control
• Automated Car Assembly Plant
• Supervisory Control And Data Acquisition(SCADA)
Medical
• Robot Used in recovery of Displaced
Radioactive Material, Medical equipments
Peripheral Equipments
• Laser Printer, digital cameras and
camcorders, sensors
Transportation
• Multi-Point Fuel Injection (MPFI) System
• Automated car
10-Aug-19 11
Embedded System
Applications cont…
– Telecommunication Applications
• Cellular System
– Aerospace
• Computer On-board an Aircraft
– Internet
– Multimedia Applications
• Video Conferencing
– Consumer Electronics
• Cell Phones, digital cameras and camcorders
– Defence Applications
• Missile Guidance System
10-Aug-19 12
Example: Automotive Applications
• About 100 processors per
car
Engine control, Break
system, Airbag deployment
system
Windshield wiper, door locks,
entertainment systems
• Example: BMW 745i
2,000,000 LOC
Window CE OS
Over 60 microprocessors
53 8-bit, 11 32-bit, 7 16-bit
Multiple networks
10-Aug-19 13
Source: Insup Lee, UPenn
ECUs (Engine Control Units)
10-Aug-19 14
Automotive Embedded Systems
• Fuel injection
• Cruise control
• Antilock brakes
• Air bags
• Keyless entry
• Climate control
• GPS
10-Aug-19 15 15
MPFI: Multi-Point Fuel
Injection
• Controls the timing
and amount of fuel
injected. :
Receive signal from
various sensors,
Process the signals
Send control signals
to the actuators.
10-Aug-19 16
Cruise Control
• Function: Keep the speed of the
vehicle constant.
Suppose 60kmph is as desired speed.
The frequency in which the computer
checks the current speed of the vehicle
preset called control rate
Compute deviation
Take corrective action
10-Aug-19 17
Reactive System
• Every embedded system:
Responds to inputs (events)
Often occur due to changes to the
environment
Responses are called actions
• We can describe an embedded
system as:
Responses to events
10-Aug-19 18
Types of Events
• Periodic:
Occur according to a timer
Vast majority (all activities for small
systems) are periodic
• Sporadic:
Occur statistically or randomly
• Aperiodic:
Sporadic but multiple can occur together
10-Aug-19 19
How to Specify an Embedded
System?
• Model all events and actions
• Complex systems:
Can have thousands of event and
action types
Meaningfully modelled in terms of
subsystems.
10-Aug-19 20
Laser Printer
• Raster line.
A horizontal strip of dots
across a page.
Created by a raster
image processor
laser beam neutralizes
the charge on the black
parts of the image
• leaving a static electric
negative image on the
photoreceptor surface
10-Aug-19 21
Mobile Phone
• Tasks for the processor:
Convert input voice to digital
using DSP techniques
Convert digital voice to CDMA
signals
Convert incoming CDMA signals
to microphone signals
Handle signals on the control
channel
Handle user invoked functions
10-Aug-19 22
SCADA
• Supervisory Control and Data
Acquisition
A computer system monitoring and
controlling an ongoing process
• Sensors store process data in a:
• Distributed real-time database.
• Supervisory system issues control
signal
• Example: Energy Management System
10-Aug-19 23
Computer On-board an
Aircraft
• Periodically sample:
Velocity, acceleration, altitude
• Compute current position (X,Y,Z
position)
• Compute deviation from the trajectory
• Drive actuators to take corrective
actions.
• Task deadlines in few micro to
milliseconds.
10-Aug-19 24
Anti-Missile System
• Sense target and home onto it:
Based on some thermal or electrical
characteristics.
Carry out track corrections based
on target trajectory.
• Sampling and processing activities:
Typically need to be completed in a
few micro or milliseconds.
10-Aug-19 25
Key Recent Trends
• Increasing computation demands
e.g. video conferencing, MobileTV.
• Increasingly networked
Remotely monitor/debug
Embedded web browser
• e.g. Mercedes car with web browser
Cameras, disks etc. that sit directly on
networks
• Increasing need for reducing time-to-
market under ever changing standards!
• 10-Aug-19
Need careful co-design of h/w & s/w! 26
Basic Model of an
Embedded System
Environment
Input Input
Conditioning Interface
Unit
Real –Time Human
Computer Computer
Interface
Output Output
Conditioning Interface
Unit
10-Aug-19 27
Example: Radar
System
radar DSP
DSP
sampled DSP
digitized memory
data signal
track processors
records
track
records
data
control processor signal
status processing
parameters
10-Aug-19 28
Sensors
• A sensor converts some physical
characteristic of its environment:
– Into electrical signals.
• Example sensors:
– A photo-voltaic cell converts light energy into
electrical energy.
– A temperature sensor typically operates
based on the principle of a thermocouple.
– A pressure sensor typically operates based
on the piezoelectricity principle.
10-Aug-19 29
Low Cost Sensors
10-Aug-19 35