Advanced Digital Signal Processing Part 2: Digital Processing of Continuous-Time Signals

Similar documents
Advanced Digital Signal Processing Part 5: Digital Filters

Chapter 2: Digitization of Sound

145M Final Exam Solutions page 1 May 11, 2010 S. Derenzo R/2. Vref. Address encoder logic. Exclusive OR. Digital output (8 bits) V 1 2 R/2

Digital Processing of Continuous-Time Signals

Digital Processing of

Lecture Schedule: Week Date Lecture Title

Sampling and Reconstruction of Analog Signals

Sampling and Signal Processing

Sampling and Pulse Trains

Module 3 : Sampling and Reconstruction Problem Set 3

Time division multiplexing The block diagram for TDM is illustrated as shown in the figure

! Multi-Rate Filter Banks (con t) ! Data Converters. " Anti-aliasing " ADC. " Practical DAC. ! Noise Shaping

Design IV. E232 Spring 07

Chapter 2 Signal Conditioning, Propagation, and Conversion

Understanding Digital Signal Processing

Islamic University of Gaza. Faculty of Engineering Electrical Engineering Department Spring-2011

Electronics A/D and D/A converters

CHAPTER 4. PULSE MODULATION Part 2

ANALOG-TO-DIGITAL CONVERTERS

ESE 531: Digital Signal Processing

PROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems.

FFT Analyzer. Gianfranco Miele, Ph.D

!"!#"#$% Lecture 2: Media Creation. Some materials taken from Prof. Yao Wang s slides RECAP

EC 2301 Digital communication Question bank

UNIT III Data Acquisition & Microcontroller System. Mr. Manoj Rajale

Digital Signal Processing

The need for Data Converters

Analyzing A/D and D/A converters

System on a Chip. Prof. Dr. Michael Kraft

DIGITAL COMMUNICATION

Analog to digital and digital to analog converters

The Fundamentals of Mixed Signal Testing

Cyber-Physical Systems ADC / DAC

Concordia University. Discrete-Time Signal Processing. Lab Manual (ELEC442) Dr. Wei-Ping Zhu


Lecture Outline. ESE 531: Digital Signal Processing. Anti-Aliasing Filter with ADC ADC. Oversampled ADC. Oversampled ADC

Laboratory Manual 2, MSPS. High-Level System Design

The Sampling Theorem:

QUESTION BANK. SUBJECT CODE / Name: EC2301 DIGITAL COMMUNICATION UNIT 2

ESE 531: Digital Signal Processing

Sampling and Pulse Code Modulation Chapter 6

EEE 309 Communication Theory

Chapter-2 SAMPLING PROCESS

DIGITAL processing has become ubiquitous, and is the

EEE 309 Communication Theory

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

Chapter 7. Introduction. Analog Signal and Discrete Time Series. Sampling, Digital Devices, and Data Acquisition

Module 3 : Sampling & Reconstruction Lecture 26 : Ideal low pass filter

A-D and D-A Converters

ECE 2111 Signals and Systems Spring 2012, UMD Experiment 9: Sampling

Lecture #6: Analog-to-Digital Converter

Experiment 8: Sampling

ECE 556 BASICS OF DIGITAL SPEECH PROCESSING. Assıst.Prof.Dr. Selma ÖZAYDIN Spring Term-2017 Lecture 2

INTRODUCTION TO COMMUNICATION SYSTEMS LABORATORY IV. Binary Pulse Amplitude Modulation and Pulse Code Modulation

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING QUESTION BANK. Subject Name: Digital Communication Techniques

Experiment 2 Effects of Filtering

QUESTION BANK EC 1351 DIGITAL COMMUNICATION YEAR / SEM : III / VI UNIT I- PULSE MODULATION PART-A (2 Marks) 1. What is the purpose of sample and hold

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

CT111 Introduction to Communication Systems Lecture 9: Digital Communications

Waveform Encoding - PCM. BY: Dr.AHMED ALKHAYYAT. Chapter Two

Audio /Video Signal Processing. Lecture 1, Organisation, A/D conversion, Sampling Gerald Schuller, TU Ilmenau

