Professional Documents
Culture Documents
1 embedded systems
In this chapter, you will learn
What is meant by the term ‘embedded The working of a simple embedded system
systems’ The figures of merit for an embedded
The application domain of embedded system
systems Classification of MCUs on the basis of
The model of an embedded system data bus widths
The difference between an MCU and an The history and current trends of the
MPU embedded systems industry
Introduction
The term ‘embedded systems’ has become very common, but is quite difficult to ‘define’,
because of the large variety of devices included in this class. So, let us make an attempt
to understand it, rather than make an attempt to ‘define’ it.
An embedded system is an electronic system which is designed to perform one
or a limited set of functions, using hardware and software. Thus, let’s examine the vast
domain of embedded systems.
Copyright © 2012. Pearson India. All rights reserved.
Having hardware and software makes an embedded system a computer, but this
computer performs only a limited set of functions. Thus, we exclude the PC from the
embedded system world, and name it as a general purpose computer. Therefore, an
embedded system is a ‘special purpose’ computing unit—meaning that it will have
a processor and associated software. The software associated with the application is
‘burned’ into the ROM of the processor; therefore, it is better to designate it as a
‘firmware’.
Take the case of an automobile, for example, a car. It has a number of ‘electronic
control units (ECUs)’ as part of what is called ‘automobile electronics’—each of these
units has a processor, which controls one or other of the various parts of the car such
as engine, brakes, lights, doors and so on. Thus, embedded systems are ubiquitous, that
is, omnipresent within an automobile, and adds intelligence to the operation of the
vehicle.
Chapter-opening image: Development board of TI’s low power MSP 430 microcontroller.
Das, LyLa B.. Embedded Systems : An Integrated Approach, Pearson India, 2012. ProQuest Ebook Central,
http://ebookcentral.proquest.com/lib/indiannavalacademy/detail.action?docID=5124979.
Created from indiannavalacademy on 2018-10-24 03:22:31.
Das, LyLa B.. Embedded Systems : An Integrated Approach, Pearson India, 2012. ProQuest Ebook Central,
http://ebookcentral.proquest.com/lib/indiannavalacademy/detail.action?docID=5124979.
Created from indiannavalacademy on 2018-10-24 03:22:31.
sensors are needed. This data is processed by the processor and the result of it is given
to actuators which perform appropriate actions. See Figure 1.2, which is a very simple
model of an embedded system.
A
S
C
E T
N U
S Processor A
O T
R O
R
S
S
Memory
RAM
S
Y
Copyright © 2012. Pearson India. All rights reserved.
ROM
S
T
Parallel I/O
MPU
E
Chip
M Serial I/O
B
Counter/
U Timer
S
Other
Peripherals
Figure 1.3 | An MPU with peripherals and memory external to the chip
Das, LyLa B.. Embedded Systems : An Integrated Approach, Pearson India, 2012. ProQuest Ebook Central,
http://ebookcentral.proquest.com/lib/indiannavalacademy/detail.action?docID=5124979.
Created from indiannavalacademy on 2018-10-24 03:22:31.
MCU
Serial
I/O Ports
Internal
Memory
Counter/
Timer
A-to-D D-to-A
Conversion Conversion
Figure 1.4 | An MCU with peripherals and memory inside the chip
Das, LyLa B.. Embedded Systems : An Integrated Approach, Pearson India, 2012. ProQuest Ebook Central,
http://ebookcentral.proquest.com/lib/indiannavalacademy/detail.action?docID=5124979.
Created from indiannavalacademy on 2018-10-24 03:22:31.
Display
Sensor
M
C Motor
U
Keyboard
Alarm
Das, LyLa B.. Embedded Systems : An Integrated Approach, Pearson India, 2012. ProQuest Ebook Central,
http://ebookcentral.proquest.com/lib/indiannavalacademy/detail.action?docID=5124979.
Created from indiannavalacademy on 2018-10-24 03:22:31.
Low-power Dissipation Many embedded devices are battery powered, and hence
low-power dissipation is an important figure of merit. Even in cases where the embed-
ded system is part of a larger system (like in a washing machine), it is important to keep
power dissipation low to avoid excessive heating. Thus, embedded designs should be
low-power designs and the first step in this is achieved by choosing an MCU with low-
power features. What has made the ARM MCU (used in many mobile phones, IPads,
Copyright © 2012. Pearson India. All rights reserved.
etc.) very popular is its ‘low power’ feature. Taking care of the power requirement of the
MCU is not the only thing. Peripherals like displays, motors, relays, etc. should also be
chosen with the same consideration.
Small Physical Size Many embedded systems are handheld devices, and others are
allotted only small spaces within large systems such as the electronic unit which controls
a printer, scanner, etc. It is obvious that the smaller the size of the unit, the better it will
be. As such, the trend is to choose an MCU with most of the peripheral controllers
inside the chip itself—thus the PCB is very small, with very few extra chips—there is
also the trend in chip design to focus on ‘small dies’.
Small Code Size The system code, after testing and debugging, is to be embedded as
firmware, and it is best if it fits inside the (flash) ROM of the MCU. Thus, the code size
is to be minimized, as on-chip ROM is expensive and a scarce resource. If the code size
is large, external memory will have to be added, which will defeat the very purpose of
Das, LyLa B.. Embedded Systems : An Integrated Approach, Pearson India, 2012. ProQuest Ebook Central,
http://ebookcentral.proquest.com/lib/indiannavalacademy/detail.action?docID=5124979.
Created from indiannavalacademy on 2018-10-24 03:22:31.
using an MCU. If an operating system is being used for the system, its ‘footprint’ should
be small.
High Speed As a general case, we would like systems to respond fast. For an embedded
MCU, fast response implies high clock frequency—but the higher the clock frequency,
higher will be the power dissipation—so the trick is not to choose an unnecessarily
high clock frequency unless the application needs it. For simple applications, if PIC
and 8051 MCUs are used, we find that frequencies in the range of 12–20 MHz are
common. This is not a high frequency compared to clock frequencies of general purpose
processors (2 to 3 GHz). But higher end systems are likely to use MCUs (like ARM)
with much higher clock frequencies for faster response.
Real Time Response There is another aspect to response time and that is defined by a
‘deadline’—if an operation is stipulated to have to be completed within a deadline, the
system must be able to produce the result within this time frame—if not, it becomes
either a useless system or a system with low performance quotient.
is the 8051 family, which was developed by Intel, but which is now manufactured
by various other companies as well. Microchip’s PIC is another popular family with
many different series with varying capabilities. Newer versions of PIC with more
and newer peripherals are being developed which makes the PIC series very attrac-
tive. Incidentally, the PIC series includes 8-bit, 16-bit and 32-bit MCUs.
iii) 16-bit MCUs: There are a few 16-bit MCUs like Intel’s 8096, 80196, some ver-
sions of PIC, etc. MSP 430 (manufactured by Texas Instruments) is a new 16-bit
series, which has very low-power dissipation, and can compete effectively in the new
embedded market, which is very particular about power dissipation.
iv) 32-bit MCUs: ‘ARM’ is the most popular 32-bit MCU in use today; it is used in
complex applications requiring low power, high speed and good computing capabil-
ity. The 32-bit MCUs are the ones used in image and video applications and thus
find use in the latest mobile phones, IPods, PDAs, etc.
In the following section, we will discuss some other devices which are also included
in the category of embedded systems.
Das, LyLa B.. Embedded Systems : An Integrated Approach, Pearson India, 2012. ProQuest Ebook Central,
http://ebookcentral.proquest.com/lib/indiannavalacademy/detail.action?docID=5124979.
Created from indiannavalacademy on 2018-10-24 03:22:31.
What is an ASIP?
ASIP stands for ‘Application Specific Instruction Set Processor’. It is a processor whose
instructions set is tailor-made for a specific application, like graphics, for example. Thus,
it will be a sort of tradeoff design between the programmability features of a CPU and
the performance of an ASIC.
The above-said processors belong to the set of ‘general purpose processors’. They have
instruction sets which cater to general arithmetic and logical computations. But for
many applications like signal processing where floating point operations and complex
arithmetic operations are involved, their performance is unlikely to be sufficiently fast
and efficient. Here comes the necessity for processors with instruction sets which are
designed for signal processing and complex math operations. They are called DSP
processors.
Where real-time processing of speech, image, video, etc. are involved, they perform
superbly. There are many companies manufacturing such DSP processors: Texas
Instruments is the leader in the design of DSP processors, and Analog Devices, Nvidia,
Lucent, Freescale, etc. also some of them. For many applications, the current trend is
to have a general purpose core and a DSP core on the same chip, so that tasks can be
partitioned. See Figure 1.7 which is a very popular setup for advanced operations—an
ARM core and a DSP core handling different types of computations, along with a num-
ber of peripheral controllers—all on the same chip.
Das, LyLa B.. Embedded Systems : An Integrated Approach, Pearson India, 2012. ProQuest Ebook Central,
http://ebookcentral.proquest.com/lib/indiannavalacademy/detail.action?docID=5124979.
Created from indiannavalacademy on 2018-10-24 03:22:31.
ARM 9 DSP
Core Core
Peripherals
In 1977, Intel emerged in this field with the 8048, a microcontroller which had
RAM and ROM and which became widely used used in PC keyboards. In 1980, Intel
introduced the 8051 MCU and called it MCS-51 architecture. Over the years, it became
very popular especially because Intel allowed others also to manufacture and sell it. In
1982, Intel introduced the 80186 and called it an embedded processor. It had the same
computing engine as the 8086, but had a number of peripherals inside it, like timers,
DMA controllers, clock generators and so on. This chip was never used in PCs—all its
applications were in embedded products. Other popular microcontroller series are PIC
by Microchip and ATMega by AVR. Besides this there are a number of smaller players
also in the market.
This outlook that microcontrollers alone paved the way for the development of the
embedded industry development may not very true, however. If we look at any embed-
ded system today, we know that it is not ‘electronics’ alone that has made miraculous
strides. Along with electronics, sensors, actuators, displays, mechanical parts and software
developments have also made giant strides to fuel the growth of the embedded industry.
Das, LyLa B.. Embedded Systems : An Integrated Approach, Pearson India, 2012. ProQuest Ebook Central,
http://ebookcentral.proquest.com/lib/indiannavalacademy/detail.action?docID=5124979.
Created from indiannavalacademy on 2018-10-24 03:22:31.
Conclusion
In the forthcoming chapters, we will try to get some insight into this exciting field of
embedded systems and learn how we can make its study fruitful and interesting.
QUESTIONS
1. Explain what an embedded system is, with few examples.
2. How is software embedded into an ES?
3. Name four fields of applications for an embedded system.
4. List three characteristics that an embedded system should possess.
5. Can an electronic tablet be listed as an embedded system? Substantiate your answer.
6. What is the difference between an MCU and an MPU?
7. Why is power dissipation a very important factor in embedded design?
8. Why are DSP processors used in embedded design?
9. Name two new areas of deployment for embedded systems.
10. Name two commercial products based on the ARM processor.
EXERCISES
1. Draw a block diagram of an embedded system which can be used for measuring short
distances.
2. Name a few embedded products in the field of bio-medical engineering.
Copyright © 2012. Pearson India. All rights reserved.
Das, LyLa B.. Embedded Systems : An Integrated Approach, Pearson India, 2012. ProQuest Ebook Central,
http://ebookcentral.proquest.com/lib/indiannavalacademy/detail.action?docID=5124979.
Created from indiannavalacademy on 2018-10-24 03:22:31.