SlideShare a Scribd company logo
Chapter 1: Introduction to Embedded
Systems
Embedded Systems
19.01.2025 Embedded System by Gadisa A. 1
19.01.2025 Embedded System by Gadisa A. 2
Chapter One
INTRODUCTION TO EMBEDDED SYSTEMS
By Gadisa A.[MSc.]
19.01.2025 Embedded System by Gadisa A. 3
What is Embedded System?
Embedded System:-
 An embedded system is a system that has
software embedded into computer
hardware, which makes a system dedicated
to an application(s) or specific part of an
application or product or part of a larger
system.
 An embedded system has a dedicated
purpose software embedded in computer
hardware
19.01.2025 Embedded System by Gadisa A. 4
What is an Embedded System?
Embedded System:-
 It is a dedicated computer-based
system for an application(s) or
product. It may be an independent
system or a part of a large system. Its
software usually embeds into a ROM
(Read Only Memory) or flash.
19.01.2025 Embedded System by Gadisa A. 5
Microcontroller as heart of the embedded system
 Microcontroller is an IC chip that takes input
process data according to the program written in its
memory and gives output as a control signal for
controlling other machines and devices.
 A microcontroller (sometimes abbreviated µC, uC
or MCU) is a small computer on a single integrated
circuit containing a processor core, memory, and
programmable input/output peripherals.
19.01.2025 Embedded System by Gadisa A. 6
embedded system examples with real life application
• In today's world of technology, we found Microcontrollers in
almost every electronic device we uses. Almost all general-
purpose devices such as Digital Watches, Washing Machines,
CD/DVD Players, Mobile Phones and Microwave Ovens works
on the bases of Microcontroller.
uC
Mobile
Phones
Came
ras
Microwa
ve Oven.
Securit
y
Alarms
CD/
DVD
Playe
rs
Electronic
Measurem
ent
Instrument
s.
19.01.2025 Embedded System by Gadisa A. 7
Differentiate Microcontroller and microprocessor
Microprocessor :
 The microprocessor is the heart of any processing device. It’s a basic building block of
modern processors and controllers.
 It’s a register-based multi-purpose electronics device that takes input from us,
processes that input data according to the program written in external memory, and
gives us useful results.
 This device only consists of a processing unit, that is Memory and I/O devices need to
be connected externally.
 As it requires external memory and I/O devices it requires large space and is larger in
size. It is of no use without interfacing with external memory and I/O ports.
 Example: Personal Computer/Laptop
 No Predefined Rules
19.01.2025 Embedded System by Gadisa A. 8
Differentiate Microcontroller and Microprocessor
Microcontroller :
 Microcontroller is also like a Microprocessor except that a Microcontroller
is made by Integrating Memory and I/O ports on a single chip.
 It doesn’t require external ROM, or I/O ports for its operation. As memory
such as ROM/RAM is integrated into a single IC chip, thus it is small in
size.
 It is used for controlling various machines.
 The programming of both microcontrollers and microprocessors is almost
similar.
 They are used for Specific tasks
 Example: Camera, washing machine, microwave oven
19.01.2025 Embedded System by Gadisa A. 9
Differentiate Microcontroller and Microprocessor
19.01.2025 Embedded System by Gadisa A. 10
Microcontrollers
19.01.2025 Embedded System by Gadisa A. 11
Advantages of Microcontroller Application
Some of the benefits of microcontroller are:
 High reliability and high degree of integration;
 Reduction in size;
 Reduced component count and manufacturing cost owner;
 Shorter development time;
 Shorter time to market;
 Lower power consumption.