Lecture 9, ANIK. Data converters 1

Analogue Interfacing. What is a signal? Continuous vs. Discrete Time. Continuous time signals

The Digital Linear Amplifier

Multirate Signal Processing Lecture 7, Sampling Gerald Schuller, TU Ilmenau

6 Sampling. Sampling. The principles of sampling, especially the benefits of coherent sampling

Data Converter Topics. Suggested Reference Texts

Advantages of Analog Representation. Varies continuously, like the property being measured. Represents continuous values. See Figure 12.

Lab.3. Tutorial : (draft) Introduction to CODECs

CHAPTER. delta-sigma modulators 1.0

Lecture 3 Review of Signals and Systems: Part 2. EE4900/EE6720 Digital Communications

ME scope Application Note 01 The FFT, Leakage, and Windowing

Lecture 3 Concepts for the Data Communications and Computer Interconnection

A/D Converter An electronic circuit that transforms an analog signal into a digital form that can be used by a computer or other digital circuits.

Fundamentals of Digital Communication

Signals and Systems. Lecture 13 Wednesday 6 th December 2017 DR TANIA STATHAKI

EECS 452 Midterm Exam (solns) Fall 2012

Sampling of Continuous-Time Signals. Reference chapter 4 in Oppenheim and Schafer.

Speech Coding in the Frequency Domain

EE 210 Lab Exercise #4 D/A & A/D Converters

Communications I (ELCN 306)

Linear Time-Invariant Systems

System analysis and signal processing

Digital to Analog Conversion. Data Acquisition

7.1 Introduction 7.2 Why Digitize Analog Sources? 7.3 The Sampling Process 7.4 Pulse-Amplitude Modulation Time-Division i i Modulation 7.

Multirate Digital Signal Processing

Signals A Preliminary Discussion EE442 Analog & Digital Communication Systems Lecture 2

SIGMA-DELTA CONVERTER

Signals and Systems Using MATLAB

Appendix B. Design Implementation Description For The Digital Frequency Demodulator

Infocommunication. Sampling, Quantization. - Bálint TÓTH, BME TMIT -

Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals

Communications IB Paper 6 Handout 3: Digitisation and Digital Signals

Gábor C. Temes. School of Electrical Engineering and Computer Science Oregon State University. 1/25

Pulse Code Modulation

Digital Signal Processing

KINGS DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING DIGITAL COMMUNICATION TECHNIQUES YEAR/SEM: III / VI BRANCH : ECE PULSE MODULATION

Figure 1: Block diagram of Digital signal processing

(Refer Slide Time: 3:11)

IIR Filter Design Chapter Intended Learning Outcomes: (i) Ability to design analog Butterworth filters

Transcription:

Advanced Digital Signal Processing Part 2: Digital Processing of Continuous-Time Signals Gerhard Schmidt Christian-Albrechts-Universität zu Kiel Faculty of Engineering Institute of Electrical Engineering and Information Engineering Digital Signal Processing and System Theory

Contents Introduction Digital processing of continuous-time signals Sampling and sampling theorem (repetition) Quantization Analog-to-digital (AD) and digital-to-analog (DA) conversion DFT and FFT Digital filters Multi-rate digital signal processing Slide II-2

Basic System Refined digital signal processing system: Analog input signal Anti-aliasing lowpass filter Sample and hold circuit AD converter Digital input signal Digital signal processing Analog output signal Lowpass reconstruction filter Sample and hold circuit DA converter Digital output signal Slide II-3

Sampling Part 1 Basic idea: Generation of discrete-time signals from continuous-time signals. Ideal sampling: An ideally sampled signal with a periodic impulse train is obtained by multiplication of the continuous-time signal where is the Dirac delta function and the sampling period. We obtain using the gating property of Dirac delta functions Slide II-4

Sampling Part 2 Ideal sampling: The lengths of Dirac deltas correspond to their weightings! Slide II-5

