Real-Time Embedded Systems
Abdi Mosisa
Chapter One
Introduction
Lecture: Introduction to
Embedded Systems
Embedded Real-Time Systems
Embedded Systems:
Motivation
Slide 4
Motivation
 Continuously increasing interest (in industrial, research and
education sectors) as well as rapid evolution in embedded
systems in the last years…
 Driving Forces:
 Progress in microelectronics / microprocessor technology, and
real-time operating systems (cost, performance, spread).
 Computer science / engineering is now part of the basic
education in all scientific fields, as well as part of everyday
life.
 Strong Belief: if a system can be controlled, it can be
controlled by a microprocessor!
 Huge industrial activity in embedded systems
Embedded Systems:
Definitions
Slide 6
What is an embedded system?
1. Special Purpose Computer System
2. Embedded or ‘hidden’ in another system
3. Has several restrictions in design / development / operation
4. Embedded systems are Reactive
5. Often, it may have real-time restrictions (requirements for
responding before a deadline expires)
Slide 7
What is an Embedded System?
 First, it is a computer system: anything that uses a
microprocessor, but is not a general-purpose computer:
 Consumer electronics:
 cellular phones, settop boxes, televisions, remote controls, game
consoles, Internet appliances, PDAs, Alarm Systems, hi-fi systems,
home cinemas,…
 Home appliances (“White Appliances”) like refrigerators, washing
machines (…which now-days include microprocessors and may also
have internet connection…)
 Telecommunications systems equipment
 Defense and weapon systems
 Automotive systems
 Systems for Process control
 Robots, Cars, Planes, Nuclear plants,…, include several
microprocessors / embedded systems
4
Slide 8
What is an Embedded System?
 Second, it is embedded, or ‘hidden’ inside another system:
 the user interacts with a special-purpose system, and not with
the computer inside the system
 the end-user typically does not or cannot modify or upgrade
the internal system himself
Slide 9
What is an embedded system?
 Third, it has many sets of constraints / limitations, from the following:
 Cost (€0.1 adds up over thousand/million units…)
 Processor speed (for cost, size reasons)
 Memory (probably no hard disk, sometimes only few Kbytes only)
 Display and user interface (…also it may target users that are computer
illiterate)
 Network bandwidth (if network connection at all)
 Low Power Consumption (limited battery, lack of cooling system)
 Small Size, Low Weight (handheld devices, transportation cost issues)
 Reliability
 Safety-critical (must function correctly, must not function incorrectly)
 Security
 Operation in Harsh environmental conditions (Heat, vibration, shock,
power fluctuations, RF interference, lightning,…)
Slide 10
What is an embedded system?
 Fourth: Embedded Systems are Reactive:
 computations occur in response to external events, that may
be:
 Periodic events (e.g., rotating machinery and control loops, timers,…)
 Aperiodic events (e.g., button closures, user interactions)
 Fifth: it may have real-time requirements (responding before a
deadline expires)
 Real-Time: timing correctness is part of system
correctness
 Hard real-time
 Absolute deadline, beyond which answer is useless
 Deadline may include minimum time as well as maximum time
 Soft real-time
 Occasionally missing a deadline is not catastrophic
 Utility of answer degrades with time difference from deadline
 In general, Real Time does not mean Real Fast
Slide 11
A Typical Embedded System
CPU
Cache
Memory
I/O
MMI
D/A
A/D
Microcontroller
Sensors Actuator
Auxiliary Systems
(power, cooling)
Diagnostic
tools
External
Environment
Electro-mechanical
backup and safety
And a customer’s
view…:
Reduced Cost
Increased Functionality
Improved Performance
Increased Dependability
An Embedded Designer's View…
CPU: Performance, Compilers, Operating Systems, Cost.
Memory Size, I/O connections, peripherals, Cost.
Functionality, Timetomarket, Cost & Cost.
Slide 12
Embedded System Examples – Diverse Restrictions
 Pocket remote control RF transmitter
 Software handcrafted for small size (less than 1 KB)
 Industrial equipment controller (e.g., elevator)
 Safetycritical software; realtime control loops
 Digital TV Set Top Box
 Software may be handcrafted at low layers, but at upper layers it supports
