PULSE CODE MODULATION (PCM) 1. 1. PCM quan antization Techniq - - PowerPoint PPT Presentation

β–Ά
pulse code modulation pcm
SMART_READER_LITE
LIVE PREVIEW

PULSE CODE MODULATION (PCM) 1. 1. PCM quan antization Techniq - - PowerPoint PPT Presentation

PULSE CODE MODULATION (PCM) 1. 1. PCM quan antization Techniq iques 2. 2. PCM Tran ansmis ission Ban andwid idth 3. 3. PCM Cod oding Techniq iques 4. 4. PCM In Integrated Cir ircu cuits 5. 5. Advantages of of PCM 6. 6. De


slide-1
SLIDE 1

PULSE CODE MODULATION (PCM)

1.

  • 1. PCM quan

antization Techniq iques 2.

  • 2. PCM Tran

ansmis ission Ban andwid idth 3.

  • 3. PCM Cod
  • ding Techniq

iques 4.

  • 4. PCM In

Integrated Cir ircu cuits 5.

  • 5. Advantages of
  • f PCM

6.

  • 6. De

Delt lta Mod

  • dula

lation 7.

  • 7. Adaptive De

Delt lta Mod

  • dulation

8.

  • 8. Di

Differentia ial l PCM ECE 416 – DIGITAL COMMUNICATION Friday, 09 March 2018

slide-2
SLIDE 2

SYLLABUS

slide-3
SLIDE 3

KEY POINTS ABOUT PCM

  • 1. While PCM is a pulse modulation technique much like PWM, PAM
  • r 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).

slide-4
SLIDE 4

PCM TRANSMITTER

Low-pass Filter Sample and Hold q-level quantizer Binary encoder Parallel to serial converter Timer Analogue signal x(t) PAM Signal X(nTs) Quantized PAM Xq(nTs) Sampling clock signal π’ˆπ’• β‰₯ πŸ‘π’ˆπ’ PCM out r = ufs Analogue to Digital Converter ADC

slide-5
SLIDE 5

BINARY EQUIVALENTS AND PULSE CODE WAVEFORMS

slide-6
SLIDE 6

PCM TRANSMISSION PATH

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

between the transmitter and the receiver.

Regenerative Repeater Regenerative Repeater From Transmitter Distorted PCM Signal Clean PCM Pulse Distorted PCM Signal Clean PCM Pulse To Receiver

slide-7
SLIDE 7

PCM REPEATER

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

slide-8
SLIDE 8

PCM RECEIVER

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

slide-9
SLIDE 9

TYPES OF QUANTIZERS

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

slide-10
SLIDE 10

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 staircase- like graph.

slide-11
SLIDE 11
  • 1. A mid-riser quantizer has output levels are

given by

βˆ† 2Hi, where βˆ† is the step size and Hi

= Β±1, Β±2, Β±3, ....

  • 2. The origin lies in the middle of the rising

part of the staircase-like characteristic graph.

MIDRISER QUANTIZER

slide-12
SLIDE 12

PCM TRANSMISSION BANDWIDTH

  • 1. Assume the a PCM encoder has q levels which are encoded to πœ‘

bits.

  • 2. We can infer

π‘Ÿ = 2πœ‘

  • 3. The number of bits per second can be expressed as:

𝑔

π‘žπ‘‘π‘› = πœ‘π‘” 𝑑

where 𝑔

𝑑 β‰₯ 2𝑔 𝑛 (Nyquist criterion)

  • 4. It therefore follows that the bandwidth, BW of a PCM channel is

bounded by: 𝐢𝑋

π‘žπ‘‘π‘› β‰₯ 2πœ‘π‘” 𝑛

slide-13
SLIDE 13

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 SOLUTION (a) 𝑔

𝑛 = 4.2 𝑁𝐼𝑨

π‘Ÿ = 2πœ‘ = 512 πœ‘ = π‘šπ‘π‘•2512 = 9 bits (b) Bandwidth, BW = 2πœ‘π‘”

𝑛 = 2 x9 Γ— 4.2 = 75.6 Mb/s

slide-14
SLIDE 14

WHY IT IS NECESSARY TO HAVE NON-UNIFORM QUANTIZATION?

1. Using linear quantization, the quantization error is given by: πœ— =

βˆ† 2

2. If q quantization levels of a bipolar signal are used, we can write: βˆ† = 2𝑦𝑛𝑏𝑦 π‘Ÿ 3. Consider a PCM system with πœ‘ = 4 bits and 𝑦𝑛𝑏𝑦 = 16 Volt, then: π‘Ÿ = 24 = 16 βˆ† =

