Presentation is loading. Please wait.

Presentation is loading. Please wait.

Analog to digital conversion

Similar presentations


Presentation on theme: "Analog to digital conversion"โ€” Presentation transcript:

1 Analog to digital conversion
The first step to move from analog to digital communications is to digitize the analog signal This can be accomplished by using an analog to digital converter A/D The analog to digital converter is composed from three different processes

2 Analog to digital A/D converter
Sampling, which is explained in details Quantization process Binary encoding, convert each quantized value into a binary code word m(t) m[n]=m[nTs] v[nTs]

3 Quantization Quantization is the process of converting continuous amplitude samples ๐‘š(๐‘› ๐‘‡ ๐‘  ) of a continuous message signal ๐‘š(๐‘ก) at time ๐‘ก=๐‘› ๐‘‡ ๐‘  into a discrete amplitude ๐‘ฃ(๐‘› ๐‘‡ ๐‘  ) taken from a finite set of possible amplitudes This process is illustrated graphically in the next slide

4 Quantization

5 Uniform and non uniform quantization
Quantizers can be classifieds into uniform or non uniform In uniform quantizers the step size is equally spaced between the adjacent levels In non uniform step size โˆ† is made variable according to the sample amplitude

6 Uniform quantization simplest Most popular
Conceptually of great importance The input output characteristics of the quantizer are Staircase-like Non-linear Qunatizers can be classifieds into midtread or midrise

7 Midtread and midrise quantizers
Quantized level Quantized level Input level

8 Quantization noise The use of quantization introduces an error between the input signal ๐‘š and the output signal ๐‘ฃ known as the quantization noise The quantization error is defined as ๐‘ž=๐‘šโˆ’๐‘ฃ The value of the quantization noise will be ยฑ โˆ† 2 , where โˆ† is the step size

9 pdf of the quantization noise
Usually the quantizer input ๐‘š is a sample value of zero-mean random variable ๐‘€ This means that the quantization noise is a random variable which can be expressed as ๐‘„=๐‘€โˆ’๐‘‰ Now we need to find and expression for the signal to quantization noise ratio

10 Signal to quantization noise ratio
Consider the input signal ๐‘š of continuous amplitude in the range โˆ’ ๐‘š ๐‘š๐‘Ž๐‘ฅ , ๐‘š ๐‘š๐‘Ž๐‘ฅ , The step size โˆ† will be defined as โˆ†= 2๐‘š ๐‘š๐‘Ž๐‘ฅ ๐ฟ = ๐‘š ๐‘๐‘ ๐ฟ , where ๐ฟ ๐‘–๐‘  ๐‘กโ„Ž๐‘’ ๐‘ก๐‘œ๐‘ก๐‘Ž๐‘™ ๐‘›๐‘ข๐‘š๐‘๐‘’๐‘Ÿ ๐‘œ๐‘“๐‘™๐‘’๐‘ฃ๐‘’๐‘™๐‘ 

11 Signal to quantization noise ratio
If the number of quantization levels ๐ฟ is sufficiently large ( โˆ† is small), we can assume that the quantization error ๐‘„ is uniformly distributed This means that the pdf of ๐‘„ can be written as ๐‘“ ๐‘„ ๐‘ž = 1 โˆ† โˆ’ โˆ† 2 โ‰ค๐‘žโ‰ค โˆ† ๐‘œ๐‘กโ„Ž๐‘’๐‘Ÿ๐‘ค๐‘–๐‘ ๐‘’

12 Signal to quantization noise ratio
With the mean of the quantization error being zero, its variance ๐œŽ2 ๐‘„ =๐ธ[๐‘„2] = โˆ’ โˆ† โˆ† 2 ๐‘ž 2 ๐‘“ ๐‘„ ๐‘ž ๐‘‘๐‘ž ๐œŽ2 ๐‘„ = 1 โˆ† โˆ’ โˆ† โˆ† 2 ๐‘ž 2 ๐‘‘๐‘ž = โˆ†2 12 Note that the variance represents the average ac power contained in the noise

