Ppt Man An

Embed Size (px)

Citation preview

  • 8/8/2019 Ppt Man An

    1/29

    BY:

    MANAN GAUR

    ECE 5TH SEM.

    ROLL NO-2308206

    Embedded Systems

  • 8/8/2019 Ppt Man An

    2/29

    Embedded System

    Embedded system means the processor is embeddedinto that application.

    An embedded product uses a microprocessor or

    microcontroller to do one task only.In an embedded system, there is only one

    application software that

    In an embedded system, there is only one

    application software that is typically burned intoROM.

    Example printer, keyboard, video game player

  • 8/8/2019 Ppt Man An

    3/29

    Application areas3

    Automotive electronics

    Aircraft electronics

    Trains

    Telecommunication

  • 8/8/2019 Ppt Man An

    4/29

    Application areas4

    Authentication

    Authentication

    Military applications

    Military applications

    Medical systems

    Medical systems

  • 8/8/2019 Ppt Man An

    5/29

    Application areas5

    Consumerelectronics

    Smart buildings

    Smart buildings

    Fabrication equipment

    Fabrication equipment

  • 8/8/2019 Ppt Man An

    6/29

    Essential Considerations6

    Response Time -- Real Time Systems

    Area

    Cost

    PortabilityLow Power (Battery Life)

    Fault Tolerance

  • 8/8/2019 Ppt Man An

    7/29

    Design Issues(Hardware-Software Co-design)

    7

    System Specification Functions, Real Time Constraints, Cost and Power

    Constraints

    Hardware Software Partitioning

    Hardware SynthesisSoftware Synthesis and Code GenerationSimulation

    Implementation

  • 8/8/2019 Ppt Man An

    8/29

    ES, MS and RTS8

    All embedded systems are microprocessor based systems, but allmicroprocessor based systems may not be amenable to embedding(Area, Power, Cost, Payload parameters).

    Most of the embedded systems have real time constraints, but theremay be ES which are not hard RTS (for example off line Palm tops)

    There may be RTS which are not embedded (e.g. Separate ProcessControl Computers in a network)

    Embedded Systems are not GPS; they are designed for dedicatedapplications with specific interfaces with the sphere of control

  • 8/8/2019 Ppt Man An

    9/29

    General Characteristics of Embedded Systems9

    Perform a single task Usually not general purpose

    Increasingly high performance and real timeconstrained

    Power, cost and reliability are importantconsiderations

    HW-SW systems Software is used for more features and flexibility

    Hardware (processors, ASICs, memory etc. areused for performance and security

  • 8/8/2019 Ppt Man An

    10/29

    General Characteristics of Embedded Systems(contd.)

    10

    ASIPs and ASICs form a significant component

    Adv: customization lower power, cost and enhancedperformance

    Disadv: higher development effort (debuggers, compilersetc.) and larger time to market

    ASIC s

    ProcessorCores

    Mem

    Analog IO

    Digital

  • 8/8/2019 Ppt Man An

    11/29

    Application Specific Characteristics11

    Application is known before the system is designed

    System is however made programmable for

    Feature upgrades

    Product differentiationOften application development occurs in parallel to system

    development

    Hw-Sw partitioning should be as delayed as possible

    For upgrades design reuse is an important criterion IP reuse, object oriented development

  • 8/8/2019 Ppt Man An

    12/29

    Some problems

    How can we capture the required behaviour of complex

    systems ?

    How do we validate specifications?

    How do we translate specifications efficiently intoimplementation?

    Do software engineers ever consider electrical power?

    How can we check that we meet real-time constraints?

    How do we validate embedded real-time software?

    (large volumes of data, testing may be safety-critical)

  • 8/8/2019 Ppt Man An

    13/29

  • 8/8/2019 Ppt Man An

    14/29

    Microcontroller

    A smaller computer

    On-chip RAM, ROM, I/O ports...

    ExampleMotorolas 6811, Intels 8051, Zilogs Z8 and PIC 16X

    RAM ROM

    I/OPort

    TimerSerial

    COM

    Port

    CPU

    A single chip

    Microcontroller

  • 8/8/2019 Ppt Man An

    15/29

    Microprocessor vs. Microcontroller

    Microprocessor

    CPU is stand-alone, RAM,

    ROM, I/O, timer are separate

    designer can decide on the

    amount of ROM, RAM and I/Oports.

    expansive

    versatility

    general-purpose

    Microcontroller

    CPU, RAM, ROM, I/O and

    timer are all on a single chip

    fix amount of on-chip ROM,

    RAM, I/O ports

    for applications in which cost,

    power and space are critical

    single-purpose

  • 8/8/2019 Ppt Man An

    16/29

    Block Diagram

    CPU

    On-chip

    RAM

    On-chip

    ROM for

    program

    code

    4 I/O Ports

    Timer 0

    Serial

    PortOSC

    Interrupt

    Control

    External interrupts

    Timer 1

    Timer/Counter

    Bus

    Control

    TxD RxDP0 P1 P2 P3

    Address/Data

    Counter

    Inputs

  • 8/8/2019 Ppt Man An

    17/29

    Pin Description of the 8051

    1234567

    891011121314151617181920

    40393837363534

    33323130292827262524232221

    P1.0P1.1P1.2P1.3P1.4P1.5P1.6

    P1.7RST(RXD)P3.0(TXD)P3.1

    (T0)P3.4(T1)P3.5

    XTAL2XTAL1

    GND

    (INT0)P3.2(INT1)P3.3

    (RD)P3.7(WR)P3.6

    VccP0.0(AD0)P0.1(AD1)P0.2(AD2)P0.3(AD3)P0.4(AD4)P0.5(AD5)

    P0.6(AD6)P0.7(AD7)EA/VPP

    ALE/PROG

    PSENP2.7(A15)P2.6(A14)P2.5(A13)

    P2.4(A12)P2.3(A11)P2.2(A10)P2.1(A9)P2.0(A8)

    8051

  • 8/8/2019 Ppt Man An

    18/29

    Port 0 with Pull-Up Resistors

    P0.0P0.1P0.2P0.3P0.4P0.5

    P0.6P0.7

    DS5000

    8751

    8951

    Vcc10 K

    Port0

  • 8/8/2019 Ppt Man An

    19/29

    XTAL Connection to 8051

    The 8051 has an on-chip oscillator but requires an externalclock to run it

    Using a quartz crystal oscillator

    We can observe the frequency on the XTAL2 pin.

  • 8/8/2019 Ppt Man An

    20/29

    RST pin 9 reset

    It is an input pin and is active high (normally low).The high pulse must be high at least 2 machinecycles.

    It is a power-on reset.Upon applying a high pulse to RST, the

    microcontroller will reset and all values in registers

    will be lost.

    Reset values of some 8051 registers

  • 8/8/2019 Ppt Man An

    21/29

    Power-on RESET circuit

  • 8/8/2019 Ppt Man An

    22/29

    /EA pin 31 external access

    1. There is no on-chip ROM in 8031 and 8032

    2.The /EA pin is connected to GND to indicate thecode is stored externally.stored externally.

    3./PSEN ALE are used for external ROM.

    4.For 8051, /EA pin is connected to Vcc.

    5. / means active low.

    /PSEN pin 29 program store enable

    1. This is an output pin and is connected to the OE pinof the ROM.

  • 8/8/2019 Ppt Man An

    23/29

    ALE pin 30 address latch enable

    It is an output pin and is active high.

    8051 port 0 provides both address and data. The ALE pin is used for de-multiplexing the address

    The ALE pin is used for de-multiplexing the addressand data by connecting to the G pin of the 74LS373latch.

    I/O port pins

    The four ports P0, P1, P2, and P3.

    Each port uses 8 pins. All I/O pins are bi-directional. .

  • 8/8/2019 Ppt Man An

    24/29

    Port 3 alternate functions

    P3 bit Function pin

    P3.0 RXD 10

    P3.1 TXD 11

    P3.2 /INT0 12

    P3.3 /INT1 13

    P3.4 T0 14

    P3.5 T1 15

    P3.6 /WR 16P3.7 /RD 17

  • 8/8/2019 Ppt Man An

    25/29

    Register OF 8051

    A

    B

    R0

    R1

    R3

    R4

    R2

    R5

    R7

    R6

    DPH DPL

    PC

    DPTR

    PC

    Some 8051 16-bit Register

    Some 8-bitt Registers of the 8051

  • 8/8/2019 Ppt Man An

    26/29

    Stack in the 8051

    The register used toaccess the stack iscalled SP (stack pointer)register.

    The stack pointer in the8051 is only 8 bitswide, which means thatit can take value 00 toFFH. When 8051

    powered up, the SPregister contains value07.

    7FH

    30H

    2FH

    20H

    1FH

    17H

    10H

    0FH

    07H

    08H

    18H

    00HRegister Bank 0

    )Stack) Register Bank 1

    Register Bank 2

    Register Bank 3

    Bit-Addressable RAM

    Scratch pad RAM

  • 8/8/2019 Ppt Man An

    27/29

    Timer:

  • 8/8/2019 Ppt Man An

    28/29

    Interrupt :

  • 8/8/2019 Ppt Man An

    29/29

    THANK YOU