2 π‘Ÿ = 2 16 = 1 8

The maximum quantization error is therefore πœπ‘›π‘π‘¦ = βˆ† 2 = 1 16 4. At maximum, the relative error is 1 volt out of 16 volts or 6.25% 5. At lower levels, e.g. 2 volts, the relative error is 1 volt out of 2 volts

  • r 50%.

6. To reduce this high relative error at low levels, PCM systems use non- uniform quantization .

slide-15
SLIDE 15

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

Compressor Uniform Quantizer Expander Input Output

Provides High Gain to Weak Signals and Low Gain to strong Signals Provides Low Gain to Weak Signals and High Gain to strong Signals

slide-16
SLIDE 16

COMPRESSING WITH MIDRIZER QUANTIZER

slide-17
SLIDE 17

COMPANDING IN COMMUNICATION SYSTEMS

  • 1. The loudest sound that can be tolerated (120 dB SPL)

is about one-million times the amplitude of the weakest sound that can be detected (0 dB 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.

slide-18
SLIDE 18

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 look- up 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.

slide-19
SLIDE 19

19

COMPANDING STANDARDS

(1) ΞΌ255 law used in North America (2) "A" law, used in Europe.

slide-20
SLIDE 20

20

"A" LAW COMPANDING

Where A is the compression parameter

slide-21
SLIDE 21

21

Β΅-LAW COMPANDING

where Β΅ is 255 for 8 bits.

slide-22
SLIDE 22

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.

slide-23
SLIDE 23

FOLDED BINARY CODE

  • The folded binary code

(also called the sign- magnitude 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.

slide-24
SLIDE 24

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.

slide-25
SLIDE 25

GRAY CODE

  • 1. With natural binary encoding, a

number of codeword digits can change even when a change of

  • nly 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

  • ccurs between adjacent levels.
  • 3. The Gray Code has this property
slide-26
SLIDE 26

4-BIT PCM TRANSMITTER - CIRCUIT SCHEMATIC

slide-27
SLIDE 27

PCM FOR BI-POLAR SIGNALS

slide-28
SLIDE 28

PCM INTEGRATED CIRCUITS - MC14LC5480

  • 1. The MC14LC5480 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. MC14LC5480 performs voice digitization and

reconstruction as well as the band limiting and smoothing required for PCM systems.

  • 3. MC14LC5480 designed to operate in both

synchronous and asynchronous applications and contains an on–chip precision reference voltage.

slide-29
SLIDE 29

MC14LC5480 - 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.

slide-30
SLIDE 30

MC14LC5480 - TYPICAL CONNECTION

slide-31
SLIDE 31

MC14LC5480 - COST

KSH 700/=

slide-32
SLIDE 32

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.

slide-33
SLIDE 33

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.

slide-34
SLIDE 34

DELTA MODULATION

ECE 416 Thursday, 08 March 2018

slide-35
SLIDE 35

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

slide-36
SLIDE 36

SIGNALS IN A DELTA MODULATION SYSTEM

Output from the receiver (decoder) Output from Encoder Original Analog Signal Amplitude Time

slide-37
SLIDE 37

DELTA MODULATION TRANSMITTER

One-bit Quantizer Delay π‘ˆ

𝑑

+

  • +

+ 𝑦(π‘œπ‘ˆ

𝑑)

error 𝑓(π‘œπ‘ˆ

𝑑)

Output Accumulator 𝑦′(π‘œπ‘ˆ

𝑑)

𝑐(π‘œπ‘ˆ

𝑑)

𝑣(π‘œπ‘ˆ

𝑑)

slide-38
SLIDE 38

DELTA MODULATION RECEIVER

Delay π‘ˆ

𝑑

Low-pass filter + + Accumulator Demodulated Signal

slide-39
SLIDE 39

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 .

slide-40
SLIDE 40

Delta modulation has: a) Slope and overload distortion b) Granular and Idle noise

DISADVANTAGES OF DELTA MODULATION

slide-41
SLIDE 41

SLOPE OVERLOAD

  • Slope-overload occurs when the

step size is too small to follow a steep segment of the input waveform x(t ).

slide-42
SLIDE 42

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.

slide-43
SLIDE 43

ADAPTIVE DELTA MODULATION

ECE 416 – Digital Communication Thursday, 08 March 2018

slide-44
SLIDE 44