13 Signal to quantization noise ratio
Recall that โˆ†= 2 ๐‘š ๐‘š๐‘Ž๐‘ฅ ๐ฟ For binary representation the number of levels can be written as ๐ฟ= 2 ๐‘… , ๐‘คโ„Ž๐‘’๐‘Ÿ๐‘’ ๐‘–๐‘  ๐‘กโ„Ž๐‘’ ๐‘ก๐‘œ๐‘ก๐‘Ž๐‘™ ๐‘›๐‘ข๐‘š๐‘๐‘’๐‘Ÿ ๐‘œ๐‘“ ๐‘๐‘–๐‘ก๐‘  By substituting the values of ๐ฟ and โˆ† in ๐œŽ2 ๐‘„ we have ๐œŽ2 ๐‘„ = ๐‘š2๐‘š๐‘Ž๐‘ฅ 2 2๐‘…

14 Signal to quantization noise ratio
If the average power of the message signal ๐‘š(๐‘ก) is denoted by ๐‘ƒ, then the signal to noise ratio at the output of the quantizer S๐‘๐‘… ๐‘‚= 3๐‘ƒ ๐‘š2 ๐‘š๐‘Ž๐‘ฅ ๐‘… Note that the signal to noise ratio at the output of the quantizer can be increased by increasing the number of bits or number of levels

15 Standard number of bits for audio A/D
Standard audio A/D converters uses 8 bits, while 16 bits are used in sound cards in PC system

16 Example 1 A given A/D converter is excited by a sine wave whose peak amplitude is ๐ด ๐‘š , determine the signal to noise ratio in dB if 5 bits are used in the quantizer, repeat the problem if 8 bits are used

17 Solution The average power in a sinusoidal wave is given by
๐‘ƒ ๐‘Ž๐‘ฃ = ๐ด2 ๐‘š 2 The signal to noise ration can be found from the expression S๐‘๐‘… ๐‘‚= 3๐‘ƒ ๐‘š2 ๐‘š๐‘Ž๐‘ฅ ๐‘… as ๐‘†๐‘๐‘… ๐‘‚= ๐ด2 ๐‘š ๐ด 2 ๐‘š ๐‘… = ๐‘…

18 Solution Converting the previous expression to dB, we can write
For R=5, ๐‘†๐‘๐‘… ๐‘‚=31.8 ๐‘‘๐ต For R=8, ๐‘†๐‘๐‘… ๐‘‚=49.8 ๐‘‘๐ต

19 Example 2 The information in analog waveform, with a maximum frequency ๐‘“ ๐‘š =3 ๐‘˜๐ป๐‘ง, is to be transmitted over an M-ary PAM system, where the number of PAM levels is ๐ฟ=16. The quantization distortion is specified not to exceed ยฑ1% of the peak to peak analog signal

20 Example 2 Relation between the number of bits and the noise level
What is the minimum number of bits/sample, or bits/PCM that should be used in digitizing the analog waveform What is the minimum required sampling rate, and what is the resulting bit transmission rate What is the PAM pulse or symbol transmission rate? If the transmission bandwidth (including filtering) equals 12 kHz, determine the bandwidth efficiency of this system

21 Solution example 2 Note that the maximum quantization error does not exceed ๐‘žโ‰ค โˆ† 2 . It is also defined for this example as ๐‘ž=0.01 ๐‘š ๐‘๐‘ . Equating both equations โˆ† 2 =0.01 ๐‘š ๐‘๐‘ ๐‘š ๐‘๐‘ 2 ๐‘… =0.01 ๐‘š ๐‘๐‘ ๐‘…= ๐‘™๐‘œ๐‘” ร—0.01 =5.6 ๐‘๐‘–๐‘ก๐‘  ๐‘œ๐‘Ÿ ๐‘…โ‰ˆ6 ๐‘๐‘–๐‘ก๐‘ 

22 Solution example 2 According to the Nyquist criterion, the sampling rate would be ๐‘“ ๐‘  =2 ๐‘“ ๐‘š =6000 ๐‘ ๐‘š๐‘๐‘™๐‘’๐‘ /๐‘ ๐‘’๐‘๐‘œ๐‘›๐‘‘. The bit transmission rate would be the number of bits multiplied by the sampling rate ๐‘… ๐‘ =๐‘…ร— ๐‘“ ๐‘  =6ร—6000=36000 ๐‘๐‘–๐‘ก/๐‘ ๐‘’๐‘๐‘œ๐‘›๐‘‘

