Digital Signal Processing Essentials

pcm delta modulation l.w
1 / 58
Embed
Share

Explore the fundamentals of digital signal processing, including techniques such as PCM and Delta Modulation, Quantization, and Analog to Digital Conversion. Learn how to convert analog data into digital form for transmission efficiently. Gain insights into the sampling and quantization processes vital for maintaining the accuracy and resolution of digitized signals.

  • Digital Signal Processing
  • Signal Conversion
  • Quantization
  • Analog to Digital
  • Sampling

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. PCM & Delta Modulation Module 4

  2. Quantization of signal PCM Encoder and PCM Decoder (Block Diagram & response) Noise in PCM(Quantization noise), SNR Calculation. Delta & Adaptive Modulation (Block Diagram & response) To be discussed .

  3. Basic digital communications system Transmitter EM waves (modulated signal) Digital signal Analog signal Transmission Channel Input transducer Modulator Carrier EM waves (modulated signal) Receiver digital signal analog signal Output transducer Demodulator 3

  4. So we convert analog data to digital form for transmission. How . Digitize analog signal at the sending terminal Transmit Digital Signal Convert digital signal back to analog signal at receiver. Digitization Procedure: Sampling (obtain signal values at equal intervals (T)) Quantization (approximate samples to certain values) Digital Transmission of Analog Data

  5. Digitization Procedure

  6. System

  7. Sampling results in a series of pulses of varying amplitude values ranging between two limits: a min and a max. The amplitude values are infinite between the two limits. We need to map the infinite amplitude values onto a finite set of known values. This is achieved by dividing the distance between min and max into L zones, each of height = (max - min)/L Quantization

  8. The midpoint of each zone is assigned a value from 0 to L-1 (resulting in L values) Each sample falling in a zone is then approximated to the value of the midpoint. The magnitude difference between adjacent steps is called the quantization interval or quantum. So, Quantization is the process of converting an infinite no of possibilities to a finite set of values. Quantization

  9. The magnitude of a quantum is also called the resolution. The resolution is equal to the voltage of the minimum step size, which is equal to the voltage of the least significant bit (Vlsb) of the PCM code. The smaller the magnitude of a quantum, the better (smaller) the resolution and the more accurately the quantized signal will resemble the original analog sample. Resolution

  10. Assume we have a voltage signal with amplitudes Vmin=-20V and Vmax=+20V. We want to use L=8 quantization levels. Zone width = (20 - -20)/8 = 5 The 8 zones are: -20 to -15, -15 to -10, -10 to -5, -5 to 0, 0 to +5, +5 to +10, +10 to +15, +15 to +20 The midpoints are: -17.5, -12.5, -7.5, -2.5, 2.5, 7.5, 12.5, 17.5 Quantization Zone

  11. Each zone is then assigned a binary code. The number of bits required to encode the zones, or the number of bits per sample as it is commonly referred to, is obtained as follows: nb = log2 L Given our example, nb = 3 The 8 zone (or level) codes are therefore: 000, 001, 010, 011, 100, 101, 110, and 111 Assigning codes to zones: 000 will refer to zone -20 to -15 001 to zone -15 to -10, etc. Important to note:- Coding...

  12. Quantization and coding

  13. Type of Quantization

  14. PCM Encoder

  15. PCM Decoder

  16. To protect the signal from noise, interference and other forms of channel impairments we use encoding process. The maximum advantage over the effect of noise in a transmission medium is obtained by using a binary code, because a binary symbol withstands a relatively high level of noise and easy to regenerate. If in a binary system, each code word consists of R bits, i.e., R no of bits per sample. Then using such a code, we may represent a total of distinct nos. so, a sample quantized into 256 levels may be represented by a 8 bit code word. R 2 Coding

  17. Types of Coding: Uni polar NRZ (fig a) Polar NRZ (fig b) Uni polar RZ (fig c) Bipolar RZ (fig d) Manchester Code (fig e) Line Codes

  18. To recover an analog signal from a digitized signal we follow the following steps: We use a hold circuit that holds the amplitude value of a pulse till the next pulse arrives. We pass this signal through a low pass filter with a cutoff frequency that is equal to the highest frequency in the pre-sampled signal. The higher the value of L, the less distorted a signal is recovered Decoder

  19. PCM Transmitter & Receiver

  20. The function of a sampling circuit in a PCM transmitter is to periodically sample the continually changing analog input voltage and convert those samples to a series of constant- amplitude pulses that can more easily be converted to binary PCM code. Here, we use sample and hold circuits and that generates Flat Top Sampling. Sampling Rate : Nyquist Rate is used for standard sampling (as explained before). For the Analog to Digital Converter (ADC) to accurately convert a voltage to a binary code, the voltage must be relatively constant so that the ADC can complete the conversion before the voltage level changes. If not, the ADC would be continually attempting to follow the changes and may never stabilize on any PCM code. PCM Transceiver

  21. These repeaters are used along with the transmission routes and plays a very important part in PCM systems. Three basic functions are performed by this equalizing, timing and decision making. The Equalizer shapes the received pulses so as to compensate for the effects of amplitude and phase distortion produced by the channel. Timing circuitry produces a periodic pulse train derived from the received pulses for sampling the equalized pulses. Decision Making - Each sample so extracted is then compared to a predetermined threshold in the decision making device. At each bit interval , a decision is then made whether a received symbol is a 1 or 0 on the basis if the threshold is exceeded or not. If the threshold is exceeded a new pulse representing symbol 1 is transmitted to the next repeater. Else a 0 is transmitted. Regenerative Repeater

  22. Decision Making Device PCM Wave (Distorted) Amplifier - Equalizer Regenerated PCM Timing Circuit Regenerative Repeater

  23. In practice, the repeaters are not able to produce the desired output for the following reasons The unavoidable of presence of channel noise and interference causes the repeater to make wrong decisions occasionally, thereby introducing bit errors in the system. If the spacing between received pulses deviates from its assigned value, a jitter is introduced to the regenerated pulse position thus causing distortion. Drawback of Regenerative repeater

  24. Transmission(Parallel/ Serial)

  25. The bit rate of a PCM signal can be calculated form the number of bits per sample x the sampling rate Bit rate = nb x fs The bandwidth required to transmit this signal depends on the type of line encoding used. A digitized signal will always need more bandwidth than the original analog signal. Price we pay for robustness and other features of digital transmission. For B Hz signal we need B Hz channel BW 2B samples/sec B Hz 2 bps 1 Hz Bandwidth & Bit rate for PCM

  26. The human voice normally contains frequencies from 0 to 4000 Hz. So the sampling rate and bit rate are calculated as follows: Example of Bit rate

  27. Two major noise sources in PCM systems (Message-independent) Channel noise (Message-dependent) Quantization noise The quantization noise is often under designer s control, and can be made negligible as by taking adequate number of quantization levels. Noise in PCM

  28. The main effect of channel noise is to introduce bit errors. Notably, the symbol error rate is quite different from the bit error rate. A symbol error may be caused by one-bit error, or two bit error, or three-bit error, or ; so in general, one cannot derive the symbol error rate from the bit error rate (or vice versa) unless some special assumption is made. Considering the reconstruction of original analog signal, a bit error in the most significant bit is more harmful than a bit error in the least significant bit. Channel Noise

  29. When a signal is quantized, we introduce an error - the coded signal is an approximation of the actual amplitude value. The difference between actual and coded value (midpoint) is referred to as the quantization error. The more zones, the smaller which results in smaller errors. BUT, the more zones the more bits required to encode the samples -> higher bit rate Quantization Noise

  30. Noise for Mid tread Quantizer

  31. Signals with lower amplitude values will suffer more from quantization error as the error range: /2, is fixed for all signal levels. Non linear quantization is used to alleviate this problem. Goal is to keep SNQR fixed for all sample values. Two approaches: The quantization levels follow a logarithmic curve. Smaller s at lower amplitudes and larger s at higher amplitudes. Companding: The sample values are compressed at the sender into logarithmic zones, and then expanded at the receiver. The zones are fixed in height. Quantization Noise

  32. Quantization Noise Calculation : Consider, m be the input to the quantizer from a variable set M and after quantization it produces a discrete random variable v and the quantization error is given by q. i.e., q = m-v. if we consider, m is a sample value of zero mean random variable M of continuous amplitude and v is a sample from a set of random variables V and also the quantizer is assumed to be symmetric, the it follows that the quantization error variable Q will have zero mean. if , m is having a value in the range and the no of levels is L . Then step size of quantizer is given by ( , ) maxm m max 2 mmax = L Noise Calculation in PCM

  33. for a uniform quantizer, the quantization error Q will have its sample values bounded by . If the step size is sufficiently small (L is having large value) , then its reasonable to assume that the quantization error Q is a uniformly distributed random variable. So we may express the probability density function of Q as otherwise now having the mean of the quantization error being zero, its variance is the same as the mean square value 2 q / 2 / 2 q 1 = ( ) , fQ q q 2 2 = , 0 = 2 Q 2 [ ] E Q = 2 ( ) f q dq Q 2 Noise Calculation in PCM

  34. substituting in the previous expression we have ) (q fQ 1 2 / 2 = 2 q dq Q / 2 2 = 12 Noise Calculation in PCM

  35. SNR Calculation: if R denotes the no of bits per sample then we can write L = or R = log2 L 2 R 2 m = max so we have which in turn produces R 2 m max 2 3 1 = 2 2 2 R Q Let, P denote the average power of the message signal m(t). Then we can express SNR as P 2 max P = ( ) SNR o 2 Q 3 = 2 R ( 2 ) m SNR in PCM

  36. The SNR expression shows that the output SNR of the quantizer increases exponentially with the increase in no of bits per sample. But, increase in the no of bits requires a proportionate increase in the channel bandwidth. Implication of SNR in PCM

  37. Calculate the SNR for a sinusoidal modulating signal of amplitude Am Sol:- the average signal power is given by A P = 2 m 2 So the variance is calculated as the total range of quantizer is 2Am. So we set m =Am. 1 = 2 Q 2 m 2 R 2 A 3 , so 2 m / 2 2 R 3 A = = 2 R ( ) 2 ( 2 ) SNR o 2 m 2 / 3 A . ., i e 8 . 1 = + 10 log ( ) 6 ( ) SNR R dB 10 o Problem

  38. Quantization process could be of two types uniform & non- uniform. Why non- uniform ?? The range of voltages covered by voice signals from the peaks of loud talks to the weak talk is on the order of 1000 to 1. By using a non-uniform quantizer with the feature that the step size increases as the separation from the input-output amplitude characteristics is increased, the large end steps of the quantizer is can take care of the possible excursion of the voice signal into the large amplitude changes that occur relatively infrequently. Companding

  39. In this method, a nearly uniform percentage precision is achieved throughout the greater part of the amplitude range of the input signal, with the result that fewer steps would be needed than would be the case if a uniform quantizer were used. The equivalent effect of the system is to pass the baseband signal through a compressor and then applying the signal to a uniform quantizer. The popular compression laws used in practice are law and A law. To restore the signal samples at the receiver we need to have a system that will have a characteristics complementary to the compressor is the expander. And the combination of this Compressor and Expander is called Compander. Companding

  40. With conventional PCM, each code is a binary representation of both the sign and the magnitude of a particular sample. Therefore, multiple-bit codes are required to represent the many values that the sample can be. With delta modulation, rather than transmit a coded representation of the sample, only a single bit is transmitted, which simply indicates whether that sample is larger or smaller than the previous sample. Delta Modulation

  41. This scheme sends only the difference between pulses, if the pulse at time tn+1 is higher in amplitude value than the pulse at time tn, then a single bit, say a 1 , is used to indicate the positive value. If the pulse is lower in value, resulting in a negative value, a 0 is used. This scheme works well for small changes in signal values between samples. If changes in amplitude are large, this will result in large errors. DM

  42. Wave form Presentation

  43. Important to note: Delta-modulation rule: smaller smaller T, larger larger T DM

  44. Delta Modulation Components

  45. The input analog is sampled and converted to a PAM signal, which is compared with the output of the DAC. The output of the DAC is a voltage equal to the regenerated magnitude of the previous sample, which was stored in the up-down counter as a binary number. The decremented depending on whether the previous sample is larger or smaller than the current sample. up-down counter is incremented or Delta Modulation Transmitter

  46. The up-down counter is clocked at a rate equal to the sample rate. Therefore, the up-down counter is updated after each comparison. Initially, the up-down counter is zeroed, and the DAC is outputting 0 V. The first sample is taken, converted to a PAM signal, and compared with zero volts. The output of the comparator is a logic 1 condition (+ V), indicating that the current sample is larger in amplitude than the previous sample. On the next clock pulse, the up--down counter is incremented to a count of 1. Delta Modulation Transmitter

  47. Delta Demodulation Receiver

  48. Slope overload - when the analog input signal changes at a faster rate than the DAC can maintain. The slope of the analog signal is greater than the delta modulator can maintain and is called slope overload. Increasing the clock frequency reduces the probability of slope overload occurring. Another way to prevent slope overload is to increase the magnitude of the minimum step size. Problems with DM : Slope Overload

  49. Slope Overload

  50. Granular noise. It can be seen that when the original analog input signal has a relatively constant amplitude, the reconstructed signal has variations that were not present in the original signal. This is called granular noise. Granular noise in delta modulation is analogous to quantization noise in conventional PCM. Problems With DM : Granular Noise

Related


More Related Content