PULSE CODE MODULATION PCM 1 PCM quantization Techniques

  • Slides: 51
Download presentation
PULSE CODE MODULATION (PCM) 1. PCM quantization Techniques 2. PCM Transmission Bandwidth 3. PCM

PULSE CODE MODULATION (PCM) 1. PCM quantization Techniques 2. PCM Transmission Bandwidth 3. PCM Coding Techniques 4. PCM Integrated Circuits 5. Advantages of PCM 6. Delta Modulation 7. Adaptive Delta Modulation 8. Differential PCM ECE 416 – DIGITAL COMMUNICATION Friday, 31 January 2020

SYLLABUS

SYLLABUS

KEY POINTS ABOUT PCM 1. While PCM is a pulse modulation technique much like

KEY POINTS ABOUT PCM 1. While PCM is a pulse modulation technique much like PWM, PAM or PPM. 2. PCM is digital while the others are either analogue in time or amplitude, i. e PCM pulses are discrete in time and amplitude unlike PAM, PWM or PPM. 3. Essential aspects of a PCM transmitter are sampling, quantizing and encoding. 4. PCM is not a modulation in the conventional sense because it does not rely on varying a characteristic of a carrier (amplitude, frequency or phase).

PCM TRANSMITTER Analogue to Digital Converter ADC Quantized PAM Signal X(n. Ts) Xq(n. Ts)

PCM TRANSMITTER Analogue to Digital Converter ADC Quantized PAM Signal X(n. Ts) Xq(n. Ts) Analogue signal x(t) Low-pass Filter Sample and Hold Timer q-level quantizer Binary encoder Parallel to serial converter PCM out r = ufs

BINARY EQUIVALENTS AND PULSE CODE WAVEFORMS

BINARY EQUIVALENTS AND PULSE CODE WAVEFORMS

PCM TRANSMISSION PATH • PCM transmission path refers to the path the signal travels

PCM TRANSMISSION PATH • PCM transmission path refers to the path the signal travels between the transmitter and the receiver. From Transmitter Regenerative Repeater Distorted PCM Signal Regenerative Repeater Clean PCM Pulse Distorted PCM Signal To Receiver Clean PCM Pulse

PCM REPEATER Makes a decision on whether the equalized PCM wave is a zero

PCM REPEATER Makes a decision on whether the equalized PCM wave is a zero or one Compensates for the effects of amplitude and phase distortions Decision Making Circuit Amplitude and Phase Equalizer Distorted PCM Signal Timing Circuit The timing clock is extracted from the PCM pulsestream Clean PCM Pulse

PCM RECEIVER Distorted PCM Pulse Trainl Regenerative Repeater Analogue Signal x(t) Clean PCM Pulse

PCM RECEIVER Distorted PCM Pulse Trainl Regenerative Repeater Analogue Signal x(t) Clean PCM Pulse train Serial to Parallel converter Timer Digital to Analogue Converter Sample and Hold circuit Low pass filter, fm

TYPES OF QUANTIZERS Quantization Uniform Quantization Midtread Quantization Non-Uniform Quantization Midrise Quantization Step size

TYPES OF QUANTIZERS Quantization Uniform Quantization Midtread Quantization Non-Uniform Quantization Midrise Quantization Step size is the same throughout the input signal range Step size varies according the input signal values

MIDTREAD QUANTIZER 1. A midtread quantizer assumes values of the form ∆Hi ⋅where ∆

MIDTREAD QUANTIZER 1. A midtread quantizer assumes values of the form ∆Hi ⋅where ∆ is the step size and Hi = 0, ± 1, ± 2, ± 3, . . . 2. It is called mid-tread because the origin lies in the middle of a tread of a staircaselike graph.

MIDRISER QUANTIZER •

MIDRISER QUANTIZER •

PCM TRANSMISSION BANDWIDTH •

PCM TRANSMISSION BANDWIDTH •