23 Solution example 2 Since multilevel pulses are to be used with ๐‘™= 2 ๐‘… =16โ†’๐‘…=4 ๐‘๐‘–๐‘ก๐‘ /๐‘ ๐‘ฆ๐‘š๐‘๐‘œ๐‘™. Therefore the bit stream will be partitioned into groups of 4 bits to form the new 16-level PAM digits, and the resulting transmission rate is ๐‘… ๐‘ƒ๐ด๐‘€ = ๐‘… ๐‘ 4 = =9000 ๐‘ ๐‘ฆ๐‘š๐‘๐‘œ๐‘™๐‘ /๐‘ ๐‘’๐‘๐‘œ๐‘›๐‘‘

24 Solution example 2 The bandwidth efficiency is defined as the data throughput per hertz, ๐‘… ๐‘ ๐‘… ๐‘ ๐‘โ„Ž๐‘Ž๐‘›๐‘›๐‘’๐‘™ ๐ต๐‘Š = =3 ๐‘๐‘–๐‘ก๐‘  ๐‘  /๐ป๐‘ง ๐‘… ๐‘ ๐‘โ„Ž๐‘Ž๐‘›๐‘›๐‘’๐‘™ ๐ต๐‘Š = =3 ๐‘๐‘–๐‘ก๐‘  ๐‘  /๐ป๐‘ง

25 non uniform quantization
Non uniform quantization is used in telephophonic communications Analysis shows that the ratio of the peaks of the loud talks to the peaks of the weak talks is in the order of 1000 to 1 In non uniform step size โˆ† is made variable according to the sample amplitude

26 non uniform quantization
The use of a non uniform quantizer is equivalent to passing the baseband signal through a compressor and then applying the signal to a uniform quantizer Two commonly used compression laws known as ๐œ‡โˆ’๐‘™๐‘Ž๐‘ค ๐‘Ž๐‘›๐‘‘ ๐ดโˆ’๐‘™๐‘Ž๐‘ค can be applied to the signal to achieve compression

27 ๐œ‡โˆ’๐‘™๐‘Ž๐‘ค compression law The ๐œ‡โˆ’๐‘™๐‘Ž๐‘ค is defined by ๐‘ฃ = logโก(1+๐œ‡ ๐‘š ) logโก(1+๐œ‡) where ๐‘š and ๐‘ฃ are the normalized input and output of voltages, ๐œ‡ is a positive integer

28 ๐ดโˆ’๐‘™๐‘Ž๐‘ค compression law The ๐ดโˆ’๐‘™๐‘Ž๐‘ค is defined by ๐‘ฃ = ๐ด ๐‘š 1+๐‘™๐‘œ๐‘”๐ด , 0โ‰ค ๐‘š โ‰ค 1 ๐ด logโก(๐ด ๐‘š ) 1+๐‘™๐‘œ๐‘”๐ด , 1 ๐ด โ‰ค ๐‘š โ‰ค1

29 Non uniform quantization
To restore the signal samples to their correct relative level in the receiver, an expander is used The combination of a compressor and an expander is called compander For both ๐œ‡โˆ’๐‘™๐‘Ž๐‘ค and ๐ดโˆ’๐‘™๐‘Ž๐‘ค, the dynamic range capability of the compander improves with increasing ๐œ‡ and ๐ด

30 Non uniform quantization
The SNR for low level signals increases on the expenese of the SNR for high-level signals A compromise is usually made in choosing the value of ๐œ‡ and ๐ด Typical values of ๐œ‡=255 ๐‘Ž๐‘›๐‘‘ ๐ด=87.6 are used

31 Pulse Code Modulation PCM
PCM is the most basic form of digital pulse modulation PCM is accomplished by representing the signal in discrete form in both time and a amplitude PCM can be described by the block diagram shown in the next slide

32 PCM block diagram Anti alias filter


Download ppt "Analog to digital conversion"

Similar presentations


Ads by Google