Sampling Part 3 How does the Fourier transform look like? Fourier transform of an impulse train with A multiplication in the time domain represents a convolution in the Fourier domain, thus we obtain for the spectrum of the signal : Inserting the spectrum of an impulse train leads to Periodically repeated copies of multiples of the sampling frequency!, shifted by integer Slide II-6

Sampling Part 4 How does the Fourier transform look like? Fourier transform of a bandlimited analog input signal, highest frequency is. Fourier transform of the Dirac impulse train. Result of the convolution is evident that when or, the replicas of do not overlap. In this case can be recovered by ideal lowpass filtering (later called sampling theorem ). If the condition above does not hold, i.e. if, the copies of overlap and the signal cannot be recovered by lowpass filtering. The distortion in the gray shaded areas are called aliasing.. It Slide II-7

Sampling Part 5 Non-ideal sampling Modeling the sampling operation with the Dirac impulse train is not a feasible model in real life, since we always need a finite amount of time for acquiring a signal sample. Non-ideally sampled signals are obtained by multiplication of a continuous-time signal with a periodic rectangular window function : with denotes the rectangular prototype window with Slide II-8

Sampling Part 6 Fourier transform of : The Fourier transform of the rectangular time window can be computed as a function (see examples of the Fourier transform): Using this result for computing the Fourier transform of leads to inserting the result from above and using the gating property of Dirac delta functions inserting the definition of Slide II-9

Sampling Part 7 Fourier transform of : Transforming the signal into the frequency domain leads to Using this result for computing the Fourier transform of leads to We can deduce the following: Compared to the result in the ideal sampling case here each repeated spectrum at the center frequency is weighted with the term. The energy is proportional to. This is problematic since in order to approximate the ideal case we would like to choose the parameter as small as possible. Slide II-10

Sampling Part 8 Sampling performed by a sample-and-hold (S/H) circuit: Sample-andhold command Analog pre-amplifier Input S H Sample and hold S Convert command AD converter Status Tracking in sample (T) H Holding (H) S H To computer or communication channel Sample-and-hold output H S S H S The goal is to continuously sample the input signal and to hold that value constant as long as it takes for the AD converter to obtain its digital representation. Ideal S/H circuit introduces no distortion and can be modeled as an ideal sampler. As a result: drawbacks for the non-ideal sampling case can be avoided (all results for the ideal case hold here as well). Figure following [Proakis, Manolakis, 1996] Slide II-11

Sampling Theorem Part 1 Reconstruction of an ideally sampled signal by ideal lowpass filtering: Slide II-12

Sampling Theorem Part 2 Reconstruction of an ideally sampled signal by ideal lowpass filtering: In order to get the input signal back after reconstruction, i.e., the conditions and have both to be satisfied. In this case, we get We now choose the cutoff frequency of the lowpass filter as. This satisfies both conditions from above. An ideal lowpass filter (see before) can be described by its time and frequency response: Slide II-13

Sampling Theorem Part 3 Reconstruction of an ideally sampled signal by ideal lowpass filtering: Combining everything leads to: changing the order of the summation and the integration inserting the properties of the Dirac distribution Result: Every band-limited continuous-time signal with can be uniquely recovered from its samples according to This is called the ideal interpolation formula, and the si-function is named ideal interpolation function! Slide II-14

Sampling Theorem Part 4 Reconstruction of a continuous-time signal using ideal interpolation: Basic principle: From [Proakis, Manolakis, 1996] Anti-aliasing lowpass filtering: In order to avoid aliasing, the continuous-time input signal has to be bandlimited by means of an anti-aliasing lowpass-filter with cut-off frequency prior to sampling, such that the sampling theorem is satisfied. Slide II-15

Reconstruction with Sample-and-Hold Circuits Part 1 Signal reconstruction: In practice, a reconstruction is carried out by combining a DA converter with a sample-and-hold circuit, followed by a lowpass reconstruction filter. Digital input signal DA converter Sample-andhold circuit Lowpass (reconstruction) filter A DA converter accepts electrical signals that correspond to binary words as input, and delivers an output voltage or current being proportional to the value of the binary word for every clock interval. Often, the application on an input code word yields a high-amplitude transient at the output of the DA converter ( glitch ). Thus, the sample-and-hold circuit serves as a deglitcher. Slide II-16

