1st Unit EMBEDDED SYSTEM Notes GWCET
1st Unit EMBEDDED SYSTEM Notes GWCET
UNIT -I
INTRODUCTION TO EMBEDDED SYSTEM
1. INTRODUCTION
This chapter introduces the reader to the world of embedded systems. Everything
that we look around us today is electronic. The days are gone where almost
everything was manual. Now even the food that we eat is cooked with the
assistance of a microchip (oven) and the ease at which we wash our clothes is due
to the washing machine. This world of electronic items is made up of embedded
system. In this chapter we will understand the basics of embedded system right
from its definition.
2. DEFINITION OF AN EMBEDDED SYSTEM
An embedded system is a combination of 3 things:
Hardware
Software
Mechanical Components
And it is supposed to do one specific task only.
Example 1: Washing Machine
A washing machine from an embedded systems point of view has:
Hardware: Buttons, Display & buzzer, electronic circuitry.
Software: It has a chip on the circuit that holds the software which drives
controls & monitors the various operations possible.
Mechanical Components: the internals of a washing machine which
actually wash the clothes control the input and output of water, the
chassis itself.
Page 1
GWCET, NAGPUR Embedded System (8SEM IT)
Page 2
GWCET, NAGPUR Embedded System (8SEM IT)
It is designed such that it can cater to It is designed such that it can cater to a
multiple tasks as per requirement. particular predefined task.
Page 3
GWCET, NAGPUR Embedded System (8SEM IT)
The Operating system and other The operating system(mostly RTOS i.e
software for the general purpose Real Time Operating System) and other
computers, are normally complicated software occupy less memory space.
and occupy more memory space
Also, in 1971, Intel released what is widely recognized as the first commercially
available processor, the 4004. The 4-bit microprocessor was designed for use in
calculators and small electronics, though it required eternal memory and support
chips. The 8-bit Intel 8008, released in 1972, had 16 KB of memory; the Intel 8080
followed in 1974 with 64 KB of memory. The 8080's successor, the x86 series, was
released in 1978 and is still largely in use today.
Page 4
GWCET, NAGPUR Embedded System (8SEM IT)
In 1987, the first embedded operating system, the real-time VxWorks, was released
by Wind River, followed by Microsoft's Windows Embedded CE in 1996. By the
late 1990s, the first embedded Linux products began to appear. Today, Linux is
used in almost all embedded devices.
THE EMBEDDED SYSTEM DESIGN PROCESS
Overview of the embedded system design process aimed at two objectives. First,it
will give us an introduction to the various steps in embedded system design before
we delve into them in more detail. Second, it will allow us to consider the
design methodology itself.Figure 1.1 summarizes the major steps in the embedded
system design process.In this top–down view,we start with the
system requirements in the next step comes Specification.
Page 6
GWCET, NAGPUR Embedded System (8SEM IT)
The moving map is a handheld device that displays for the user a map of the terrain
around the user’s current position; the map display changes as the user and the map
device change position.
The moving map obtains its position from the GPS, a satellite-based navigation
system.
Ø The moving map display might look something like the following figure
Page 7
GWCET, NAGPUR Embedded System (8SEM IT)
Figure 2. Requirements chart
2 B. Specification
The specification is more precise—it serves as the contract between the customer
and the architects. The specification should be understandable enough so that
someone can verify that it meets system requirements and overall expectations of
the customer. It should also be unambiguous. the specification must be carefully
written so that it accurately reflects the customer’s requirements and does so in a
way that can be clearly followed during design. A specification of the GPS system
would include several components:
Data received from the GPS satellite constellation.
Map Data
User Interface
Operations that must be performed to satisfy customer requests. Background
actions required to keep the system running, such as operating the GPS receiver.
UML, a language for describing specifications
C. Architecture Design
The specification does not say how the system does things, only what the system
does. Describing how the system implements those functions is the purpose of the
architecture. Figure 1.3 shows a sample system architecture in the form of a block
diagram that shows major operations and data flows among them.
Page 8
GWCET, NAGPUR Embedded System (8SEM IT)
D. Designing Hardware and Software Components
The component design effort builds those components in conformance to the
architecture and specification. The components will in general include both
hardware—FPGAs, boards, and so on—and software modules. Some of the
components will be ready-made. In the moving map, the GPS receiver is a good
example of a specialized component that will nonetheless be a predesigned,
standard component. We can also make use of standard software modules. One
good example is the topographic database.
E. System Integration
The components built are put together and see how the system works. If we debug
only a few modules at a time, we are more likely to uncover the simple bugs and
able to easily recognize them. Only by fixing the simple bugs early will we be able
to uncover the more complex or obscure bugs.
Page 9
GWCET, NAGPUR Embedded System (8SEM IT)
1. Small-scale:
Simple in application need
Performance not time-critical.
Built around low performance & low cost 8 or 16 bit µp/µc.
Example: an electronic toy
Medium-scale:
Slightly complex in hardware & firmware requirement.
Built around medium performance & low cost 16 or 32 bit µp/µc.
Usually contain operating system.
Examples: Industrial machines.
Large-scale:
Highly complex hardware & firmware.
Built around 32 or 64 bit RISC µp/µc or PLDs or Multicore Processors.
Response is time-critical.
Examples: Mission critical applications.
On deterministic behaviour
This classification is applicable for “Real Time” systems.
The task execution behaviour for an embedded system may be
deterministic or non-deterministic.
Based on execution behaviour Real Time embedded systems are divided
into Hard and Soft.
On triggering
Embedded systems which are “Reactive” in nature can be based on
triggering.
Reactive systems can be:
Event triggered
Time triggered.
Page 11
GWCET, NAGPUR Embedded System (8SEM IT)
Page 12
GWCET, NAGPUR Embedded System (8SEM IT)
Page 13
GWCET, NAGPUR Embedded System (8SEM IT)
Page 14
GWCET, NAGPUR Embedded System (8SEM IT)
However, the ability to write programs to perform math rather than having to
design digital circuits to perform operations like trigonometric functions was
critical to the successful design of the calculator.
Automobile designers started making use of the microprocessor soon after single-
chip CPUs became available.
But the big push toward microprocessor-based engine control came from two
nearly simultaneous developments: The oil shock of the 1970s caused consumers
to place much higher value on fuel economy, and fears of pollution resulted in laws
restricting automobile engine emissions.
The combination of low fuel consumption and low emissions is very difficult to
achieve; to meet these goals without compromising engine performance,
automobile manufacturers turned to sophisticated control algorithms that could be
implemented only with microprocessors.
Page 15
GWCET, NAGPUR Embedded System (8SEM IT)
Many houses have advanced thermostat systems, which change the temperature
level at various times during the day. The modern camera is a prime example of
the powerful features that can be added under microprocessor control.
A high-end automobile may have 100 microprocessors, but even inexpensive cars
today use 40 microprocessors. Some of these microprocessors do very simple
things such as detect whether seat belts are in use. Others control critical functions
such as the ignition and braking systems.
BMW 850i brake and stability control system:
The BMW 850i was introduced with a sophisticated system for controlling the
wheels of the car. An antilock brake system (ABS) reduces skidding by pumping
the brakes.
An automatic stability control (ASC +T) system intervenes with the engine during
maneuvering to improve the car’s stability. These systems actively control critical
systems of the car; as control systems, they require inputs from and output to the
automobile.
Let’s first look at the ABS. The purpose of an ABS is to temporarily release the
brake on a wheel when it rotates too slowly—when a wheel stops turning, the car
starts skidding and becomes hard to control. It sits between the hydraulic pump,
Page 16
GWCET, NAGPUR Embedded System (8SEM IT)
which provides power to the brakes, and the brakes themselves as seen in the
following diagram. This hookup allows the ABS system to modulate the brakes in
order to keep the wheels from locking.
The ABS system uses sensors on each wheel to measure the speed of the wheel.
The wheel speeds are used by the ABS system to determine how to vary the
hydraulic fluid pressure to prevent the wheels from skidding.
T he ASC + T system’s job is to control the engine power and the brake to improve
the car’s stability during maneuvers.
The ASC+T controls four different systems: throttle, ignition timing, differential
brake, and (on automatic transmission cars) gear shifting.
The ASC + T can be turned off by the driver, which can be important when
operating with tire snow chains.
The ABS and ASC+ T must clearly communicate because the ASC + T interacts
with the brake system. Since the ABS was introduced several years earlier than the
ASC + T, it was important to be able to interface ASC + T to the existing ABS
module, as well as to other existing electronic modules.
The engine and control management units include the electronically controlled
throttle, digital engine management, and electronic transmission control. The ASC
+ T control unit has two microprocessors on two printed circuit boards, one of
which concentrates on logic-relevant components and the other on performance-
specific components.
Page 17
GWCET, NAGPUR Embedded System (8SEM IT)
Page 18
GWCET, NAGPUR Embedded System (8SEM IT)
deadline on either the audio or video portions spoils the perception of the entire
presentation.
Costs of various sorts are also very important:
Manufacturing cost: The total cost of building the system is very important in
many cases. Manufacturing cost is determined by many factors, including the type
of microprocessor used, the amount of memory required, and the types of I/O
devices.
Power and energy: Power consumption directly affects the cost of the hardware,
since a larger power supply may be necessary. Energy consumption affects battery
life, which is important in many applications, as well as heat consumption, which
can be important even in desktop applications.
Page 19
GWCET, NAGPUR Embedded System (8SEM IT)
Often, embedded systems are used in real-time operating environments and use
a real-time operating system (RTOS) to communicate with the hardware. Near-
real-time approaches are suitable at higher levels of chip capability, defined by
designers who have increasingly decided the systems are generally fast enough and
the tasks tolerant of slight variations in reaction. In these instances, stripped-down
versions of the Linux operating system are commonly deployed, although other
OSes have been pared down to run on embedded systems, including Embedded
Java and Windows IoT (formerly Windows Embedded).
Page 20
GWCET, NAGPUR Embedded System (8SEM IT)
Page 21
GWCET, NAGPUR Embedded System (8SEM IT)
The sensor reads external inputs, the converters make that input readable to the
processor, and the processor turns that information into useful output for the
embedded system.
Page 22
GWCET, NAGPUR Embedded System (8SEM IT)
A
diagram of the basic structure and flow of information in embedded systems.
Page 24
GWCET, NAGPUR Embedded System (8SEM IT)
Reliability
Page 25
GWCET, NAGPUR Embedded System (8SEM IT)
Reliability is a measure of how much percentage you rely upon the proper
functioning of the system .
Mean Time between failures and Mean Time To Repair are terms used in
defining system reliability.
Mean Time between failures can be defined as the average time the
system is functioning before a failure occurs.
Mean time to repair can be defined as the average time the system has
spent in repairs.
Maintainability
Maintainability deals with support and maintenance to the end user or a
client in case of technical issues and product failures or on the basis of a
routine system checkup
It can be classified into two types :-
Scheduled or Periodic Maintenance
o This is the maintenance that is required regularly after a periodic time interval.
Example :
Periodic Cleaning of Air Conditioners
Refilling of printer cartridges.
2. Maintenance to unexpected failure
This involves the maintenance due to a sudden breakdown in
the functioning of the system.
Example:
Air conditioner not powering on
Printer not taking paper in spite of a full paper stack
Security
Page 26
GWCET, NAGPUR Embedded System (8SEM IT)
Evolvability
Page 27
GWCET, NAGPUR Embedded System (8SEM IT)
For embedded system, the qualitative attribute “Evolvability” refer to ease with
which the embedded product can be modified to take advantage of new firmware
or hardware technology.
Portability
Portability is measured of “system Independence”.
An embedded product can be called portable if it is capable of performing its
operation as it is intended to do in various
environments irrespective of different processor and or controller and
embedded operating systems.
Time to prototype and market
Time to Market is the time elapsed between the conceptualization of a
product and time at which the product is ready for selling or use
Product prototyping help in reducing time to market.
Prototyping is an informal kind of rapid product development in which
important feature of the under consider are develop.
In order to shorten the time to prototype, make use of all possible option like
use of reuse, off the self component etc.
Per unit and total cost
Cost is an important factor which needs to be carefully monitored. Proper
market study and cost benefit analysis should be carried out before taking
decision on the per unit cost of the embedded product.
When the product is introduced in the market, for the initial period the sales
and revenue will be low
There won’t be much competition when the product sales and revenue increase.
During the maturing phase, the growth will be steady and revenue reaches
highest point and at retirement time there will be a drop in sales volume.
Page 28