EXAMPLE 1 1. A TV signal with a bandwidth of 4. 2 MHz is

EXAMPLE 1 1. A TV signal with a bandwidth of 4. 2 MHz is transmitted using binary PCM system using 512 quantization levels. Determine (a) Code word-length (b) The PCM bandwidth/bit rate

WHY IT IS NECESSARY TO HAVE NON-UNIFORM QUANTIZATION? •

WHY IT IS NECESSARY TO HAVE NON-UNIFORM QUANTIZATION? •

COMPANDING 1. With uniform sampling, the quantization step is fixed thus resulting in uniform

COMPANDING 1. With uniform sampling, the quantization step is fixed thus resulting in uniform quantization noise power. 2. However signal power is not constant, it is proportional to the square of the signal amplitude. This means Quantization Noise is very significant at low amplitudes. 3. To reduce quantization noise at lower amplitudes, we use commanding: Companding = Compressing + Expanding Input Output Compressor Provides High Gain to Weak Signals and Low Gain to strong Signals Uniform Quantizer Expander Provides Low Gain to Weak Signals and High Gain to strong Signals

COMPRESSING WITH MIDRIZER QUANTIZER

COMPRESSING WITH MIDRIZER QUANTIZER

COMPANDING IN COMMUNICATION SYSTEMS 1. The loudest sound that can be tolerated (120 d.

COMPANDING IN COMMUNICATION SYSTEMS 1. The loudest sound that can be tolerated (120 d. B SPL) is about one-million times the amplitude of the weakest sound that can be detected (0 d. B SPL). 2. If the quantization levels are equally spaced (uniform quantization), 12 bits must be used to obtain telephone quality speech. 3. However, only 8 bits are required if the quantization levels are made unequal (companding) to match the characteristics of human hearing.

THREE METHODS OF REALIZING COMPANDING IN COMMUNICATION SYSTEMS 1. Run the analog signal through

THREE METHODS OF REALIZING COMPANDING IN COMMUNICATION SYSTEMS 1. Run the analog signal through a nonlinear circuit before reaching a linear 8 bit ADC, 2. Use an 8 bit ADC that internally has unequally spaced steps, or 3. Use a linear 12 bit ADC followed by a digital lookup table (12 bits in, 8 bits out). • Each of these three options requires the same nonlinearity, just in a different place: at analog circuit, at the ADC, or a digital circuit after the ADC.

COMPANDING STANDARDS (1) μ 255 law used in North America (2) "A" law, used

COMPANDING STANDARDS (1) μ 255 law used in North America (2) "A" law, used in Europe. 19

"A" LAW COMPANDING Where A is the compression parameter 20

"A" LAW COMPANDING Where A is the compression parameter 20

µ-LAW COMPANDING where µ is 255 for 8 bits. 21

µ-LAW COMPANDING where µ is 255 for 8 bits. 21

BINARY ENCODING 1. Encoding converts the quantized samples into a form that is more

BINARY ENCODING 1. Encoding converts the quantized samples into a form that is more convenient for the purpose of transmission. 2. It is a one-to-one mapping of the quantized samples by using code elements or symbols of the required length per sample.

FOLDED BINARY CODE • The folded binary code (also called the signmagnitude representation) assigns

FOLDED BINARY CODE • The folded binary code (also called the signmagnitude representation) assigns the first (left most) digit to the sign and the remaining digits are used to code the magnitude. • This code is superior to the natural code in masking transmission errors when encoding speech.

INVERTED FOLDED BINARY CODE 1. If only the amplitude digits of a folded binary

INVERTED FOLDED BINARY CODE 1. If only the amplitude digits of a folded binary code are complemented (1's changed to 0's and 0's to 1's), an inverted folded binary code results. 2. This code has the advantage of higher density of 1's for small amplitude signals, which are most probable for voice messages. 3. The higher density of 1's relieves some system timing errors.

GRAY CODE 1. With natural binary encoding, a number of codeword digits can change

GRAY CODE 1. With natural binary encoding, a number of codeword digits can change even when a change of only one quantization level occurs. For example, a change from level 7 to 8 entails every bit changing in the 4 -bit code illustrated. 2. In some applications, this behavior is undesirable and a code is desired for which only one digit changes when any transition occurs between adjacent levels. 3. The Gray Code has this property

4 -BIT PCM TRANSMITTER - CIRCUIT SCHEMATIC

4 -BIT PCM TRANSMITTER - CIRCUIT SCHEMATIC

PCM FOR BI-POLAR SIGNALS

PCM FOR BI-POLAR SIGNALS

PCM INTEGRATED CIRCUITS - MC 14 LC 5480 1. The MC 14 LC 5480

PCM INTEGRATED CIRCUITS - MC 14 LC 5480 1. The MC 14 LC 5480 is a general purpose per channel PCM Codec–Filter with pin selectable µ– Law or A–Law companding, and is offered in 20– pin DIP, SOG, and SSOP packages. 2. MC 14 LC 5480 performs voice digitization and reconstruction as well as the band limiting and smoothing required for PCM systems. 3. MC 14 LC 5480 designed to operate in both synchronous and asynchronous applications and contains an on–chip precision reference voltage.

MC 14 LC 5480 - BLOCK DIAGRAM μ/A Law Select (Pin 16) This pin

MC 14 LC 5480 - BLOCK DIAGRAM μ/A Law Select (Pin 16) This pin controls the compression for the encoder and the expansion for the decoder. Mu–Law companding is selected when this pin is connected to VDD A–Law companding is selected when this pin is connected to VSS.

MC 14 LC 5480 - TYPICAL CONNECTION

MC 14 LC 5480 - TYPICAL CONNECTION

MC 14 LC 5480 - COST KSH 700/=

MC 14 LC 5480 - COST KSH 700/=

ADVANTAGES OF PCM 1. PCM provides high noise immunity 2. Allows regeneration of clean

ADVANTAGES OF PCM 1. PCM provides high noise immunity 2. Allows regeneration of clean signal by using repeaters placed between the transmitter and the receiver. 3. PCM signals can be stored for later use or retransmission with high fidelity 4. PCM signals can be encrypted more easily and to very high standards.

DISADVANTAGES OF PCM 1. PCM requires complex circuitry to sample, quantize, code and decode.

DISADVANTAGES OF PCM 1. PCM requires complex circuitry to sample, quantize, code and decode. 2. PCM requires large bandwidth compared with that of the original analog signal.

DELTA MODULATION ECE 416 Thursday, 08 March 2018

DELTA MODULATION ECE 416 Thursday, 08 March 2018

DELTA MODULATION 1. Delta modulation seeks to overcome the problem of high bandwidth requirement

DELTA MODULATION 1. Delta modulation seeks to overcome the problem of high bandwidth requirement in conventional PCM. 2. Instead of generating and transmitting many bits per sample, only one bit is transmitted. 3. During coding, the present sample is compared with the previous and a 0 or 1 transmitted depending on whether the sample is higher or lower than the previous. PCM code for each sample

SIGNALS IN A DELTA MODULATION SYSTEM Amplitude Original Analog Signal Output from Encoder Output

SIGNALS IN A DELTA MODULATION SYSTEM Amplitude Original Analog Signal Output from Encoder Output from the receiver (decoder) Time

DELTA MODULATION TRANSMITTER + - Output One-bit Quantizer + Accumulator +

DELTA MODULATION TRANSMITTER + - Output One-bit Quantizer + Accumulator +

DELTA MODULATION RECEIVER + Low-pass filter + Accumulator Demodulated Signal

DELTA MODULATION RECEIVER + Low-pass filter + Accumulator Demodulated Signal

ADVANTAGES OF DELTA MODULATION Delta Modulation: 1. Requires very small bandwidth since it transmits

ADVANTAGES OF DELTA MODULATION Delta Modulation: 1. Requires very small bandwidth since it transmits only one bit per sample 2. Has very simple transmitter and receiver circuitry.

DISADVANTAGES OF DELTA MODULATION Delta modulation has: a) Slope and overload distortion b) Granular

