SlideShare a Scribd company logo
1 of 37
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.pptxRadhaC10
 
Microprocessor & microcontroller
Microprocessor & microcontroller Microprocessor & microcontroller
Microprocessor & microcontroller Nitesh Kumar
 
Challenges in Embedded Computing
Challenges in Embedded ComputingChallenges in Embedded Computing
Challenges in Embedded ComputingPradeep Kumar TS
 
Embedded systems introduction
Embedded systems introductionEmbedded systems introduction
Embedded systems introductionmohamed drahem
 
Ajal mod 1
Ajal mod 1Ajal mod 1
Ajal mod 1AJAL A J
 
13. Module-3-Embedded systems.pptx
13. Module-3-Embedded systems.pptx13. Module-3-Embedded systems.pptx
13. Module-3-Embedded systems.pptxChaitanya Jambotkar
 
MODULE4_MES.pdf
MODULE4_MES.pdfMODULE4_MES.pdf
MODULE4_MES.pdfPoojaPK8
 
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 SystemsArti Parab Academics
 
Embedded Systems - Training ppt
Embedded Systems - Training pptEmbedded Systems - Training ppt
Embedded Systems - Training pptNishant Kayal
 
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdfmicroprocessormicrocontrollerbysanat-140107013112-phpapp02.pdf
microprocessormicrocontrollerbysanat-140107013112-phpapp02.pdfMECHANICALENGINEERIN19
 
Low cost embedded system
Low cost embedded systemLow cost embedded system
Low cost embedded systemece svit
 
Embedded System Basics - Introduction.ppt
Embedded System Basics - Introduction.pptEmbedded System Basics - Introduction.ppt
Embedded System Basics - Introduction.pptalaakaraja1
 
1334420 634648164164717500
1334420 6346481641647175001334420 634648164164717500
1334420 634648164164717500sumit tiwari
 

Similar to Introduction to embedded System.pptx (20)

Mces MOD 1.pptx
Mces MOD 1.pptxMces MOD 1.pptx
Mces MOD 1.pptx
 
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
 
Unit-I_ES.pdf
Unit-I_ES.pdfUnit-I_ES.pdf
Unit-I_ES.pdf
 

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 DesignPratik Gohel
 
Information and Theory coding Lecture 18
Information and Theory coding Lecture 18Information and Theory coding Lecture 18
Information and Theory coding Lecture 18Pratik Gohel
 
introduction to machine learning 3c.pptx
introduction to machine learning 3c.pptxintroduction to machine learning 3c.pptx
introduction to machine learning 3c.pptxPratik 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.pptxPratik 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.pptxPratik Gohel
 
710402_Lecture 1.ppt
710402_Lecture 1.ppt710402_Lecture 1.ppt
710402_Lecture 1.pptPratik 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.pptxPratik Gohel
 
6-IoT protocol.pptx
6-IoT protocol.pptx6-IoT protocol.pptx
6-IoT protocol.pptxPratik Gohel
 
C Programming for ARM.pptx
C Programming for ARM.pptxC Programming for ARM.pptx
C Programming for ARM.pptxPratik Gohel
 
ARM Introduction.pptx
ARM Introduction.pptxARM Introduction.pptx
ARM Introduction.pptxPratik Gohel
 
machine learning.ppt
machine learning.pptmachine learning.ppt
machine learning.pptPratik 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

main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 

Recently uploaded (20)

main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.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