CH_1_intro (2)
CH_1_intro (2)
Real-Time Systems
By: Dr. RP Singh
Assistant Professor
School of Electrical & Computer Engineering
Haramaya Institute of Technology
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 2
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:
Slide 3
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
Slide 4
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…)
◼ Display and user interface (…also it may target users that are computer
illiterate)
◼ Network bandwidth (if network connection at all)
◼ Reliability
◼ Security
Slide 5
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 6
A Typical Embedded System
An Embedded Designer's View…
◼CPU: Performance, Compilers, Operating Systems, Cost.
◼Memory Size, I/O connections, peripherals, Cost.
External
Environment
Slide 7
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 8
Examples: Refrigerator
Slide 9
Examples: Car Door
Slide 10
Examples: Electronic Ping-pong
Slide 11
Examples: bot Autonomous Guided Vehicle
Slide 12
Examples: bot Autonomous Guided Vehicle
Slide 13
Computer Essentials
Slide 14
Elements of a computer
Processor
Control Unit
Datapath
Arithmetic
Logic Unit Memory
Output Input
Program Data
Units Units
Registers Storage Storage
◼ Memory Types
◼ Volatile: Random Access Memory (RAM)
Slide 16
Organizing memory
Microprocessor
◼ There exists at least one microprocessor in (the heart of) an
embedded system
◼ Microprocessor: CPU, memory, cache
◼ Microcontroller:
◼ Microprocessor, plus:
Slide 18
Microprocessor
◼ A processor implemented in a single integrated circuit (IC).
• The first microprocessor, Intel 4004, was introduced in 1968.
• The Intel 8008, the first 8-bit microprocessor from Intel, was introduced in 1972.
• A microprocessor requires peripheral ICs to interface with I/O devices.
• A microprocessor does not have peripheral functions such as timers, A/D converters, D/A converters, parallel
I/O ports, and memory.
• The designer need to add peripheral ICs and memory devices to the microprocessor in order to build a product.
Data
Bus
RAM
CPU
ROM
(registers)
+ High Performance
+ Choice of Peripherals and Memory Configurations I/O
- Expensive Address
- Power Consumption (Heat) Bus
- Size
Microcontroller Vs. Microprocessor
• A microcontroller incorporates the processor and one or more of
the following peripheral functions and memory in one very large-
scale integrated circuit (VLSI):
1. Memory
2. Timer functions
Slide 21
Microprocessors and Microcontrollers
Slide 22
Dimming a Light using a microprocessor
Dimming a light using a microcontroller
Inside Microcontrollers
Microcontroller packaging and appearance
Microchip and the PIC microcontroller
◼ Background : General Instruments, Peripheral Interface
Controller ,PIC 1650 and 1655 late 1970s, RISC, 30 instructions,
Microchip, 8-bit
◼ PIC 8-bit microcontrollers today
Characteristics that all have in common.
◼ Lowcost,
◼ Self-contained,
◼ Pipelined,
◼ RISC,
◼ Harvard structure,
Slide 31
….Contd
Slide 32
END
CHAPTER - 1
Slide 33