DISADVANTAGES OF DELTA MODULATION Delta modulation has: a) Slope and overload distortion b) Granular and Idle noise

SLOPE OVERLOAD • Slope-overload occurs when the step size is too small to follow

SLOPE OVERLOAD • Slope-overload occurs when the step size is too small to follow a steep segment of the input waveform x(t ).

GRANULARITY • Granularity refers to a situation where the staircase function x(t) hunts around

GRANULARITY • Granularity refers to a situation where the staircase function x(t) hunts around a relatively flat segment of the input function, with a step size that is too large relative to the local slope characteristic of the input.

ADAPTIVE DELTA MODULATION ECE 416 – Digital Communication Thursday, 08 March 2018

ADAPTIVE DELTA MODULATION ECE 416 – Digital Communication Thursday, 08 March 2018

 • Adaptive Delta Modulation seeks to overcome quantization errors arising from slope overload

• Adaptive Delta Modulation seeks to overcome quantization errors arising from slope overload and granular noise by varying the step size in accordance to the signal amplitude. Amplitude THE PRINCIPLE OF ADAPATIVE DELTA MODULATION Time 1 1 0 0 1 0 1

ADAPTIVE DELTA MODULATION TRANSMITTER Logic for step control + - Output One-bit Quantizer +

ADAPTIVE DELTA MODULATION TRANSMITTER Logic for step control + - Output One-bit Quantizer + Accumulator +