Reconstruction with Sample-and-Hold Circuits Part 2 Analysis: The sample and hold circuit has the impulse response which can be transformed into the frequency response Consequences: No sharp cutoff frequency response characteristics. Thus, we have undesirable frequency components (above ), which can be removed by passing through a lowpass reconstruction filter. This operation is equivalent to smoothing the staircase-like signal after the sample-and-hold operation. When we now suppose that the reconstruction filter is an ideal lowpass with cutoff frequency and an amplification of one, the only distortion in the reconstructed signal is due to the sample-and-hold operation: However, in case of non-ideal reconstruction filters we have additional distortions. Slide II-17

Reconstruction with Sample-and-Hold Circuits Part 3 Spectral interpretation of the reconstruction process: Magnitude frequency response of the ideally sampled continuous-time signal. Frequency response of the sample-and-hold circuit (phase factor omitted). Magnitude frequency response after the sample-and-hold circuit. Magnitude frequency response of the lowpass reconstruction filter. Magnitude frequency response of the reconstructed continuous-time signal. Distortion due to the sinc function may be corrected by pre-biasing the reconstruction filter. Slide II-18

Quantization Part 1 Basics: Conversion carried out by an AD converter involves quantization of the sampled input signal and the encoding of the resulting binary representation. Quantization is a non-linear and non-invertible process which realizes the mapping where the amplitude is taken from a finite alphabet. The signal amplitude range is divided into intervals using the decision levels : Quantization level Decision level Amplitude Slide II-19

Quantization Part 2 Basics (continued): The mapping is denoted as Uniform or linear quantizers with constant quantization step size used in signal processing applications: are very often Two main types of linear quantizers: Midtread quantizer - zero is assigned as a quantization level. Midrise quantizer - zero is assigned as a decision level. Example: Midtread quantizer with levels and range Range Amplitude of quantizer Slide II-20

Quantization Part 3 Basics (continued): The quantization error signal (with respect to the unquantized signal) is defined as Without reaching the limits of the quantizer we get for the quantization error If the dynamic range of the input signal is larger than the range of the quantizer, the samples exceeding the quantizer range are clipped, which leads to Slide II-21

Quantization Part 4 Quantization characteristic for a midtread quantizer with (3 bits): Mirrored at zero and inverted From [Proakis, Manolakis, 1996] Slide II-22

Quantization Part 5 Coding: The coding process in an AD converter assigns a binary number to each quantization level. With a word length of bits we can represent binary numbers, which yields The step size or the resolution of the AD converter is given as with the range of the quantizer. Two s complement representation is used in most fixed-point DSPs: A -bit binary fraction with denoting the most significant bit (MSB) and the least significant bit (LSB), represents the value Slide II-23

Quantization Part 6 Commonly used bipolar codes: Number Positive reference Negative reference Sign and magnitude Two s complement Offset binary One s complement +7 +7/8-7/8 0 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 +6 +3/4-3/4 0 1 1 0 0 1 1 0 1 1 1 0 0 1 1 0 +5 +5/8-5/8 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 +4 +1/2-1/2 0 1 0 0 0 1 0 0 1 1 0 0 0 1 0 0 +3 +3/8-3/8 0 0 1 1 0 0 1 1 1 0 1 1 0 0 1 1 +2 +1/4-1/4 0 0 1 0 0 0 1 0 1 0 1 0 0 0 1 0 +1 +1/8-1/8 0 0 0 1 0 0 0 1 1 0 0 1 0 0 0 1 +0 0+ 0-0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0-0 0-0+ 1 0 0 0 ( 0 0 0 0) (1 0 0 0) 1 1 1 1-1 -1/8 +1/8 1 0 0 1 1 1 1 1 0 1 1 1 1 1 1 0-2 -1/4 +1/4 1 0 1 0 1 1 1 0 0 1 1 0 1 1 0 1-3 -3/8 +3/8 1 0 1 1 1 1 0 1 0 1 0 1 1 1 0 0-4 -1/1 +1/1 1 1 0 0 1 1 0 0 0 1 0 0 1 0 1 1-5 -5/8 +5/8 1 1 0 1 1 0 1 1 0 0 1 1 1 0 1 0-6 -3/4 +3/4 1 1 1 0 1 0 1 0 0 0 1 0 1 0 0 1-7 -7/8 +7/8 1 1 1 1 1 0 0 1 0 0 0 1 1 0 0 0-8 -1 +1 1 0 0 0 0 0 0 0 Slide II-24

