dsp. what is dsp? dsp: digital signal processing---using a digital process (e.g., a program running...
TRANSCRIPT
What is DSP?
• DSP: Digital Signal Processing---Using a digital process (e.g., a program running on a microprocessor) to modify a digital representation of a signal
• DSP: Digital Signal Processor---a specialized microprocessor designed for handling DSP tasks.
Types of Signals
• Analog signal: A continuous signal in both value (magnitude) and time
• Digital: A signal that is discrete in both value and time (or other dimension such as space)
Nyquist’s Sampling Theorem
• Analog to digital conversion: the analog signal must be sampled at twice the highest frequency component of the signal to avoid distortion.
• Example, for digital audio CD, the sampling rate is 44.1 kHz (based on the highest human audible frequency of around 20 KHz)
Speed of DSP Critical for Real-Time Applications
• Example: sampling rates are 44.1 kHz for audio CD and 48 kHz for digital audio tape (DAT) unit. A DSP CD-to-tape converter must be ready to accept a new sample every 22.6 sec (or 1/44100 sec) from the CD source and produce a new output sample for the DAT every 20.8 sec (1/48000 sec).
Advantages of DSP over analog signal processing (ASP)
• Insensitive to environment• Insensitive to component tolerances• Predictable, repeatable (exact) behavior• Programmability (flexibility)• Size: small than analog counterpart in general• Continued rapid advancement of VLSI technology• Capacity utilization of high BW transmission links• Design tools are available
Visualization of a signal (Dual Tone Multiple Frequency) in time and frequency domain
• P23 fig 2-3, 4
Filters
• Filter is used to “shape” (selectively change or modify the magnitude and phase of the input signal as a function of frequency) the signals.
Functions of Filters
• Remove noise/interference
• Spectral analysis: analyze the frequency contents of a signal
• Synthesis: generate simple tones to human voice
• …
Types of filters
• Low-pass
• High-pass
• All-pass (amplifier)
• Band-pass
• Band-stop (notch)
• Arbitrary pass-band
• comb
Implementation of filters
• Analog filters
• Digital filters: one of the major applications of DSP; offer many advantages over their analog counterpart as described earlier.
Correlation: compare earlier sections of signals with current section (auto-
correlation); special case of filtering.
Limitations of DSP
• Speed: being programmable means 10 to 100 times slower than the hardwired tech.
• Processing: program is simple but needs be done quickly (lots of MAC instructions)
• Precision: use fixed point format with limited precision to save chip space
• Digital signal required more BW than the corresponding analog signal
Describing a system in time domain: the impulse response
• An impulse (math.) excites a system equally at all frequencies.
• P47 fing 2-23
The frequency response function
• H(j), where ( or ) is signal frequency; it is also known as the transfer function
• H(j) can be generalized to H(s), the system function, where s = + j, a quantity known as complex frequency. Depending on whether is positive or negative, the signal strength increases or decreases in time, as show in the following example.
Sampling: 1st step to convert an analog signal to digital one
• Nyquist rate: minimum sampling frequency to avoid undesirable effect (aliasing)
• p96 fig 4-2
Describing discrete-time system
• H(z): the system or transfer function, where z is the complex frequency in polar coordinates
H(z) and the difference equations
• H(s): Laplace transformation of h(t)
• H(z): z-transformation of the DT (discrete time) impulse response of h(n)
• h(t) is a differential equation
• h(n) is described using difference equations, meaning current output of the system is a linear combination of current input samples, past input samples, and past output samples.
The difference equations• General form:
• p116 equation 4-14
• Difference equations can be translated easily into computer programs (run on DSP)