Digital Transmission of Analogue Signals

10
(CH 6) Pulse and Digital Modulation By Dr. Hikmat Al-Shamary & Dr. Tariq M. Salman 146 LPF Sampler Trans. Decoder DAC Quantizer Encoder LPF f(t) f s ADC Channel Digital Communication System: Digital communication has several advantages over analog communication: 1- Digital communication has high immunity to channel noise and channel distortion. 2- Regenerative repeaters along the transmission path can detect and retransmit a new, clean signal. 3- Digital hardware implementation is flex able (it may use microprocessors, digital switching and LSI-ICs) 4- Digital signals can be added to yield low error and high fidelity as well as privacy. 5- It is easier to multiplex digital signals. 6- Exchange of SNR and BW can be done more effectively. Digital Transmission of Analogue Signals: 1- Pulse Code Modulation (PCM): This is widely used in digital transmissions. Its block diagram is as shown below: ADC: Analogue to digital converter. DAC: Digital to Analogue converter.

Transcript of Digital Transmission of Analogue Signals

(CH 6) Pulse and Digital Modulation By Dr. Hikmat Al-Shamary & Dr. Tariq M. Salman

146

LPF Sampler Trans. Decoder

DAC

Quantizer Encoder LPFf(t)

fsADC

Channel

Digital Communication System:

Digital communication has several advantages over analog communication:

1- Digital communication has high immunity to channel noise and channel

distortion.

2- Regenerative repeaters along the transmission path can detect and retransmit a

new, clean signal.

3- Digital hardware implementation is flex able (it may use microprocessors, digital

switching and LSI-ICs)

4- Digital signals can be added to yield low error and high fidelity as well as privacy.

5- It is easier to multiplex digital signals.

6- Exchange of SNR and BW can be done more effectively.

Digital Transmission of Analogue Signals:

1- Pulse Code Modulation (PCM):

This is widely used in digital transmissions. Its block diagram is as shown below:

ADC: Analogue to digital converter.

DAC: Digital to Analogue converter.

(CH 6) Pulse and Digital Modulation By Dr. Hikmat Al-Shamary & Dr. Tariq M. Salman

147

The output of the sampler 𝑓𝑠(π‘˜π‘‡π‘ )(𝐴𝐷𝐢). Assuming that f(t) has ±𝑓𝑝 peak voltage

level, (ADC full scale), the quantizer will divide the +𝑓𝑝 to βˆ’π‘“π‘ range into L equally

spaced intervals of size βˆ†π‘‰ (step size) then:

volt …. (6-5)

Quantizing Noise:

Since the quantization process introduces some fluctuations about the true value,

these fluctuations can be regarded as noise. As the number of quantization levels L

increases, the quantization noise decreases.

Volt2 …. (6-6)

βˆ†V =2𝑓𝑝

𝐿

Nπ‘ž =𝑓𝑝

2

3𝐿2

(CH 6) Pulse and Digital Modulation By Dr. Hikmat Al-Shamary & Dr. Tariq M. Salman

148

Encoding:

ADC will then encode the quantized values according to a certain binary code. The

uniform PCM with equal step size mostly uses the signed binary code of n bits.

t

0100

0011

0010

0001

+

+

+

+

-

-

-

-

V

fS(kTS)0101

1100

1011

1010

1001

0000

+

+

V

n bits

Sign bit

Magnitude bits