19.01.2025 Embedded System by Gadisa A. 12
Developing Embedded System
19.01.2025 Embedded System by Gadisa A. 13
Hardware Development
14
19.01.2025 Embedded System by Gadisa A.
CHAPTER TWO
EMBEDDED SYSTEM ARCHITECTURES
15
By Gadisa A.[MSc.]
19.01.2025 Embedded System by Gadisa A. 16
INTRODUCTION TO EMBEDDED SYSTEMS
• Introduction to Embedded Systems
• The Build process for embedded systems
• Structural units in Embedded processor
• Selection of processor
• Selection of Memory devices
19.01.2025 Embedded System by Gadisa A. 17
Examples Embedded System
19.01.2025 Embedded System by Gadisa A. 18
Components in Embedded System
•
19.01.2025 Embedded System by Gadisa A. 19
System
A system is a way of working, organizing or
doing one or many tasks, which are performed in
a system according to a fixed plan, program or
set or rules
19.01.2025 Embedded System by Gadisa A. 20
General Computing System Components
• Microprocessor
• Large memory
• Input Units
• Out put Units
• Networking Units
• An Operating System
19.01.2025 Embedded System by Gadisa A. 21
Embedded System
An embedded system is a system that has
embedded software in computer hardware. The
system is dedicated to either an application(s) or
a specific part of an application or product or a
component of a large system
Example.
Washing machine
Cooking machine
Automative chocolate vending machines
Multitasking toys
19.01.2025 Embedded System by Gadisa A. 22
Classification of Embedded System
i. Small Scale Embedded Systems
ii. Medium Scale Embedded Systems
iii. Sophisticated Embedded Systems
19.01.2025 Embedded System by Gadisa A. 23
Embedded System Components
• It embeds Hardware similar to a computer
• Software usually embeds in the ROM, flash
memory or media card
• It embeds a Real Time Operation System
(RTOS)
19.01.2025 Embedded System by Gadisa A. 24
Components of Embedded System Hardware
19.01.2025 Embedded System by Gadisa A. 25
Building Blocks of Embedded System Hardware
• The Hardware consists of the following building blocks and
devices:
• Power source
• Clock Oscillator and Clocking Units
• System Timer
• Real Time Cock
• Reset Circuit
• Power Up Reset
• Memory
• I/O ports
• I/O buses
• I/O Interfaces
19.01.2025 Embedded System by Gadisa A. 26
The Build Process
• The first step is selecting a processor
• The processor is selected from the following
considerations
 Instruction Set
 Maximum bits in an operand in an operation
 Clock frequency in MHz or GHz and the
processing speed in Million Instructions per
second.
 Processor ability to solve the complex algorithms
used in meeting the deadlines for their processing
19.01.2025 Embedded System by Gadisa A. 27
The Build Process
• The build process for embedding software
consists of the following steps
 Project file consisting of source file and library
files
 Compilation of the project files
 Linking all object files and locating them onto a
single re-locatable object file
 Converting the object file in a form called hex-file
to a binary image
19.01.2025 Embedded System by Gadisa A. 28
The Build Process
19.01.2025 Embedded System by Gadisa A. 29
Abstraction of Steps in the Design Process
19.01.2025 Embedded System by Gadisa A. 30
Structural Units in Embedded Processor
• Internal Buses:
 It internally connects all the structural units inside the processor.
 Its width can be 8,16,32 or 64 bits
• Address Bus
 It is the external bus that carries the address from the MAR to the memory as well as
the IO devices and the other units of the system
• Data Bus
 It is an external bus that carries the data from or to the address
• Control Bus
 It is an external bus to carry the control signal between the processor and memory
devices
• Bus Interface Unit
 It is the interface unit between the processor’s internal units with the external buses
• MAR:
 Memory Address Register
 It holds the address of the byte or word to be fetched from external memories
• MDR:
 It holds the byte or word fetched from/to external memory or I/O address
19.01.2025 Embedded System by Gadisa A. 31
Structural Units in Embedded Processor
• Program Counter
 PC holds the memory address of the next instruction that would be
executed.
• Stack Pointer
 It is a pointer for an address that corresponds to stack top in the
memory
• Instruction Register
 It takes sequentially the instruction codes to the execution unit of
the processor
• Instruction Decoder
 It decodes the instruction opcode received at the IR passes it to the
processor CU
• Instruction Queue
 It is the queue of instruction so that the IR does not have to wait for
the next instruction after one has been carried out
19.01.2025 Embedded System by Gadisa A. 32
Structural Units in Embedded Processor
• Arithmetic and Logical Units
 It is a unit to execute arithmetic and logical
instruction according to the current instruction
present in the IR
• Floating Point Processing Unit (FPPU)
 A unit separate from ALU for floating point processing
which is essential in processing mathematical
functions fast in a microprocessor or DSP
• Floating Point Register Set(FPRS):
 A register set dedicated to storing floating point
numbers in a standard format and used by FPPU for
its data and stack
19.01.2025 Embedded System by Gadisa A. 33
Structural Units in Embedded Processor
• Control Unit
 It controls all the bus activities and unit functions
needed for processing
• Memory Management Unit (MMU)
 It manages the memory such that instruction and
data are readily available for processing
• Application Register Set
 It is a set of on-chip registers used during
processing the instruction of the application
program of the user
19.01.2025 Embedded System by Gadisa A. 34
Structural Units in Embedded Processor
• Instruction Cache
 It sequentially stores, like an Instruction queue,
the instructions in FIFO.
• Data Cache
 It stores the pre-fetched data from the external
memory
 The data cache generally holds both the key and
the value together at the location
19.01.2025 Embedded System by Gadisa A. 35
Embedded System Characteristics
 System functions in real time
 Program is preloaded in the ROM(s) or flash