ADAPTIVE DELTA MODULATION RECEIVER Receiver Input + + + Low-pass filter + Logic for

ADAPTIVE DELTA MODULATION RECEIVER Receiver Input + + + Low-pass filter + Logic for step-size control Accumulator Receiver Output

DIFFERENTIAL PULSE CODE MODULATION (DPCM) ECE 416 – Digital Communication Thursday, 08 March 2018

DIFFERENTIAL PULSE CODE MODULATION (DPCM) ECE 416 – Digital Communication Thursday, 08 March 2018

DIFFERENTIAL PULSE CODE MODULATION 1. Some signals such as speech have high correlation between

DIFFERENTIAL PULSE CODE MODULATION 1. Some signals such as speech have high correlation between adjacent samples. 2. When such highly correlated samples are encoded using basic PCM, the resulting code contains a lot of redundant information. 3. In such cases, basic PCM scheme is not the preferred coding method. 4. By removing this redundancy before encoding an efficient coded signal can be obtained. 5. One method of removing redundancy is by using the Differential PCM (DPCM) method. 6. DPCM is based on the principle that by knowing the past behaviour of a signal up to a certain point in time, it is possible to predict future values.

DPCM TRANSMITTER

DPCM TRANSMITTER

DPCM RECEIVER

DPCM RECEIVER

COMPARISON OF PCM, DELTA MODULATION AND ADAPTIVE PULSE CODE MODULATION N 0 PARAMETER PULSE

COMPARISON OF PCM, DELTA MODULATION AND ADAPTIVE PULSE CODE MODULATION N 0 PARAMETER PULSE CODE MODULATION (PCM) DELTA MODULATION ADAPTIVE DELTA MODULATION 1 Levels and Step Size Number of levels depend on number of bits Level size is fixed Step size varies according to the rate at which the signal is varying 2 Number of Bits 3 Quantization errors and distortion Can take 4, 8 or 16 bits per One bit per sample Quantization noise is Has lope overload and Quantization noise is present granular noise present 4 Bandwidth Highest bandwidth 5 Feedback in transmitter or receiver Complexity in implementation No feedback 6 High Low bandwidth required Feedback in transmitter Least bandwidth required Feedback in transmitter Simple