+ All Categories
Home > Documents > Digital Coding of Analog Signal Ut1

Digital Coding of Analog Signal Ut1

Date post: 10-Apr-2018
Category:
Upload: abhimanyu-singh
View: 226 times
Download: 0 times
Share this document with a friend

of 36

Transcript
  • 8/8/2019 Digital Coding of Analog Signal Ut1

    1/36

    Digital Coding ofAnalog Signal

    Prepared By:

    Amit Degada

    Teaching Assistant

    Electronics Engineering Department,

    Sardar Vallabhbhai National Institute of Technology,

    Surat-395007.

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    2/36

    Outline Analog To Digital Converter Review of sampling

    Nyquist sampling theory: frequency and time domain Alliasing Bandpass sampling theory

    Natural Sampling Aperture Effect

    Quantization Quantization. Quantization Error. Companding.

    Two optimal rules A law/u law

    Coding Differential PCM

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    3/36

    Claude Elwood Shannon, Harry Nyquist

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    4/36

    Sampling Theory In many applications it is useful to represent a

    signal in terms of sample values taken atappropriately spaced intervals.

    The signal can be reconstructed from thesampled waveform by passing it through an ideallow pass filter.

    In order to ensure a faithful reconstruction, theoriginal signal must be sampled at an appropriaterate as described in the sampling theorem. A real-valued band-limited signal having no spectral

    components above a frequency of FM Hz is determineduniquely by its values at uniform intervals spaced nogreater than (1/2FM) seconds apart.

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    5/36

    Sampling Block Diagram

    Consider a band-limited signal f(t) having nospectral component above B Hz.

    Let each rectangular sampling pulse have unit

    amplitudes, seconds in width and occurring atinterval of T seconds.

    A/D

    conversionf(t)

    T

    fs(t)

    Sampling

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    6/36

    Sampling

    Sampled waveform

    0

    1 20

    Sampled waveform

    0

    1 20

    Sampled waveform

    0

    1 20

    Signal waveform

    0

    1 201

    Impulse sampler

    0

    1 201

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    7/36

    Impulse Samplingwith increasing sampling time T

    Sampled waveform

    0

    1 201

    Sampled waveform

    0

    1 20

    Sampled waveform

    0

    1 201

    Sampled waveform

    0

    1 20

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    8/36

    EE 541/451 Fall 2006

    Introduction

    ratesampling:1periodsampling:where

    (3.1))()()(

    signalsampledidealthedenote)(Let

    ss

    s

    s

    n

    s

    f

    ntngtg

    tg

    !

    ! g

    g!

    HH

    H

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    9/36

    Math

    g

    g!

    g

    {g!

    g

    g!

    g

    g!

    g

    g!

    g

    g!

    g

    g!

    !

    !u!

    !

    !

    !

    n

    s

    mm

    sss

    s

    n

    s

    m

    ss

    m

    ss

    m ss

    n

    s

    W

    n fj

    W

    ngfG

    WTWffG

    mffGffGffG

    nf TjnTgfG

    mffGftg

    mffGf

    T

    mf

    TfG

    nTtt

    (3.4))exp()2

    ()(

    21andfor0)(If

    (3.5))()()(or

    (3.3))2exp()()(

    obtainto(3.1)onTransformFourierapplymayor e

    (3.2))()(

    )(

    )(1

    )(

    )()g(

    haveeA6.3TableFrom

    0

    T

    T

    H

    H

    H

    H

    H

    H

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    10/36

    Math, cont.

    )(onin ormatioallcontains)2

    (or

    or)2

    (bydetermineduniquelyis)(

    (3.7),)exp()2

    (2

    1)(

    as)(rewritemaywe(3.6)into(3.4)ngSubstituti

    (3.6),)(21)(

    that(3.5)Equationromindwe

    2.2

    or0)(.1

    With

    tgW

    ng

    nW

    ngtg

    WfWW

    nfj

    W

    ng

    Wf

    f

    WfWfW

    f

    Wf

    Wff

    n

    s

    gg

    !

    !

    !

    u!

    g

    g!

    T

    H

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    11/36

    Interpolation FormulaInterpolation Formula

    )(offormulaioninterpolatanis(3.9)

    (3.9)-,)2(sin)2

    (

    2

    )2sin()

    2(

    (3.8))2

    (2exp2

    1)

    2(

    )2exp()exp()2

    (2

    1

    )2exp()()(

    havemaye,)2(from)(treconstrucTo

    tg

    tnWtcW

    ng

    nWt

    nWt

    W

    ng

    dfW

    ntfj

    WW

    ng

    dff tjW

    n fj

    W

    ng

    W

    dfftjfGtg

    W

    n

    gtg

    n

    n

    n

    W

    W

    W

    W n

    g

    g!

    g

    g!

    g

    g!

    g

    g!

    g

    g

    gg!

    !

    -

    !

    !

    !

    TT

    TT

    T

    TT

    T

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    12/36

    Interpolation

    g

    g!

    ! n s

    s

    s

    nt

    cngtg sin)()(

    If the sampling is at exactly the Nyquist rate, then

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    13/36

    Under Sampling, Aliasing

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    14/36

    Avoid Aliasing

    Band-limiting signals (by filtering)before sampling.

    Sampling at a rate that is greaterthan the Nyquist rate.

    A/D

    conversionf(t)

    T

    fs(t)

    Sampling

    Anti-aliasing

    filter

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    15/36

    Practical InterpolationSinc-function interpolation is theoretically perfect but it cannever be done in practice because it requires samples from

    the signal for all time. Therefore real interpolation must

    make some compromises. Probably the simplest realizable

    interpolation technique is hat a DAC does.

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    16/36

    Natural sampling(Sampling with rectangular waveform)

    S al wa efor

    0

    1 201 401 601 801 1001 1201 1401 1601 1801 200

    Natural sampler

    0

    1 201 401 601 801 1001 1 201 1401 1 601 1801 200

    Sampled wa eform

    0

    1 201 401 601 801 1001 1201 1401 1601 1801 200

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    17/36

    Bandpass Sampling A signal of bandwidth B, occupying the frequency

    range between fL and fL + B, can be uniquelyreconstructed from the samples if sampled at arate fS :

    fS >= 2 * (f2-f1)(1+M/N)where M=f2/(f2-f1))-N and N = floor(f2/(f2-f1)),

    B= f2-f1, f2=NB+MB.

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    18/36

    Entire spectrum is allocated for a channel (user) for a limitedtime.

    The user must not transmit until its

    next turn.

    Used in 2nd generation

    Advantages:

    Only one carrier in the medium at any given time

    High throughput even for many users

    Common TX component design, only one power amplifier

    Flexible allocation of resources (multiple time slots).

    f

    t

    c

    k2 k3 k4 k5 k6k1

    Frequency

    Time

    Time Division Multiplexing

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    19/36

    Quantization Scalar Quantizer Block Diagram

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    20/36

    Quantization Procedure

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    21/36

    Quantization Error

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    22/36

    Quantization Type

    Mid-tread Mid-rise

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    23/36

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    24/36

    Quantization Noise

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    25/36

    Quantization Noise

    What happens if no. of representationlevel increases?

    >64 distortion is significant

    Quantization error is uniformlydistributed in interval (-/2 to /2).

    The Avg. Power of Quantizing error qe

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    26/36

    0 V

    K

    K+ /2

    K- /2

    qe

    Sample of

    AmplitudeK+ qe

    Pq

    Math

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    27/36

    Example

    A sinusoidal Signal of amplitude Amuses all Representation levelsprovided for Quantization in the caseof full load condition. CalculateSignal to Noise ratio in db assumingthe number of quantization levels to

    be 512. ANS: 55.8 db.

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    28/36

    Example SNR for varying number of representation

    levels for sinusoidal modulation 1.8+6 XdB

    Number ofrepresentation level L

    Number ofBits perSample, R

    SNR (dB)

    32 5 31.864 6 37.8

    128 7 43.8

    256 8 49.8

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    29/36

    Companding

    Process of uniform Quantization is notpossible.

    Example: Speech, Video.

    The variation in power from weak signal topowerful signal is 40 db.

    So Ratio 1000:1

    Excursion in Large amplitude occurs less

    frequently. This Scenario is cared by Non- Uniform

    Quantization.

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    30/36

    Non-uniform Quantizer

    x^

    ExampleF: y=log(x) F-1: x=exp(x)

    F: nonlinear compressing function

    F-1: nonlinear expanding function

    F and F-1: nonlinear compander

    We will study nonuniform quantization by PCM example next

    A la and Q la

    y^

    yX F Q F-1XXX Q

    y^y^y^y^y^

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    31/36

    Input-Output characteristicof Compressor

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    32/36

    Q Law/A Law The Q-law algorithm (-law) is a companding algorithm,

    primarily used in the digital telecommunication systems ofNorth America and Japan. Its purpose is to reduce thedynamic range of an audio signal. In the analog domain,

    this can increase the signal to noise ratio achieved duringtransmission, and in the digital domain, it can reduce thequantization error (hence increasing signal to quantizationnoise ratio).

    A-law algorithm used in the rest of worlds.

    A-law algorithm provides a slightly larger dynamic rangethan the mu-law at the cost of worse proportionaldistortion for small signals. By convention, A-law is used foran international connection if at least one country uses it.

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    33/36

    Q Law

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    34/36

    EE 541/451 Fall 2006

    A Law

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    35/36

    Implementation ofCompander

    Diode equation

    Piece-wise linear Approach

  • 8/8/2019 Digital Coding of Analog Signal Ut1

    36/36

    Coding


Recommended