memory
 Dedicated set of functions
 Complex dedicated purpose preprogrammed
algorithms
Hardware
Graphics and Other user interfaces
 Multirate operations with different
predetermined time constraints to finish the
different operations
19.01.2025 Embedded System by Gadisa A. 36
Constraints of Embedded Systems
 Available System Memory
 Available Processor Speed
 Meeting Deadlines
 Performance
 Power
 Size
 Design and Manufacturing Cost
19.01.2025 Embedded System by Gadisa A. 37
Selection of Processor
 Different systems require different processor
features
 The processor is selected from the following
considerations
 Instruction Set
 Maximum bits in an operand in an operation
 Processing Speed
 Ability to solve complex algorithms
 A processor gives high computing performance when it
has
Pipeline and Superscalar architecture
Pre-fetch cache unit, caches, register files
RISC core architecture
19.01.2025 Embedded System by Gadisa A. 38
Selection of Processor
 A processor with register windows provides fast
context switching in a multitasking system
 Processor has auto shut-down features for its
units
 A processor with burst mode accesses external
memories fast
19.01.2025 Embedded System by Gadisa A. 39
Selection of Memory Devices
 Software designer coding is over and the ROM
image file is ready, a hardware designer of a
system is faced with the questions, of
 what type of memory?
 what to use?
 how much size of each, should be to used???
19.01.2025 Embedded System by Gadisa A. 40
Selection of Memory Devices
• Some of the Memory selection processes are,
 Internal ROM
 Internal EPROM
 Internal EEPROM
 Internal RAM
 ROM Device
 EPROM Device
 EEPROM Device
 Flash Device
 RAM device
19.01.2025 Embedded System by Gadisa A. 41
Selection of Memory Devices
• Masked ROM or EPROM stores the embedded
software
• EEPROM is used for testing and design stages and
also is used to store the results during the system
program run time
• Flash stores the results byte by byte during a system
run after a full sector erase
• RAM is mostly used in SRAM form in a system
• Sophisticated system use RAM in the form of
DRAM and SDRAM.
19.01.2025 Embedded System by Gadisa A. 42
DMA
 I/O devices need to transfer the data of other
systems to the memory addresses in the
system
 A system may also need to transfer data to the
IO devices
 A Direct Memory Access is required when a
block of data is to be transferred between two
systems without the CPU intervening, except
at the start and at the end
19.01.2025 Embedded System by Gadisa A. 43
DMA
19.01.2025 Embedded System by Gadisa A. 44
DMA
• DMA supports 3 modes of operations
 Single transfer at a time and then release of the
hold on the system bus
 Burst transfer at a time and then release of the
hold on the system bus. A burst may be a few Kilo
Bytes
 Bulk transfer and then release of the hold on the
system bus after the transfer is completed
19.01.2025 Embedded System by Gadisa A. 45
DMAC
 DMA transfer is facilitated by the DMAC (DMA
Controller)
 Data transfer occurs efficiently between I/O
devices and system memory with the least
processor intervention using DMAC
 The system address and data buses become
unavailable to the processor and available to the
IO device that connects DMAC
19.01.2025 Embedded System by Gadisa A. 46
Memory Management Methods
How MMU works
 Keep track of what part of memory are in use
 Allocate memory to processes when needed
 De-allocate when processes are done
 Swapping or Paging between main memory and
disk
19.01.2025 Embedded System by Gadisa A. 47
Memory Management Methods
In general, memory management responsibilities
include:
 Managing the mapping between logical memory
and task memory references
 Determining which processes to load into the
available memory space
 Allocating and de-allocating memory for processes
that make up the system
 Tracking the memory usage of system components
 Ensuring process memory protection
19.01.2025 Embedded System by Gadisa A. 48
User Memory Space
 Because multiple processes are sharing the same
physical memory when being loaded into RAM for
processing, there also must be some protection
mechanism so processes cannot unintentionally
affect each other when being swapped in and out of a
single physical memory space
 The OS typically resolves these issues through
“memory swapping” where partitions are swapped at
run time.
19.01.2025 Embedded System by Gadisa A. 49
Segmentation
 A process encapsulates all the information that is
involved in executing a program, including source
code, stack and data.
 All of the different types of information within a
process are divided into logical memory units of
variable sizes called SEGMENTS
 Most OS typically allow processes to have all or some
combination of five types of information within
segments such as
 Code Segment
 Data Segment
 Block started by Symbol
 Stack Segment
 Heap Segment
50
51
01/19/2025 By: Gadisa A.

More Related Content

