ECTE301 Notes Week1

download ECTE301 Notes Week1

of 52

Transcript of ECTE301 Notes Week1

  • 7/28/2019 ECTE301 Notes Week1

    1/52

    ECTE301

    Digital Signal Processing

  • 7/28/2019 ECTE301 Notes Week1

    2/52

    Why this subject -- Examples

    Telephone

    Phone Phonevoice voicevoltage/current

  • 7/28/2019 ECTE301 Notes Week1

    3/52

    Why this subject-- Examples

    CD Music Recording and playing

    Mic Quantization

    Music

    Sampling

    Speaker D/A

    CD

    Decoding

    Encoding

    Music

  • 7/28/2019 ECTE301 Notes Week1

    4/52

    Why this subject?

    ECTE301 Digital signal processing willprovide you with the fundamental

    knowledge about signals and systems,

    and basic skills of DSP system design

  • 7/28/2019 ECTE301 Notes Week1

    5/52

    Why this subject?

    Signals: what, why

    Digital signals: why, how

    systems

    Digital signal processing: what, why,

    how

  • 7/28/2019 ECTE301 Notes Week1

    6/52

    What are Signals

    Signals are something that carry information;

    Signals appear in physical forms: observable

    measurable

    Usually varies with time --- functions of time

    Examples: voice, measurement of

    metrological quantities, etc

  • 7/28/2019 ECTE301 Notes Week1

    7/52

    How do Signals look like

    Speech signal

  • 7/28/2019 ECTE301 Notes Week1

    8/52

    How do Signals look like

    noise

  • 7/28/2019 ECTE301 Notes Week1

    9/52

    Signal Classification

    Continuous in time, continuous in

    amplitude analogy signals

    Discrete in time, continuous in

    amplitude discrete signals

    Discrete in time, discrete in amplitude

    digital signals

  • 7/28/2019 ECTE301 Notes Week1

    10/52

    Why Signal Processing

    Signal processing refers to the work of

    manipulating signals so that information

    carried can be expressed, transmitted,

    restored etc in a more efficient and

    reliable way

    Efficiency: Lest resource usage

    Reliability: Lest error

  • 7/28/2019 ECTE301 Notes Week1

    11/52

    Why Signal Processing?

    The purposes of SP can be: Enhance the signals (noise reduction, interference

    elimination etc)

    Present signal in an efficient way (source coding)

    Extract feature of signals

    .

  • 7/28/2019 ECTE301 Notes Week1

    12/52

    What is Signal Processing?

    System

    Input Output

  • 7/28/2019 ECTE301 Notes Week1

    13/52

    Why DSP?

    Signals are expressed as digital numbers Signal processing can be realized by

    mathematical operations using computers

    Digital signals can be the results of sampling

    continuous-time signals (such as voice

    signals) or discrete in nature (such as text in

    emails)

  • 7/28/2019 ECTE301 Notes Week1

    14/52

    What is DSP?

    DSP

    DSP chips or

    General purpose

    computer

    Input Output

    Input and output are discrete sequences.

  • 7/28/2019 ECTE301 Notes Week1

    15/52

    Systems

    Something that can manipulate,change,record, or transmit signals.

    We will try to describe the system by

    mathematical tools We will also try to describe the tasks of

    DSP by mathematical operations

  • 7/28/2019 ECTE301 Notes Week1

    16/52

    What DSP

    Signal analysis: spectral analysis, discreteorthogonal transforms etc

    Behavior of DSP systems: system impulse

    response, system functions, and input-output

    relationship;

  • 7/28/2019 ECTE301 Notes Week1

    17/52

    What are covered in the

    subject? General concepts

    The simplest signals sinusoidal signals

    Spectrum representation of signals

    Sampling of analog signals Filtering of digital signals FIR filters

    Analysis of FIR filters

    Z-Transform

    IIR filters

    Spectral analysis of signals

  • 7/28/2019 ECTE301 Notes Week1

    18/52

    Digital Signal Processing

    Week 1

    Sinusoidal Signals

  • 7/28/2019 ECTE301 Notes Week1

    19/52

    Sinusoidal Signals

    The reasons for looking at sinusoidal signalsare:

    The most widely used;

    The simplest signal that could be used to carry

    information; Other signals can be expressed by combinations

    of sinusoidal signals

  • 7/28/2019 ECTE301 Notes Week1

    20/52

    Outline

    What are sinusoidal signals Description of sinusoidal signals

    Amplitude, Frequency and phase

    Direct expression Complex exponential signals complex

    sinusoidal signals

    Phasor operations

    Relationship between real sinusoidsand complex exponentials

  • 7/28/2019 ECTE301 Notes Week1

    21/52

    Sinusoidal signals

    where

  • 7/28/2019 ECTE301 Notes Week1

    22/52

    Sinusoidal signals

    )2cos()cos()( 00 tfAtAtx

    A -- Amplitude

    -- radian frequency

    -- cyclic frequency

    -- initial phase

    -- instantaneous phase

    0

    0f

    t0

  • 7/28/2019 ECTE301 Notes Week1

    23/52

    Sinusoidal signals

    Period vs frequency

    )cos()( 0 tAtx

    )(

    )cos(

    ))(cos()(

    000

    000

    tx

    TtA

    TtATtx

    kT 200

    0

    0

    2

    kT

    0

    0

    2

    TThe smallest

  • 7/28/2019 ECTE301 Notes Week1

    24/52

    Phase shift vs Time shift

    )cos(

    ))(cos()(

    00

    0

    tA

    tAtx

    0

    The time shift

    The phase shift

    Exercise 2.2, 2.3, 2.4, 2.5

  • 7/28/2019 ECTE301 Notes Week1

    25/52

    Complex Exponential Signals

    A complex exponential signal

    )sin()cos(

    )(

    00

    )( 0

    tjAtA

    Aetxtj

    Sinusoidal in nature

    Two components with 90 degrees ofphase difference

  • 7/28/2019 ECTE301 Notes Week1

    26/52

    Complex Exponential Signals Complex

    Numbers

    Complex exponential signals can be

    manipulated by the operations of

    complex numbers

    Use polar form of expressions phasors

    Multiplications of two complex numbers

    Additions of two complex numbers

  • 7/28/2019 ECTE301 Notes Week1

    27/52

    Complex Exponential Signals Complex

    Numbers

    Product of two complex numbers Phasor

    rotation

    )(

    21213

    2211

    21

    21 ,

    i

    jj

    errzzz

    erzerz

  • 7/28/2019 ECTE301 Notes Week1

    28/52

    Complex Exponential Signals Complex

    Numbers

    Addition of two complex numbers

    phasor addition

    )sinsin(coscos

    ,

    22112211

    213

    2211

    21

    rrjrr

    zzzerzerz

    jj

  • 7/28/2019 ECTE301 Notes Week1

    29/52

    Complex Exponential Signals Complex

    Numbers

    Addition of complex exponentials ofsame frequency is still an complexexponentials with the same frequency

    )(1

    11

    )(

    000

    00)(

    tjtjjtj

    N

    k

    jk

    N

    k

    tjj

    k

    N

    k

    tj

    k

    AeeAeeeA

    eeAeAtx

    k

    kk

  • 7/28/2019 ECTE301 Notes Week1

    30/52

    Relationship between real sinusoids and

    complex exponentials

    A real sinusoid can be considered as the real

    part of a complex exponential

    tjjtjeAeAetA 00 ReRe)cos(

    )(

    0

    is called the phasor of the sinusoid, which

    contains the amplitude and initial phase of the

    signal

    jAe

  • 7/28/2019 ECTE301 Notes Week1

    31/52

  • 7/28/2019 ECTE301 Notes Week1

    32/52

    Addition of real sinusoids

    Combination of sinusoids with the same

    frequency is still a sinusoid with the same

    frequency

    N

    k

    kk tAtx1

    0 )cos()(

  • 7/28/2019 ECTE301 Notes Week1

    33/52

    Addition of real sinusoids Direct computation

    )cos(

    sincos

    sinsincoscos

    sinsincoscos

    )cos()(

    0

    00

    0

    1

    0

    1

    1

    00

    1

    0

    tA

    tDtC

    tAtA

    ttA

    tAtx

    N

    k

    kk

    N

    k

    kk

    N

    k

    kkk

    N

    k

    kk

    22 DCA C

    D1tan

    N

    k

    kk

    N

    k

    kk

    AD

    AC

    1

    1

    sin

    cos

  • 7/28/2019 ECTE301 Notes Week1

    34/52

    Addition of real sinusoids phasor

    addition

    Direct computation is very complex

    )cos(

    Re

    Re

    ReRe

    )cos()(

    0

    1

    11

    )(

    1

    0

    0

    0

    00

    tA

    eAe

    eeA

    eeAeA

    tAtx

    tjj

    tjN

    k

    j

    k

    N

    k

    tjj

    k

    N

    k

    tj

    k

    N

    k

    kk

    k

    kk

    N

    k

    j

    k

    j keAAe1

    Addition of phasors

  • 7/28/2019 ECTE301 Notes Week1

    35/52

    Addition of real sinusoids phasor

    addition

    Phasor addition rule

    Obtain the phasor representation of each of

    the individual signals

    Add the phasors together, convert the result

    into polar form

    Multiply by to get

    Exercise 2.9

    jAe)( 0 tjAetje 0

  • 7/28/2019 ECTE301 Notes Week1

    36/52

    Product of real sinusoids

    Multiplication of sinusoids results in sinusoids

    with difference frequencies: Principle of

    modulation

    ))()cos(())()cos((21

    )cos()cos()()(

    )cos()(

    )cos()(

    2121212121

    22112121

    2222

    1111

    ttAA

    ttAAtxtx

    tAtx

    tAtx

  • 7/28/2019 ECTE301 Notes Week1

    37/52

    Spectrum Representation

    Spectrum is a graphical representation of thefrequency content of a signal.

  • 7/28/2019 ECTE301 Notes Week1

    38/52

    Spectrum Representation

    Signals

  • 7/28/2019 ECTE301 Notes Week1

    39/52

    Spectrum Representation

    Spectrum of a sinusoid Spectrum of a sum of sinusoids

    Spectrum of a multiplication of sinusoids

    Beat notes Amplitude modulation

  • 7/28/2019 ECTE301 Notes Week1

    40/52

    Spectrum of a sinusoid

    We use the frequencies and complexmagnitudes of complex exponentials to denote

    the spectrum of a signal, that is, for

    tjtj eAAetx 00 )()(

    We have

    0

    jAeA

  • 7/28/2019 ECTE301 Notes Week1

    41/52

    Spectrum of a sinusoid

    Hence for a real sinusoid, the spectrum shouldbe

    tjtj

    tjtj

    eAeA

    eeA

    tAtx

    00

    00

    *

    )()(

    02

    )cos()(

    0

    jeA

    2

    0

    jeA

    2

  • 7/28/2019 ECTE301 Notes Week1

    42/52

    Spectrum of a sum of sinusoids

    N

    k

    tjj

    ktjj

    k

    N

    k

    tjtjk

    N

    k

    kkk

    k

    k

    k

    k

    kkkk

    eeA

    eeA

    ee

    A

    tAtx

    1

    1

    )()(

    1

    22

    2

    )cos()(

  • 7/28/2019 ECTE301 Notes Week1

    43/52

    Spectrum of a sum of sinusoids

    1

    1

    2

    1 jeA

    12

    2

    22 jeA

    2

    2

    22 jeA

    1

    2

    1 jeA

  • 7/28/2019 ECTE301 Notes Week1

    44/52

    Spectrum of Product of sinusoids

    )()(cos)()(cos2

    1)cos()cos()()(

    )cos()(

    )cos()(

    2121212121

    22112121

    2222

    1111

    ttAA

    ttAAtxtx

    tAtx

    tAtx

  • 7/28/2019 ECTE301 Notes Week1

    45/52

    Spectrum of Product of sinusoids

    )()()()(

    )()()()(21

    21

    )()(22222

    )()(11111

    22212221

    22212221

    2222

    1111

    4

    )()(2

    )cos()(

    2)cos()(

    tjtj

    tjtj

    tjtj

    tjtj

    ee

    eeAA

    txtx

    eeA

    tAtx

    eeAtAtx

  • 7/28/2019 ECTE301 Notes Week1

    46/52

    Spectrum of product of sinusoids

    21

    21 )( 21 )( 21

    )(21 21

    4

    jeAA

    )(21 21

    4

    jeAA

    )(21 21

    4

    jeAA

    )(21 21

    4

    jeAA

    21

  • 7/28/2019 ECTE301 Notes Week1

    47/52

    Examples

    sc

    cs

    ff

    tftfAtx

    ),2cos()2cos()(

    Beat notes

    Amplitude modulation

  • 7/28/2019 ECTE301 Notes Week1

    48/52

    Examples Beat Note

  • 7/28/2019 ECTE301 Notes Week1

    49/52

    Examples Beat note

  • 7/28/2019 ECTE301 Notes Week1

    50/52

    Examples AM signals

  • 7/28/2019 ECTE301 Notes Week1

    51/52

    Examples AM signal

  • 7/28/2019 ECTE301 Notes Week1

    52/52

    Tutorial Questions

    Problems:2.3, 2.5, 2.7, 2.10, 2.16, 2.18, 3.2, 3.3, 3.5