hardware agnostic applications downloadable over the network!
 Military signal processing (e.g., Radar/Sonar)
 Software handcrafted for extremely high performance
Slide 13
Trends in Embedded Systems
 Increasing code size
 migration from hand (assembly) coding to high-level
languages
 Reuse of hardware and software components
 processors (micro-controllers, DSPs)
 software components (drivers)
 Increasing integration and system complexity
 integration of RF, DSP, network interfaces,…
 32-bit processors, I/O processors
Slide 14
Microprocessor
 There exists at least one microprocessor in (the heart of) an
embedded system
 Microprocessor: CPU, memory, cache
 Microcontroller:
 Microprocessor, plus:
 Controllers for I/Os, peripherals, A/D-D/As, DMAs,
special devices tailored for specific application, etc.
 Extra Memory / Caches
 Microprocessors are general purpose - target a broad application
area
 Microcontrollers are specialized, tailored for specific applications
(e.g. for DVDs the microcontroller includes MPEG-2 hardware).
Embedded Systems:
Professional Opportunities
Slide 16
Why embedded systems are important?
 Embedded Systems dominate the worldwide computer system
market
 Yearly:
 The worldwide market of general purpose computers is of the
order of billion US $
 The worldwide market of embedded systems is also of the
order of billion US $
 ~100 million desktop PCs are produced
 ~7 billion microprocessors for embedded systems are
produced (one for each person on earth)
 While Desktop PC market is saturating, embedded market is
growing
 Embedded systems account for 90-95% of all microprocessors
produced worldwide!
Slide 17
Embedded System Categories
 General Computing
 Applications similar to desktop computing, but in an embedded package
(lower cost, targeting also computer illiterates,…)
 Settop boxes, game consoles, internet appliances, automatic tellers,
wearable computers),…
 Control Systems
 Closedloop feedback control of realtime systems
 Vehicle engines, chemical process, industrial process, nuclear power, flight
control,…
 Signal Processing
 Computations involving large data streams (signals)
 Radar, Sonar, video compression, Digital TV / HDTV broadcast centers…
 Communication & Networking
 Switching and information transmission
 Telephone systems, Internet, satellite systems…
Slide 18
Examples
 Telecommunications
 Wireline Access Systems
(copper enhancement,
DSLAM)
 Wireless Access Systems
(microwave systems)
 Terminal Equipments
(ISDN modems, DSL
modems, IP phones,
payphones,…)
 Defense Systems
 Secure Communications
 Crypto-systems
Slide 19
Examples
 General Computing
 DiTV Set-top boxes, Home-
Gateways, Home Networking
 Interactive TV Applications /
Electronic Program Guides
(embedded software)
 Content Distribution Systems
 Fleet Management Systems
 Systems and terminal equipment
for lottery operations
 Information kiosks
 Smart Cards Applications
 Cash Registers
 Energy Meters
Slide 20
Several Types of Embedded System Functions
 Applicationspecific interfacing
 Buttons, bells, lights,...
 Highspeed I/O
 Signal processing
 Multimedia data compression
 Digital filtering
 Control Laws
 PID control
 Fuzzy logic
 Sequencing logic
 Finite state machines
 Switching modes between control laws
 Fault response
 Detection & reconfiguration
 Diagnosis
 ...
Embedded Systems:
Education
Slide 22
Embedded Systems Designer’s Knowledge
 Hardware and Software
 The ‘low level’: computer architecture, micro-processors / micro-controllers,
assembly language, A/D-D/A converters, integrated circuit (ASIC/FPGA)
design
 The ‘higher level’: programming languages C/C++, (Java ?), object-oriented
systems
 Operating systems:
 …mainly the “lower half” of the OS (which is connected to h/w):
interrupts, synchronization, process communication, scheduling,
concurrency
 …but also the “upper half” (which is connected to applications)
 Embedded systems often use simple operating system kernels or real-time
operating systems, with typically small footprints and support for real-time
scheduling
 Applications: networking, signal processing, control