{ - 1

+ 0

For n=4, then the ±𝑓𝑝 values will be encoded as shown above, this is called transfer

characteristic of the PCM encoder. The relation between number of quantizing levels and number

of bits of encoder is:

Or … … (6-7)

Note:

If n for a given value of L is not integer number,

Then n is computed using 𝑛 = 𝑖𝑛𝑑(π‘™π‘œπ‘”2𝐿) + 1,

and L is corrected using 𝐿 = 2𝑛

𝐿 = 2𝑛

𝑁 = π‘™π‘œπ‘”2𝐿

(CH 6) Pulse and Digital Modulation By Dr. Hikmat Al-Shamary & Dr. Tariq M. Salman

149

The output SNR:

Volt2 …. (6-8)

Note:

π‘π‘œ = π‘π‘ž ; Sπ‘œ

Nπ‘œ=

Sπ‘œ

Nπ‘ž

β€’ For tone modulation: 𝑓2(𝑑)Μ…Μ… Μ…Μ… Μ…Μ… Μ… =𝐴2

2; 𝑓𝑝 = 𝐴

F ... (6-9)

F ... (6-10)

Bandwidth Requirement of PCM

The information rate of PCM channel is 𝑛𝑓𝑠 bits/sec, if message bandwidth is π‘“π‘šπ‘Žπ‘₯

and the sampling rate is 𝑓𝑠(β‰₯ 2π‘“π‘šπ‘Žπ‘₯) then 𝑛𝑓𝑠 binary pulses must be transmitted per

second.

Assuming the PCM signal is a low-pass signal of bandwidth π΅π‘Šπ‘ƒπΆπ‘€ , the required

minimum sampling rate is 2π΅π‘Šπ‘ƒπΆπ‘€. Thus:

2π΅π‘Šπ‘ƒπΆπ‘€ = 𝑛𝑓𝑠

Hz ... (6-11)

Hz ... (6-12)

Sπ‘œ

Nπ‘ž=

3𝐿2𝑓2(𝑑)Μ…Μ… Μ…Μ… Μ…Μ… Μ…

𝑓𝑝2

Sπ‘œ

Nπ‘ž=

3𝐿2

2

(Sπ‘œ

Nπ‘ž)

𝑑𝐡

= 1.76 + 20 π‘™π‘œπ‘” 𝐿 = 1.76 + 6.02 𝑛

π΅π‘Šπ‘ƒπΆπ‘€ =𝑛

2𝑓𝑠 β‰₯ π‘›π‘“π‘šπ‘Žπ‘₯

π΅π‘Šπ‘ƒπΆπ‘€π‘šπ‘–π‘›π‘–π‘šπ‘’π‘š = π‘›π‘“π‘šπ‘Žπ‘₯

(CH 6) Pulse and Digital Modulation By Dr. Hikmat Al-Shamary & Dr. Tariq M. Salman

150

Ex 6-5:

In a binary PCM system, the output signal-to-quantization ratio is to be hold to a

minimum of 40 dB. If the message is a single tone with fm=4 kHz. Determine:

1- The number of required levels, and the corresponding output signal-to-quantizing noise ratio.

2- Minimum required system bandwidth.

Solution:

1) 𝐿 = 2𝑛

Sπ‘œ

Nπ‘ž= 10000 = 40 𝑑𝐡

Sπ‘œ

Nπ‘ž=

3𝐿2

2 (S.T)

∴ 𝐿 = √2

3βˆ— 10000 = [81.6] = 82

𝑛 = log2 82 = [6.36] = 7

∴ 𝐿 = 27 = 128

2) Minimum system bandwidth = π‘›π‘“π‘šπ‘Žπ‘₯=7*4 kHz=28 kHz

H.W:

Consider a single tone signal of frequency 3300 Hz. A PCM is generated with a sampling

rate of 8000 sample/sec. the required output signal-to-quantizing noise ratio is 30 dB.

1) What the minimum number of uniform quantizing levels needed?. And what the

minimum number of bits per sample needed?

2) Calculate minimum system bandwidth required.

Ans: (a) 26.5 (b) 20 kHz

(CH 6) Pulse and Digital Modulation By Dr. Hikmat Al-Shamary & Dr. Tariq M. Salman

151

-

+f(t)

Sampler fs

e(t) V

- V

d(t)

Integrator

Comparator

f(t)

2- Delta Modulation:

It is a sampling way to convert analog signal into digital with reduced bandwidth

t

Ts

f(t)&f(t)

V

d(t)

e(t)

t

t

f(t)

f(t)

Slope overload

Larger error

Its produces information about the difference between successive samples.

𝑒(𝑑) = 𝑓(𝑑) βˆ’ 𝑓(𝑑) , where 𝑓(𝑑) is a stair case approximation of 𝑓(𝑑)

(CH 6) Pulse and Digital Modulation By Dr. Hikmat Al-Shamary & Dr. Tariq M. Salman

152

The sampler with rate (𝑓𝑠 ≫ π‘π‘¦π‘žπ‘’π‘–π‘ π‘‘ π‘Ÿπ‘Žπ‘‘π‘’) produces pulse train 𝑑(𝑑) where:

𝑑(𝑑) = βˆ†π‘ π‘”π‘›[𝑒(𝑑)] = { βˆ†π‘‰ 𝑒(𝑑) > 0

βˆ’βˆ†π‘‰ 𝑒(𝑑) < 0

𝑑(𝑑) represents the derivative of 𝑓(𝑑)

The demodulator will integrate 𝑑(𝑑) to produce 𝑓𝑠(π‘˜π‘‡π‘ ) smoothed by LPF with π΅π‘Š of

π‘“π‘šπ‘Žπ‘₯

Integrator

LPFRecovered

f(t)d(t)

f(t)

Slope overload problem:

Due to finite step size βˆ†π‘‰ of integrator and if the slope of 𝑓(𝑑) is Larger than𝑓�̃�(𝑑)

will not track 𝑓(𝑑) in its value [(𝑓�̃�(𝑑)) and 𝑓(𝑑) will diverge from each other]. This will

produce distortion at Rx side when 𝑑(𝑑) is used to construct 𝑓�̃�(𝑑).

To avoid slope overload, the step size must be kept such that:

F

... (6-13)

For single tone case 𝑓(𝑑) = π΄π‘šπ‘π‘œπ‘ πœ”π‘šπ‘‘

|𝑑𝑓(𝑑)

𝑑𝑑|

π‘šπ‘Žπ‘₯= π΄π‘šπœ”π‘š , therefore

F ... (6-14)

|𝑑𝑓(𝑑)

𝑑𝑑|

π‘šπ‘Žπ‘₯< βˆ†π‘‰. 𝑓𝑠

βˆ†π‘‰π‘šπ‘–π‘› =π΄π‘šπœ”π‘š

𝑓𝑠

(CH 6) Pulse and Digital Modulation By Dr. Hikmat Al-Shamary & Dr. Tariq M. Salman

153

β€’ For speech signal, the typical frequency analysis show that about 70% of total

energy lies between 600 and 1000 Hz indicating that peak energy is located that

almost at frequency of 800 Hz called response frequency π‘“π‘Ÿ=800 Hz, then we could

assume βˆ†π‘‰π‘šπ‘–π‘› for speech to be:F

Edeqd ... (6-15)

where 𝑓𝑝 in the maximum amplitude of the speech signal.

f (Hz)

x(f)

70% of the

total area

Quantizing Error:

Assuming quantizing error is equally likely in the interval (-βˆ†V,βˆ†V)

Edeqd ... (6-16)

Where B is the preconstruction filter bandwidth

Output Signal to Noise Ratio:

Edeqd ... (6-17)

βˆ†π‘‰π‘šπ‘–π‘› =2πœ‹(800)π΄π‘š

𝑓𝑠

π‘π‘ž =𝐡

𝑓𝑠.(Ξ”V)2

3

π‘†π‘œ

π‘π‘ž=

3𝑓𝑠𝑓2(𝑑)Μ…Μ… Μ…Μ… Μ…Μ… Μ…

(Δ𝑉)2𝐡

(CH 6) Pulse and Digital Modulation By Dr. Hikmat Al-Shamary & Dr. Tariq M. Salman

154

f(volt)

P(f)

-1 1

fp-fp

1/2

For single tone message𝑓(𝑑) = π΄π‘šπ‘π‘œπ‘ πœ”π‘šπ‘‘

Edeqd ... (6-18)

Ex 6-6:

A DM has sampling frequency of 64 kHz is used to encode speech signal of Β±1 volt:

1- Find minimum step size to avoid step overloading.

2- Find π‘†π‘π‘…π‘ž assuming speech has uniform probability density function (PDF) over

the interval [-1, 1] volt.

Solution:

1. For speech signal βˆ†π‘‰π‘šπ‘–π‘› =2πœ‹(800)𝑓𝑝

𝑓𝑠

βˆ†π‘‰π‘šπ‘–π‘› =2πœ‹(800)(1)

64000β‰… 78 π‘šπ‘‰

2. π‘†π‘œ

π‘π‘ž=

3𝑓𝑠𝑓2(𝑑)Μ…Μ… Μ…Μ… Μ…Μ… Μ…Μ…

(Δ𝑉)2𝐡

𝑓2(𝑑)Μ…Μ… Μ…Μ… Μ…Μ… Μ… = ∫ 𝑓2𝑝(𝑓)𝑑𝑓1

βˆ’1

= 2 ∫1

2𝑓2𝑑𝑓 =

1

3

1

0

π‘†π‘œ

π‘π‘ž=

(3)(64000)(1/3)

(0.078)2(3400)β‰… 35 𝑑𝐡

Note:

Compare this result of 35 dB with PCM at 64000 bps (𝑓𝑠 = 8 π‘˜π»π‘§, 𝑛 =

8 𝑏𝑖𝑑𝑠 π‘ π‘Žπ‘šπ‘π‘™π‘’β„ ) then π‘†π‘π‘…π‘ž β‰… 48 𝑑𝐡. i.e PCM is better than DM for the same bit rate.

π‘†π‘œ

π‘π‘ž=

3𝑓𝑠2

8πœ‹2π‘“π‘š2𝐡

(CH 6) Pulse and Digital Modulation By Dr. Hikmat Al-Shamary & Dr. Tariq M. Salman

155

H.W:

A DM system is designed to operate at 3 times the Nyquist rate for the signal with a 3

kHz bandwidth. The quantization step size is 250 mV. Determine:

a) Maximum amplitude of a 1 kHz input sinusoid for which the delta modulator does not

show slop over load.

b) The post filter output signal-to-quantizing noise ratio for the signal in part a.