ECE411 1 Introduction
ECE411 1 Introduction
3 ECE 411 - Signals, Spectra, and Signal Processing: Introduction 4 ECE 411 - Signals, Spectra, and Signal Processing: Introduction
                                                                                                                                                                                                    1
                                                                                               Block Diagram of an Digital
Digital Signal Processor                                                                       Signal Processing System
 A digital signal processor                                                                                       Electrical
                                                                                                                     signal
                                                                                                                                                           Amplified
                                                                                                                                                            signal
  (DSP) is an integrated
  circuit designed for high-
                                                                                                                                     Processor
  speed data
  manipulations, and is
  used in audio,
                                                                                                              Electrical
  communications, image                                                                              Sound
                                                                                                             transducer                                          Electrical
                                                                                                                                                                transducer
  manipulation, and other                                                                                                                                                           Bigger sound
5 ECE 411 - Signals, Spectra, and Signal Processing: Introduction 6 ECE 411 - Signals, Spectra, and Signal Processing: Introduction
7 ECE 411 - Signals, Spectra, and Signal Processing: Introduction 8 ECE 411 - Signals, Spectra, and Signal Processing: Introduction
                                                                                                                                                                                                          2
Signal Representation
 All electrical signals can be visualized using two basic
  methods, the time domain and the frequency domain.
  Time Domain
      The time domain is the form of visualization that most people
       are familiar with.                                                                                                  Time domain
      The most common time domain instrument is the
       oscilloscope, which has graduations of volts on the y-axis and
       graduations of time on the x-axis.
     Frequency Domain
      Instead of showing the variation of a signal with respect to
       time, it shows the variation of the signal with respect to
       frequency.
      The most common instrument for displaying the frequency
       domain is the spectrum analyzer.                                                                                   Frequency domain
9                               ECE 411 - Signals, Spectra, and Signal Processing: Introduction   10                          ECE 411 - Signals, Spectra, and Signal Processing: Introduction
11 ECE 411 - Signals, Spectra, and Signal Processing: Introduction 12 ECE 411 - Signals, Spectra, and Signal Processing: Introduction
                                                                                                                                                                                                3
Multi-channel Signal                                                                             Multidimensional Signal
 Signal generated by multiple sources which is                                                   Signal which is a function of two or more independent
  represented in vector form.                                                                      variables.
     Example:                                                                                                    S ( x, y, z )  x 2 y  2 xz 2  3 y 2
                              s1 (t ) 
                   S (t )  s2 (t )
                                                                                                   Signals can be represented as a multi-channel,
                                                                                                    multidimensional signal.
                              s3 (t )                                                                                               I r ( x, y , t ) 
                                                                                                                      I ( x, y , t )   I g ( x , y , t ) 
                                                                                                                                                          
                                                                                                                                        I b ( x, y , t ) 
13                             ECE 411 - Signals, Spectra, and Signal Processing: Introduction   14                                      ECE 411 - Signals, Spectra, and Signal Processing: Introduction
                                                                                                                                 a tn
     Example:    x(t )  sin t ,    t                                                                 y (t n )  2e                , n  0,  1,  2, 
                               a t
                 y (t )  2e          ,  t  
15 ECE 411 - Signals, Spectra, and Signal Processing: Introduction 16 ECE 411 - Signals, Spectra, and Signal Processing: Introduction
                                                                                                                                                                                                           4
Continuous-valued (continuous-amplitude) Signals                                             Discrete-valued (discrete-amplitude) Signals
 Signal takes on all possible values on a finite or an                                       Signal takes on values from a finite set of possible
  infinite range.                                                                              values.
17 ECE 411 - Signals, Spectra, and Signal Processing: Introduction 18 ECE 411 - Signals, Spectra, and Signal Processing: Introduction
19 ECE 411 - Signals, Spectra, and Signal Processing: Introduction 20 ECE 411 - Signals, Spectra, and Signal Processing: Introduction
                                                                                                                                                                                              5
Continuous-time Sinusoidal Signals
                                                                                                                      Tp
xa (t ) A cos(t ), - t t
where: 1 cycle
21 ECE 411 - Signals, Spectra, and Signal Processing: Introduction 22 ECE 411 - Signals, Spectra, and Signal Processing: Introduction
23 ECE 411 - Signals, Spectra, and Signal Processing: Introduction 24 ECE 411 - Signals, Spectra, and Signal Processing: Introduction
                                                                                                                                                                                                6
                                                                                                        Properties of Discrete-time Sinusoids
                            N
                                                                                                        1. A discrete-time sinusoid is periodic only if its
                                                                     n
                                                                                                           frequency f is a rational number.
                                                                                                        2. Discrete-time sinusoids whose frequencies are
                        1 cycle
                                                                                                           separated by an integer multiple of 2 are identical.
          Period (N)  Number of samples to complete one cycle                                          3. The highest rate of oscillation in a discrete-time
                                     n samples                                                             sinusoid is attained when  =  (or  = ).
                                N
                                        cycle
                            1                                            1
                Since             = Frequency , then f 
                         Period                                          N