Slide 23
Embedded Systems Designer’s Skills
 Global System View
 …the system is not just the microprocessor…
 …not just digital logic…
 HW/SW Boundaries
 …optimal and under constraints (cost, space, performance,…)
 Products
 …from specs to production…
 …performance vs. cost trade-offs…
 …cost, cost, cost…
 …analyzability, how can I be sure that the system functions correctly?…
 …not just design – full product life-cycle…
 Will / Ability for Teamwork
 Communication Skills
 …other field scientists / engineers…
 …marketing, production…
 …end-customer…
Slide 24
Embedded System Designer: Global View
Multi-Discipline
 Electronic Hardware
 Mechanical Hardware
 Software
 Control Algorithms
 Signal Processing
 Humans
 Society/Institutions
MultiPhase
 Requirements
 Design
 Manufacturing
 Deployment
 Logistics
 Retirement
MultiObjective
 Dependability
 Affordability
 Safety
 Security
 Scalability
 Timeliness
Slide 25
Education
 Difficulties
 Embedded systems cover a wide spectrum of computer
science and various engineering sectors.
 Embedded Systems Education requires a wide background for
the students.
 Intensive lab training is required.
 Target
 Courses must focus in the System / global view (not just
relevant subjects e.g. operating systems, microprocessors,
etc.)
Slide 26
Embedded System Design approaches
 Embedded problems typically solved using one of the following
three approaches
 Use a combination of custom designed hardware and possibly
some software on an embedded processor that is integrated
with the hardware
 Use custom software designed to run on an off-the-shelf
embedded processor (our focus)
 Use an application specific processor (a processor that has
been optimized to run the specific class of applications
efficiently) with custom software
Slide 27
Pre-Requisite Knowledge/Skills
 Basic, working knowledge of computer architecture
 Knowledge of (and experience with) C programming
 Fundamentals of data structures and algorithms
 Just knowing Java is not enough
 Need to know, understand and manipulate “pointers”
 Some experience with assembly-language programming
 Knowledge of instruction sets of any modern microprocessors
(x86, ARM, PowerPC, 680x0, MIPS) should be a helpful
starting point

More Related Content

PPTX
Language for Embedded System
PPTX
Language for embedded system
PPT
Embedded system
PPT
Embeddedsystem
PPTX
Industrial Pioneers Days - Machine Learning
PPT
Embeddedsystem 110412132957-phpapp02
PPTX
Embeddedsystems 091130091010-phpapp02
PPTX
Embedded systems
Language for Embedded System
Language for embedded system
Embedded system
Embeddedsystem
Industrial Pioneers Days - Machine Learning
Embeddedsystem 110412132957-phpapp02
Embeddedsystems 091130091010-phpapp02
Embedded systems

Similar to Chapter - One.ppt (20)

PPT
Microprocessors and microcontrollers
PDF
Esd notes iae
PDF
Vinod report es 1
PPTX
EMBEDDED SYSTEMS INTRODUCTION.pptx
DOCX
Vinod report es 1
PPTX
IS 139 Lecture 1 - 2015
PPTX
E-m--be-dde-d -sy-s-te---m_Day_1_ES.pptx
PPTX
Chapter_01.pptx
DOC
Home automation using dtmf
PPT
ritesh (3)
DOCX
Embedded system notes
PPTX
IoT Week 2021_Jens Hagemeyer presentation
PPT
Introduction To Embedded Systems
PPTX
EU-IoT Training Workshops Series: AIoT and Edge Machine Learning 2021_Jens Ha...
PPTX
Embedded Systems
PDF
Embeddedsystems
PPSX
It 443 lecture 1
PPT
Architecture offffffffffffff ESD-ppt.ppt
PPTX
Embedded system and development
DOCX
Embedded systems- nanocdac
Microprocessors and microcontrollers
Esd notes iae
Vinod report es 1
EMBEDDED SYSTEMS INTRODUCTION.pptx
Vinod report es 1
IS 139 Lecture 1 - 2015
E-m--be-dde-d -sy-s-te---m_Day_1_ES.pptx
Chapter_01.pptx
Home automation using dtmf
ritesh (3)
Embedded system notes
IoT Week 2021_Jens Hagemeyer presentation
Introduction To Embedded Systems
EU-IoT Training Workshops Series: AIoT and Edge Machine Learning 2021_Jens Ha...
Embedded Systems
Embeddedsystems
It 443 lecture 1
Architecture offffffffffffff ESD-ppt.ppt
Embedded system and development
Embedded systems- nanocdac
Ad

