SlideShare a Scribd company logo
Introduction to Embedded
Systems
Lecture 1
Date 8/9/2010
Subject Code: 710409
Subject Name: Embedded Systems
Course Hand Out
Topic
No.
Name of the Topic
1 Introduction to Embedded system design (ESD) and Products; Requirements of
Embedded controller core and Memories, DRAM Controller
2 Introduction to ARM7 controllers and architecture (Timers, interrupts, UART,
SPI, details)
3 Embedded Programming (cross compiler, Hardware Emulation, C and assembly
interfacing)
4 Introduction to serial data transfer standards, SCI, SPI, UART, USB technologies,
JTAG interface
5 Signal conditioning, interfacing with real world peripherals, ADC and DAC
interfacing
6 Real Time Operating System Concepts (Scheduler Algorithms, Multitasking,
Threading)
7 Applications and studies: Phones, PDAs, ATM, Digital Cameras, J2ME of
Embedded systems
8 Seminars on relevant topics
List of Books
Text Books
1 Title
Author
Publisher
Embedded Microcomputer Systems
Real Time Interfacing
Jonathan W. Valvano
Thomson Books
2 Title
Author
Publisher
Embedded Systems Design, 2nd edition
Steve Heath
Newnws ( Elsevier )
Reference Books
1 Title
Author
Publisher
The 8051 Microcontroller
K J Ayala
Penram Intl.
2 Title
Author
Publisher
Embedded Systems: Architecture, Programming and
Design
Raj Kumar
Mc Graw Hill
3 Title
Author
Publisher
Embedded/Real Time Systems: Concept, Design and
Programming
Dr. K V K K Prasad
Dreamtech Press
4 Title:
Author:
Publisher:
Embedded Systems Architecture : A Comprehensive
Guide for Engineers and Programmers
Tammy Noergaard
Newnws (Elsevier)
What is an Embedded System
An Embedded System is a microprocessor based
system that is embedded as a subsystem, in a
larger system (which may or may not be a
computer system).
O
I
• Monitoring / controlling the physical world.
• A user can make choices concerning
functionality but cannot change the
functionality of the system by adding /
replacing software
• It is having capability to provide upgradation
about the functionality
Application areas
• Automotive electronics
• Aircraft electronics
• Trains
• Telecommunication
Application areas
• Authentication
• Military applications
• Medical systems
Application areas
• Consumer electronics
• Smart buildings
• Fabrication equipment
Essential Components
• Microprocessor / DSP
• Sensors
• Converters (A-D and D-A)
• Actuators
• Memory (On-chip and Off chip)
• Communication path with the interacting
environment
Embedded System Structure
(Generic)
Memory
Processor &
ASICs
A-
D
Sensor
D-
A
Actuator
Characteristics of Microcontroller to
design an embedded system
• Low cost
• Low speed, on the order of 10 KHz – 20 MHz
• Low Power, extremely low power in sleep mode
• Small architecture, usually an 8-bit architecture
• Small memory size, but usually enough for the type of
application it is intended for. Onboard Flash.
• Limited I/O, but again, enough for the type of application
intended for
Example – Weighing scale
Harvard Architecture
1) Harvard Architecture refers to a memory structure where the
processor is connected to two different memory banks via two sets
of buses
2) This is to provide the processor with two distinct data paths, one for
instruction and one for data
3) Through this scheme, the CPU can read both an instruction and data
from the respective memory banks at the same time
4) A Harvard architecture computer can thus be faster for a given
circuit complexity because instruction fetches and data access do not
contend for a single memory pathway.
5) The cost of such a system is complexity in hardware Commonly used
in DSPs.
Von – Neumann Architecture
1) A Von-Neumann Machine, in contrast to the Harvard Architecture
provides one data path (bus) for both instruction and data
2) As a result, the CPU can either be fetching an instruction from memory, or
read/writing data to it
3) Other than less complexity of hardware, it allows for using a single,
sequential memory.
4) Today’s processing speeds vastly outpace memory access times, and we
employ a very fast but small amount of memory (cache) local to the
processor
5) Modern processors employ a Harvard Architecture to read from two
instruction and data caches, when at the same time using a Von-Neumann
Architecture to access external memory
Big vs. Little Endian format of storing
data in memory
Although numbers are always displayed in the same way,
they are not stored in the same way in memory
Big-Endian machines store the most significant byte of data
in the lowest memory address
Little-Endian machines on the other hand, store the least
significant byte of data in the lowest memory address
A Big-Endian machine stores
0x12345678 as:
A Little-Endian machine
stores 0x12345678 as:
ADD+0: 0x12
ADD+1: 0x34
ADD+2: 0x56
ADD+3: 0x78
ADD+0: 0x78
ADD+1: 0x56
ADD+2: 0x34
ADD+3: 0x12
Contd.
The Intel family of Microprocessors and processors from
Digital Equipment Corporation use Little-Endian Mode
Whereas Architectures from Sun, IBM, and Motorola are
Big-Endian
Architectures such as PowerPC, MIPS, and Intel’s IA- 64
are Bi-Endian, supporting either mode
Characteristics of Embedded Systems
Embedded Systems, unlike a PC, never “exit” an
application
They idle through an Infinite Loop waiting for an
event to happen in the form of an interrupt, or a pre-
scheduled task
In order to save power, some processors enter special
sleep or wait modes instead of idling through an
Infinite Loop, but they will come out of this mode
upon either a timer or an External Interrupt
Essential Considerations
• Response Time -- Real Time Systems
• Area
• Cost
• Portability
• Low Power (Battery Life)
ES, MS and RTS
• All embedded systems are microprocessor based systems,
but all microprocessor based systems may not be amenable
to embedding (Area, Power, Cost, Payload parameters).
• Most of the embedded systems have real time constraints,
but there may be ES which are not hard RTS (for example
off line Palm tops)
• There may be RTS which are not embedded (e.g. Separate
Process Control Computers in a network)
• Embedded Systems are not general purpose systems; they
are designed for dedicated applications with specific
interfaces with the sphere of control
Hard Real vs. Soft Real
• The correctness of the system depends not
only on the results of computations, but also
on the time at which the results are produced.
• Hard real time system are time bounded while
soft real time systems are not.
A real-time system in which a missed deadline causes
the work performed to have no value or to result in a
catastrophic event.
A real-time system in which a missed deadline does not
compromise the integrity of the system or result in a catastrophic
event.
Examples
• Hard real time systems
1. Traffic signal controllers
2. Anti-Lock brake systems
3. Manufacturing plant controllers
4. Medical devices
• Soft real time systems
1. Set Top Boxes
2. Consumer Electronics
General Characteristics of Embedded Systems
• Perform a single task
– Usually not general purpose
• Increasingly high performance and real time constrained
• Power, cost and reliability are important considerations
• HW-SW systems
– Software is used for more features and flexibility
– Hardware (processors, ASICs, memory etc. are used for
performance and security
General Characteristics of Embedded Systems
(contd.)
ASIC s
Processor
Cores
ASIPs and ASICs form a significant component
– Adv: customization  lower power, cost and enhanced performance
– Disadv: higher development effort (debuggers, compilers etc.) and
larger time to market
Mem
Analog IO
Digital
Lecture 2
Requirement of Embedded
Microcontroller Core
What is a Microcontroller
• Flash + RAM on the chip
• Ports with sufficient driving capacity
• Timers
• Interrupts
• Serial data transfer engines like SPI, UART, I2C
• For DSP applications DMA controller and MAC
unit
Memory Requirements
• Flash memory holds the program code
• RAM will hold the dynamic data associated with the
program
• Boot loader resides in flash that helps in
communicating with program in PC to load the
application program in flash
• Microcontrollers generally do not use ROM but rather
EEPROM is provided as flash on the chip
• External Memory interfacing is avoided due to varities
of option available from each manufacturer in the form
of required flash memory on the core. For example
8051 (4KB), 8052(8KB), 8055(20KB), P89c51RD2(64KB).
Port Requirements
• In case of 8085 based system we need to have
8255 to assign a port to input or output
device.
• In embedded system we want the port
structure on the core of microcontroller.
Hence Micon. will have port structure defined
on it.
• To save the pins the ports have dual pin
functions.
• Ports are bidirectional with latch for output as
well as if possible having sufficient driving
capacity (but not necessary)
• Port pins are bit addressable
Timer Requirements
• Timer is present on the core to generate
timing signals for various peripherals like ADC,
RTC, SPI, UART etc.
• The frequency of timer is programmable.
• Timer must have interrupt associated with its
operation.
• Watch dog timer in debugging environment.
• Timer as counter to count external events.
Multiplexed Display with timer
Interrupts
• Polled I/O is slower hence Interrupt driven data
transfer is better approach.
• Hardware / Software Interrupt.
• Exceptions
• Important activities on the architectural level are
associated with Interrupt to reduce the tasks
handled by Main program.
• Multitasking is implemented with the help of
Interrupts in Real Time Operating System
Environment.
Interrupt can be associated with following
kind of activities:
Timer overflow
ADC conversion completed
Data is received on UART port
Some port pin is activated with active signal.
Etc…….
Interrupts with Timer
• When a timing event is generated Interrupt
occurs.
• Timing events
(a) Roll over of the timer
(b) Timer count = Match register
Idle / Power Down Modes
• Power can be shut down to selected segments
of the architecture.
• Retention of the RAM contents is followed in
the power down modes.
• In “Embedded Operating Systems”
environment, power down mode saves power
in between successive systems ‘ticks’.
• Hardware reset or interrupt can be used to
quit the power down mode.
Philosophy of Microcontrollers
• Special Function Registers enable / disable the
resources as per requirement.
• The functioning associated with the resources
(ADC, Timer etc.) are controlled by the
respective SFRs.
• This controls the power consumption.
• This also makes it possible for dual / triple pin
functions.

More Related Content

Similar to Introduction to embedded System.pptx

Mces MOD 1.pptx
Mces MOD 1.pptxMces MOD 1.pptx
Mces MOD 1.pptx
RadhaC10
 
Fundamentals of Internet of Things (IoT)
Fundamentals of Internet of Things (IoT)Fundamentals of Internet of Things (IoT)
Fundamentals of Internet of Things (IoT)
Chandrakant Divate
 
Processors selection
Processors selectionProcessors selection
Processors selection
Pradeep Shankhwar
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
Manju Nathan
 
Microprocessor & microcontroller
Microprocessor & microcontroller Microprocessor & microcontroller
Microprocessor & microcontroller Nitesh Kumar
 
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®
 
Challenges in Embedded Computing
Challenges in Embedded ComputingChallenges in Embedded Computing
Challenges in Embedded Computing
Pradeep Kumar TS
 
Embedded systems
Embedded systems Embedded systems
Embedded systems
Ashok Mutyala
 
Embedded systems introduction
Embedded systems introductionEmbedded systems introduction
Embedded systems introduction
mohamed drahem
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1
AJAL A J
 
13. Module-3-Embedded systems.pptx
13. Module-3-Embedded systems.pptx13. Module-3-Embedded systems.pptx
13. Module-3-Embedded systems.pptx
Chaitanya Jambotkar
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
Dr M Muruganandam Masilamani
 
MODULE4_MES.pdf
MODULE4_MES.pdfMODULE4_MES.pdf
MODULE4_MES.pdf
PoojaPK8
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I Core of Embedded Systems
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I   Core of Embedded SystemsSYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I   Core of Embedded Systems
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I Core of Embedded Systems
Arti Parab Academics
 
Embedded Systems - Training ppt
Embedded Systems - Training pptEmbedded Systems - Training ppt
Embedded Systems - Training ppt
Nishant Kayal
 
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdfmicroprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
MECHANICALENGINEERIN19
 
Low cost embedded system
Low cost embedded systemLow cost embedded system
Low cost embedded system
ece svit
 
Embedded System Basics - Introduction.ppt
Embedded System Basics - Introduction.pptEmbedded System Basics - Introduction.ppt
Embedded System Basics - Introduction.ppt
alaakaraja1
 
1334420 634648164164717500
1334420 6346481641647175001334420 634648164164717500
1334420 634648164164717500
sumit tiwari
 

Similar to Introduction to embedded System.pptx (20)

Mces MOD 1.pptx
Mces MOD 1.pptxMces MOD 1.pptx
Mces MOD 1.pptx
 
Fundamentals of Internet of Things (IoT)
Fundamentals of Internet of Things (IoT)Fundamentals of Internet of Things (IoT)
Fundamentals of Internet of Things (IoT)
 
Processors selection
Processors selectionProcessors selection
Processors selection
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Microprocessor & microcontroller
Microprocessor & microcontroller Microprocessor & microcontroller
Microprocessor & microcontroller
 
PILOT Session for Embedded Systems
PILOT Session for Embedded Systems PILOT Session for Embedded Systems
PILOT Session for Embedded Systems
 
Challenges in Embedded Computing
Challenges in Embedded ComputingChallenges in Embedded Computing
Challenges in Embedded Computing
 
Embedded systems
Embedded systems Embedded systems
Embedded systems
 
Embedded systems introduction
Embedded systems introductionEmbedded systems introduction
Embedded systems introduction
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1
 
13. Module-3-Embedded systems.pptx
13. Module-3-Embedded systems.pptx13. Module-3-Embedded systems.pptx
13. Module-3-Embedded systems.pptx
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
 
MODULE4_MES.pdf
MODULE4_MES.pdfMODULE4_MES.pdf
MODULE4_MES.pdf
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I Core of Embedded Systems
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I   Core of Embedded SystemsSYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I   Core of Embedded Systems
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT I Core of Embedded Systems
 
Embedded Systems - Training ppt
Embedded Systems - Training pptEmbedded Systems - Training ppt
Embedded Systems - Training ppt
 
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdfmicroprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
 
Low cost embedded system
Low cost embedded systemLow cost embedded system
Low cost embedded system
 
Embedded System Basics - Introduction.ppt
Embedded System Basics - Introduction.pptEmbedded System Basics - Introduction.ppt
Embedded System Basics - Introduction.ppt
 
1334420 634648164164717500
1334420 6346481641647175001334420 634648164164717500
1334420 634648164164717500
 

More from Pratik Gohel

Introduction to Asic Design and VLSI Design
Introduction to Asic Design and VLSI DesignIntroduction to Asic Design and VLSI Design
Introduction to Asic Design and VLSI Design
Pratik Gohel
 
Information and Theory coding Lecture 18
Information and Theory coding Lecture 18Information and Theory coding Lecture 18
Information and Theory coding Lecture 18
Pratik Gohel
 
introduction to machine learning 3c.pptx
introduction to machine learning 3c.pptxintroduction to machine learning 3c.pptx
introduction to machine learning 3c.pptx
Pratik Gohel
 
introduction to machine learning 3c-feature-extraction.pptx
introduction to machine learning 3c-feature-extraction.pptxintroduction to machine learning 3c-feature-extraction.pptx
introduction to machine learning 3c-feature-extraction.pptx
Pratik Gohel
 
introduction to machine learning 3d-collab-filtering.pptx
introduction to machine learning 3d-collab-filtering.pptxintroduction to machine learning 3d-collab-filtering.pptx
introduction to machine learning 3d-collab-filtering.pptx
Pratik Gohel
 
13486500-FFT.ppt
13486500-FFT.ppt13486500-FFT.ppt
13486500-FFT.ppt
Pratik Gohel
 
Lecture 3.ppt
Lecture 3.pptLecture 3.ppt
Lecture 3.ppt
Pratik Gohel
 
710402_Lecture 1.ppt
710402_Lecture 1.ppt710402_Lecture 1.ppt
710402_Lecture 1.ppt
Pratik Gohel
 
UNIT-2.pptx
UNIT-2.pptxUNIT-2.pptx
UNIT-2.pptx
Pratik Gohel
 
Interdependencies of IoT and cloud computing.pptx
Interdependencies of IoT and cloud computing.pptxInterdependencies of IoT and cloud computing.pptx
Interdependencies of IoT and cloud computing.pptx
Pratik Gohel
 
Chapter1.pdf
Chapter1.pdfChapter1.pdf
Chapter1.pdf
Pratik Gohel
 
6-IoT protocol.pptx
6-IoT protocol.pptx6-IoT protocol.pptx
6-IoT protocol.pptx
Pratik Gohel
 
IOT gateways.pptx
IOT gateways.pptxIOT gateways.pptx
IOT gateways.pptx
Pratik Gohel
 
AVRTIMER.pptx
AVRTIMER.pptxAVRTIMER.pptx
AVRTIMER.pptx
Pratik Gohel
 
C Programming for ARM.pptx
C Programming for ARM.pptxC Programming for ARM.pptx
C Programming for ARM.pptx
Pratik Gohel
 
ARM Introduction.pptx
ARM Introduction.pptxARM Introduction.pptx
ARM Introduction.pptx
Pratik Gohel
 
arm
armarm
machine learning.ppt
machine learning.pptmachine learning.ppt
machine learning.ppt
Pratik Gohel
 

More from Pratik Gohel (18)

Introduction to Asic Design and VLSI Design
Introduction to Asic Design and VLSI DesignIntroduction to Asic Design and VLSI Design
Introduction to Asic Design and VLSI Design
 
Information and Theory coding Lecture 18
Information and Theory coding Lecture 18Information and Theory coding Lecture 18
Information and Theory coding Lecture 18
 
introduction to machine learning 3c.pptx
introduction to machine learning 3c.pptxintroduction to machine learning 3c.pptx
introduction to machine learning 3c.pptx
 
introduction to machine learning 3c-feature-extraction.pptx
introduction to machine learning 3c-feature-extraction.pptxintroduction to machine learning 3c-feature-extraction.pptx
introduction to machine learning 3c-feature-extraction.pptx
 
introduction to machine learning 3d-collab-filtering.pptx
introduction to machine learning 3d-collab-filtering.pptxintroduction to machine learning 3d-collab-filtering.pptx
introduction to machine learning 3d-collab-filtering.pptx
 
13486500-FFT.ppt
13486500-FFT.ppt13486500-FFT.ppt
13486500-FFT.ppt
 
Lecture 3.ppt
Lecture 3.pptLecture 3.ppt
Lecture 3.ppt
 
710402_Lecture 1.ppt
710402_Lecture 1.ppt710402_Lecture 1.ppt
710402_Lecture 1.ppt
 
UNIT-2.pptx
UNIT-2.pptxUNIT-2.pptx
UNIT-2.pptx
 
Interdependencies of IoT and cloud computing.pptx
Interdependencies of IoT and cloud computing.pptxInterdependencies of IoT and cloud computing.pptx
Interdependencies of IoT and cloud computing.pptx
 
Chapter1.pdf
Chapter1.pdfChapter1.pdf
Chapter1.pdf
 
6-IoT protocol.pptx
6-IoT protocol.pptx6-IoT protocol.pptx
6-IoT protocol.pptx
 
IOT gateways.pptx
IOT gateways.pptxIOT gateways.pptx
IOT gateways.pptx
 
AVRTIMER.pptx
AVRTIMER.pptxAVRTIMER.pptx
AVRTIMER.pptx
 
C Programming for ARM.pptx
C Programming for ARM.pptxC Programming for ARM.pptx
C Programming for ARM.pptx
 
ARM Introduction.pptx
ARM Introduction.pptxARM Introduction.pptx
ARM Introduction.pptx
 
arm
armarm
arm
 
machine learning.ppt
machine learning.pptmachine learning.ppt
machine learning.ppt
 

Recently uploaded

ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 

Recently uploaded (20)

ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 

Introduction to embedded System.pptx

  • 2. Subject Code: 710409 Subject Name: Embedded Systems Course Hand Out Topic No. Name of the Topic 1 Introduction to Embedded system design (ESD) and Products; Requirements of Embedded controller core and Memories, DRAM Controller 2 Introduction to ARM7 controllers and architecture (Timers, interrupts, UART, SPI, details) 3 Embedded Programming (cross compiler, Hardware Emulation, C and assembly interfacing) 4 Introduction to serial data transfer standards, SCI, SPI, UART, USB technologies, JTAG interface 5 Signal conditioning, interfacing with real world peripherals, ADC and DAC interfacing 6 Real Time Operating System Concepts (Scheduler Algorithms, Multitasking, Threading) 7 Applications and studies: Phones, PDAs, ATM, Digital Cameras, J2ME of Embedded systems 8 Seminars on relevant topics
  • 3. List of Books Text Books 1 Title Author Publisher Embedded Microcomputer Systems Real Time Interfacing Jonathan W. Valvano Thomson Books 2 Title Author Publisher Embedded Systems Design, 2nd edition Steve Heath Newnws ( Elsevier ) Reference Books 1 Title Author Publisher The 8051 Microcontroller K J Ayala Penram Intl. 2 Title Author Publisher Embedded Systems: Architecture, Programming and Design Raj Kumar Mc Graw Hill 3 Title Author Publisher Embedded/Real Time Systems: Concept, Design and Programming Dr. K V K K Prasad Dreamtech Press 4 Title: Author: Publisher: Embedded Systems Architecture : A Comprehensive Guide for Engineers and Programmers Tammy Noergaard Newnws (Elsevier)
  • 4. What is an Embedded System An Embedded System is a microprocessor based system that is embedded as a subsystem, in a larger system (which may or may not be a computer system). O I
  • 5. • Monitoring / controlling the physical world. • A user can make choices concerning functionality but cannot change the functionality of the system by adding / replacing software • It is having capability to provide upgradation about the functionality
  • 6. Application areas • Automotive electronics • Aircraft electronics • Trains • Telecommunication
  • 7. Application areas • Authentication • Military applications • Medical systems
  • 8. Application areas • Consumer electronics • Smart buildings • Fabrication equipment
  • 9. Essential Components • Microprocessor / DSP • Sensors • Converters (A-D and D-A) • Actuators • Memory (On-chip and Off chip) • Communication path with the interacting environment
  • 10. Embedded System Structure (Generic) Memory Processor & ASICs A- D Sensor D- A Actuator
  • 11. Characteristics of Microcontroller to design an embedded system • Low cost • Low speed, on the order of 10 KHz – 20 MHz • Low Power, extremely low power in sleep mode • Small architecture, usually an 8-bit architecture • Small memory size, but usually enough for the type of application it is intended for. Onboard Flash. • Limited I/O, but again, enough for the type of application intended for
  • 13. Harvard Architecture 1) Harvard Architecture refers to a memory structure where the processor is connected to two different memory banks via two sets of buses 2) This is to provide the processor with two distinct data paths, one for instruction and one for data 3) Through this scheme, the CPU can read both an instruction and data from the respective memory banks at the same time 4) A Harvard architecture computer can thus be faster for a given circuit complexity because instruction fetches and data access do not contend for a single memory pathway. 5) The cost of such a system is complexity in hardware Commonly used in DSPs.
  • 14. Von – Neumann Architecture 1) A Von-Neumann Machine, in contrast to the Harvard Architecture provides one data path (bus) for both instruction and data 2) As a result, the CPU can either be fetching an instruction from memory, or read/writing data to it 3) Other than less complexity of hardware, it allows for using a single, sequential memory. 4) Today’s processing speeds vastly outpace memory access times, and we employ a very fast but small amount of memory (cache) local to the processor 5) Modern processors employ a Harvard Architecture to read from two instruction and data caches, when at the same time using a Von-Neumann Architecture to access external memory
  • 15. Big vs. Little Endian format of storing data in memory Although numbers are always displayed in the same way, they are not stored in the same way in memory Big-Endian machines store the most significant byte of data in the lowest memory address Little-Endian machines on the other hand, store the least significant byte of data in the lowest memory address A Big-Endian machine stores 0x12345678 as: A Little-Endian machine stores 0x12345678 as: ADD+0: 0x12 ADD+1: 0x34 ADD+2: 0x56 ADD+3: 0x78 ADD+0: 0x78 ADD+1: 0x56 ADD+2: 0x34 ADD+3: 0x12
  • 16. Contd. The Intel family of Microprocessors and processors from Digital Equipment Corporation use Little-Endian Mode Whereas Architectures from Sun, IBM, and Motorola are Big-Endian Architectures such as PowerPC, MIPS, and Intel’s IA- 64 are Bi-Endian, supporting either mode
  • 17. Characteristics of Embedded Systems Embedded Systems, unlike a PC, never “exit” an application They idle through an Infinite Loop waiting for an event to happen in the form of an interrupt, or a pre- scheduled task In order to save power, some processors enter special sleep or wait modes instead of idling through an Infinite Loop, but they will come out of this mode upon either a timer or an External Interrupt
  • 18. Essential Considerations • Response Time -- Real Time Systems • Area • Cost • Portability • Low Power (Battery Life)
  • 19. ES, MS and RTS • All embedded systems are microprocessor based systems, but all microprocessor based systems may not be amenable to embedding (Area, Power, Cost, Payload parameters). • Most of the embedded systems have real time constraints, but there may be ES which are not hard RTS (for example off line Palm tops) • There may be RTS which are not embedded (e.g. Separate Process Control Computers in a network) • Embedded Systems are not general purpose systems; they are designed for dedicated applications with specific interfaces with the sphere of control
  • 20. Hard Real vs. Soft Real • The correctness of the system depends not only on the results of computations, but also on the time at which the results are produced. • Hard real time system are time bounded while soft real time systems are not.
  • 21. A real-time system in which a missed deadline causes the work performed to have no value or to result in a catastrophic event.
  • 22. A real-time system in which a missed deadline does not compromise the integrity of the system or result in a catastrophic event.
  • 23. Examples • Hard real time systems 1. Traffic signal controllers 2. Anti-Lock brake systems 3. Manufacturing plant controllers 4. Medical devices • Soft real time systems 1. Set Top Boxes 2. Consumer Electronics
  • 24. General Characteristics of Embedded Systems • Perform a single task – Usually not general purpose • Increasingly high performance and real time constrained • Power, cost and reliability are important considerations • HW-SW systems – Software is used for more features and flexibility – Hardware (processors, ASICs, memory etc. are used for performance and security
  • 25. General Characteristics of Embedded Systems (contd.) ASIC s Processor Cores ASIPs and ASICs form a significant component – Adv: customization  lower power, cost and enhanced performance – Disadv: higher development effort (debuggers, compilers etc.) and larger time to market Mem Analog IO Digital
  • 26. Lecture 2 Requirement of Embedded Microcontroller Core
  • 27. What is a Microcontroller • Flash + RAM on the chip • Ports with sufficient driving capacity • Timers • Interrupts • Serial data transfer engines like SPI, UART, I2C • For DSP applications DMA controller and MAC unit
  • 28. Memory Requirements • Flash memory holds the program code • RAM will hold the dynamic data associated with the program • Boot loader resides in flash that helps in communicating with program in PC to load the application program in flash • Microcontrollers generally do not use ROM but rather EEPROM is provided as flash on the chip • External Memory interfacing is avoided due to varities of option available from each manufacturer in the form of required flash memory on the core. For example 8051 (4KB), 8052(8KB), 8055(20KB), P89c51RD2(64KB).
  • 29. Port Requirements • In case of 8085 based system we need to have 8255 to assign a port to input or output device. • In embedded system we want the port structure on the core of microcontroller. Hence Micon. will have port structure defined on it. • To save the pins the ports have dual pin functions.
  • 30. • Ports are bidirectional with latch for output as well as if possible having sufficient driving capacity (but not necessary) • Port pins are bit addressable
  • 31. Timer Requirements • Timer is present on the core to generate timing signals for various peripherals like ADC, RTC, SPI, UART etc. • The frequency of timer is programmable. • Timer must have interrupt associated with its operation. • Watch dog timer in debugging environment. • Timer as counter to count external events.
  • 33. Interrupts • Polled I/O is slower hence Interrupt driven data transfer is better approach. • Hardware / Software Interrupt. • Exceptions • Important activities on the architectural level are associated with Interrupt to reduce the tasks handled by Main program. • Multitasking is implemented with the help of Interrupts in Real Time Operating System Environment.
  • 34. Interrupt can be associated with following kind of activities: Timer overflow ADC conversion completed Data is received on UART port Some port pin is activated with active signal. Etc…….
  • 35. Interrupts with Timer • When a timing event is generated Interrupt occurs. • Timing events (a) Roll over of the timer (b) Timer count = Match register
  • 36. Idle / Power Down Modes • Power can be shut down to selected segments of the architecture. • Retention of the RAM contents is followed in the power down modes. • In “Embedded Operating Systems” environment, power down mode saves power in between successive systems ‘ticks’. • Hardware reset or interrupt can be used to quit the power down mode.
  • 37. Philosophy of Microcontrollers • Special Function Registers enable / disable the resources as per requirement. • The functioning associated with the resources (ADC, Timer etc.) are controlled by the respective SFRs. • This controls the power consumption. • This also makes it possible for dual / triple pin functions.

Editor's Notes

  1. Highlight the interaction with the environment Input output communications require proper transduction and actuation So A/D conversion requirements can also be mentioned here A very important aspect that should be mentioned is that the design of the hardware and software of the ES derives its specifications from the environment with which it will interact