pulse code modulation (pcm) part 2. pulse code modulation (pcm) the most common technique for using...

33
Pulse Code Modulation (PCM) PART 2

Upload: virgil-theodore-burns

Post on 28-Dec-2015

289 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Pulse Code Modulation (PCM)

PART 2

Page 2: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Pulse Code Modulation (PCM)

• The most common technique for using digital signals to encode analog data is PCM.

• Example: To transfer analog voice signals off a local loop to digital end office within the phone system, one uses a codec.

• Because voice data limited to frequencies below 4000 HZ, a codec makes 8000 samples/sec. (i.e., 125 microsecond/sample).

• If a signal is sampled at regular intervals at a rate higher than twice the highest signal frequency, the samples contain all the information of the original signal.

Page 3: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

PCM Block Diagram

•Most common form of analog to digital modulation•Four step process

- Signal is sampled using PAM (sampled)- Integer values assigned to signal (PAM)- Values converted to binary (Quantized)- Signal is digitally encoded for transmission

(Encoded)

Page 4: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Cont’d

• Analog signal is sampled.• Converted to discrete-time continuous-amplitude signal

(Pulse Amplitude Modulation)• Pulses are quantized and assigned a digital value.

– A 7-bit sample allows 128 quantizing levels.• PCM uses non-linear encoding, i.e., amplitude spacing of

levels is non-linear– There is a greater number of quantizing steps for low

amplitude– This reduces overall signal distortion.

• This introduces quantizing error (or noise).• PCM pulses are then encoded into a digital bit stream.• 8000 samples/sec x 7 bits/sample = 56 Kbps for a single

voice channel.

Page 5: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:
Page 6: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

PCM Example

Page 7: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Quantization

• a process of converting an infinite number of possibilities to a finite number of conditions (rounding off the amplitudes of flat-top samples to a manageable number of levels).

Page 8: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:
Page 9: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

• The quantization interval @ quantum = the magnitude difference between adjacent steps.

• The resolution = the magnitude of a quantum = the voltage of the minimum step size.

• The quantization error = the quantization noise = ½quantum = (original sample voltage – quantize level)

• PCM code = (sample voltage/resolution)

Cont’d

Page 10: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

QUANTIZATION ERROR

Page 11: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Types of Quantization

Midtread Midrise

Page 12: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Types of Quantizer

1. Uniform type, the levels of the quantized amplitude are uniformly spaced. 2. Non-uniform type, the levels are not uniform.

Page 13: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Dynamic Range (DR)• Largest possible magnitude/smallest possible magnitude

• Where • DR = absolute value of dynamic range

• Vmax = the maximum voltage magnitude

• Vmin = the quantum value (resolution)

• n = number of bits in the PCM code

resolution

V

V

VDR max

min

max