25 ECE 411 - Signals, Spectra, and Signal Processing: Introduction 26 ECE 411 - Signals, Spectra, and Signal Processing: Introduction
                                                                                                                                 Sampling         Hold
                                                                                                                                   gate          circuit
 Analog        Sample and                                                                     Digital
                                       Quantizer                      Coder
  input          Hold                                                                         output                       t                                                                     n
CT signal DT signal
Sampling pulse
27 ECE 411 - Signals, Spectra, and Signal Processing: Introduction 28 ECE 411 - Signals, Spectra, and Signal Processing: Introduction
                                                                                                                                                                                                         7
Periodic or Uniform Sampling                                                                                                                Tp
                                                                                                                                                                                                                          t Continuous-time
 Type of sampling wherein the CT signal is sampled at                                                                                                                                                                           signal, x(t)
  equal intervals defined by the sampling period Ts.                                                                                     1 cycle
                                                                                                    t=0
                                                                                                         Ts
                x(n) = xa(nTs), -<n<
                                                                                                                                                                                                                          t Sampling pulses
                                                                                                                                                                                                           n
                                                                                                                                                                                      th
                                                                                                                                                                                                              th
                                                                                                                          nd
th
                                                                                                                                                            th
                                                                                                                                    rd
                                                                                                                                                                         th
                                                                                                     0
                                                                                                              1s
                                                                                                                  t
                                                                                                      th
                                                                                                                                                                                                  
                              Ts = 1/Fs
                                                                                                                                                                                                              pu
                                                                                                                                                                                      pu
                                                                                                                          pu
pu
pu
pu
                                                                                                                                                                         pu
                                                                                                         pu
                   where:
pu
                                                                                                                                                                                                                   ls e
                                                                                                                                                                                           ls e
                                                                                                                            lse
ls e
ls e
ls e
                                                                                                                                                                              ls e
                                                                                                           lse
                                                                                                    t=0
                                                                                                            lse
                              Fs  sampling frequency
                                                                                                                                     N
                                                                                               Sampling Theorem
Given an analog signal                                                                          Consider any analog signal represented as a sum of
               xa (t )  A cos(2Ft   )                                                        sinusoids of different amplitudes, frequencies, and
                                                                                                 phases:
             xa (nTs )  A cos(2FnTs   )            therefore,                                                                                                             N
                                                                                                                                                     xa (t )   Ai cos(2Fi t   i )
                                2Fn      
             xa (nTs )  A cos                                                                                                                                      i 1
31 ECE 411 - Signals, Spectra, and Signal Processing: Introduction 32 ECE 411 - Signals, Spectra, and Signal Processing: Introduction
                                                                                                                                                                                                                                                  8
                                                                                                             Effect of Undersampling and Aliasing
                                                                                                                                    x (n)  cos2
                                                                                                                                     2
                                                                                                                                                       F2
                                                                                                                                                       2 F1
                                                                                                                                                              n   cos2     3 F1
                                                                                                                                                                               2 F1
                                                                                                                                                                                       
                                                                                                                                                                                      n  cos(3n)
33 ECE 411 - Signals, Spectra, and Signal Processing: Introduction 34 ECE 411 - Signals, Spectra, and Signal Processing: Introduction
                                                                             t   x(t )  x1 (t )  x2 (t )
                                                                                                              To avoid undersampling, an analog low-pass filter
                                                                                                               (usually Butterworth) designed around the systems
     t=0                                                                                                       desired Fmax is placed before the sampling gate.
                                                                             n
                                                                                 x1 (n)  cos(n)
                                                                                                              This LPF filters out all unwanted frequencies above Fmax
     x1(0) = 0         x1(1) =                 x1(2) = 2                                                     from the input signal reducing* the effect of aliasing on
                                                                                                               the sampled signal for a given Fs.
                                                                                                                  * Analog filters have a gradual roll-off. A steeper roll-off (higher
                                                                             n
                                                                                 x2 (n)  cos(3n)                  order) is more desirable, but affects the phase response of
     x2(0) = 0        x2(1) = 3                x2(2) = 6                                                          the filter.
                                                                                                              This filter is known as an anti-aliasing filter.
                         x1(n) and x2(n) are identical!
                              x2(n) is an alias of x1(n).