PPTX
Introduction to embedded systems
RAMPRAKASHT1
 
PDF
Unit 1 intro-embedded
Pavithra S
 
PPTX
Introduction to embedded system
Revathi Subramaniam
 
PPTX
Fundamentals of Internet of Things (IoT)
Dr. Chandrakant Divate
 
PPT
Embedded system by owais
Owais Mushtaq
 
PDF
Summer training embedded system and its scope
Arshit Rai
 
PPTX
Introduction to Embedded system with its definition and applications
dharmisthadvishwakar
 
PDF
PILOT Session for Embedded Systems
Mohamed Al-Emam, PMP®, CAP®
 
Introduction to embedded systems
RAMPRAKASHT1
 
Unit 1 intro-embedded
Pavithra S
 
Introduction to embedded system
Revathi Subramaniam
 
Fundamentals of Internet of Things (IoT)
Dr. Chandrakant Divate
 
Embedded system by owais
Owais Mushtaq
 
Summer training embedded system and its scope
Arshit Rai
 
Introduction to Embedded system with its definition and applications
dharmisthadvishwakar
 
PILOT Session for Embedded Systems
Mohamed Al-Emam, PMP®, CAP®
 

Similar to Introduction to Embeded System chapter one and 2.pptx (20)

PPTX
E-m--be-dde-d -sy-s-te---m_Day_1_ES.pptx
hppatidarmds28
 
PDF
EE6602 Embedded System
rmkceteee
 
PPTX
Introduction to Embedded Systems
Sandeep Reddy
 
PDF
es1-150721100817-lva1-app6891.pdf
Ashwin180668
 
PPTX
Presentation1
mahalakshmimalini
 
PPT
Embedded System Basics - Introduction.ppt
alaakaraja1
 
PPT
Embedded basics For beginners
MyEducationHub
 
PPTX
Prerna sharma
RCET
 
PPTX
introduction to embedded system presentation
Amr Rashed
 
PPTX
EE8691 – EMBEDDED SYSTEMS.pptx
RockFellerSinghRusse
 
PPTX
Summer training embedded system and its scope
Arshit Rai
 
PDF
2e062d07-4a72-4792-af77-5e53147d4c81.pdf
kimavathmukeshnaik
 
PPTX
Lecture 1 Introduction.pptx
Orchestra2
 
PDF
BEE 049- design of embedded system.pdf
abdisahirko
 
PPTX
Embeddedsystems 091130091010-phpapp02
KIET Group of Institutions, Ghaziabad
 
PDF
Embedded systems
AYUGUPTA98
 
PPTX
Ppt on embedded system
Pankaj joshi
 
PPTX
Embedded systems
Fahad Farooq
 
PPT
Embeddedsystem 110412132957-phpapp02
ishan111
 
PPTX
Embedded Systems.pptx
LECO9
 
E-m--be-dde-d -sy-s-te---m_Day_1_ES.pptx
hppatidarmds28
 
EE6602 Embedded System
rmkceteee
 
Introduction to Embedded Systems
Sandeep Reddy
 
es1-150721100817-lva1-app6891.pdf
Ashwin180668
 
Presentation1
mahalakshmimalini
 
Embedded System Basics - Introduction.ppt
alaakaraja1
 
Embedded basics For beginners
MyEducationHub
 
Prerna sharma
RCET
 
introduction to embedded system presentation
Amr Rashed
 
EE8691 – EMBEDDED SYSTEMS.pptx
RockFellerSinghRusse
 
Summer training embedded system and its scope
Arshit Rai
 
2e062d07-4a72-4792-af77-5e53147d4c81.pdf
kimavathmukeshnaik
 
Lecture 1 Introduction.pptx
Orchestra2
 
BEE 049- design of embedded system.pdf
abdisahirko
 
Embeddedsystems 091130091010-phpapp02
KIET Group of Institutions, Ghaziabad
 
Embedded systems
AYUGUPTA98
 
Ppt on embedded system
Pankaj joshi
 
Embedded systems
Fahad Farooq
 
Embeddedsystem 110412132957-phpapp02
ishan111
 
Embedded Systems.pptx
LECO9
 
Ad

More from gadisaAdamu (20)

PDF
Addis ababa of education plan.docxJOSY 10 C.pdf
gadisaAdamu
 
PDF
Addis ababa college of education plan.docxjosy 10 A.pdf
gadisaAdamu
 
PPT
Lecture -3 Classification(Decision Tree).ppt
gadisaAdamu
 
PPT
Lecture -2 Classification (Machine Learning Basic and kNN).ppt
gadisaAdamu
 
PPT
Lecture -8 Classification(AdaBoost) .ppt
gadisaAdamu
 