Quantization Part 7 Commonly used bipolar codes: Conversions to integer numbers: Sign and magnitude: Two s complement: Offset binary: One s complement: Slide II-25

Quantization Part 8 Quantization error: The quantization error is modeled as noise, which is added to the unquantized signal: Real system Mathematical model Assumptions: The quantization error range. The error sequence is modeled as a stationary white noise. The error sequence is uncorrelated with the signal sequence. The signal sequence is assumed to have zero mean. The assumptions do not hold in general, but they are fairly well satisfied for large quantizer word lengths. Slide II-26

Quantization Part 9 Quantization error (continued): The effect of quantization errors (or quantization noise) on the resulting signal evaluated in terms of the signal- to-noise ratio (SNR) in decibels (db): can be where denotes the signal power and the power of the quantization noise. Quantization noise is assumed to be uniformly distributed in the range : The variance of the quantization noise can be computed as Inserting our definition of the resolution of an AD converter yields Slide II-27

Quantization Part 10 Quantization error (continued): Inserting the result from the last slide into our SNR formula yields Remarks: denots here the root-mean-square (RMS) amplitude of the signal. If is too small, the SNR drops as well. If is too large, the range of the AD converter might be exceeded. The signal amplitude has to be matched carefully to the range of the AD converter! Slide II-28

Analog-to-Digital Converter Realizations Part 1 Flash AD converters: From [Mitra, 2000], with Analog comparator : resolution in bits Analog input voltage is simultaneously compared with a set of separated reference voltage levels by means of a set of analog comparators. The locations of the comparator circuits indicate the range of the input voltage. All output bits are developed simultaneously. Thus, a very fast conversion is possible. The hardware requirements for this type of converter increase exponentially with an increase in resolution. Flash converters are used for low-resultion and high-speed conversion applications. Slide II-29

Analog-to-Digital Converter Realizations Part 2 Serial AD converters: Saw tooth generator Impulse generator And gate Counter Pulse duration modulation: Pulse duration: The counter is detecting the amount of ones that are leaving the and gate. This amount is proportional to it results in. Slide II-30

Digital-to-Analog Converter Realizations Part 1 Possible realization: Switches, that are controlled by bits: Sign bit Analysis for : with actually Due to linearity we get: (conductance) This results in (if we neglect the offset): It s important to meet the accuracy requirements for the resistors (especially due to the large range of values). Slide II-31

Analog-to-Digital Converter Realizations Part 2 Circuit analysis: Understanding of the circuit if only a single bit is set to one on the one hand and for an arbitrary bit setup on the other hand at the blackboard. However, for reason of simplicity we assume that the sign bit is set such, that we have a positive output voltage. Details at the blackboard! Slide II-32

Partner Work Part 1 Questions Part 1: Partner work Please think about the following questions and try to find answers (first group discussions, afterwards broad discussion in the whole group). What are the necessary components if you want to replace an analog system by a digital one? What to you need to know about the involved systems and signals?...... What kind of converter type would you use for different applications? Which system properties are important to make this decision?...... Slide II-33

Partner Work Part 2 Questions Part 2: What is meant by digital?.... Can you think of applications where analog processing would be beneficial compared to digital processing? Give examples for such applications!.... What happens if you neglect anti-aliasing filtering before sampling?...... Slide II-34

Summary Introduction Digital processing of continuous-time signals Sampling and sampling theorem (repetition) Quantization Analog-to-digital (AD) and digital-to-analog (DA) conversion DFT and FFT Digital filters Multi-rate digital signal processing Slide II-35