35                                       ECE 411 - Signals, Spectra, and Signal Processing: Introduction     36                                 ECE 411 - Signals, Spectra, and Signal Processing: Introduction
                                                                                                                                                                                                                  9
Quantization                                                                                  Quantization of Discrete-time Continuous-valued Signals
     1
                                             x(1)       1.2         1          0.2                  Truncation  process of eliminating the undesired excess digits
                                             x(2)       0.2         0          0.2
     0                             n                                                                  by assigning each sample to the quantization level below it.
     -1                                      x(3)       -1.3        -2         0.7
     -2                                      x(4)       -2.4        -3         0.6                  Rounding  process of assigning each sample to the nearest
     -3                                      x(5)       -1.2        -2         0.8
                                                                                                      quantization level by eliminating the undesired excess digits
                                             x(6)       0.1         0          0.1
                                             x(7)       1.1         1          0.1                    (if over), or by adding extra digits (if under).
37 ECE 411 - Signals, Spectra, and Signal Processing: Introduction 38 ECE 411 - Signals, Spectra, and Signal Processing: Introduction
                                                                                              Coding
Dynamic Range  difference between the minimum (xmin)                                          Conversion of discrete-time discrete-valued signal to a
  and maximum (xmax) unquantized signal, x(n).                                                  binary sequence (e.g. 1011011).
Quantization level  allowable values in the digital signal.                                                           b  log2 L
                                                                                                               where:
Quantization step or Resolution,   distance between two
                                                                                                                        b  number of coding bits
  successive quantization levels. Also called step size.
                                                                                                                        L  number of quantization levels
                           x  x min
                        max                                                                                                 Value        Binary Equiv.
                              L 1                                                                                              3              011
                                                                                                                                2              010
Quantization Error, eq(n)  difference between the                                                                              1              001
39 ECE 411 - Signals, Spectra, and Signal Processing: Introduction 40 ECE 411 - Signals, Spectra, and Signal Processing: Introduction
                                                                                                                                                                                                      10
Digital-to-Analog Conversion
                                                                                                                                                                   Low-pass
                                                                                                                                             Digital-to-Analog
                                                                                                                        Serial-to-Parallel
                                                                                                                                                                     Filter
                                                                                                                                                 Converter
                                                                                                                           Converter
 A digital-to-analog converter (DAC) converts a digital                                                 10011010                                                                                                              t
  signal (binary value) to an analog equivalent.                                                        Serial data
 The value would be held at the output of the DAC until                                                                                                                                   Reconstructed Analog Signal
  a new value arrives (defined by the sampling interval,                                            Clock signal
  Ts). The result is a stair-step representation of the
                                                                                                             3                                                                                      Reconstructed signal
  digital signal (zero-order hold).                                                                          2
                                                                                                                                                                                                    (interpolated)
                                                                                                             -2
  reconstruction filter.                                                                                     -3
                                                                                                                                                                                                                                   11
                                                                                                 1.   Given a continuous-time signal
xa(t)=3cos100t
2. Given an analog signal                                                                        3. Determine whether or not each of the following signals
                                                                                                    is periodic. In case a signal is periodic, specify its
                                                                                                    fundamental period.
            xa(t) = 3cos 2000t + 5sin 6000t + 10cos 12000t
                                                                                                      a)   xa(t) = 3 cos (5t + /6)
                                                                                                      b)   x(n) = cos (0.01n)
     a) What is the Nyquist rate for this signal?
                                                                                                      c)   x(n) = 3 cos (5n + /6)
     b) What is the discrete-time signal obtained after sampling
        using Fs = 5000 samples/sec?                                                                  d)   x(n) = cos (n/3) cos (n/8)
     c) What is the analog signal ya(t) we can reconstruct from the
        samples if we use ideal D/A converter ?
47 ECE 411 - Signals, Spectra, and Signal Processing: Introduction 48 ECE 411 - Signals, Spectra, and Signal Processing: Introduction
                                                                                                                                                                                                        12
4. The discrete-time signal
                                                                                              ASSIGNMENT 1:
                   x(n) = 6.35cos[(/10)n]
                                                                                              Answer the problems at the end of Chapter 1
                                                                                                (problems 1.1 up to 1.10) on the textbook (Digital
     is quantized with resolution
                                                                                                Signal Processing, Proakis/Manolakis, 3e).
     a)  = 0.1
                                                                                                   Use an A4-sized paper
     b)  = 0.02
                                                                                                   Handwritten (including the problem)
                                                                                                   Submission is on our next meeting
     How many bits are required in the A/D converter in
     each case? Determine the noise floor and signal-to-
     noise (S/N) ratio in dB as well.
49 ECE 411 - Signals, Spectra, and Signal Processing: Introduction 50 ECE 411 - Signals, Spectra, and Signal Processing: Introduction
13