12 nDR

)log(20)( DRdBDR

Page 14: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Signal to Quantization Noise Ratio (SQR)

• The worst-case voltage SQR

• SQR for a maximum input signal

• The signal power-to-quantizing noise power ratio

eQ

resolutionSQNR (min)

eQ

VSQNR max

(max)

12

2

12

)(

22

2

log10)(

log10

power noiseon quantizati average

power signal averagelog10

qq

Rv

dB

v

R

SQNR

R =resistance (ohm)

v = rms signal voltage

q = quantization interval

Page 15: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Effect of Non-Linear Coding

Page 16: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Nonlinear Encoding

• Quantization levels not evenly spaced

• Reduces overall signal distortion

• Can also be done by companding

Page 17: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Companding• The process of compressing and then expanding.

Page 18: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Companding Functions

Page 19: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Method of Companding• For the compression, two laws are adopted: the -law in US and

Japan and the A-law in Europe.

-law•

• A-law

• The typical values used in practice are: =255 and A=87.6.• After quantization the different quantized levels have to be

represented in a form suitable for transmission. This is done via an encoding process.

)1ln(

)1ln(maxmax

VV

out

inVV

11

ln1

)ln(1

10

ln1

max

max

max

out

inVV

out

inVV

out

V

V

AA

AAV

V

A

AV

Vin

in

Vmax= Max uncompressed analog input voltage

Vin= amplitude of the input signal at aparticular of instant time

Vout= compressed output amplitude

A, = parameter define the amount of compression

Page 20: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

μ-law A-law

Page 21: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

PCM Line Speed

• The data rate at which serial PCM bits are clocked out of the PCM encoder onto the transmission line.

• Where• Line speed = the transmission rate in bits per second

• Sample/second = sample rate, fs

• Bits/sample = no of bits in the compressed PCM code

sample

bitsX

second

samples speed line

Page 22: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Virtues & Limitation of PCM The most important advantages of PCM are: Robustness to channel noise and interference. Efficient regeneration of the coded signal along the channel

path. Efficient exchange between BT and SNR. Uniform format for different kind of base-band signals. Flexible TDM. Secure communication through the use of special modulation

schemes of encryption. These advantages are obtained at the cost of more complexity

and increased BT. With cost-effective implementations, the cost issue no longer a

problem of concern. With the availability of wide-band communication channels and

the use of sophisticated data compression techniques, the large bandwidth is not a serious problem.

Page 23: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Time-Division Multiplexing• This technique combines time-domain samples from different

message signals (sampled at the same rate) and transmits them together across the same channel.

• The multiplexing is performed using a commutator (switch). At the receiver a decommutator (switch) is used in synchronism with the commutator to demultiplex the data.

• TDM system is very sensitive to symbol dispersion, that is, to variation of amplitude with frequency or lack of proportionality of phase with frequency. This problem may be solved through equalization of both magnitude and phase.

• One of the methods used to synchronize the operations of multiplexing and demultiplexing is to organize the mutiplexed stream of data as frames with a special pattern. The pattern is known to the receiver and can be detected very easily.

Page 24: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Block diagram of TDM-PCM communication system

Page 25: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Delta Modulation

• Basic principle of Delta Modulation

• Advantages of Delta Modulation over PCM system.

• Limitation of Delta Modulation.

• Concept of Adaptive Delta Modulation (ADM)

Page 26: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Delta Modulation

• A single-bit PCM code to achieve digital transmission of analog.

• Logic ‘0’ is transmitted if current sample is smaller than the previous sample

• Logic ‘1’ is transmitted if current sample is larger than the previous sample

Page 27: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Operation of Delta Modulation

Page 28: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Delta Modulation (DM)• Analog input is approximated by a staircase function

• Move up or down one level () at each sample interval (by one quantization level at each sampling time) output of DM is a single bit.

• Binary behavior– Function moves up or down at each sample interval

• In DM the quantization levels are represented by two symbols: 0 for - and 1 for +. In fact the coding process is performed on eq.

• The main advantage of DM is its simplicity

Page 29: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

The transmitter of a DM System

Page 30: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

The receiver of a DM system

Page 31: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

Delta Modulation - example

Page 32: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

•Slope overload distortion is due to the fact that the staircase approximation mq(t) can't follow closely the actual curve of the message signal m(t ). In contrast to slope-overload distortion, granular noise occurs when is too large relative to the local slope characteristics of m(t). granular noise is similar to quantization noise in PCM.

•It seems that a large is needed for rapid variations of m(t) to reduce the slope-overload distortion and a small is needed for slowly varying m(t) to reduce the granular noise. The optimum can only be a compromise between the two cases.

•To satisfy both cases, an adaptive DM is needed, where the step size can be adjusted in accordance with the input signal m(t).

Page 33: Pulse Code Modulation (PCM) PART 2. Pulse Code Modulation (PCM) The most common technique for using digital signals to encode analog data is PCM. Example:

DM Performance

• Good voice reproduction – PCM - 128 levels (7 bit)– Voice bandwidth 4khz– Should be 8000 x 7 = 56kbps for PCM

• Data compression can improve on this– e.g. Interframe coding techniques for video