Recently uploaded (20)

PDF
technical specifications solar ear 2025.
PDF
The Role of Pathology AI in Translational Cancer Research and Education
PDF
Concepts of Database Management, 10th Edition by Lisa Friedrichsen Test Bank.pdf
PPTX
transformers as a tool for understanding advance algorithms in deep learning
PPTX
langchainpptforbeginners_easy_explanation.pptx
PPTX
Sheep Seg. Marketing Plan_C2 2025 (1).pptx
PDF
Mcdonald's : a half century growth . pdf
PPTX
Machine Learning and working of machine Learning
PPTX
AI AND ML PROPOSAL PRESENTATION MUST.pptx
PDF
book-34714 (2).pdfhjkkljgfdssawtjiiiiiujj
PPT
What is life? We never know the answer exactly
PPTX
GPS sensor used agriculture land for automation
PPTX
indiraparyavaranbhavan-240418134200-31d840b3.pptx
PDF
Hikvision-IR-PPT---EN.pdfSADASDASSAAAAAAAAAAAAAAA
PDF
Grey Minimalist Professional Project Presentation (1).pdf
PPTX
9 Bioterrorism.pptxnsbhsjdgdhdvkdbebrkndbd
PPTX
inbound2857676998455010149.pptxmmmmmmmmm
PPTX
inbound6529290805104538764.pptxmmmmmmmmm
PPTX
PPT for Diseases.pptx, there are 3 types of diseases
PPTX
1 hour to get there before the game is done so you don’t need a car seat for ...
technical specifications solar ear 2025.
The Role of Pathology AI in Translational Cancer Research and Education
Concepts of Database Management, 10th Edition by Lisa Friedrichsen Test Bank.pdf
transformers as a tool for understanding advance algorithms in deep learning
langchainpptforbeginners_easy_explanation.pptx
Sheep Seg. Marketing Plan_C2 2025 (1).pptx
Mcdonald's : a half century growth . pdf
Machine Learning and working of machine Learning
AI AND ML PROPOSAL PRESENTATION MUST.pptx
book-34714 (2).pdfhjkkljgfdssawtjiiiiiujj
What is life? We never know the answer exactly
GPS sensor used agriculture land for automation
indiraparyavaranbhavan-240418134200-31d840b3.pptx
Hikvision-IR-PPT---EN.pdfSADASDASSAAAAAAAAAAAAAAA
Grey Minimalist Professional Project Presentation (1).pdf
9 Bioterrorism.pptxnsbhsjdgdhdvkdbebrkndbd
inbound2857676998455010149.pptxmmmmmmmmm
inbound6529290805104538764.pptxmmmmmmmmm
PPT for Diseases.pptx, there are 3 types of diseases
1 hour to get there before the game is done so you don’t need a car seat for ...
Ad

