SlideShare a Scribd company logo
Introduction to embedded system
and
Internet of Things
Unit I
Mrs. K.M. Sanghavi
1.1 Embedded System
It is an electronic system which includes a single chip
microcomputer(Microcontrollers) like ARM, Cortex.
It is configured to perform certain dedicated application.
S/w is programmed into the on-chip ROM of the
microcontroller, to solve limited range of problems.
The microcontroller is embedded inside the system.
Embedded System…cont
In real
time
Accepts
input
Performs
computation
Generates
Output
Executes
Embedded System…cont
For eg. A typical mobile contains average of 10 microcontrollers
Modern houses approx. 150 microcontrollers per day.
Embedded system generally covers every branch from day-to-day science and
technology like communication, military, medical, consumer, machine control.
Eg. Cell phone, Digital camera , microwave, MP3 player, Automobile Anti
braking system.
1.2 Characteristics of Embedded
System
Speed (bytes/sec) :
should be high.
Power(watts) : Low
power tolerance
Size and weight : Small
size and low weight
Accuracy(0.9999) :
Must be very accurate
Adaptability : High
adaptability and
accessibility
Reliability : Must be
reliable for a longer
period of time
Categories of Embedded System
Stand
Alone
Real Time Networked Mobile
Stand Alone System
Works by itself : self-contained device
Does not require any host system like computer
Takes digital/ analog input , calibrates , converts and processes the
data and outputs the resulting data to its attached o/p device
Eg : MP3 players, digital cameras, Video game consoles, Microwave
oven
Real Time Systems
System which strictly follows time deadline
for completion of task is real time system
Two types of Real Time Systems Exist
• Soft : Violation of time constraint just degrades quality
of the system but the system continues to work
• Hard : Violation of time causes critical failure and loss of
life or property damage.
Soft Real System Examples
Hard Real Time
Delayed alarm during gas leakage
Failure in RADAR functioning
Deadline in missile control
Networked System
Related to n/w interface to access
resources
Connected n/w may be LAN , WAN and
connection can be wired or wireless
Eg : Home security system
Mobile Systems
• MP3 players, Mobiles, Cellphones, PDAs,
Digital cameras which have the limitation of
memory
ARM Processor & Its Architecture
ARM
ARM
processor
 An ARM processor is one of a family
of CPUs based on the RISC (reduced
instruction set computer) architecture
developed by Advanced RISC Machines
(ARM).
 ARM makes 32-bit and 64-bit RISC multi-
core processors
 RISC processors are designed to perform a
smaller number of types of
computer instructions so that they can
operate at a higher speed, performing
more millions of instructions per second
(MIPS).
ARM
Processor
 ARM processors are extensively used in
consumer electronic devices such
as smartphones, tablets, multimedia players
and other mobile devices, such
as wearables.
 Because of their reduced instruction set,
they require fewer transistors, which
enables a smaller die size for the
integrated circuitry (IC).
 The ARM processor’s smaller size, reduced
complexity and lower power
consumption makes them suitable for
increasingly miniaturized devices.
ARM
PROCESSOR
FEATURES
 Load/store architecture.
 An orthogonal instruction set.
 Mostly single-cycle execution.
 Enhanced power-saving design.
 64 and 32-bit execution states for
scalable high performance.
 Hardware virtualization support.
