Analogue to Digital Conversion (PCM and DM)

Slides:



Advertisements
Similar presentations
Signal Encoding Techniques
Advertisements

Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 5 – Signal Encoding Techniques.
Lecture 26 Physical Layer Ch 4: Digital Transmission
Data and Computer Communications
Theoretical basis for data communication
Stallings, Wireless Communications & Networks, Second Edition, © 2005 Pearson Education, Inc. All rights reserved Signal Encoding Techniques.
4.2 Digital Transmission Pulse Modulation (Part 2.1)
Lab 2 COMMUNICATION TECHNOLOGY II. Capacity of a System The bit rate of a system increases with an increase in the number of signal levels we use to denote.
Pulse Code Modulation Lecture 5.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 4 Digital Transmission.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 4 Digital Transmission Stephen Kim 4.1.
Data Communications and Networking
EKT343 –Principle of Communication Engineering
Chapter 4 Digital Transmission
331: STUDY DATA COMMUNICATIONS AND NETWORKS.  1. Discuss computer networks (5 hrs)  2. Discuss data communications (15 hrs)
Digital Communication Symbol Modulated Carrier RX Symbol Decision Binary Bytes D/A Recovered Analog Binary Bytes Symbol State Modulation A/D Analog Source.
1/21 Chapter 5 – Signal Encoding and Modulation Techniques.
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
A/D Conversion No. 1  Seattle Pacific University Analog to Digital Conversion Based on Chapter 5 of William Stallings, Data and Computer Communication.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2001 Data Transmission Techniques Data to be transmitted is of two types 1.Analog data 2.Digital data Therefore,
DIGITAL VOICE NETWORKS ECE 421E Tuesday, October 02, 2012.
Pulse Code Modulation (PCM)
Signal Encoding Techniques Chapter 6. Reasons for Choosing Encoding Techniques  Digital data, digital signal Equipment less complex and expensive than.
10/6/2015 3:12 AM1 Data Encoding ─ Analog Data, Digital Signals (5.3) CSE 3213 Fall 2011.
Professor: Dr. Miguel Alonso Jr.
Signal Encoding Techniques. Lecture Learning Outcomes Be able to understand, appreciate and differentiate the different signal encoding criteria available.
Chapter #5 Pulse Modulation
Chapter 4 Digital Transmission.
Digital Transmission Outlines:- Multiplexing FDM TDM WDM
BZUPAGES.COM 4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
British Computer Society (BCS)
Kashif BashirWWW.Taleem.greatnow.com Chapter 4 Digital Transmission.
Basic Encoding Techniques
Pulse Code Modulation PCM is a method of converting an analog signal into a digital signal. (A/D conversion) The amplitude of Analog signal can take any.
Signal Encoding Techniques Chapter 6. Reasons for Choosing Encoding Techniques Digital data, digital signal Equipment less complex and expensive than.
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2009.
Chapter 4 Digital Transmission. 4.#2 4-1 DIGITAL-TO-DIGITAL CONVERSION line coding, block coding, and scrambling. Line coding is always needed; block.
Chapter 4 Digital Transmission.
Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 4 Digital Transmission
◦ We sometimes need to digitize an analog signal ◦ To send human voice over a long distance, we need to digitize it, since digital signals are less prone.
4.2 Digital Transmission Pulse Modulation Pulse Code Modulation
A. B. M. Nasiruzzaman Dept. of EEE, RUET According to the Nyquist theorem, the sampling rate must be at least 2 times the highest frequency contained in.
Chapter 4 Digital Transmission. 4.2 Summary Line Coding Line Coding Schemes Block Coding Scrambling Signal Element versus data element Multilevel : 2b1Q.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2014.
Transmission Media. Quiz: ANGEL->Lessons->Quiz 2 Figure 1Figure 2 Figure 3Figure 4.
1 What is Multimedia? Multimedia can have a many definitions Multimedia means that computer information can be represented through media types: – Text.
1 st semester 1436 / Modulation Continuous wave (CW) modulation AM Angle modulation FM PM Pulse Modulation Analog Pulse Modulation PAMPPMPDM Digital.
Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Lifecycle from Sound to Digital to Sound. Characteristics of Sound Amplitude Wavelength (w) Frequency ( ) Timbre Hearing: [20Hz – 20KHz] Speech: [200Hz.
Chapter 4. Digital Transmission
Dr. Clincy Professor of CS
Signal Encoding Techniques
Analog to digital conversion
Topics discussed in this section:
UNIT – III I: Digital Transmission.
4.1 Chapter 4 Digital Transmission Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Pulse Code Modulation (PCM)
Dr. Clincy Professor of CS
Pulse Code Modulation (PCM)
4.2 Digital Transmission Pulse Modulation (Part 2.1)
Chapter 4 Digital Transmission
Signal Encoding Techniques
Digital Control Systems Waseem Gulsher
Pulse Code Modulation (PCM)
Lecture 10: Quantizing & PCM 1nd semester By: Adal ALashban.
Mr. Haneef Khan Department of Computer Networks College of CS&IS
Analog to Digital Encoding
Chapter 4 Digital Transmission 4.# 1
Presentation transcript:

Analogue to Digital Conversion (PCM and DM)

The advantages offered by digital modulation Performance Digital pulse modulation permits the use of regenerative repeaters, when placed along the transmission path at short enough distances, can practically eliminate the degrading effects of channel noise and signal distortion. Ruggedness A digital communication system can be designed to withstand the effects of channel noise and signal distortion Reliability Can be made highly reliable by exploiting powerful error-control coding techniques. Security Can be made highly secure by exploiting powerful encryption algorithms Efficiency Inherently more efficient than analogue communication system in the trade-off between transmission bandwidth and signal-to-noise ratio System integration To integrate digitized analogue signals with digital computer data

Digitizing Analogue Data Stallings DCC9e Figure 5.15 shows voice data that are digitized and then converted to an analog ASK signal. This allows digital transmission in the sense defined in Chapter 3. The voice data, because they have been digitized, can be treated as digital data, even though transmission requirements (e.g., use of microwave) dictate that an analog signal be used. The device used for converting analog data into digital form for transmission, and subsequently recovering the original analog data from the digital, is known as a codec (coder-decoder). In this section we examine the two principal techniques used in codecs, pulse code modulation and delta modulation. The section closes with a discussion of comparative performance.

Pulse Code Modulation (PCM) The simplest technique for transforming analogue data into digital signals is pulse code modulation (PCM). sampling theorem: “If a signal is sampled at regular intervals at a rate higher than twice the highest signal frequency, the samples contain all information in original signal” eg. 4000Hz voice message, requires 8000 samples per second strictly have analog samples Pulse Amplitude Modulation (PAM) assign each a digital value The simplest technique for transforming analog data into digital signals is pulse code modulation (PCM), which involves sampling the analog data periodically and quantizing the samples. Pulse code modulation (PCM) is based on the sampling theorem (quoted above). Hence if voice data is limited to frequencies below 4000 Hz (a conservative procedure for intelligibility), 8000 samples per second would be sufficient to characterize the voice signal completely. Note, however, that these are analog samples, called pulse amplitude modulation (PAM) samples. To convert to digital, each of these analog samples must be assigned a binary code.

Figure Components of PCM encoder

Figure Three different sampling methods for PCM Sampling called pulse amplitude modulation (PAM), the result is still analogue signal with non-integral value.

Figure Nyquist sampling rate for low-pass and bandpass signals According to the Nyquist theorem, the sampling rate must be at least 2 times the highest frequency (not the bandwidth) contained in the signal.

Example For an intuitive example of the Nyquist theorem, let us sample a simple sine wave at three sampling rates: fs = 4f (2 times the Nyquist rate), fs = 2f (Nyquist rate), and fs = f (one-half the Nyquist rate). Figure 4.24 shows the sampling and the subsequent recovery of the signal. It can be seen that sampling at the Nyquist rate can create a good approximation of the original sine wave (part a). Oversampling in part b can also create the same approximation, but it is redundant and unnecessary. Sampling below the Nyquist rate (part c) does not produce a signal that looks like the original sine wave. Telephone companies digitize voice by assuming a maximum frequency of 4000 Hz. The sampling rate therefore is 8000 samples per second.

PCM Block Diagram Thus, PCM starts with a continuous-time, continuous-amplitude (analog) signal, from which a digital signal is produced, as shown in Stallings DCC9e Figure 5.17. The digital signal consists of blocks of n bits, where each n-bit number is the amplitude of a PCM pulse. On reception, the process is reversed to reproduce the analog signal. Notice, however, that this process violates the terms of the sampling theorem. By quantizing the PAM pulse, the original signal is now only approximated and cannot be recovered exactly. This effect is known as quantizing error or quantizing noise. Each additional bit used for quantizing increases SNR by about 6 dB, which is a factor of 4.

Quantisation The results of sampling is a set of amplitude which can be infinite of non-integral values between two limits Vmin and Vmax. Divide the range into L steps, each of height Δ We approximate the sampled value to the quantised value (midpoint) (quantisation error)

Figure 4.26 Quantization and encoding of a sampled signal Δ=[20V-(-20V)]/8 = 5V

Quantisation level L, depends on the range of the amplitudes and how accurately we need. L= 2n, audio communication , L=256. less L more quantisation error. Quantisation error: Quantisation is a approximation process. –Δ/2 ≤ error ≤ Δ/2 The contribution of the Quantisation error to the SNRdB of the signal depends on the number of the quantisation level L, or the bits per sample nb. nb = log2 L signal to quantisation error (or noise) ratio SNRdb = 6.02nb + 1.76 dB Each additional bit used for quantizing increases SNR by about 6 dB, which is a factor of 4.

Example What is the SNRdB in the example of Figure 4.26? Solution We can use the formula to find the quantization SNR. We have eight levels and 3 bits per sample, so SNRdB = 6.02×(3) + 1.76 = 19.82 dB Increasing the number of levels increases the SNR.

Each quantised value can be coded to an nb bit code word. Encoding Each quantised value can be coded to an nb bit code word. Bit rate = sampling rate × number of bit per sample = fs × nb = fs × log2L We want to digitize the human voice. What is the bit rate, assuming 8 bits per sample? The human voice normally contains frequencies from 0 to 4000 Hz. So the sampling rate and bit rate are calculated as follows:

PCM bandwidth Bmin = nb × B analogue The minimum bandwidth of a PCM signal Bmin = nb × B analogue We have a low-pass analog signal of 4 kHz. If we send the analog signal, we need a channel with a minimum bandwidth of 4 kHz. If we digitize the signal and send 8 bits per sample, we need a channel with a minimum bandwidth of 8 × 4 kHz = 32 kHz. Maximum data rate of a channel Rmax = 2 × B × log2L Minimum required bandwidth

Delta Modulation (DM) PCM finds value of amplitude of each sample; DM finds the change from the previous sample. analog input is approximated by a staircase function can move up or down one level (Δ) at each sample interval has binary behavior function only moves up or down at each sample interval hence can encode each sample as single bit 1 for up or 0 for down A variety of techniques have been used to improve the performance of PCM or to reduce its complexity. One of the most popular alternatives to PCM is delta modulation (DM). With delta modulation, an analog input is approximated by a staircase function that moves up or down by one quantization level () at each sampling interval (Ts). The important characteristic of this staircase function is that its behavior is binary: At each sampling time, the function moves up or down a constant amount . Thus, the output of the delta modulation process can be represented as a single binary digit for each sample. In essence, a bit stream is produced by approximating the derivative of an analog signal rather than its amplitude: A 1 is generated if the staircase function is to go up during the next interval; a 0 is generated otherwise.

Figure The process of delta modulation Stallings DCC9e Figure 5.20 shows an example where the staircase function is overlaid on the original analog waveform. A 1 is generated if the staircase function is to go up during the next interval; a 0 is generated otherwise. The transition (up or down) that occurs at each sampling interval is chosen so that the staircase function tracks the original analog waveform as closely as possible. There are two important parameters in a DM scheme: the size of the step assigned to each binary digit, , and the sampling rate. As the above figure illustrates,  must be chosen to produce a balance between two types of errors or noise. When the analog waveform is changing very slowly, there will be quantizing noise. This noise increases as  is increased. On the other hand, when the analog waveform is changing more rapidly than the staircase can follow, there is slope overload noise. This noise increases as  is decreased. It should be clear that the accuracy of the scheme can be improved by increasing the sampling rate. However, this increases the data rate of the output signal.

Figure Delta modulation and demodulation components Stallings DCC9e Figure 5.21 illustrates the logic of the process, which is essentially a feedback mechanism. For transmission, the following occurs: At each sampling time, the analog input is compared to the most recent value of the approximating staircase function. If the value of the sampled waveform exceeds that of the staircase function, a 1 is generated; otherwise, a 0 is generated. Thus, the staircase is always changed in the direction of the input signal. The output of the DM process is therefore a binary sequence that can be used at the receiver to reconstruct the staircase function. The staircase function can then be smoothed by some type of integration process or by passing it through a low pass filter to produce an analog approximation of the analog input signal.

PCM verses Delta Modulation DM has simplicity compared to PCM but has worse SNR issue of bandwidth used for good voice reproduction with PCM: want 128 levels (7 bit) & voice bandwidth 4khz need 8000 x 7 = 56kbps data compression can improve on this still growing demand for digital signals use of repeaters, TDM, efficient switching PCM preferred to DM for analog signals The principal advantage of DM over PCM is the simplicity of its implementation. In general, PCM exhibits better SNR characteristics at the same data rate. Good voice reproduction via PCM can be achieved with 128 quantization levels, or 7-bit coding (27 = 128). A voice signal, conservatively, occupies a bandwidth of 4 kHz. Thus, according to the sampling theorem, samples should be taken at a rate of 8000 samples per second. This implies a data rate of 8000  7 = 56 kbps for the PCM-encoded digital data. But using the Nyquist criterion from Chapter 3, this digital signal could require on the order of 28 kHz of bandwidth. Even more severe differences are seen with higher bandwidth signals. For example, a common PCM scheme for color television uses 10-bit codes, which works out to 92 Mbps for a 4.6-MHz bandwidth signal. In spite of these numbers, digital techniques continue to grow in popularity for transmitting analog data. The principal reasons for this are • Because repeaters are used instead of amplifiers, there is no cumulative noise. • use time division multiplexing (TDM) for digital signals with no intermodulation noise, verses of the frequency division multiplexing (FDM) used for analog signals. • The conversion to digital signaling allows the use of the more efficient digital switching techniques. Furthermore, techniques have been developed to provide more efficient codes. Studies also show that PCM-related techniques are preferable to DM-related techniques for digitizing analog signals that represent digital data.