Introduction To: Embedded System
Introduction To: Embedded System
EMBEDDED SYSTEM
Krishna saladi
Sr.Assistant Professor
ECE-II
Course Objectives
• The basic concepts of an embedded system are introduced.
UNIT-I
INTRODUCTION: Embedded system-Definition, history of embedded
systems, classification of embedded systems, major application areas of
embedded systems, purpose of embedded systems, the typical embedded
system-core of the embedded system, Memory, Sensors and Actuators,
Communication Interface, Embedded firmware, Characteristics of an
embedded system, Quality attributes of embedded systems, Application-
specific and Domain-Specific examples of an embedded system.
UNIT-II
EMBEDDED HARDWARE DESIGN: Analog and digital electronic
components, I/O types and examples, Serial communication devices, Parallel
device ports, Wireless devices, Timer and counting devices, Watchdog timer,
Real time clock.
UNIT-III
EMBEDDED FIRMWARE DESIGN: Embedded Firmware
design approaches, Embedded Firmware development languages, ISR
concept, Interrupt sources, Interrupt servicing mechanism, Multiple
interrupts, DMA, Device driver programming, Concepts of C versus
Embedded C and Compiler versus Cross-compiler.
UNIT-IV
REAL TIME OPERATING SYSTEM: Operating system
basics, Types of operating systems, Tasks, Process and Threads,
Multiprocessing and Multitasking, Task Scheduling, Threads, Processes
and Scheduling, Task communication, Task synchronisation, Device
Drivers.
UNIT-VI
EMBEDDED SYSTEM IMPLEMENTATION AND TESTING:
The main software utility tool, CAD and the hardware, Translation tools-Pre-
processors, Interpreters, Compilers and Linkers, Debugging tools, Quality assurance
and testing of the design, Testing on host machine, Simulators, Laboratory Tools.
Text Books:
1. Embedded Systems Architecture- By Tammy Noergaard, Elsevier
Publications, 2013.
2. Embedded Systems-By Shibu.K.V-Tata McGraw Hill Education
Private Limited, 2013.
References:
1. Embedded System Design, Frank Vahid, Tony Givargis, John Wiley
Publications, 2013.
2. Embedded Systems-Lyla B.Das-Pearson Publications, 2013.
What is an Embedded System
• An ES is an electronic/electro-mechanical
system designed to perform a specific Function
And a combination of both hardware and
software.
Others do not contain any memory inside the chip and requires external
memory to be connected with the controller/processor to store the
control algorithm. It is called off-chip memory.
There are different types of memory used in embedded system applications:
i. Program Storage Memory (ROM)
Masked ROM (MROM)
Programmable Read Only Memory (PROM)/ (OTP)
Erasable Programmable Read Only Memory (EPROM)
Electrically Erasable Programmable Read Only Memory (EEPROM)
FLASH
ZigBee is targeted for low power, low data rate and secure applications
forWireless Personal Area Networking (WPAN).
The sensor data is fed back to the control unit and the control unit generates
the necessary actuator outputs.
The control unit also provides connectivity to user interfaces like keypad for
setting the washing time, selecting the type of material to be washed like light,
medium, heavy duty, etc.
User feedback is reflected through the display unit and LEDs connected to the
Cont’d
Cont’d
The integrated control panel consists of a microprocessor/controller
based board with I/O interfaces and a control algorithm running in it.
Input interface includes the keyboard which consists of wash type
selector namely Wash, Spin and Rinse, cloth type selector namely
Light, Medium, Heavy duty and washing time setting, etc.
The output interface consists of LED/LCD displays, status indication
LEDs, etc. connected to the I/O bus of the controller.
It is to be noted that this interface may vary from manufacturer to
manufacturer and model to model.
The other types of I/O interfaces which are invisible to the end user are
different kinds of sensor interfaces, namely, water temperature sensor,
water level sensor, etc. and actuator interface including motor control
for agitator and tub movement control, inlet water flow control, etc.
Automotive-Domain-Specific Examples
of Embedded System
The major application domains of embedded systems are consumer,
industrial, automotive, telecom, etc. of which telcom and automotive
industry holds a big market share.
Inner Workings of Automotive
Embedded Systems
Automotive embedded systems are the one where electronics take control
over the mechanical systems.
The presence of automotive embedded system in a vehicle varies from simple
mirror and wiper controls to complex air bag controller and antilock
brake systems (ABS).
Automotive embedded systems are normally built around microcontrollers
or DSPs or a hybrid of the two and are generally known as Electronic Control
Units (ECUs).
Cont’d
The various types of electronic control units (ECUs) used in the
automotive embedded industry can be broadly classified into two-High speed
embedded control units and Low speed embedded control units.
High speed Electronic Control Units (HECUs) : High speed electronic
control units (HECUs) are deployed in critical control units requiring fast
response, like fuel injection systems, antilock brake systems, etc.
Low speed Electronic Control Units (LECUs) : Low speed electronic
control units are deployed in applications where response time is not so
critical. They are generally built around low cost
microprocessors/microcontrollers and digital signal processors. Audio
controllers, passenger and driver door locks, door glass controls, etc., are
examples for LECUs.
Automotive Communication Buses
Automotive applications use serial buses for communication.
Controller Area Network (CAN), Local Interconnect Network (LIN), Media
Oriented System Transport (MOST) bus, etc. are the important automotive
communication
buses.
CAN is an event driven serial protocol interface with support for error
handling in data transmission. It is generally employed in safety system
like airbag control, powertrain systems like engine control and Antilock Brake
Systems.
LIN bus is a single master multiple slave (up to 16 independent slave nodes)
communication interface. LIN is a low speed, single wire communication interface
with support for data rates up to 20 kbps and is used for sensor/actuator interfacing.
The Media Oriented System Transport (MOST) bus is targeted for automotive
audio video equipment interfacing. MOST bus is a multimedia fiber-optic point-topoint
network implemented in a star, ring or daisy chained topology over optical
fibers cables.
Embedded Firmware
Embedded firmware refers to the control algorithm (Program instructions)
and/or the configuration settings that an embedded system developer dumps
into the code (program) memory of the embedded system. It is an un-avoidable
part of an embedded system. There are various methods available for
developing the embedded firmware. They are listed below
1. Write the program in high level languages like Embedded C/C++ using an
Integrated Development Environment
Certain embedded systems are designed to react to the events that occur in
the nearby environment. These events also occur real-time.
Ex. Flight control systems, Antilock Brake Systems (ABS), etc. are examples
of Real Time systems
Ex. An air conditioner adjusts its mechanical parts as soon as it gets a signal
from its sensors to increase or decrease the temperature when the user
operates it using a remote control.
An embedded system uses Sensors to take inputs and has actuators to
bring out the required functionality.
Operation in Harsh Environment
An embedded system that is compact in size and has light weight will
be desirable or more popular than one that is bulky and heavy.
Ex. Currently available cell phones. The cell phones that have the
maximum features are popular but also their size and weight is an
important characteristic.
Power Concerns
i. Response
ii. Throughput
iii. Reliability
iv. Maintainability
v. Security
vi. Safety
i. Response
Maintainability deals with support and maintenance to the end user or client in case of technical
issues and product failures or on the basis of a routine system checkup.
Reliability and maintainability are considered as two complementary disciplines. A more reliable
system means a system with less corrective maintainability requirements and vice versa.
Maintainability can be classified into two types:
1. Scheduled or Periodic Maintenance (Preventive Maintenance)
An inkjet printer uses ink cartridges, which are consumable components and as per the printer
manufacturer the end use should replace the cartridge after each ‘n’ number of printouts to get
quality prints.
2. Maintenance to Unexpected Failures (Corrective Maintenance)
If the paper feeding part of the printer fails the printer fails to print and it requires immediate
repairs to rectify this problem.
Hence it is obvious that maintainability is simply an indication of the availability of the product
for use. In any embedded system design, the ideal value for availability is expressed as
𝑨𝒊 = 𝑴𝑻𝑩𝑭/(𝑴𝑻𝑩𝑭 + 𝑴𝑻𝑻𝑹)
Where Ai=Availability in the ideal condition, MTBF=Mean Time Between Failures, and MTTR=
Mean Time To Repair
Security
‘Confidentially’, ‘Integrity’, and ‘Availability’ are three major measures of
information security.
‘Confidentially’ deals with the protection of data and application from
unauthorized disclosure.
‘Integrity’ deals with the protection of data and application from
unauthorized modification.
‘Availability’ deals with protection of data and application from
unauthorized
users.
Certain embedded systems have to make sure they conform to the security
measures.
Ex. An electronic safety Deposit Locker can be used only with a pin number
like a password.
Safety
Safety deals with the possible damages that can happen to the operators,
public and the environment due to the breakdown of an embedded system
or due to the emission of radioactive or hazardous materials from the
embedded products.
The breakdown of an embedded system may occur due to a hardware
failure or a firmware failure.
Safety analysis is a must in product engineering to evaluate the
anticipated damages and determine the best course of action to bring down
the consequences of the damages to an acceptable level.
Non Operational Attributes
The quality attributes that needs to be addressed for the product ‘not’ on the
basic of operational aspects are grouped under this category. The important
quality attributes coming under this category are listed below: