Faculty of Engineering Electrical Engineering Department...

26
Faculty of Engineering Electrical Engineering Department Communication II Lab (EELE 4170)

Transcript of Faculty of Engineering Electrical Engineering Department...

Page 1: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

Faculty of EngineeringElectrical Engineering Department

Communication II Lab (EELE 4170)

Page 2: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling
Page 3: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

BASEBAND & BANDPASS MODULATION In BASEBAND MODULATION

waveform usually take the form of shaped pulses.

In BANDPASS MODULATION

the shaped pulses modulate a sinusoid called a carrier wave

Page 4: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

PCM (Pulse code modulation) ( Baseband modulation )

PCM modulation is a kind of source coding.

The meaning of source coding is the conversion from analog signal to digital signal.

PCM modulation is commonly used in audio and telephone transmission.

Page 5: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

PCM in Wired Telephony

Voice circuit bandwidth is 3400 Hz.

Sampling rate is 8 KHz (Ts=125 µs).

Each sample is quantized to one of 256 levels.

Each quantized sample is coded into a 8-bit word.

The 8-bit words are transmitted serially (one bit at a time) over a digital transmission channel.

The bit rate is: 8(bits/sample)*(8K sample/sec)=64000 bit/sec

Page 6: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

Block diagram of PCM modulation

Page 7: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

LPF (low pass filter )

which is used to remove the noise in the audio signal

Sampler

audio signal will be sampled to obtain a series of sampling values

Quantizer

the signal will pass through it to quantize the sampling values

Encoder

Then the signal will pass through it to encode the quantization values and then convert to digital signal.

Page 8: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

Encoder produce information as parallel form , it must convert to serial form (Why?)

Page 9: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

The implementation of PCM modulator

Page 10: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

FS0 and FS1 are the data format selection of PCM encoder as shown in table

Page 11: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

Block diagram of PCM demodulation

Page 12: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

Comparator During transmission, the PCM signal is hardto avoid the noise interference. Therefore, before the PCMsignal sends into the PCM demodulator, we utilize acomparator to recover the signal to the original level

Serial to parallel converter

Decoder

wants digital bits parallel form to produce analoginformation.

S/H sample and hold (convert analog value to analogsignal) at the same clock of comparator.

LPF (low pass filter ) to remove the unwanted signal at thefinal part

Page 13: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

The implementation of PCM demodulator

Page 14: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

Uniform

Quantization

Non-Uniform

Page 15: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

Uniform Quantization When the quantization levels are uniformly distribute over

the full range (step size is equal for all levels) then the quantizer is called a uniform or linear quantizer.

A system (with uniform quantization) would be use wasteful for speech signals.

With uniform quantization the (SNR) is worse for law signals than for high level signals.(Why ?)

Because many of the quantized steps would rarely be used.

Page 16: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

Uniform Quantization

Page 17: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

Non-Uniform To provide fine quantization of weak signals .

(SQNR)= signal to quantization noise ratio .

To improve SQNR by reducing the noise of quantizer .

Can be used to make the SNR a constant for all signals within the input signal .

The standard telephone technique of handling the large range of possible input signal levels is. a logarithmic- compressed quantizer

Page 18: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling
Page 19: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

Non-Uniform

Non-uniform quantization is achieved by first distorting the original signal with a logarithmic compression characteristic. And then using uniform quantizer .

After compression the distorted signal is used as the input to a uniform (linear quantizer)

At receiver , an inverse compression characteristic , called expansion is applied so that overall transmission is not distorted .

The processing pair (compression and expansion) is usually referred to as companding .

Page 20: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

compressionlinear

quantizerexpansion

Page 21: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling
Page 22: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling
Page 23: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

In North America , a µ-law compression characteristic

Another compression characteristic, used mainly in Europe , is the A-law compression characteristic.

For linear quantizer µ = 0 , A = 1 .

In North America the stander value for µ = 255 . For several values a stander value of A = 87.6

Page 24: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

HW#1 Your report .

Write Matlab code for Nonuniform Quantization?

( use quantization function code and compression µ-law)

( µ = 255 , levels = 4 , x(t)= sin(2πt) )

Page 25: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1-1

-0.8

-0.6

-0.4

-0.2

0

0.2

0.4

0.6

0.8

1

Page 26: Faculty of Engineering Electrical Engineering Department ...site.iugaza.edu.ps/mabuhasna/files/Lab2_slides.pdf · PCM in Wired Telephony Voice circuit bandwidth is 3400 Hz. Sampling

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1-1

0

1

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1-1

0

1

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1-1

0

1

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1-1

0

1