Presentation is loading. Please wait.

Presentation is loading. Please wait.

Hossein Sameti Department of Computer Engineering Sharif University of Technology.

Similar presentations


Presentation on theme: "Hossein Sameti Department of Computer Engineering Sharif University of Technology."— Presentation transcript:

1 Hossein Sameti Department of Computer Engineering Sharif University of Technology

2 Our focus 2 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

3 3

4 4

5  In practice, the sampling is performed by a S/H circuit. Sample-and-hold (S/H)  S/H is an analog circuit that tracks the analog signal during the sample mode and holds it during the hold mode.  The time needed for conversion should be less than the hold mode duration.  The sampling period T should be greater than the duration of sample & hold mode Copyright: NEC 5

6  The goal of the S/H is to continuously sample the input and then hold the value constant as long as it takes the A/D converter to digitally represent (code) the samples.  Thus, it allows the A/D converter to operate more slowly than the time needed to acquire a sample.  S/H is of critical importance in digital conversion of signals that change rapidly (i.e. the signals with large bandwidth). 6 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

7  Quantization: conversion of continuous-valued signal into discrete-valued.  Quantization effects: reducing quantized levels results in signal quality degradation.  Quantization is irreversible: results in loss of information. 7

8 8

9 9

10  Uses a reference and a comparator for each of the discrete levels represented in the digital output  Number of comparators = number of quantization levels  generally fast but expensive 10

11  Theoretically, the extreme decision levels are x 1 = -  and x L+1 =  (i.e. cover the entire dynamic range of the signal). However,in practice, A/D converters can only handle a finite range R. 11 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

12  During coding, A/D converters assign a unique binary representation to each quantization level.  If we have L quantization levels, then we need to have where B is the number of bits needed for the binary representation.  Quantization error: 12 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

13  Each sample of the signal is quantized to one of the amplitude levels, where B is the number of bits used to represent each sample.  The quantized waveform is modeled as :  e(n) represent the quantization error, Which we treat as an additive noise. 13 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

14 ◦ For small, it is reasonable to assume that is a random variable uniformly distributed from to.  Where the step size of the quantizer is 14 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

15 ◦ If is the maximum amplitude of signal, ◦ The mean square value of the quantization error is : ◦ Measured in dB, The mean square value of the noise is : 15 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

16 16 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

17 Ideal C.T. to D.T. Converter: 17 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

18 18 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

19 Shifting property 19 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

20 CTFT (1) (2) (1), (2) (eq.3) 20 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

21 Frequency Domain: (Eq.4) 21 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

22 (eq.3) (eq.4) (eq.3) and (eq.4) 22 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

23 t t -3T -2T –T 0 T 2T 3T t 0 23

24 t -3T -2T –T 0 T 2T 3T To avoid aliasing: n -3 -2 –1 0 1 2 24

25 25

26 26 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

27  Anti-aliasing (i.e. pre-) filters are analog filters serving two purposes: ◦ That the bandwidth of the signal to be sampled is limited to the desired frequency range (thus no aliasing). ◦ Limiting the additive noise spectrum and other interference corrupting the desired signal. Thus, it rejects the out-of-band noise. General configuration of digital processing systems 27 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

28 Changing the Sampling Rate 28

29 n -3 -2 –1 0 1 2 a b cd e f n -1 0 1 b df Downsample by a factor of 2 Downsample by a factor of N: Keep one sample, throw away (N-1) samples Advantage? 29 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

30 -3T -2T –T 0 T 2T 3T A continuous-time signal Suppose we now sample at two rates: C/D T (1) C/D MT (2) Q: Relationship between the DTFT’s of these two signals? 30 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

31 C/D T (1) C/D MT (2) Change of variable: 31 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

32 Change of variable: 32 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

33 Change of variable: 33

34 If M=2, 34

35 35

36 What could go wrong here? 36

37 37 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

38 38 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

39 39 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

40 Application? It is the process of increasing the sampling rate by an integer factor. C/D T (1) C/D T/L (2) 40 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

41 n -3 -2 –1 0 1 2 a b cd e f b df 41 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

42 42

43 Question: How can we obtain from ? Proposed Solution: L Low-pass filter with gain L and cut-off frequency 43 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

44 n -3 -2 –1 0 1 2 a b cd e f b df n df 44 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

45 Q: Relationship between the DTFT’s of these three signals? Shifting property: 45

46 On the other hand: (Eq.2) (Eq.1) (Eq.1) and (Eq.2) 46 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

47 In order to get from we thus need an ideal low-pass filter. L 47

48 L 48

49  The input and output plots of a factor-of-5/3 interpolator are given below 49 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

50 fractional changesampling rate  To implement a fractional change in the sampling rate we need to employ a cascade of an up-sampler and a down-sampler. 50 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi

51 51

52 52

53  Reviewed sampling of continuous time signals and the relationship between CTFT and DTFT.  Derived the effect of downsampling and upsampling of signals in the frequency domain.  Adjusting the sampling rate is especially important before applying pattern recognition algorithms, as it can decrease the complexity of the subsequent signal processing algorithms (by decreasing the length of the signal of interest). 53 Hossein Sameti, ECE, UBC, Summer 2012 Originally Prepared by: Mehrdad Fatourechi


Download ppt "Hossein Sameti Department of Computer Engineering Sharif University of Technology."

Similar presentations


Ads by Google