THE PRINCIPLE OF ADAPATIVE DELTA MODULATION

  • Adaptive Delta

Modulation seeks to

  • vercome quantization

errors arising from slope

  • verload and granular

noise by varying the step size in accordance to the signal amplitude.

βˆ†π’+πŸβ‰  βˆ†π’ βˆ†π‘œ Amplitude Time 1 1 1 1 1 1 1

slide-45
SLIDE 45

ADAPTIVE DELTA MODULATION TRANSMITTER

One-bit Quantizer Logic for step control Delay π‘ˆ

𝑑

+

  • +

+ 𝑦(π‘œπ‘ˆ

𝑑)

error 𝑓(π‘œπ‘ˆ

𝑑)

Output Accumulator 𝑦′(π‘œπ‘ˆ

𝑑)

slide-46
SLIDE 46

ADAPTIVE DELTA MODULATION RECEIVER

Logic for step-size control Delay π‘ˆ

𝑑

Low-pass filter + + + + Accumulator Receiver Output Receiver Input

slide-47
SLIDE 47

DIF IFFERENTIAL PULSE CODE MODULATION (D (DPCM)

ECE 416 – Digital Communication Thursday, 08 March 2018

slide-48
SLIDE 48

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.

slide-49
SLIDE 49

DPCM TRANSMITTER

𝑦′(π‘œπ‘ˆ

𝑑)

𝑓 π‘œπ‘ˆ

𝑑 = 𝑦 π‘œπ‘ˆ 𝑑 βˆ’ 𝑦′(π‘œπ‘ˆ 𝑑)

𝑦(π‘œπ‘ˆ

𝑑)

π΅π‘œπ‘π‘šπ‘π‘•π‘£π‘“ π‘‡π‘—π‘•π‘œπ‘π‘š X(t) 𝑦′(π‘œπ‘ˆ

𝑑)

𝑐 π‘œπ‘ˆ

𝑑 = 𝑑𝑝𝑒𝑓𝑒 𝑔𝑝𝑠𝑛 𝑝𝑔

𝑦 π‘œπ‘ˆ

𝑑 βˆ’ 𝑦′ π‘œπ‘ˆ 𝑑

π‘…π‘£π‘π‘œπ‘’π‘—π‘¨π‘“π‘’ π‘€π‘π‘šπ‘£π‘“ 𝑝𝑔 𝑓 π‘œπ‘ˆ

𝑑 = 𝑦 π‘œπ‘ˆ 𝑑 βˆ’ 𝑦′(π‘œπ‘ˆ 𝑑)

𝑣 π‘œπ‘ˆ

𝑑 = 𝑦^(π‘œπ‘ˆ 𝑑)

Predictor uses 𝑦^(π‘œπ‘ˆ

𝑑) and previous

values to predict 𝑦′(π‘œπ‘ˆ

𝑑)

slide-50
SLIDE 50

DPCM RECEIVER

𝑓 π‘œπ‘ˆ

𝑑 = 𝑦 π‘œπ‘ˆ 𝑑 βˆ’ 𝑦′(π‘œπ‘ˆ 𝑑)

𝑦′(π‘œπ‘ˆ

𝑑)

Predictor uses 𝑦^(π‘œπ‘ˆ

𝑑) and previous

values to predict 𝑦′(π‘œπ‘ˆ

𝑑)

𝑐 π‘œπ‘ˆ

𝑑 = 𝑑𝑝𝑒𝑓𝑒 𝑔𝑝𝑠𝑛 𝑝𝑔

𝑓 π‘œπ‘ˆ

𝑑

𝑧 π‘œπ‘ˆ

𝑑 = 𝑦(π‘œπ‘ˆ 𝑑)

slide-51
SLIDE 51

COMPARISON OF PCM, DELTA MODULATION AND ADAPTIVE PULSE CODE MODULATION

N0 PARAMETER PULSE CODE MODULATION (PCM) DELTA MODULATION ADAPTIVE DELTA MODULATION 1 Levels and Step Size Number of levels depend

  • n number of bits

Level size is fixed Step size is fixed Step size varies according to the rate at which the signal is varying 2 Number of Bits Can take 4, 8 or 16 bits per sample One bit per sample One bit per sample 3 Quantization errors and distortion Quantization noise is present Has lope overload and granular noise Quantization noise is present 4 Bandwidth Highest bandwidth Low bandwidth required Least bandwidth required 5 Feedback in transmitter or receiver No feedback Feedback in transmitter Feedback in transmitter 6 Complexity in implementation High Simple Simple