Chapter - One.ppt

  • 1. Real-Time Embedded Systems Abdi Mosisa Chapter One Introduction
  • 2. Lecture: Introduction to Embedded Systems Embedded Real-Time Systems
  • 4. Slide 4 Motivation  Continuously increasing interest (in industrial, research and education sectors) as well as rapid evolution in embedded systems in the last years…  Driving Forces:  Progress in microelectronics / microprocessor technology, and real-time operating systems (cost, performance, spread).  Computer science / engineering is now part of the basic education in all scientific fields, as well as part of everyday life.  Strong Belief: if a system can be controlled, it can be controlled by a microprocessor!  Huge industrial activity in embedded systems
  • 6. Slide 6 What is an embedded system? 1. Special Purpose Computer System 2. Embedded or ‘hidden’ in another system 3. Has several restrictions in design / development / operation 4. Embedded systems are Reactive 5. Often, it may have real-time restrictions (requirements for responding before a deadline expires)
  • 7. Slide 7 What is an Embedded System?  First, it is a computer system: anything that uses a microprocessor, but is not a general-purpose computer:  Consumer electronics:  cellular phones, settop boxes, televisions, remote controls, game consoles, Internet appliances, PDAs, Alarm Systems, hi-fi systems, home cinemas,…  Home appliances (“White Appliances”) like refrigerators, washing machines (…which now-days include microprocessors and may also have internet connection…)  Telecommunications systems equipment  Defense and weapon systems  Automotive systems  Systems for Process control  Robots, Cars, Planes, Nuclear plants,…, include several microprocessors / embedded systems 4
  • 8. Slide 8 What is an Embedded System?  Second, it is embedded, or ‘hidden’ inside another system:  the user interacts with a special-purpose system, and not with the computer inside the system  the end-user typically does not or cannot modify or upgrade the internal system himself
  • 9. Slide 9 What is an embedded system?  Third, it has many sets of constraints / limitations, from the following:  Cost (€0.1 adds up over thousand/million units…)  Processor speed (for cost, size reasons)  Memory (probably no hard disk, sometimes only few Kbytes only)  Display and user interface (…also it may target users that are computer illiterate)  Network bandwidth (if network connection at all)  Low Power Consumption (limited battery, lack of cooling system)  Small Size, Low Weight (handheld devices, transportation cost issues)  Reliability  Safety-critical (must function correctly, must not function incorrectly)  Security  Operation in Harsh environmental conditions (Heat, vibration, shock, power fluctuations, RF interference, lightning,…)
  • 10. Slide 10 What is an embedded system?  Fourth: Embedded Systems are Reactive:  computations occur in response to external events, that may be:  Periodic events (e.g., rotating machinery and control loops, timers,…)  Aperiodic events (e.g., button closures, user interactions)  Fifth: it may have real-time requirements (responding before a deadline expires)  Real-Time: timing correctness is part of system correctness  Hard real-time  Absolute deadline, beyond which answer is useless  Deadline may include minimum time as well as maximum time  Soft real-time  Occasionally missing a deadline is not catastrophic  Utility of answer degrades with time difference from deadline  In general, Real Time does not mean Real Fast
  • 11. Slide 11 A Typical Embedded System CPU Cache Memory I/O MMI D/A A/D Microcontroller Sensors Actuator Auxiliary Systems (power, cooling) Diagnostic tools External Environment Electro-mechanical backup and safety And a customer’s view…: Reduced Cost Increased Functionality Improved Performance Increased Dependability An Embedded Designer's View… CPU: Performance, Compilers, Operating Systems, Cost. Memory Size, I/O connections, peripherals, Cost. Functionality, Timetomarket, Cost & Cost.
  • 12. Slide 12 Embedded System Examples – Diverse Restrictions  Pocket remote control RF transmitter  Software handcrafted for small size (less than 1 KB)  Industrial equipment controller (e.g., elevator)  Safetycritical software; realtime control loops  Digital TV Set Top Box  Software may be handcrafted at low layers, but at upper layers it supports hardware agnostic applications downloadable over the network!  Military signal processing (e.g., Radar/Sonar)  Software handcrafted for extremely high performance
  • 13. Slide 13 Trends in Embedded Systems  Increasing code size  migration from hand (assembly) coding to high-level languages  Reuse of hardware and software components  processors (micro-controllers, DSPs)  software components (drivers)  Increasing integration and system complexity  integration of RF, DSP, network interfaces,…  32-bit processors, I/O processors
  • 14. Slide 14 Microprocessor  There exists at least one microprocessor in (the heart of) an embedded system  Microprocessor: CPU, memory, cache  Microcontroller:  Microprocessor, plus:  Controllers for I/Os, peripherals, A/D-D/As, DMAs, special devices tailored for specific application, etc.  Extra Memory / Caches  Microprocessors are general purpose - target a broad application area  Microcontrollers are specialized, tailored for specific applications (e.g. for DVDs the microcontroller includes MPEG-2 hardware).
  • 16. Slide 16 Why embedded systems are important?  Embedded Systems dominate the worldwide computer system market  Yearly:  The worldwide market of general purpose computers is of the order of billion US $  The worldwide market of embedded systems is also of the order of billion US $  ~100 million desktop PCs are produced  ~7 billion microprocessors for embedded systems are produced (one for each person on earth)  While Desktop PC market is saturating, embedded market is growing  Embedded systems account for 90-95% of all microprocessors produced worldwide!
  • 17. Slide 17 Embedded System Categories  General Computing  Applications similar to desktop computing, but in an embedded package (lower cost, targeting also computer illiterates,…)  Settop boxes, game consoles, internet appliances, automatic tellers, wearable computers),…  Control Systems  Closedloop feedback control of realtime systems  Vehicle engines, chemical process, industrial process, nuclear power, flight control,…  Signal Processing  Computations involving large data streams (signals)  Radar, Sonar, video compression, Digital TV / HDTV broadcast centers…  Communication & Networking  Switching and information transmission  Telephone systems, Internet, satellite systems…
  • 18. Slide 18 Examples  Telecommunications  Wireline Access Systems (copper enhancement, DSLAM)  Wireless Access Systems (microwave systems)  Terminal Equipments (ISDN modems, DSL modems, IP phones, payphones,…)  Defense Systems  Secure Communications  Crypto-systems
  • 19. Slide 19 Examples  General Computing  DiTV Set-top boxes, Home- Gateways, Home Networking  Interactive TV Applications / Electronic Program Guides (embedded software)  Content Distribution Systems  Fleet Management Systems  Systems and terminal equipment for lottery operations  Information kiosks  Smart Cards Applications  Cash Registers  Energy Meters
  • 20. Slide 20 Several Types of Embedded System Functions  Applicationspecific interfacing  Buttons, bells, lights,...  Highspeed I/O  Signal processing  Multimedia data compression  Digital filtering  Control Laws  PID control  Fuzzy logic  Sequencing logic  Finite state machines  Switching modes between control laws  Fault response  Detection & reconfiguration  Diagnosis  ...
  • 22. Slide 22 Embedded Systems Designer’s Knowledge  Hardware and Software  The ‘low level’: computer architecture, micro-processors / micro-controllers, assembly language, A/D-D/A converters, integrated circuit (ASIC/FPGA) design  The ‘higher level’: programming languages C/C++, (Java ?), object-oriented systems  Operating systems:  …mainly the “lower half” of the OS (which is connected to h/w): interrupts, synchronization, process communication, scheduling, concurrency  …but also the “upper half” (which is connected to applications)  Embedded systems often use simple operating system kernels or real-time operating systems, with typically small footprints and support for real-time scheduling  Applications: networking, signal processing, control
  • 23. Slide 23 Embedded Systems Designer’s Skills  Global System View  …the system is not just the microprocessor…  …not just digital logic…  HW/SW Boundaries  …optimal and under constraints (cost, space, performance,…)  Products  …from specs to production…  …performance vs. cost trade-offs…  …cost, cost, cost…  …analyzability, how can I be sure that the system functions correctly?…  …not just design – full product life-cycle…  Will / Ability for Teamwork  Communication Skills  …other field scientists / engineers…  …marketing, production…  …end-customer…
  • 24. Slide 24 Embedded System Designer: Global View Multi-Discipline  Electronic Hardware  Mechanical Hardware  Software  Control Algorithms  Signal Processing  Humans  Society/Institutions MultiPhase  Requirements  Design  Manufacturing  Deployment  Logistics  Retirement MultiObjective  Dependability  Affordability  Safety  Security  Scalability  Timeliness
  • 25. Slide 25 Education  Difficulties  Embedded systems cover a wide spectrum of computer science and various engineering sectors.  Embedded Systems Education requires a wide background for the students.  Intensive lab training is required.  Target  Courses must focus in the System / global view (not just relevant subjects e.g. operating systems, microprocessors, etc.)
  • 26. Slide 26 Embedded System Design approaches  Embedded problems typically solved using one of the following three approaches  Use a combination of custom designed hardware and possibly some software on an embedded processor that is integrated with the hardware  Use custom software designed to run on an off-the-shelf embedded processor (our focus)  Use an application specific processor (a processor that has been optimized to run the specific class of applications efficiently) with custom software
  • 27. Slide 27 Pre-Requisite Knowledge/Skills  Basic, working knowledge of computer architecture  Knowledge of (and experience with) C programming  Fundamentals of data structures and algorithms  Just knowing Java is not enough  Need to know, understand and manipulate “pointers”  Some experience with assembly-language programming  Knowledge of instruction sets of any modern microprocessors (x86, ARM, PowerPC, 680x0, MIPS) should be a helpful starting point