PPT
Lecture -10 AI Reinforcement Learning.ppt
gadisaAdamu
 
PPTX
Updated Lensa Research Proposal (1).pptx
gadisaAdamu
 
PPTX
Lensa research presentation Powepoint.pptx
gadisaAdamu
 
PPTX
Lensa Habtamu Updated one Powerpoint.pptx
gadisaAdamu
 
PPTX
Updated Lensa Research Proposal (1).pptx
gadisaAdamu
 
PPTX
Lensa Updated research presentation Powerpoint.pptx
gadisaAdamu
 
PPTX
AI Chapter Two.pArtificial Intelligence Chapter One.pptxptx
gadisaAdamu
 
PPTX
Artificial Intelligence Chapter One.pptx
gadisaAdamu
 
PPTX
Introduction to Embeded System chapter 1 and 2.pptx
gadisaAdamu
 
PPT
Chapter Five Synchonization distributed Sytem.ppt
gadisaAdamu
 
PPT
chapter distributed System chapter 3 3.ppt
gadisaAdamu
 
PPTX
Chapter 2- distributed system Communication.pptx
gadisaAdamu
 
PPTX
Chapter 1-Introduction to distributed system.pptx
gadisaAdamu
 
PPTX
chapter AI 4 Kowledge Based Agent.pptx
gadisaAdamu
 
PPT
Articial intelligence chapter 3 problem solver.ppt
gadisaAdamu
 
Addis ababa of education plan.docxJOSY 10 C.pdf
gadisaAdamu
 
Addis ababa college of education plan.docxjosy 10 A.pdf
gadisaAdamu
 
Lecture -3 Classification(Decision Tree).ppt
gadisaAdamu
 
Lecture -2 Classification (Machine Learning Basic and kNN).ppt
gadisaAdamu
 
Lecture -8 Classification(AdaBoost) .ppt
gadisaAdamu
 
Lecture -10 AI Reinforcement Learning.ppt
gadisaAdamu
 
Updated Lensa Research Proposal (1).pptx
gadisaAdamu
 
Lensa research presentation Powepoint.pptx
gadisaAdamu
 
Lensa Habtamu Updated one Powerpoint.pptx
gadisaAdamu
 
Updated Lensa Research Proposal (1).pptx
gadisaAdamu
 
Lensa Updated research presentation Powerpoint.pptx
gadisaAdamu
 
AI Chapter Two.pArtificial Intelligence Chapter One.pptxptx
gadisaAdamu
 
Artificial Intelligence Chapter One.pptx
gadisaAdamu
 
Introduction to Embeded System chapter 1 and 2.pptx
gadisaAdamu
 
Chapter Five Synchonization distributed Sytem.ppt
gadisaAdamu
 
chapter distributed System chapter 3 3.ppt
gadisaAdamu
 
Chapter 2- distributed system Communication.pptx
gadisaAdamu
 
Chapter 1-Introduction to distributed system.pptx
gadisaAdamu
 
chapter AI 4 Kowledge Based Agent.pptx
gadisaAdamu
 
Articial intelligence chapter 3 problem solver.ppt
gadisaAdamu
 
Ad

Recently uploaded (20)

PPTX
Online Cab Booking and Management System.pptx
diptipaneri80
 
PDF
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
PDF
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPTX
Civil Engineering Practices_BY Sh.JP Mishra 23.09.pptx
bineetmishra1990
 
PPTX
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
PDF
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
PPTX
Tunnel Ventilation System in Kanpur Metro
220105053
 
PDF
Zero Carbon Building Performance standard
BassemOsman1
 
PPTX
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
PPTX
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
PPT
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
PDF
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
PPT
Understanding the Key Components and Parts of a Drone System.ppt
Siva Reddy
 
PDF
2025 Laurence Sigler - Advancing Decision Support. Content Management Ecommer...
Francisco Javier Mora Serrano
 
PPTX
sunil mishra pptmmmmmmmmmmmmmmmmmmmmmmmmm
singhamit111
 
PPTX
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
DOCX
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
PDF
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
Online Cab Booking and Management System.pptx
diptipaneri80
 
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Civil Engineering Practices_BY Sh.JP Mishra 23.09.pptx
bineetmishra1990
 
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
Tunnel Ventilation System in Kanpur Metro
220105053
 
Zero Carbon Building Performance standard
BassemOsman1
 
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
Understanding the Key Components and Parts of a Drone System.ppt
Siva Reddy
 
2025 Laurence Sigler - Advancing Decision Support. Content Management Ecommer...
Francisco Javier Mora Serrano
 
