1 / 12

Conceptual Representation of A/D Conversion

C/D. Quantizer. Coder. T. a - b. s. a -1. a -2. a -3. a -4. Conceptual Representation of A/D Conversion. 2 - b. 2 -1. 2 -2. 2 -3. 2 -4. Signed, ( b +1)-bit fixed-point fraction. Typical Quantizer for A/D Conversion. Two’s-complement code. Offset binary code. 011 010 001

Télécharger la présentation

Conceptual Representation of A/D Conversion

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. C/D Quantizer Coder T a-b s a-1 a-2 a-3 a-4 Conceptual Representation of A/D Conversion 2-b 2-1 2-2 2-3 2-4 Signed, (b+1)-bit fixed-point fraction

  2. Typical Quantizer for A/D Conversion Two’s-complement code Offset binary code 011 010 001 000 111 110 101 100 111 110 101 100 011 010 001 100 2Xm

  3. Possible Numeric Interpretations No zero-step value

  4. Quantized samples Unquantized samples Output of ideal sample and hold Output of D/A converter 3D Originalsignal 2D D 0 Amplitude -D -2D -3D -4D 0 011 3 T 000 0 2T 100 -4 3T 110 -2 4T 011 3 5T 011 3 t Example 3-Bit Quantizer

  5. Overflow Characteristics Saturation Zeroing Sawtooth

  6. Quantization clear N = 3; % number of bits in = -1.5 : .01 : 1.5; out = qtz(in,N); stairs(in,out); grid axis equal This quantizer clips out-of-range values. (saturation) function y = qtz(in,N) n = 2^(N-1); y = round(in*n)/n; % clip output at limits max = 1 - 1/n; idx = find(y>max); y(idx)=max; idx = find(y<-1); y(idx)=-1; Change round to floor for truncation. >> unique(out) ans = -1.0000 -0.7500 -0.5000 -0.2500 0 0.2500 0.5000 0.7500

  7. 1 0 -1 0 50 100 150 1 0 -1 0 50 100 150 0.2 0 -0.2 0 50 100 150 -3 x 10 5 0 -5 0 50 100 150 Quantization Example clear n = 0:150; x = 0.99*cos(n/10); subplot(4,1,1); stem(n,x); subplot(4,1,2); y = qtz(x,3); stem(n,y); grid; subplot(4,1,3); stem(n,x-y); subplot(4,1,4); y = qtz(x,8); stem(n,x-y); Unquantized samples of signal 0.99 cos(n/10) Quantized samples of original signal (3-bits) Quantization error sequence (3-bit quantization) Alan V. Oppenheim and Ronald W. Schafer with John R. Buck, Discrete-Time Signal Processing, Second Edition, Prentice-Hall, 1999. 194-195 Quantization error sequence (8-bit quantization)

  8. Analysis of Quantization Errors • The difference between the quantized sample x[n] and true sample value x[n] is the quantization error: • e[n] = x[n] – x[n]. • If a linear round-off (B+1)-bit quantizer is used, then • -D/2 < e[n]  D/2 • which holds whenever • (-Xm – D/2) < x[n]  (Xm – D/2) • where D is step size of the quantizer: • D = Xm/2B • If x[n] is outside the range mentioned above, then the quantization error is larger in magnitude than D/2 and such samples are said to be clipped.

  9. Analysis of Quantization Errors 2 • The statistical representation of quantization errors is based on the following assumptions: • The error sequences e[n] is a sample sequence of a stationary random process. • The error sequence is uncorrelated with the sequence x[n]. • The random variables of the error process are uncorrelated; i.e., the error is a white-noise process. • The probability distribution of the error process is a uniform over the range of quantization error.

  10. Additive Noise Model for Quantizer Quantizer Q{.} x[n] x[n] = Q{x[n]} x[n] x[n] = x[n] + e[n] + e[n]

  11. p(e) e Quantization Error Observations • In low number-bit case, the error signal is highly correlated with the unquantized signal. • The quantization error for high number-bit quantization is assumed to vary randomly and is uncorrelated with the unquantized signal. For a (B+1)-bit quantizer with full-scale value Xmthe noise variance or power is

  12. Quantization SNR where sx2 is the variance of the signal for a rounding quantizer • The SNR ratio increases approximately 6 dB for each bit added to the word length of the quantized samples. If we set the range of the signal to four times the signal variance to avoid clipping the peaks, then Xm = 4 sx

More Related