Unit 1
Unit 1
Unit 1
The invention of the microprocessor in early 1970s revolutionized the computing method
and paved the beginning of modern computing system. Since then millions of computing
systems are built every year targeting different desktop computer like personal computer,
laptops, workstations and mainframes. What may further be surprising is that billions of
such computing devices are built for different purpose. Such systems are either integrated
to larger system to carry some specific task or standalone doing some specific task. These
systems are sometimes recognizable from user prospects or sometime becomes completely
unrecognizable. This continual effort to integrate/embed smaller computing system into
bigger system have given rise to a new class of system, named as embedded computing
system or simply embedded system. The design goal of such embedded system varies
significantly from conventional computing system in the sense that they have very strict
performance requirements and at the same time need to meet different other design
constraints. If we go to the literal meaning of an Embedded System, it refers to a computing
system that is “embedded” or integrated within a larger system or devices. So, creating a
precise definition of such embedded system is not easy. There are endless definitions of
embedded system, defined contextually based on functional and practical approaches.
However, in more general method we can define embedded system as:
Thus, if we elaborate this definition we can re-write it in more comprehensive way as:
Embedded systems have become ubiquitous, found in almost every aspect of modern life.
From everyday gadgets to industrial application, embedded systems are seamlessly
integrated into the devices we use daily. There are numerous fields where we find
embedded system products, it will take pages if we list all of them. Here are some major
applications of embedded systems:
The ubiquity of embedded systems is evident, as they are now integrated into nearly every
electronic device, making it difficult to find a modern gadget without one. Even in rare
cases where such devices exist, they are likely to be replaced by embedded technologies in
the near future. The global market for embedded systems is currently valued at around USD
100 billion in 2024, and it is projected to reach USD 183 billion by 2032, growing at a
compound annual growth rate (CAGR) of 6.97%. This surge is expected to generate
numerous job opportunities and promises a bright future in the field.
threshold. For instance, a thermostat can trigger an air conditioner or heater to adjust the
room temperature and maintain a comfortable environment.
In contrast, a general-purpose computer system is designed for flexibility and can handle a
wide range of tasks. It typically includes input devices like a keyboard, storage like disks,
and a display for graphical output. These computers can be programmed to perform tasks
such as word processing, email, business accounting, scientific simulations, and database
management. Users of general-purpose systems have access to both the software and
hardware, allowing them to select which operating system to run and which applications to
use. New programs can be easily added through removable disks or network interfaces.
Personal computers (PCs), laptops, and workstations fall under the category of general-
purpose systems and are designed to perform a wide variety of tasks with high flexibility
in application handling. These systems can run multiple types of software, making them
suitable for everything from office work and multimedia editing to scientific computing
and gaming. Their versatility allows users to install and run different applications, adapt to
various tasks, and switch between them seamlessly.
Embedded systems possess several characteristics that set them apart from other computing
systems, such as general-purpose computers. However, not all embedded system
necessarily supports every characteristic. Some of the key characteristics of embedded
systems are:
Embedded systems and general-purpose computing systems exist at opposite ends of the
computing spectrum. Embedded systems are purpose-built to perform dedicated tasks with
precision and efficiency, while general-purpose computers are designed for versatility,
capable of handling a broad range of functions such as gaming, media playback, software
development, document processing, and more. The following points highlight the key
differences between embedded systems and general-purpose computing systems.
Embedded systems are deeply embedded in modern life, playing a crucial role in a wide
variety of application domains that span diverse industries and technologies. From low-
cost consumer electronics in daily life, such as smartphones and home appliances, to high-
end industrial automation systems, embedded systems are designed to meet specific
functional requirements with high efficiency. They power entertainment systems, academic
tools, medical devices, and even sophisticated aerospace and defense technologies like
missile guidance systems and satellite communication. This versatility showcases how
embedded systems touch nearly every aspect of modern society, driving advancements in
sectors ranging from healthcare to automotive, energy, and beyond. The following sections
will explore the broad applications and industry domains where embedded systems play an
indispensable role, shaping the future of technology and improving our quality of life.
The word “Automotive” refers to all aspects related to the road vehicles, such as cars, buses
or any other motorized vehicles. Automotive industry represents a vast network of
companies and organization that are responsible for producing and maintaining vehicles.
The role of embedded systems in the automotive domain is rapidly growing, significantly
enhancing vehicle safety, efficiency, and convenience. For instance, embedded systems
optimize engine performance by precisely controlling fuel injection and ignition timing,
which helps reduce emissions and ultimately improve fuel efficiency. Moreover, these
systems are extensively deployed across the automotive industry to manage various aspects
of vehicles, including infotainment systems that provide entertainment and navigation, as
well as critical safety features such as anti-lock braking systems (ABS) and advanced
driver-assistance systems (ADAS) that enable autonomous driving capabilities. Through
these innovations, embedded systems are transforming the automotive landscape, making
vehicles safer and more efficient than ever before. The role of embedded systems in
automotive industry have wide range of application and are now standard in most vehicles,
enabling advanced features like:
• Engine Control Units (ECUs): The Engine Control Unit (ECUs) is a pivotal
component in modern automotive embedded system. It is responsible for controlling
various aspects of internal combustion engine like fuel injection control, Ignition
Timing Management and Emission Control. By utilizing such advance technology in
automotive industry embedded system is changing the landscape of automotive
industry by improving fuel efficiency, increasing the performance and overall reducing
the environmental impacts.
• Anti-lock Braking Systems (ABS): An anti-lock braking system (ABS) are critical
safety features mostly adopted in modern vehicles. ABS system prevent wheel lock-up
or skidding during hard braking, especially on slippery surface. The integration of ABS
contributes to advanced automotive safety technologies, providing drivers with greater
confidence and control on the road.
• Airbag Control Systems: Airbag control systems, play a crucial role in enhancing
vehicle safety by rapidly deploying airbags during collisions. These systems rely on
sensors that detect sudden deceleration or impact, triggering the embedded controller
to activate the airbag within milliseconds. The embedded system ensures precise timing
and deployment, minimizing injury to passengers by cushioning the impact.
• Autonomous Driving: Autonomous driving relies heavily on embedded systems to
enable vehicles to operate without human intervention, transforming the future of
transportation. Embedded systems in autonomous vehicles process vast amounts of data
from sensors like cameras, radar, and LIDAR to perceive the environment, detect
obstacles, and navigate safely. These systems are responsible for real-time decision-
making, including steering, acceleration, braking, and lane changes. By integrating
complex sensor data and machine learning models, embedded systems play a pivotal
role in making autonomous driving a reality, enhancing safety, convenience, and
efficiency in transportation.
• Infotainment Systems: Infotainment systems in modern vehicles are powered by
embedded systems, providing drivers and passengers with entertainment,
communication, and navigation features. These systems integrate multimedia
functions, such as music, video, and smartphone connectivity, with real-time
information like GPS navigation, traffic updates, and voice control. Embedded systems
ensure seamless operation, allowing users to interact through touchscreens, voice
commands, or steering wheel controls. Additionally, infotainment systems are often
connected to the internet, enabling access to apps, cloud services, and over-the-air
updates.
With advancements in science and technology, embedded systems have become vital to the
medical field, playing a crucial role in medical equipment by enabling functions such as
patient monitoring, diagnosis, and treatment. These systems enhance the efficiency and
accuracy of medical professionals, making them an integral part of modern healthcare. As
embedded systems evolve, they will significantly impact healthcare, offering greater
convenience to patients and driving innovation in medical technologies. In the healthcare
domain, embedded systems are crucial for developing life-saving devices. Some of the
application includes:
Automation and control play a critical role in today’s industrial automation processes. By
integrating embedded systems, companies can significantly enhance productivity, improve
safety, and lower operational costs. These systems enable the optimization of processes,
continuous monitoring of critical parameters, and real-time decision-making, resulting in
greater operational efficiency and improved product quality, which ultimately leads to
increased profitability. Furthermore, automation and control contribute to reducing the
environmental impact of industrial operations by minimizing waste and optimizing
resource utilization. In essence, embedded systems are essential for industries to thrive in
an ever-evolving technological landscape. Some of the key application where embedded
system plays its role in this domain includes:
• Process Control: Embedded systems play a vital role in process control by managing
key parameters like temperature, pressure, and flow rates in manufacturing. They
collect data from sensors and make real-time adjustments to maintain consistency and
precision during production. This ensures that processes run smoothly, leading to
higher quality products and greater efficiency in manufacturing operations.
• Robotics and Automated Machinery: Embedded systems are essential in robotics and
automated machinery, enabling industrial robots to perform tasks such as assembly,
welding, and material handling with exceptional accuracy and speed. These systems
control the robots' movements and ensure safe interaction with their surroundings,
allowing for efficient and reliable operation in various manufacturing processes. By
integrating embedded systems, industries can streamline production, reduce errors, and
enhance overall productivity.
• Supervisory Control and Data Acquisition (SCADA): Embedded systems are
fundamental to Supervisory Control and Data Acquisition (SCADA) systems, which
are crucial for monitoring and controlling essential infrastructure, such as power plants,
water treatment facilities, and oil refineries. These systems gather data from remote
sensors and manage equipment, enabling operators to oversee and control operations
from a centralized location. By utilizing embedded systems, SCADA enhances
efficiency, improves response times, and ensures the reliability of critical services.
• Programmable Logic Controllers (PLCs): Programmable Logic Controllers (PLCs)
are specialized embedded systems designed for industrial control applications. They
run pre-programmed instructions to manage machinery, production lines, and other
automated systems. Known for their robustness and reliability, PLCs are crucial in
harsh industrial environments, ensuring smooth and efficient operations. Their ability
to withstand challenging conditions while maintaining consistent performance makes
them an integral part of modern manufacturing and automation processes.
• Safety Systems: Embedded systems are integral to safety-critical applications,
including emergency shutdown systems and fire detection systems. These systems
continuously monitor environmental conditions and can automatically activate safety
mechanisms when hazardous situations arise. By ensuring quick and reliable responses
to potential dangers, embedded systems help protect both personnel and equipment,
enhancing overall safety in industrial environments. Their ability to operate
autonomously in emergencies is essential for maintaining a secure and safe working
atmosphere.
Embedded systems are foundational to the Internet of Things (IoT), providing the
intelligence that enables devices to communicate seamlessly with each other and the cloud.
They integrate sensors to monitor physical properties like temperature and humidity,
process the data generated, and transmit it for analysis. By facilitating both wired and
wireless communication through various protocols, embedded systems ensure efficient data
exchange among devices. Additionally, they play a crucial role in maintaining security by
protecting data transmission and safeguarding against cyber threats. Effective power
management by embedded systems is essential for optimizing energy consumption and
prolonging battery life in IoT devices. Overall, embedded systems are integral to enhancing
the functionality, efficiency, and security of IoT applications, driving innovation across
various sectors. IoT applications spans across various industries:
• Smart Homes: In smart homes, embedded systems play a crucial role in automating
and controlling various functions, including lighting, heating, cooling, and security
systems. These systems enable devices like smart thermostats, smart locks, and smart
lighting to operate efficiently and respond to user commands. Embedded systems
facilitate communication between devices, allowing them to work together seamlessly
for enhanced convenience and energy management. For example, a smart thermostat
can adjust the temperature based on user preferences and occupancy patterns, while
smart lighting can be programmed to turn on or off according to a set schedule or in
response to motion detection. By integrating these technologies, smart homes not only
improve comfort and security but also promote energy efficiency, contributing to a
more sustainable living environment.
• Industrial IoT (IIoT): Industrial IoT (IIoT) leverages embedded systems to monitor
and control various manufacturing processes, enhancing operational efficiency and
safety. Embedded systems in IIoT devices gather real-time data from machinery and
production equipment, enabling continuous monitoring and early detection of
• Smart Cities: In smart cities, IoT-enabled embedded systems are crucial for
monitoring and managing urban infrastructure to enhance efficiency and sustainability.
These systems are integrated into various city services, including traffic lights, parking
systems, waste management, and energy grids. For example, smart traffic lights use
real-time data to optimize traffic flow, reducing congestion and emissions. Smart
parking systems help drivers find available spots quickly, minimizing fuel waste. Waste
management systems monitor fill levels in bins and schedule timely pickups, while
smart energy grids optimize power distribution based on consumption patterns.
Collectively, these applications contribute to more efficient resource usage, reduced
environmental impact, and an improved quality of life in urban environments.
Embedded systems are indispensable in the aerospace and defense industries, where
reliability, efficiency, and precision are of the utmost importance. These systems are
meticulously integrated into a wide array of components found in aircraft, spacecraft, and
defense mechanisms, ensuring that both routine and mission-critical functions are executed
with precision. From handling navigation and communication to managing complex
operations in real-time, embedded systems enable smooth and safe functioning in
environments that demand the highest level of performance. Their contribution extends to
controlling avionics, executing defense strategies, and ensuring secure, real-time data
processing. These characteristics make embedded systems foundational to the continued
advancements in aerospace and defense technologies. Some of the application of embedded
system in this domain includes:
• Radar and Surveillance Systems: Embedded systems are crucial components of radar
and surveillance systems, enabling real-time detection, tracking, and analysis of objects
in various defense applications, including both aerial and ground operations. These
systems process data from radar signals to identify and monitor potential threats,
ensuring accurate situational awareness. By leveraging advanced algorithms, embedded
systems enhance the capability to analyze vast amounts of data quickly, allowing for
timely responses to dynamic security challenges. Their reliability and efficiency are
essential for effective defense strategies in complex operational environments.
Embedded systems are specialized computing systems designed to perform dedicated tasks
within a larger system. Unlike general-purpose computers, embedded systems are tailored
to specific applications, ensuring efficiency, reliability, and often real-time performance.
The major components of an embedded system can be categorized into two core areas:
hardware and software. These components work in harmony to ensure the system performs
its intended function efficiently and reliably.
An embedded system contains various hardware components that work together to perform
specific tasks. These components are often integrated into a single unit, such as a
microcontroller, to ensure efficient and reliable operation. Below is a breakdown of key
hardware components in an embedded system.
The processor is the heart of an embedded system, responsible for executing instructions
and controlling other components. Most embedded systems use microcontrollers because
they integrate a CPU, memory (RAM and ROM), and I/O peripherals on a single chip,
offering a compact and cost-effective solution. The processor manages data flow, processes
input signals, and executes control actions based on system requirements.
I/O subsystems in a microcontroller, like General Purpose Input/output (GPIO), are critical
for interfacing the processor with external devices. These pins can be configured as either
digital inputs or outputs.
• Digital Inputs: Used for reading the status of switches, push buttons, or other digital
devices.
• Digital Outputs: Can control external devices such as motors, lights, or valves by
sending digital signals.
Timers and counters are integral to generating precise time delays, controlling periodic
tasks, or counting external events. They are used for functions such as generating interrupts
at regular intervals for multitasking, controlling motors, or generating external triggers for
other systems. These are vital for real-time applications that require accurate timing and
event management.
ROM (Read-Only Memory): Used to store the system’s firmware or application code,
ensuring that it remains intact even when the system is powered off.
RAM (Random Access Memory): Used for temporary data storage during system
operation, enabling fast access and modification of data.
Serial communication interfaces, such as SPI (Serial Peripheral Interface), I2C (Inter-
Integrated Circuit), and UART (Universal Asynchronous Receiver-Transmitter), allow the
processor to communicate with external devices like sensors, displays, or other embedded
systems. These interfaces enable the transfer of data between the microcontroller and
peripherals with minimal pin usage, providing flexibility and expandability.
The ADC converts analog signals from sensors into digital values that can be processed by
the microcontroller. For example, sensors that measure temperature or pressure provide
analog output, which the ADC converts into a digital format for further processing by the
system.
The DAC is the opposite of the ADC; it converts digital signals generated by the
microcontroller into analog signals. This is useful for applications where analog control is
required, such as controlling motor speeds or audio signals.
8. Power Supply
The power supply ensures that the embedded system receives stable voltage levels for
operation. In many embedded systems, the power supply includes voltage regulators that
convert external power sources into a stable voltage required by the microcontroller and
other components.
9. Reset Circuit
The reset circuit initializes the system when it powers up or when a fault is detected. It
ensures that the processor starts executing instructions from the correct memory location
and can reset the system to a known state in case of errors or failures.
The interrupt controller manages interrupt signals that temporarily halt the processor's
current task to handle high-priority events, such as an external input or a timer overflow.
This is crucial for real-time systems that require immediate responses to certain events.
Some larger microcontrollers include a bus interface, which exposes the internal address,
data, and control buses to the external environment. This feature enables the processor to
connect with a wide range of peripherals, similar to how conventional processors operate.
Through the bus interface, various devices and interfaces can be integrated, allowing for
flexibility and compatibility with different peripherals.
Sensors, actuators, and additional peripherals are crucial components that enhance the
functionality of embedded systems, allowing them to interact with the physical world
effectively. Here’s a breakdown of these components:
1. Sensors
Sensors are devices that detect changes in the environment and convert physical
phenomena into electrical signals. They provide vital input data to the embedded
system, enabling it to respond to real-world conditions. Common types of sensors
include temperature sensors, pressure sensors, accelerometers, and light sensors.
Each sensor type is designed to measure specific environmental parameters and
send the corresponding data to the microcontroller for processing.
2. Actuators
Actuators are devices that perform actions based on commands received from the
microcontroller. They convert electrical signals into physical movement or action,
allowing the embedded system to interact with the environment. Examples of
actuators include motors (for movement), solenoids (for linear motion), and relays
(for switching). Actuators are critical for executing control actions based on the
processed data from sensors.
3. Peripherals
Peripherals expand the capabilities of the embedded system by providing additional
functionalities. These can include input devices (like keyboards and touchscreens),
output devices (like displays and speakers), and communication modules (such as
Wi-Fi, Bluetooth, and Ethernet). Peripherals facilitate interaction between the user
and the embedded system and enable communication with other systems or
networks.
Software components in embedded systems are essential for enabling functionality and
ensuring reliable operation. These components can be categorized into two primary areas:
Application Software and Real-Time Operating Systems (RTOS).
1. Application Software
Application software is designed to perform specific tasks within the embedded system. It
includes firmware that directly controls hardware, device drivers that facilitate
communication with peripherals, and data management software that handles the
processing and storage of information. This software is crucial for executing the main
functions of the embedded system.
To enhance your understanding of the concept and architecture of embedded systems, here are
some practical case studies of commonly used devices. These examples will help illustrate how
embedded systems operate in various applications and demonstrate the integration of hardware
and software components.
1. Hardware Components
The hardware of the washing machine consists of various sensors, actuators, and
peripherals that interact with the real world.
o Water Level Sensor: Monitors water level and ensures the appropriate
amount is used based on the load.
o Load Sensor: Determines the weight of the clothes in the drum, helping
optimize water and detergent usage.
o Temperature Sensor: Keeps track of water temperature and adjusts it
according to the selected wash cycle.
• Actuator Unit:
o Water Inlet Valve (Solenoid): Controls the inflow of water, automatically
2. Software Components
The embedded software handles the control logic and manages interactions between the
hardware components, optimizing the wash process based on user input and real-time
conditions.
• Control Logic & Cycle Management: The software takes care of:
o Cycle Selection & Optimization: Based on user input (like fabric type and
wash cycle), the software determines parameters such as water level, motor
speed, and cycle duration.
• Sensor Inputs and Software Decisions: Sensor readings (water level, load size,
temperature) are sent to the microcontroller, where the software processes the data and
makes real-time adjustments. For instance, the system adjusts the water inlet valve to
control the water level based on the load size.
• Software Control Over Actuators: The software commands actuators like the motor
and water valve. For example, during the wash cycle, it controls the motor speed and
direction to agitate clothes or spin them at high speeds.
• User Interface Integration: The user selects wash settings (like fabric type or wash
time), and the interface software relays these selections to the microcontroller. The
machine then performs the cycle according to the chosen settings and provides visual
feedback, such as displaying the time remaining or any errors encountered.
• Feedback and Adjustment: The embedded system works in a feedback loop where
the software continuously monitors sensor readings and adjusts the actuators
accordingly. For instance, if the load is too heavy, the motor speed might be adjusted
automatically.
A smart thermostat is a classic example of an embedded system designed to control the heating,
ventilation, and air conditioning (HVAC) systems in a home. The device integrates various
sensors, a microcontroller, actuators, and a user interface, combined with software algorithms
to optimize temperature control based on user preferences and environmental conditions.
1. Hardware Components
The hardware of the smart thermostat includes sensors for temperature and humidity
monitoring, actuators to control HVAC systems, and other peripherals such as
communication modules and user interface elements.
2. Software Components
The embedded software in a smart thermostat manages temperature control logic, user
preferences, and connectivity features. It runs on a real-time operating system (RTOS) to
handle time-sensitive tasks efficiently.
• Sensor Inputs and Software Control: The thermostat collects data from the
temperature and humidity sensors, sending the information to the microcontroller. The
software interprets this data and decides whether to turn on the heating, cooling, or
ventilation systems.
• Control Over Actuators: Based on user-defined settings and real-time conditions, the
software activates actuators (relays) to control the HVAC system. For example, if the
room temperature falls below the desired level, the heating system is switched on.
• User Interface Integration: Users set their preferences using the display or app. These
preferences are stored and processed by the software to ensure the system runs
efficiently. The thermostat may also learn from user behavior and adjust itself
automatically.
• Remote Control and Smart Features: The Wi-Fi module allows the thermostat to
communicate with a smartphone app or other smart home devices. Users can remotely
adjust temperature settings, monitor energy usage, or receive maintenance alerts via the
software.
Review Questions
Q.1 What is an embedded system? Why is it so hard to define?
Q.2 List and define the three main characteristics of embedded system that
distinguish such system from other computing system?
Q.3 Justify Washing Machine as an example of Embedded System?
Q.4 What are the essential components of Embedded System? Explain in
detail.
Q.5 What is a tightly constrained system. What are the different types of
constraints that we can encounter in embedded system design?
Q.6 Can a general-purpose system be adapted for a single, specific task like
an embedded system? If so, how does it differ in efficiency?
Q.7 How are embedded systems transforming healthcare, particularly with
devices like wearable monitors?
Q.8 How do embedded systems form the backbone of IoT devices? Discuss
the role of microcontrollers in enabling IoT funcnality.