sunil mishra pptmmmmmmmmmmmmmmmmmmmmmmmmm
singhamit111
 
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 

Introduction to Embeded System chapter one and 2.pptx

  • 1. Chapter 1: Introduction to Embedded Systems Embedded Systems 19.01.2025 Embedded System by Gadisa A. 1
  • 2. 19.01.2025 Embedded System by Gadisa A. 2 Chapter One INTRODUCTION TO EMBEDDED SYSTEMS By Gadisa A.[MSc.]
  • 3. 19.01.2025 Embedded System by Gadisa A. 3 What is Embedded System? Embedded System:-  An embedded system is a system that has software embedded into computer hardware, which makes a system dedicated to an application(s) or specific part of an application or product or part of a larger system.  An embedded system has a dedicated purpose software embedded in computer hardware
  • 4. 19.01.2025 Embedded System by Gadisa A. 4 What is an Embedded System? Embedded System:-  It is a dedicated computer-based system for an application(s) or product. It may be an independent system or a part of a large system. Its software usually embeds into a ROM (Read Only Memory) or flash.
  • 5. 19.01.2025 Embedded System by Gadisa A. 5 Microcontroller as heart of the embedded system  Microcontroller is an IC chip that takes input process data according to the program written in its memory and gives output as a control signal for controlling other machines and devices.  A microcontroller (sometimes abbreviated µC, uC or MCU) is a small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals.
  • 6. 19.01.2025 Embedded System by Gadisa A. 6 embedded system examples with real life application • In today's world of technology, we found Microcontrollers in almost every electronic device we uses. Almost all general- purpose devices such as Digital Watches, Washing Machines, CD/DVD Players, Mobile Phones and Microwave Ovens works on the bases of Microcontroller. uC Mobile Phones Came ras Microwa ve Oven. Securit y Alarms CD/ DVD Playe rs Electronic Measurem ent Instrument s.
  • 7. 19.01.2025 Embedded System by Gadisa A. 7 Differentiate Microcontroller and microprocessor Microprocessor :  The microprocessor is the heart of any processing device. It’s a basic building block of modern processors and controllers.  It’s a register-based multi-purpose electronics device that takes input from us, processes that input data according to the program written in external memory, and gives us useful results.  This device only consists of a processing unit, that is Memory and I/O devices need to be connected externally.  As it requires external memory and I/O devices it requires large space and is larger in size. It is of no use without interfacing with external memory and I/O ports.  Example: Personal Computer/Laptop  No Predefined Rules
  • 8. 19.01.2025 Embedded System by Gadisa A. 8 Differentiate Microcontroller and Microprocessor Microcontroller :  Microcontroller is also like a Microprocessor except that a Microcontroller is made by Integrating Memory and I/O ports on a single chip.  It doesn’t require external ROM, or I/O ports for its operation. As memory such as ROM/RAM is integrated into a single IC chip, thus it is small in size.  It is used for controlling various machines.  The programming of both microcontrollers and microprocessors is almost similar.  They are used for Specific tasks  Example: Camera, washing machine, microwave oven
  • 9. 19.01.2025 Embedded System by Gadisa A. 9 Differentiate Microcontroller and Microprocessor
  • 10. 19.01.2025 Embedded System by Gadisa A. 10 Microcontrollers
  • 11. 19.01.2025 Embedded System by Gadisa A. 11 Advantages of Microcontroller Application Some of the benefits of microcontroller are:  High reliability and high degree of integration;  Reduction in size;  Reduced component count and manufacturing cost owner;  Shorter development time;  Shorter time to market;  Lower power consumption.
  • 12. 19.01.2025 Embedded System by Gadisa A. 12 Developing Embedded System
  • 13. 19.01.2025 Embedded System by Gadisa A. 13 Hardware Development
  • 14. 14
  • 15. 19.01.2025 Embedded System by Gadisa A. CHAPTER TWO EMBEDDED SYSTEM ARCHITECTURES 15 By Gadisa A.[MSc.]
  • 16. 19.01.2025 Embedded System by Gadisa A. 16 INTRODUCTION TO EMBEDDED SYSTEMS • Introduction to Embedded Systems • The Build process for embedded systems • Structural units in Embedded processor • Selection of processor • Selection of Memory devices
  • 17. 19.01.2025 Embedded System by Gadisa A. 17 Examples Embedded System
  • 18. 19.01.2025 Embedded System by Gadisa A. 18 Components in Embedded System •
  • 19. 19.01.2025 Embedded System by Gadisa A. 19 System A system is a way of working, organizing or doing one or many tasks, which are performed in a system according to a fixed plan, program or set or rules
  • 20. 19.01.2025 Embedded System by Gadisa A. 20 General Computing System Components • Microprocessor • Large memory • Input Units • Out put Units • Networking Units • An Operating System
  • 21. 19.01.2025 Embedded System by Gadisa A. 21 Embedded System An embedded system is a system that has embedded software in computer hardware. The system is dedicated to either an application(s) or a specific part of an application or product or a component of a large system Example. Washing machine Cooking machine Automative chocolate vending machines Multitasking toys
  • 22. 19.01.2025 Embedded System by Gadisa A. 22 Classification of Embedded System i. Small Scale Embedded Systems ii. Medium Scale Embedded Systems iii. Sophisticated Embedded Systems
  • 23. 19.01.2025 Embedded System by Gadisa A. 23 Embedded System Components • It embeds Hardware similar to a computer • Software usually embeds in the ROM, flash memory or media card • It embeds a Real Time Operation System (RTOS)
  • 24. 19.01.2025 Embedded System by Gadisa A. 24 Components of Embedded System Hardware
  • 25. 19.01.2025 Embedded System by Gadisa A. 25 Building Blocks of Embedded System Hardware • The Hardware consists of the following building blocks and devices: • Power source • Clock Oscillator and Clocking Units • System Timer • Real Time Cock • Reset Circuit • Power Up Reset • Memory • I/O ports • I/O buses • I/O Interfaces
  • 26. 19.01.2025 Embedded System by Gadisa A. 26 The Build Process • The first step is selecting a processor • The processor is selected from the following considerations  Instruction Set  Maximum bits in an operand in an operation  Clock frequency in MHz or GHz and the processing speed in Million Instructions per second.  Processor ability to solve the complex algorithms used in meeting the deadlines for their processing
  • 27. 19.01.2025 Embedded System by Gadisa A. 27 The Build Process • The build process for embedding software consists of the following steps  Project file consisting of source file and library files  Compilation of the project files  Linking all object files and locating them onto a single re-locatable object file  Converting the object file in a form called hex-file to a binary image
  • 28. 19.01.2025 Embedded System by Gadisa A. 28 The Build Process
  • 29. 19.01.2025 Embedded System by Gadisa A. 29 Abstraction of Steps in the Design Process
  • 30. 19.01.2025 Embedded System by Gadisa A. 30 Structural Units in Embedded Processor • Internal Buses:  It internally connects all the structural units inside the processor.  Its width can be 8,16,32 or 64 bits • Address Bus  It is the external bus that carries the address from the MAR to the memory as well as the IO devices and the other units of the system • Data Bus  It is an external bus that carries the data from or to the address • Control Bus  It is an external bus to carry the control signal between the processor and memory devices • Bus Interface Unit  It is the interface unit between the processor’s internal units with the external buses • MAR:  Memory Address Register  It holds the address of the byte or word to be fetched from external memories • MDR:  It holds the byte or word fetched from/to external memory or I/O address
  • 31. 19.01.2025 Embedded System by Gadisa A. 31 Structural Units in Embedded Processor • Program Counter  PC holds the memory address of the next instruction that would be executed. • Stack Pointer  It is a pointer for an address that corresponds to stack top in the memory • Instruction Register  It takes sequentially the instruction codes to the execution unit of the processor • Instruction Decoder  It decodes the instruction opcode received at the IR passes it to the processor CU • Instruction Queue  It is the queue of instruction so that the IR does not have to wait for the next instruction after one has been carried out
  • 32. 19.01.2025 Embedded System by Gadisa A. 32 Structural Units in Embedded Processor • Arithmetic and Logical Units  It is a unit to execute arithmetic and logical instruction according to the current instruction present in the IR • Floating Point Processing Unit (FPPU)  A unit separate from ALU for floating point processing which is essential in processing mathematical functions fast in a microprocessor or DSP • Floating Point Register Set(FPRS):  A register set dedicated to storing floating point numbers in a standard format and used by FPPU for its data and stack
  • 33. 19.01.2025 Embedded System by Gadisa A. 33 Structural Units in Embedded Processor • Control Unit  It controls all the bus activities and unit functions needed for processing • Memory Management Unit (MMU)  It manages the memory such that instruction and data are readily available for processing • Application Register Set  It is a set of on-chip registers used during processing the instruction of the application program of the user
  • 34. 19.01.2025 Embedded System by Gadisa A. 34 Structural Units in Embedded Processor • Instruction Cache  It sequentially stores, like an Instruction queue, the instructions in FIFO. • Data Cache  It stores the pre-fetched data from the external memory  The data cache generally holds both the key and the value together at the location
  • 35. 19.01.2025 Embedded System by Gadisa A. 35 Embedded System Characteristics  System functions in real time  Program is preloaded in the ROM(s) or flash memory  Dedicated set of functions  Complex dedicated purpose preprogrammed algorithms Hardware Graphics and Other user interfaces  Multirate operations with different predetermined time constraints to finish the different operations
  • 36. 19.01.2025 Embedded System by Gadisa A. 36 Constraints of Embedded Systems  Available System Memory  Available Processor Speed  Meeting Deadlines  Performance  Power  Size  Design and Manufacturing Cost
  • 37. 19.01.2025 Embedded System by Gadisa A. 37 Selection of Processor  Different systems require different processor features  The processor is selected from the following considerations  Instruction Set  Maximum bits in an operand in an operation  Processing Speed  Ability to solve complex algorithms  A processor gives high computing performance when it has Pipeline and Superscalar architecture Pre-fetch cache unit, caches, register files RISC core architecture
  • 38. 19.01.2025 Embedded System by Gadisa A. 38 Selection of Processor  A processor with register windows provides fast context switching in a multitasking system  Processor has auto shut-down features for its units  A processor with burst mode accesses external memories fast
  • 39. 19.01.2025 Embedded System by Gadisa A. 39 Selection of Memory Devices  Software designer coding is over and the ROM image file is ready, a hardware designer of a system is faced with the questions, of  what type of memory?  what to use?  how much size of each, should be to used???
  • 40. 19.01.2025 Embedded System by Gadisa A. 40 Selection of Memory Devices • Some of the Memory selection processes are,  Internal ROM  Internal EPROM  Internal EEPROM  Internal RAM  ROM Device  EPROM Device  EEPROM Device  Flash Device  RAM device
  • 41. 19.01.2025 Embedded System by Gadisa A. 41 Selection of Memory Devices • Masked ROM or EPROM stores the embedded software • EEPROM is used for testing and design stages and also is used to store the results during the system program run time • Flash stores the results byte by byte during a system run after a full sector erase • RAM is mostly used in SRAM form in a system • Sophisticated system use RAM in the form of DRAM and SDRAM.
  • 42. 19.01.2025 Embedded System by Gadisa A. 42 DMA  I/O devices need to transfer the data of other systems to the memory addresses in the system  A system may also need to transfer data to the IO devices  A Direct Memory Access is required when a block of data is to be transferred between two systems without the CPU intervening, except at the start and at the end
  • 43. 19.01.2025 Embedded System by Gadisa A. 43 DMA
  • 44. 19.01.2025 Embedded System by Gadisa A. 44 DMA • DMA supports 3 modes of operations  Single transfer at a time and then release of the hold on the system bus  Burst transfer at a time and then release of the hold on the system bus. A burst may be a few Kilo Bytes  Bulk transfer and then release of the hold on the system bus after the transfer is completed
  • 45. 19.01.2025 Embedded System by Gadisa A. 45 DMAC  DMA transfer is facilitated by the DMAC (DMA Controller)  Data transfer occurs efficiently between I/O devices and system memory with the least processor intervention using DMAC  The system address and data buses become unavailable to the processor and available to the IO device that connects DMAC
  • 46. 19.01.2025 Embedded System by Gadisa A. 46 Memory Management Methods How MMU works  Keep track of what part of memory are in use  Allocate memory to processes when needed  De-allocate when processes are done  Swapping or Paging between main memory and disk
  • 47. 19.01.2025 Embedded System by Gadisa A. 47 Memory Management Methods In general, memory management responsibilities include:  Managing the mapping between logical memory and task memory references  Determining which processes to load into the available memory space  Allocating and de-allocating memory for processes that make up the system  Tracking the memory usage of system components  Ensuring process memory protection
  • 48. 19.01.2025 Embedded System by Gadisa A. 48 User Memory Space  Because multiple processes are sharing the same physical memory when being loaded into RAM for processing, there also must be some protection mechanism so processes cannot unintentionally affect each other when being swapped in and out of a single physical memory space  The OS typically resolves these issues through “memory swapping” where partitions are swapped at run time.
  • 49. 19.01.2025 Embedded System by Gadisa A. 49 Segmentation  A process encapsulates all the information that is involved in executing a program, including source code, stack and data.  All of the different types of information within a process are divided into logical memory units of variable sizes called SEGMENTS  Most OS typically allow processes to have all or some combination of five types of information within segments such as  Code Segment  Data Segment  Block started by Symbol  Stack Segment  Heap Segment
  • 50. 50

Editor's Notes

  • #5: http://en.wikipedia.org/wiki/Microcontroller
  • #9: http://www.slideshare.net/engislam90/introduction-to-microcontrollers-and-embedded-systems