ARM Architecture
• ARM machines have a 32 bit Reduced Instruction
Set Computer (RISC) Load Store Architecture.
• The direct manipulation of memory isn’t
possible in this architecture and is done through
the use of registers.
• The instruction set offers many conditional and
other varieties of operations with the primary
focus being on reducing the number of cycles per
instruction featuring mostly single cycle
operations.
ARM Architecture….Contd[2]
The main Features of ARM7 is,
• 32/16-bit RISC architecture.
• 32-bit ARM instruction set for maximum performance and
flexibility.
• 16-bit Thumb instruction set for increased code density.
• Unified bus interface, 32-bit data bus carries both instructions and
data.
• Three-stage pipeline : FETCH, DECODE and EXECUTE.
• 32-bit ALU.
• Very small die size and low power consumption.
• Fully static operation.
• Coprocessor interface.
• Extensive debug facilities (Embedded ICE debug unit accessible via
JTAG interface unit) : that allows programs to be downloaded and
fully debugged in-system.
ARM Architecture
ARM Architecture….Contd
• Control over both the Arithmetic Logic Unit (ALU)
and shifter in most data-processing instructions
to maximize the use of an ALU and a shifter.
• Auto-increment and auto-decrement addressing
modes to optimize program loops.
• Load and Store Multiple instructions to maximize
data throughput.
• Conditional execution of almost all instructions to
maximize execution throughput
• ARM has 31 general-purpose 32-bit registers,
At any one time, 16 of these registers are
visible
• These registers are used by all unprivileged
code.(User mode Registers) i.e less access to
memory and coprocessor
Privileged execution modes
• Fast interrupt processing mode Used when processor
receives an interrupt signal from the designated fast
interrupt source.
• Normal interrupt processing mode: When processor
receives an interrupt signal from any other interrupt
source.
• Software interrupt mode : When the processor encounters
a software interrupt instruction.
• Undefined instruction mode :When the processor
attempts to execute an instruction that is supported
neither by the main integer core nor by one of the
coprocessors.
• System mode is used for running privileged operating
system tasks.
• Abort mode is : When memory fault exists
ARM SOC..>System On CHip
• Whole system on a small single chip.
• It is called as an IC that holds together memory,
clock, GPIO pins, digital and analog pins and the
processor at its core.
• A microcontroller, microprocessor or DSP core(s).
Some SoCs—called multiprocessor system on chip
(MPSoC)—include more than one processor core.
• Memory blocks including a selection of ROM, RAM,
EEPROM and flash memory.
ARM SOC..>System On CHip
• Timing sources including oscillators and phase-
locked loops.
• Peripherals including counter-timers, real-time
timers and power-on reset generators.
• External interfaces including industry standards
such as USB, FireWire, Ethernet, USART, SPI.
• Analog interfaces including ADCs and DACs.
• Voltage regulators and power management circuits
ARM Register Set
Num of Registers : Total 37 registers. 20 (banked) not visible at all
times. Min 17 visible in all modes. 16 general purpose, 1 status
related.
Banked Registers: Each mode has a set of extra registers called
banked registers. Banked registers are swapped in whenever mode
change happens.
R13 - SP; holds stack head in the current processor mode.
R14 - LR( points to the return address when calling subroutine)
R15 - PC. Program counter. Contains the address of the next
instruction to be fetched by the processor.
In addition to the main registers there is also a status register:
CPSR is the current program status register. This holds flags:
results of arithmetic and logical operations.
CPSR Of ARM
ARM Instruction Set
ARM Instruction Set
ARM Instruction Set
ARM Reference
[1] https:// www. computerhope.com /jargon /a/
arm.htm
[2]
https://www.pantechsolutions.net/microcontroller-
tutorials/getting-started-with-arm-architecture
[3]
http://users.ece.utexas.edu/~valvano/EE345M/Arm_E
E382N_4.pdf
Real Time Systems
Mrs. K.M. Sanghavi
MultiTasking is done by a controller using a scheduler
Most Important Aspect of Real Time
System
Types of Real Time Systems
Hard …Follows Absolute Deadline (i.e Task must
Perform its Operation in a certain time) . These
have time constraints.
Soft …Follows Relaxed Deadline (i.e Task should
Perform its Operation in a certain time or so.).
These do not follow time constraints strictly.
Hence Real Time Systems use the concept of Priority
Real Time Scheduling
Mrs. K.M. Sanghavi
Real Time Scheduling Times
• Arrival Term
• Ready Time
• Scheduling Time
• Burst / Run Time
• Waiting Time
• Completion Time
• Deadline Time
• Tardiness : When Task misses the deadline
– Completion Time - Deadline
• Laxity : Task follows Deadline
– Deadline – Completion Time
RM DM
Rate Monotic
• Rate Monotonic refers to assigning priorities as a monotonic
function of the rate (frequency of occurrence) of those
processes.
• Rate Monotonic Scheduling (RMS) can be accomplished based
upon rate monotonic principles.
• Priority and Time period are inversely proportional
• Higher the time period lower the priority.
• This is a preemptive static priority algorithm.
Frank Drews Real-Time Systems
Rate Monotonic Analysis: Assumptions
A1: Tasks are periodic (activated at a constant rate).
Period = Interval between two consecutive activations of task
A2: All instances of a periodic task have
the same computation time
A3: All instances of a periodic task have the same relative deadline,
which is equal to the period
A4: All tasks are independent
(i.e., no precedence constraints and no resource constraints)
Implicit assumptions:
A5: Tasks are preemptable
A6: No task can suspend itself
A7: All tasks are released as soon as they arrive
A8: All overhead in the kernel is assumed to be zero (or part of )
i
P i
T
i
T
i
C
i
T
)
( i
i P
D 
i
C
Rate Monotonic Algorithm
Algorithm
to schedule
priority
tasks
It is based on
priorities
A Higher
priority
process will
preempt a
lower priority
process
Process Burst Time Period
P1 2 10
P2 1 5
P3 5 30
P4 2 15
Utilization Bound (UB) Test
Processor Utilization for a task, i Ui =
Ci
Ti
Utilization Bound for n tasks U(n) = n(2 - 1)
1
n
Results:
• If S Ui ≤ U(n) then the set of tasks is schedulable.
• If S Ui > 1 then the set of tasks is unschedulable.
• If U(n) < S Ui ≤ 1 then the test is inconclusive.
RMA
• For that we need to use two formulas and check
L.H.S (CPU Utilization) <= R.H.S (Utilization Bound Tasks) :
≤
RMA
• Will never miss a deadline if RMA is applied
• Now Schedule the task
Process Burst Time Period
P1 2 10
P2 1 5
P3 5 30
P4 2 15
Process Burst Time Period
P1 2 10
P2 1 5
P3 5 30
P4 2 15
Example
Process Burst Time Period
P1 2 10
P2 4 15
P3 10 35
≤
Deadline Monotonic Algorithm
• Deadline Monotonic refers to
assigning higher priorities to the task
having less deadline
• This is a preemptive static priority
algorithm.
Deadline Monotonic Algorithm
Dynamic Algorithm….
Earliest DeadLine First
• Similar to Deadline Monotonic Algorithm but only priorities change
dynamically.
• This is a preemptive dynamic priority algorithm.
• For this we have to perform a schedulability test, as follows :
𝐶𝑖
𝑇𝑖
𝑛
𝑖=1
≤ 1
Dynamic Algorithm….
Earliest DeadLine First
Dynamic Algorithm….
Least Laxity First
• This is a preemptive dynamic priority algorithm.
• For this we have to calculate Laxity for Each task
at each time unit as follows :
L(t) = Deadline – current time – Remaining
Execution time of a Task
Dynamic Algorithm….
Least Laxity First
Dynamic Algorithm….
Least Laxity First

More Related Content

Similar to Unit-I_ES.pdf

MES PPT.pptx
MES PPT.pptxMES PPT.pptx
MES PPT.pptx
kavithadcs
 
Introduction to Embedded C++.pptx
Introduction to Embedded C++.pptxIntroduction to Embedded C++.pptx
Introduction to Embedded C++.pptx
MohamedSaied316569
 
5_Embedded Systems مختصر.pdf
5_Embedded Systems  مختصر.pdf5_Embedded Systems  مختصر.pdf
5_Embedded Systems مختصر.pdf
aliamjd
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
Embeddedbvp
 
Embedded systems basics
Embedded systems basicsEmbedded systems basics
Embedded systems basics
Mathivanan Natarajan
 
Embedded system
Embedded systemEmbedded system
Embedded system
Anmol Bagga
 
Embeddedsystem
EmbeddedsystemEmbeddedsystem
Embeddedsystem
anshul parmar
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1
AJAL A J
 
Arm arc-2016
Arm arc-2016Arm arc-2016
Arm arc-2016
Mohammed Gomaa
 
Arm processor
Arm processorArm processor
Arm processor
SHREEHARI WADAWADAGI
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
Dr M Muruganandam Masilamani
 
PILOT Session for Embedded Systems
PILOT Session for Embedded Systems PILOT Session for Embedded Systems
PILOT Session for Embedded Systems
Mohamed Al-Emam, PMP®, CAP®
 
Dsp ajal
Dsp  ajalDsp  ajal
Dsp ajal
AJAL A J
 
Processors
ProcessorsProcessors
Processors
HIMANSHU JAIN
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLER
Ankita Jaiswal
 
Uc1(vii sem)
Uc1(vii sem)Uc1(vii sem)
Uc1(vii sem)
Ankita Jaiswal
 
AVR_Course_Day4 introduction to microcontroller
AVR_Course_Day4 introduction to microcontrollerAVR_Course_Day4 introduction to microcontroller
AVR_Course_Day4 introduction to microcontroller
Mohamed Ali
 
Wireless energy meter monitoring with automated tariff calculation
Wireless energy meter monitoring with automated tariff calculationWireless energy meter monitoring with automated tariff calculation
Wireless energy meter monitoring with automated tariff calculation
Udayalakshmi JK
 
Arm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furberArm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furber
asodariyabhavesh
 
Summer training embedded system and its scope
Summer training  embedded system and its scopeSummer training  embedded system and its scope
Summer training embedded system and its scope
Arshit Rai
 

Similar to Unit-I_ES.pdf (20)

MES PPT.pptx
MES PPT.pptxMES PPT.pptx
MES PPT.pptx
 
Introduction to Embedded C++.pptx
Introduction to Embedded C++.pptxIntroduction to Embedded C++.pptx
Introduction to Embedded C++.pptx
 
5_Embedded Systems مختصر.pdf
5_Embedded Systems  مختصر.pdf5_Embedded Systems  مختصر.pdf
5_Embedded Systems مختصر.pdf
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Embedded systems basics
Embedded systems basicsEmbedded systems basics
Embedded systems basics
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
Embeddedsystem
EmbeddedsystemEmbeddedsystem
Embeddedsystem
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1
 
Arm arc-2016
Arm arc-2016Arm arc-2016
Arm arc-2016
 
Arm processor
Arm processorArm processor
Arm processor
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
 
PILOT Session for Embedded Systems
PILOT Session for Embedded Systems PILOT Session for Embedded Systems
PILOT Session for Embedded Systems
 
Dsp ajal
Dsp  ajalDsp  ajal
Dsp ajal
 
Processors
ProcessorsProcessors
Processors
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLER
 
Uc1(vii sem)
Uc1(vii sem)Uc1(vii sem)
Uc1(vii sem)
 
AVR_Course_Day4 introduction to microcontroller
AVR_Course_Day4 introduction to microcontrollerAVR_Course_Day4 introduction to microcontroller
AVR_Course_Day4 introduction to microcontroller
 
Wireless energy meter monitoring with automated tariff calculation
Wireless energy meter monitoring with automated tariff calculationWireless energy meter monitoring with automated tariff calculation
Wireless energy meter monitoring with automated tariff calculation
 
Arm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furberArm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furber
 
Summer training embedded system and its scope
Summer training  embedded system and its scopeSummer training  embedded system and its scope
Summer training embedded system and its scope
 

Recently uploaded

Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
JomonJoseph58
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025
khuleseema60
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
RamseyBerglund
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
Iris Thiele Isip-Tan
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
David Douglas School District
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
nitinpv4ai
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.
IsmaelVazquez38
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
nitinpv4ai
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17
Celine George
 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
heathfieldcps1
 
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
RidwanHassanYusuf
 

Recently uploaded (20)

Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.Bossa N’ Roll Records by Ismael Vazquez.
Bossa N’ Roll Records by Ismael Vazquez.
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17
 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
 
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
 

Unit-I_ES.pdf

  • 1. Introduction to embedded system and Internet of Things Unit I Mrs. K.M. Sanghavi
  • 2.
  • 3.
  • 4. 1.1 Embedded System It is an electronic system which includes a single chip microcomputer(Microcontrollers) like ARM, Cortex. It is configured to perform certain dedicated application. S/w is programmed into the on-chip ROM of the microcontroller, to solve limited range of problems. The microcontroller is embedded inside the system.
  • 6.
  • 7. Embedded System…cont For eg. A typical mobile contains average of 10 microcontrollers Modern houses approx. 150 microcontrollers per day. Embedded system generally covers every branch from day-to-day science and technology like communication, military, medical, consumer, machine control. Eg. Cell phone, Digital camera , microwave, MP3 player, Automobile Anti braking system.
  • 8.
  • 9.
  • 10. 1.2 Characteristics of Embedded System Speed (bytes/sec) : should be high. Power(watts) : Low power tolerance Size and weight : Small size and low weight Accuracy(0.9999) : Must be very accurate Adaptability : High adaptability and accessibility Reliability : Must be reliable for a longer period of time
  • 11. Categories of Embedded System Stand Alone Real Time Networked Mobile
  • 12. Stand Alone System Works by itself : self-contained device Does not require any host system like computer Takes digital/ analog input , calibrates , converts and processes the data and outputs the resulting data to its attached o/p device Eg : MP3 players, digital cameras, Video game consoles, Microwave oven
  • 13. Real Time Systems System which strictly follows time deadline for completion of task is real time system Two types of Real Time Systems Exist • Soft : Violation of time constraint just degrades quality of the system but the system continues to work • Hard : Violation of time causes critical failure and loss of life or property damage.
  • 14. Soft Real System Examples
  • 15. Hard Real Time Delayed alarm during gas leakage Failure in RADAR functioning Deadline in missile control
  • 16. Networked System Related to n/w interface to access resources Connected n/w may be LAN , WAN and connection can be wired or wireless Eg : Home security system
  • 17. Mobile Systems • MP3 players, Mobiles, Cellphones, PDAs, Digital cameras which have the limitation of memory
  • 18. ARM Processor & Its Architecture
  • 19. ARM
  • 20. ARM processor  An ARM processor is one of a family of CPUs based on the RISC (reduced instruction set computer) architecture developed by Advanced RISC Machines (ARM).  ARM makes 32-bit and 64-bit RISC multi- core processors  RISC processors are designed to perform a smaller number of types of computer instructions so that they can operate at a higher speed, performing more millions of instructions per second (MIPS).
  • 21. ARM Processor  ARM processors are extensively used in consumer electronic devices such as smartphones, tablets, multimedia players and other mobile devices, such as wearables.  Because of their reduced instruction set, they require fewer transistors, which enables a smaller die size for the integrated circuitry (IC).  The ARM processor’s smaller size, reduced complexity and lower power consumption makes them suitable for increasingly miniaturized devices.
  • 22. ARM PROCESSOR FEATURES  Load/store architecture.  An orthogonal instruction set.  Mostly single-cycle execution.  Enhanced power-saving design.  64 and 32-bit execution states for scalable high performance.  Hardware virtualization support.
  • 23. ARM Architecture • ARM machines have a 32 bit Reduced Instruction Set Computer (RISC) Load Store Architecture. • The direct manipulation of memory isn’t possible in this architecture and is done through the use of registers. • The instruction set offers many conditional and other varieties of operations with the primary focus being on reducing the number of cycles per instruction featuring mostly single cycle operations.
  • 24. ARM Architecture….Contd[2] The main Features of ARM7 is, • 32/16-bit RISC architecture. • 32-bit ARM instruction set for maximum performance and flexibility. • 16-bit Thumb instruction set for increased code density. • Unified bus interface, 32-bit data bus carries both instructions and data. • Three-stage pipeline : FETCH, DECODE and EXECUTE. • 32-bit ALU. • Very small die size and low power consumption. • Fully static operation. • Coprocessor interface. • Extensive debug facilities (Embedded ICE debug unit accessible via JTAG interface unit) : that allows programs to be downloaded and fully debugged in-system.
  • 26. ARM Architecture….Contd • Control over both the Arithmetic Logic Unit (ALU) and shifter in most data-processing instructions to maximize the use of an ALU and a shifter. • Auto-increment and auto-decrement addressing modes to optimize program loops. • Load and Store Multiple instructions to maximize data throughput. • Conditional execution of almost all instructions to maximize execution throughput
  • 27. • ARM has 31 general-purpose 32-bit registers, At any one time, 16 of these registers are visible • These registers are used by all unprivileged code.(User mode Registers) i.e less access to memory and coprocessor
  • 28. Privileged execution modes • Fast interrupt processing mode Used when processor receives an interrupt signal from the designated fast interrupt source. • Normal interrupt processing mode: When processor receives an interrupt signal from any other interrupt source. • Software interrupt mode : When the processor encounters a software interrupt instruction. • Undefined instruction mode :When the processor attempts to execute an instruction that is supported neither by the main integer core nor by one of the coprocessors. • System mode is used for running privileged operating system tasks. • Abort mode is : When memory fault exists
  • 29. ARM SOC..>System On CHip • Whole system on a small single chip. • It is called as an IC that holds together memory, clock, GPIO pins, digital and analog pins and the processor at its core. • A microcontroller, microprocessor or DSP core(s). Some SoCs—called multiprocessor system on chip (MPSoC)—include more than one processor core. • Memory blocks including a selection of ROM, RAM, EEPROM and flash memory.
  • 30.
  • 31. ARM SOC..>System On CHip • Timing sources including oscillators and phase- locked loops. • Peripherals including counter-timers, real-time timers and power-on reset generators. • External interfaces including industry standards such as USB, FireWire, Ethernet, USART, SPI. • Analog interfaces including ADCs and DACs. • Voltage regulators and power management circuits
  • 32.
  • 33. ARM Register Set Num of Registers : Total 37 registers. 20 (banked) not visible at all times. Min 17 visible in all modes. 16 general purpose, 1 status related. Banked Registers: Each mode has a set of extra registers called banked registers. Banked registers are swapped in whenever mode change happens. R13 - SP; holds stack head in the current processor mode. R14 - LR( points to the return address when calling subroutine) R15 - PC. Program counter. Contains the address of the next instruction to be fetched by the processor. In addition to the main registers there is also a status register: CPSR is the current program status register. This holds flags: results of arithmetic and logical operations.
  • 34.
  • 39. ARM Reference [1] https:// www. computerhope.com /jargon /a/ arm.htm [2] https://www.pantechsolutions.net/microcontroller- tutorials/getting-started-with-arm-architecture [3] http://users.ece.utexas.edu/~valvano/EE345M/Arm_E E382N_4.pdf
  • 40. Real Time Systems Mrs. K.M. Sanghavi
  • 41.
  • 42.
  • 43. MultiTasking is done by a controller using a scheduler
  • 44. Most Important Aspect of Real Time System
  • 45. Types of Real Time Systems Hard …Follows Absolute Deadline (i.e Task must Perform its Operation in a certain time) . These have time constraints. Soft …Follows Relaxed Deadline (i.e Task should Perform its Operation in a certain time or so.). These do not follow time constraints strictly. Hence Real Time Systems use the concept of Priority
  • 46. Real Time Scheduling Mrs. K.M. Sanghavi
  • 47. Real Time Scheduling Times • Arrival Term • Ready Time • Scheduling Time • Burst / Run Time • Waiting Time • Completion Time • Deadline Time • Tardiness : When Task misses the deadline – Completion Time - Deadline • Laxity : Task follows Deadline – Deadline – Completion Time
  • 48. RM DM
  • 49. Rate Monotic • Rate Monotonic refers to assigning priorities as a monotonic function of the rate (frequency of occurrence) of those processes. • Rate Monotonic Scheduling (RMS) can be accomplished based upon rate monotonic principles. • Priority and Time period are inversely proportional • Higher the time period lower the priority. • This is a preemptive static priority algorithm.
  • 50. Frank Drews Real-Time Systems Rate Monotonic Analysis: Assumptions A1: Tasks are periodic (activated at a constant rate). Period = Interval between two consecutive activations of task A2: All instances of a periodic task have the same computation time A3: All instances of a periodic task have the same relative deadline, which is equal to the period A4: All tasks are independent (i.e., no precedence constraints and no resource constraints) Implicit assumptions: A5: Tasks are preemptable A6: No task can suspend itself A7: All tasks are released as soon as they arrive A8: All overhead in the kernel is assumed to be zero (or part of ) i P i T i T i C i T ) ( i i P D  i C
  • 51. Rate Monotonic Algorithm Algorithm to schedule priority tasks It is based on priorities A Higher priority process will preempt a lower priority process Process Burst Time Period P1 2 10 P2 1 5 P3 5 30 P4 2 15
  • 52. Utilization Bound (UB) Test Processor Utilization for a task, i Ui = Ci Ti Utilization Bound for n tasks U(n) = n(2 - 1) 1 n Results: • If S Ui ≤ U(n) then the set of tasks is schedulable. • If S Ui > 1 then the set of tasks is unschedulable. • If U(n) < S Ui ≤ 1 then the test is inconclusive.
  • 53. RMA • For that we need to use two formulas and check L.H.S (CPU Utilization) <= R.H.S (Utilization Bound Tasks) : ≤
  • 54. RMA • Will never miss a deadline if RMA is applied
  • 55. • Now Schedule the task Process Burst Time Period P1 2 10 P2 1 5 P3 5 30 P4 2 15
  • 56. Process Burst Time Period P1 2 10 P2 1 5 P3 5 30 P4 2 15
  • 57. Example Process Burst Time Period P1 2 10 P2 4 15 P3 10 35 ≤
  • 58. Deadline Monotonic Algorithm • Deadline Monotonic refers to assigning higher priorities to the task having less deadline • This is a preemptive static priority algorithm.
  • 60. Dynamic Algorithm…. Earliest DeadLine First • Similar to Deadline Monotonic Algorithm but only priorities change dynamically. • This is a preemptive dynamic priority algorithm. • For this we have to perform a schedulability test, as follows : 𝐶𝑖 𝑇𝑖 𝑛 𝑖=1 ≤ 1
  • 62. Dynamic Algorithm…. Least Laxity First • This is a preemptive dynamic priority algorithm. • For this we have to calculate Laxity for Each task at each time unit as follows : L(t) = Deadline – current time – Remaining Execution time of a Task