Embedded Systemasds Lecture

Embed Size (px)

Citation preview

  • 7/29/2019 Embedded Systemasds Lecture

    1/53

    Embedded Systems

  • 7/29/2019 Embedded Systemasds Lecture

    2/53

    Real Time Embedded System

    Real Time

    Timing generated for our requirements

    Embedded

    Number of systems co exist to perform a specific

    function in real time

  • 7/29/2019 Embedded Systemasds Lecture

    3/53

    Characteristics of RTES

    Singled functioned

    Tightly constrained

    Reactive and Real time

  • 7/29/2019 Embedded Systemasds Lecture

    4/53

    Embedded system Architecture

  • 7/29/2019 Embedded Systemasds Lecture

    5/53

    Common Examples of Embedded

    Systems

    Consumer Electronics

  • 7/29/2019 Embedded Systemasds Lecture

    6/53

    Home Appliance

  • 7/29/2019 Embedded Systemasds Lecture

    7/53

    Office Automation

  • 7/29/2019 Embedded Systemasds Lecture

    8/53

    Business equipment

  • 7/29/2019 Embedded Systemasds Lecture

    9/53

    Automobile

  • 7/29/2019 Embedded Systemasds Lecture

    10/53

    Mobile Phone

    A circuit board

    Antenna

    Microphone Speaker LCD

    Keyboard

    Battery

  • 7/29/2019 Embedded Systemasds Lecture

    11/53

    Block Diagram

  • 7/29/2019 Embedded Systemasds Lecture

    12/53

    Components of an Embedded System

    Microprocessor

    Memory

    Input Output Devices and Interfaces Software

  • 7/29/2019 Embedded Systemasds Lecture

    13/53

    Constraints in Developing Embedded

    Systems

    Design Issues

    Design Metrics NRE Cost

    Unit Cost

    Size Performance

    Power Consumption

    Flexibility

    Time to prototype Time to market

    Maintainability

    Correctness

  • 7/29/2019 Embedded Systemasds Lecture

    14/53

    Design Methodology

    System Level Design

    Sub system Design

    Process Level Design Task Level Design

  • 7/29/2019 Embedded Systemasds Lecture

    15/53

    hierarchical Components of

    embedded system

  • 7/29/2019 Embedded Systemasds Lecture

    16/53

    Structure of an Embedded system

  • 7/29/2019 Embedded Systemasds Lecture

    17/53

    Processors

    General purpose processors

    Microcontrollers

    Digital signal processors

  • 7/29/2019 Embedded Systemasds Lecture

    18/53

    Architecture of general purpose

    processor

    Pentium 4

    8085

  • 7/29/2019 Embedded Systemasds Lecture

    19/53

    Architecture of a microcontroller

    8051

    AVR

    Microcon

    trollers

  • 7/29/2019 Embedded Systemasds Lecture

    20/53

    Architecture of Digital Signal Processor

    Harvard Architecture

  • 7/29/2019 Embedded Systemasds Lecture

    21/53

    Difference between Microcontroller

    and MicroprocessorMicrocontroller Microprocessor

    On a single chip External RAM, ROM, decoder, A/D

    converters are separate

    Small in size Big in size

    Less expensive ExpensiveNon flexible Flexible

    Less time High Development Time

    8051 8086

  • 7/29/2019 Embedded Systemasds Lecture

    22/53

    Typical microcontroller system

  • 7/29/2019 Embedded Systemasds Lecture

    23/53

    Typical microprocessor system

  • 7/29/2019 Embedded Systemasds Lecture

    24/53

    Characteristics of DSP

    Signal processing applications

    Harvard architecture

    Two or four memory accesses percycle

    Dedicated hardware perform allarithmetic operations in one cycle

    Complex instructions

    Multiple operations per instruction

    Dedicated address generation units

    Specialized addressing

    Interrupts disabled during someoperations

  • 7/29/2019 Embedded Systemasds Lecture

    25/53

    Characteristics of general purpose

    processor

    Von Neumann Architecture

    1 access per cycle

    Most operations in more than

    one cycle One operation per instruction

    No separate addressgeneration units

    General purpose addressingmodes

    Interrupts rarely disabled

  • 7/29/2019 Embedded Systemasds Lecture

    26/53

    Input Output Devices and interface

    chips

  • 7/29/2019 Embedded Systemasds Lecture

    27/53

    Memory

    Processor memory

    Internal on chip memory

    Primary memory Cache memory

    Secondary memory

  • 7/29/2019 Embedded Systemasds Lecture

    28/53

  • 7/29/2019 Embedded Systemasds Lecture

    29/53

    Operations on memory

    Memory Read operation

    Memory write operation

  • 7/29/2019 Embedded Systemasds Lecture

    30/53

    Data Storage

    M = words

    N= bits

    M X N = word memory K = log2(M); No. of address lines

  • 7/29/2019 Embedded Systemasds Lecture

    31/53

    Memory Specifications

    Power Consumption

    Write ability High end(RAM)

    Middle range(FLASH, EEPROM)

    Lower range(Programmer) Low end (ROM)

    Storage permanence High end(ROM)

    Middle range(NVRAM)

    Lower range(SRAM)

    Low end(DRAM)

  • 7/29/2019 Embedded Systemasds Lecture

    32/53

    ROM (Read Only Memory)

    NonVolatile

    Memory

    Store software

    program

  • 7/29/2019 Embedded Systemasds Lecture

    33/53

    Masked programmed ROM

    Connections Programmed at fabrication

    Stores data forever

    Connections never change unless damaged

  • 7/29/2019 Embedded Systemasds Lecture

    34/53

    OTP ROM

    Programmed after manufacture

    Provides files of desired content

    Connection is like a fuse and blows when

    connection should not exist

    Very low ability to write

  • 7/29/2019 Embedded Systemasds Lecture

    35/53

    EPROM(Erasable Programmable ROM )

    Better ability to write

    Reduced storage permanence (10 yrs)

    Used in design development

    When exposes to UV erases everything

  • 7/29/2019 Embedded Systemasds Lecture

    36/53

    EEPROM

    Erased by using higher than normal voltage

    Can program and erase individual words

    Same characteristics as that of EPROM

    Expensive

  • 7/29/2019 Embedded Systemasds Lecture

    37/53

    Flash Memory

    Extension of EEPROM

    Large blocks of memory can be erased at once

    Used in embedded systems for storing large

    data items in non volatile memory

  • 7/29/2019 Embedded Systemasds Lecture

    38/53

    RAM(Random Access Memory)

    Volatile memory

    Read and writteneasily

    Internal structurecomplex than ROM

    A word consists ofseveral memory cells

    Each IP/OP line

    connected to each cell Rd/Wr connected to

    every cell

  • 7/29/2019 Embedded Systemasds Lecture

    39/53

    SRAM (static RAM)

    Memory cells uses flip flops

    Holds data as long as power supplies

  • 7/29/2019 Embedded Systemasds Lecture

    40/53

    DRAM

    Memory cells uses transistors and capacitors

    Compact than SRAM

    Slower

  • 7/29/2019 Embedded Systemasds Lecture

    41/53

    Memory Hierarchy

  • 7/29/2019 Embedded Systemasds Lecture

    42/53

    Digital signal processing

  • 7/29/2019 Embedded Systemasds Lecture

    43/53

    Signal Processing

  • 7/29/2019 Embedded Systemasds Lecture

    44/53

    A to D and D to A process

  • 7/29/2019 Embedded Systemasds Lecture

    45/53

    Signal Conditioning

    Provide Distinct enhancements to both the

    performance and accuracy of data acquisition

    system

  • 7/29/2019 Embedded Systemasds Lecture

    46/53

    Amplification

    Increases the voltage level to better match the

    analog-to-digital converter (ADC) range, thus

    increasing the measurement resolution and

    sensitivity. In addition, using external signalconditioners located closer to the signal

    source, or transducer, improves the

    measurement signal-to-noise ratio bymagnifying the voltage level before it is

    affected by environmental noise.

  • 7/29/2019 Embedded Systemasds Lecture

    47/53

    Attenuation

    Attenuation, the opposite of amplification, is

    necessary when voltages to be digitized are

    beyond the ADC range. This form of signal

    conditioning decreases the input signalamplitude so that the conditioned signal is

    within ADC range. Attenuation is typically

    necessary when measuring voltages that aremore than 10 V.

  • 7/29/2019 Embedded Systemasds Lecture

    48/53

    Isolation

    Isolated signal conditioning devices pass the

    signal from its source to the measurement

    device without a physical connection by using

    transformer, optical, or capacitive couplingtechniques. In addition to breaking ground

    loops, isolation blocks high-voltage surges and

    rejects high common-mode voltage and thusprotects both the operators and expensive

    measurement equipment.

  • 7/29/2019 Embedded Systemasds Lecture

    49/53

    Filtering

    Filters reject unwanted noise within a certain

    frequency range. Oftentimes, low-pass filters

    are used to block out high-frequency noise in

    electrical measurements, such as 60 Hz power.Another common use for filtering is to

    prevent aliasing from high-frequency signals.

    This can be done by using an anti-aliasing filterto attenuate signals above the Nyquist

    frequency

  • 7/29/2019 Embedded Systemasds Lecture

    50/53

    Linearization

    Linearization is necessary when sensors

    produce voltage signals that are not linearly

    related to the physical measurement.

    Linearization is the process of interpreting the

    signal from the sensor and can be done either

    with signal conditioning or through software.

    Thermocouples are the classic example of asensor that requires linearization.

  • 7/29/2019 Embedded Systemasds Lecture

    51/53

    Cold-Junction Compensation

    Cold-junction compensation (CJC) is a technologyrequired for accurate thermocouple measurements.Thermocouples measure temperature as the differencein voltage between two dissimilar metals.

    Based on this concept, another voltage is generated atthe connection between the thermocouple andterminal of your data acquisition device.

    CJC improves your measurement accuracy by providingthe temperature at this junction and applying the

    appropriate correction.

    C i l diti i f

  • 7/29/2019 Embedded Systemasds Lecture

    52/53

    Common signal conditioning for

    different sensors

  • 7/29/2019 Embedded Systemasds Lecture

    53/53

    Bridge Completion