Download Pulse Code Modulation and more Slides Communications Law in PDF only on Docsity!
Unit IVPulse Code Modulation By: Hari Prashad Pant [Sanothimi Campus, Bhaktapur]
Introduction Specific Objective of the Lesson:^ At the end of this lessonstudents will be able: To define modulation and explain the necessity of modulation. To explain the Pulse^ Code^ Modulation^
(PCM)^ technique, companding in PCM, and Delta Modulation. To know about the^ ฮผ-law and A-law To define the PCM Transmission Formats (T1 and E1 Lines) To describe the frame and multiframe and their alignment strategies. To explain the different Line coding techniques To explain the concept of Higher order PCM, Plesiochronous DigitalHierarchy^ (PDH),^ Synchronous
Digital^ Hierarchy^ (SDH)^
and SONET To explain the and other modulation techniques.Sanothimi Campus, BhaktapurJune 2, 2016 By: Hari Prashad Pant
Digital Transmission ANALOG TO DIGITAL CONVERSION Sanothimi Campus, BhaktapurJune 2, 2016By: Hari Prashad Pant
^3
ANALOG-TO-DIGITAL CONVERSION^ ^ A digital signal is superior to an analog signal because itis more robust to noise and can easily be recovered,corrected and amplified. For this reason, the tendencytoday is to change an analog signal to digital data.^ ^ In this section we describe two techniques, pulse codemodulation and delta modulation. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
5
Introduction PCM Objective: Making the digital^ transmission^ possible,
Converting analog form of signal to digital bit stream and then toconvert it into digital signal using suitable digital-to-digital conversion technique.Sanothimi Campus, BhaktapurJune 2, 2016 By: Hari Prashad Pant
Pulse Code Modulation (PCM) Analog transmission is not particularly efficient. Digital signals are more easily separated from noise and can beregenerated in their original state. The conversion of analogue signals to digital signals thereforeeliminates the problems caused by attenuation.Pulse Code Modulation (PCM) is the simplest form of
waveform coding. Waveform coding is used to encode analogue signals (for examplespeech) into a digital signal. The digital signal is subsequentlyused to reconstruct the analogue signal. The accuracy with which the analogue signal can be reproduceddepends in part on the number of bits used to encode the originalsignal. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
6
PCM (Contd...) Pulse code modulation^ is^ an^ extension^
of^ Pulse^ Amplitude Modulation^ (PAM), in which a sampled signal consists of a trainof pulses where each pulse corresponds to the amplitude of thesignal at the corresponding sampling time (the signal is modulatedin amplitude). Each analogue sample value is quantized into a discrete value forrepresentation as a digital code word. Pulse code modulation isthe^ most^ frequently^ used
analogue-to-digital^ conversion technique, and is defined in the ITU-T G.711 specification. The main parts of a conversion system are the
encoder^ (the analogue-to-digital converter) and the
decoder^ (the digital-to- analogue converter). The combined encoder/decoder is known asa^ codec. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
(^7)
Pulse Code Modulation (PCM) PCM consists of three steps to digitize an analog signal:1. Sampling2. Quantization3. Binary encoding Before we sample, we have to filter the signal to limitthe maximum frequency of the signal as it affects thesampling rate. Filtering should ensure that we do not distort the signal,i.e. remove high frequency components that affect thesignal shape. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
Sampling methods for PCM Three different sampling methods for PCM Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant
13
Sampled signal Recovery Example For an intuitive example of the Nyquist theorem, let us sample asimple sine wave at three sampling rates: f
= 4f (2 times thes^ Nyquist^ rate),^ f=s^
2f^ (Nyquist^ rate),
and f= f (one-half the Nyquist rate). Figure in the next slide showss^ the sampling and the subsequent recovery of the signal. It can be seen that sampling at the Nyquist rate can create a goodapproximation of the original sine wave (part a). Oversampling inpart b can also create the same approximation, but it is redundantand unnecessary. Sampling below the Nyquist rate (part c) doesnot produce a signal that looks like the original sine wave. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
14
Sampled signal Recovery Recovery of a sampled sine wave for different sampling rates Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant
(^15)
Examples Telephone companies digitize voice by assuming amaximum frequency of 4000 Hz. The sampling ratetherefore is 8000 samples per second.Question: A complex low-pass signal has a bandwidth of 200 kHz. What isthe minimum sampling rate for this signal? Solution: The bandwidth of a low-pass signal is between 0 and f, where f isthe maximum frequency in the signal. Therefore, we can samplethis signal at 2 times the highest frequency (200 kHz). Thesampling rate is therefore 400,000 samples per second. Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant^
Examples Question: A complex bandpass signal has a bandwidth of 200 kHz.What is the minimum sampling rate for this signal? Solution We cannot find the minimum sampling rate in this casebecause we do not know where the bandwidth starts orends. We do not know the maximum frequency in thesignal. Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant^
Quantizing (Quantization) Quantisation (Quantization) is the process of assigning adiscrete value from a range of possible values to each sampleobtained. The number of possible values will depend on thenumber of bits used to represent each sample. Quantization can be achieved by either 17
rounding^ the signal up or down to the nearest available value, or
truncating^ the signal to the nearest value which is lower than the actualsample.^ The^ process^ results
in^ a^ stepped^ waveform resembling the source signal. The difference between the sample and the value assigned toit is known as the^ quantization noise
(or^ quantization error ). Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant 18
Quantization 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 ^ Note:^ The value of L must be in the power of 2. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
(^19)
Quantization Levels The midpoint of each zone is assigned a value from 0 toL-1 (resulting in L values) Each sample falling in a zone is then approximated tothe value of the midpoint. Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant^
Quantization Error When a signal is quantized, we introduce an error - thecoded signal is an approximation of the actual amplitudevalue. 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 encodethe samples, it simply means higher bit rate Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
25
Quantization Error and SN
RQ^
^ Signals with lower amplitude values will suffer morefrom quantization error as the error range:
/2, is fixed for all signal levels. Non linear quantization is used to alleviate (improve)this problem. Goal is to keep SN
R fixed for all sampleQ values. Two approaches: ^ Non-uniform Quantization: The quantization levels follow alogarithmic^ curve.^ Smaller
โs^ at^ lower^ amplitudes
and largerโs^ at higher amplitudes. Companding: The sample values are compressed at the senderinto logarithmic zones, and then expanded at the receiver. Thezones are fixed in height. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
26
Uniform versus non-uniformQuantization Typically,^ the^ PCM^ method
is^ refined^ by^ using^
a technique called non-linear encoding which means ineffect that quantization levels are not equally spaced. The major problem with equal spacing is that the meanabsolute error for each sample is the same, regardless ofsignal levels. The result is that the lower amplitudevalues are relatively more distorted. By using a greater amplitude and a smaller number ofquantization steps for signals of large amplitude we finda marked reduction in over all signal distortion. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
(^27)
Companding The same effect of less signal distortion by using the non-uniformquantization can be achieved by using a special technique calledcompanding (COMpressing-exPANDING) in the input analogsignal. The companding is a process that compress the intensityrange of signals by imparting more gain to the weak signals thanstrong signals on input. At the output side the reverse process isperformed. That is, the signal is companded at the sender beforeconversion and it is expanded at the receiver after conversion. Companding means reducing the instantaneous voltage amplitudefor large values and expanding is the reverse process. It has been proved that the non-uniform quantization effectivelyreduces the signal to noise ratio (SNR) of quantization.dB Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant^
Companding Working with very small signal levels (by comparison with thequantization interval) can introduce more errors. Companding can be used to increase the accuracy of such signals.This is the process of distorting the analogue signal in a controlledway before quantizing takes place, by compressing its largervalues at the source and then expanding them at the receiving end.There are two standards used:^ A-law^ in Europe, and
ฮผ-law^ in the USA. The^ term^ companding^
was^ created^ by^ combining
the terms^ COMpressing^ and^ exPANDING
. ^ Input analog signal samples are compressed into
logarithmic segments.^ Each^ segment^ is
then^ quantized ,^ and^ coded
using uniform quantization. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
29
Companding (Contd...) The compression process is logarithmic, where the compressionincreases as the sample signals increase (the larger sample signalsare compressed more than the smaller sample signals, causing thequantization noise to increase as the sample signal increases). A logarithmic^ increase^ in^ quantization
noise^ throughout^ the dynamic range of an input sample signal gives a signal-to-noiseratio which is almost constant over a wide range of input levels. A rate of eight bits per sample (64 kbits per second) gives areconstructed signal which is very close to the original. The^ advantages^ of this system include low complexity and delay,and high-quality reproduction of speech. The^ disadvantages^ are a relatively high bit rate and a highsusceptibility to channel errors. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
30
A-law and ฮผ-law The two international standards for encoding signal datato 8-bit code are A-law and ฮผ-law ฮผ-law It is a companding algorithm or law generrally used in NorthAmerica and Japan for digital communication. A-law It is another standard companding algorithm normally used indigital communication syste using 8 bit PCM in the Europe,Asia, Russia and China. Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant^
PCM Decoder To recover an analog signal from a digitizedsignal we follow the following steps: We use a hold circuit that holds the amplitude value ofa pulse till the next pulse arrives. We pass this signal through a low pass filter with acutoff frequency that is equal to the highest frequencyin the pre-sampled signal. The higher the value of L, the less distorted asignal is recovered.June 2, 2016 31
Sanothimi Campus, BhaktapurBy: Hari Prashad Pant^
Delta demodulation components Major^ components^ used^ in^
delta^ demodulation^ technique
are shown below: Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
37
Advantages/Limitations of PCM The PCM signal has high bandwidth. To send the voice based signals a data rate of nearly56/64 Kbps is required. It is based on the observation of voice signal whichchanges slowly. The problem of high data rate and the bandwidth ishandled or overcome by a new technique known asdifferential PCM (DPCM) In DPCM technique the difference between the sampledvalues is encoded rather than the actual sample value. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
38
Differential PCM In DPCM the difference between the two sample valuesis encoded rather that the full sample values. This canbe achieved in a number of ways like using the analogmethod, or simply the digitized method. The DPCMmethod solves the problem of PCM by reducing thenumber of bits, i.e. the bandwidth request to representthe data. Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant^
TRANSMISSION MODES The transmission of binary data across a link can beaccomplished in either parallel or serial mode. In parallelmode, multiple bits are sent with each clock tick. Inserial mode, 1 bit is sent with each clock tick. Whilethere is only one way to send parallel data, there arethree subclasses of serial transmission: asynchronous,synchronous, and isochronous.June 2, 2016 39
Sanothimi Campus, BhaktapurBy: Hari Prashad Pant^
Data transmission and modes Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant
41
Parallel transmission Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant^
Serial transmission Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant^
Asynchronous Transmission In asynchronous transmission, we send 1 start bit (0) atthe beginning and 1 or more stop bits (1s) at the end ofeach^ byte.^ 43
There^ may^ be^ a^
gap^ between each byte. Asynchronous here means
โasynchronous^ at the byte level,โ^ but the bits are still synchronized; their durationsare the same. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
Digital Transmission DIGITAL TO DIGITAL CONVERSION Sanothimi Campus, BhaktapurJune 2, 2016By: Hari Prashad Pant
^49
DIGITAL-TO-DIGITAL CONVERSION ^ Digital data can be represented by using a digital signalto be transmitted over a digital transmission medium.The digital data can be converted into digital signal byusing the following techniques:^ ^ Line coding^ ^ Block coding^ ^ Scrambling ^ NOTE:^ Line coding is always needed; block coding andscrambling may or may not be needed. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
50
Line Coding It is the process of converting the digital data (sequenceof binary bits or a string of 1โs^ and 0
โs)^ to a digital signal. For example a high voltage level (+V) could represent a โ^1 โ^ and a low voltage level (0 or -V) could represent a โ^0 โ. During this line coding technique we must take care ofdifferent characteristics such as data rate, signal rate, DCcomponents,^ self^ synchronization,
interference complexity, etc. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
(^51)
Line Coding Line coding and decoding At the sender side, the digital data are encoded into digitalsignal whereas at the receiving side the digital data areregenerated by decoding the digital signal. Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant^
Mapping Data symbols onto Signallevels A data symbol (or element) can consist of a number ofdata bits:^ ^ 1 , 0 or^ ^ 11, 10, 01,^ โฆโฆ A data symbol can be coded into a single signal elementor multiple signal elements^ ^ 1 for +V, 0 for -V^ ^ 1 for +V and -V, 0 for -V and +V The ratio^ โrโ^ is the number of data elements carried by asignal element. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
53
Data rate and Signal rate The data rate defines the number of bits sent per secusually represented in terms of bps. It is often referred tothe bit rate. The signal rate is the number of signal elements sent in asecond and is measured in^ bauds
. It is also referred to as the modulation rate. Goal is to increase the data rate whilst reducing the baudrate. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
54
Signal element versus data element Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
(^55)
Data rate and Baud rate The baud or signal rate can be expressed as:S = c x N x 1/r baudsWhere, N is data rate c is the case factor (worst, best & avg.) r is the ratio between data element & signal element Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant
Effect of lack of synchronization Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
61
Example In a digital transmission, the receiver clock is 0.1 percentfaster than the sender clock. How many extra bits persecond does the receiver receive if the data rate is1 kbps? How many if the data rate is 1 Mbps? Solution At 1 kbps, the receiver receives 1001 bps instead of1000 bps. At 1 Mbps, the receiver receives 1,001,000 bps insteadof 1,000,000 bps. Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant^
Line encoding Error detection -^ errors occur during transmission due to lineimpairments. Some codes are constructed such that when an error occurs it canbe detected. For example: a particular signal transition is not partof the code. When it occurs, the receiver will know that a symbolerror has occurred. Noise and interference -^ there are line encoding techniques thatmake the transmitted signal^ โimmuneโ^ to noise and interference. This means that the signal cannot be corrupted, it is stronger thanerror detection. Complexity - the more robust and resilient the code, the morecomplex it is to implement and the price is often paid in baud rateor required bandwidth. Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant^
Line coding schemes June 2, 2016 63
Sanothimi Campus, BhaktapurBy: Hari Prashad Pant^
Unipolar It uses only two voltage^ levels^ are^ used
(0v^ and positive/negative). That, is, all signal levels are on oneside of the time axis - either above or below ^ NRZ (Non Return to Zero) -
Non Return to Zero scheme is an example of this coding scheme. The signal level does not return to zero during a symboltransmission. The^ โ^0 โ^ is represented with zero voltage and
โ^1 โ^ is represented by high voltage. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
65
Unipolar For Example: - Data to be represented is: 01001110 Data to be represented is: 10110 Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant^
Unipolar-NRZ Major Characteristics: It uses only^ one^ polarity^ of^ voltage
level^ either positive or negative. The bit rate is same as the data rate. This scheme is prone to baseline wandering and DCcomponents. It has no synchronization or any error detection. It is simple but costly in power consumption and isobsolete (not in use these days). Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
(^67)
Polar
^ The different polar schemes are:^ ^ NRZ (Non-Return to Zero)^ ^ NRZ-L (L stands for Low Level)^ ^ NRZ-I (I stands for Inversion)^ ^ RZ (Return to Zero)^ ^ Biphase^ ^ Manchester^ ^ Differential Manchester Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
Polar-RZ The major problem with NRZ encoding occurs when the senderand receiver clocks are not synchronized. The receiver does notknow when one bit has ended and the other (next) bit is starting. To ensure synchronization there must be a signal transition ineach bit. We see that the signal goes to zero in the middle of each bit. Itremains there until the beginning of the next bit. Major advantage of RZ scheme is synchronization is enhanced. Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant^
73
Polar - RZ Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant^
Polar - RZ Major Characteristics of Polar-RZ The Return to Zero (RZ) scheme uses three voltage levelvalues. +ve, 0, -ve. Each symbol has a transition in the middle. Either fromhigh to zero or from low to zero. This scheme has more signal transitions (two per symbol)and therefore requires a wider bandwidth. No DC components or baseline wandering. Self synchronization - transition indicates symbol value. More complex as it uses three voltage level. It has no error detection capability. Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant^
Polar-Biphase: Manchester Manchester coding consists of combining the NRZ-L and RZschemes. In Manchester encoding, the duration of the bit is divided into twohalves. The voltage remains at one level during the first half andmoves to the other level in the second half. That is, every symbolhas a level transition in the middle: from high to low or low tohigh. Uses only two voltage levels. In Manchester encoding the mid-bit transition serves as a clockingmechanism for synchronization and also as data. Low-to-high voltage represents a 75
โ^1 โ^ and high-to-low voltage represents a^ โ^0 โ. The number of transitions is high for consecutive 1
โs^ and 0โs. ^ There^ is^ a^ transition^ at^
the^ beginning^ of^ a^ bit^ if^ there
occur consecutive 0โs^ or 1โs. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
Polar-Biphase: Manchester Sanothimi Campus, Bhaktapur June 2, 2016 By: Hari Prashad Pant
77
Polar-Biphase: Differential Manchester^ ^ Differential Manchester coding consists of combiningthe NRZ-I and RZ schemes.^ ^ Every symbol has a level transition in the middle. Butthe level at the beginning of the symbol is determined bythe symbol value. There is always a transition at themiddle of the bit, but the bit levels are determined at thebeginning^ of^ the
bit.^ The^ transition
helps synchronization. One symbol causes a level change the other does not. Ifthe next bit is^ โ^0 โ,^ there is a transition and if the next bitis^ โ^1 โ,^ there is no transition. Sanothimi Campus, Bhaktapur June 2, 2016^ By: Hari Prashad Pant
78
Polar-Biphase: Differential Manchester Sanothimi Campus, Bhaktapur June 2, 2016^
By: Hari Prashad Pant^
Polar biphase: Manchester anddifferential Manchester schemesJune 2, 2016 79
Sanothimi Campus, BhaktapurBy: Hari Prashad Pant^