19
Pulse Modulation of Signals EE 179, Lecture 16, Handout #25 In many cases, bandwidth of communication link is much greater than signal bandwidth. The signal can be transmitted using short pulses with low duty cycle: Pulse amplitude modulation: width fixed, amplitude varies Pulse width modulation: position fixed, width varies Pulse position modulation: width fixed, position varies All three methods can be used with time-division multiplexing to carry multiple signals over a single channel EE 179, May 5, 2014 Lecture 16, Page 1

Pulse Modulation

Embed Size (px)

DESCRIPTION

Telecommunication

Citation preview

Page 1: Pulse Modulation

Pulse Modulation of SignalsEE 179, Lecture 16, Handout #25

◮ In many cases, bandwidth of communication link is much greater thansignal bandwidth.

◮ The signal can be transmitted using short pulses with low duty cycle:

◮ Pulse amplitude modulation: width fixed, amplitude varies

◮ Pulse width modulation: position fixed, width varies

◮ Pulse position modulation: width fixed, position varies

◮ All three methods can be used with time-division multiplexing to carrymultiple signals over a single channel

EE 179, May 5, 2014 Lecture 16, Page 1

Page 2: Pulse Modulation

PAM, PWM, PPM: Amplitude, Width, Position

EE 179, May 5, 2014 Lecture 16, Page 2

Page 3: Pulse Modulation

Pulse Amplitude Modulation

◮ The input to a pulse amplitude modulator is the real-world sampleof g(t):

g1(nTs) =

∫ Ts

0

q(t)g(t − nTs) dt

where q(t) is an integrator function. (Width of q(t) should be ≪ Ts.)

◮ Each transmitted pulse is narrow with height (or area) proportionalto g1(nTs). The pulse is integrated to obtain an analog value.

g̃(nTs) =

∫ Tp

0

q1(t)g1(t− nTs) dt

where Tp ≪ Ts

◮ The original signal g(t) is reconstructed using an equalizer and a lowpass filter, as discussed in previous lecture.

EE 179, May 5, 2014 Lecture 16, Page 3

Page 4: Pulse Modulation

Pulse Width Modulation (PWM)

Pulse width modulation is also called pulse duration modulation (PDM).

PWM is more often used for control than for communication

◮ Motors (e.g., Apple II floppy disk drive)

◮ LEDs: output limunosity is proportional to average current.

◮ Galley slaves?

A signal can be recovered exactly from its PWM samples at rate 2B,provided the bandwidth is ≤ 0.637B.

J. Huang, K. Padmanabhan, O. M. Collins, IEEE Trans. Circuits and Systems, 2011.

EE 179, May 5, 2014 Lecture 16, Page 4

Page 5: Pulse Modulation

PWM (cont.)

PWM output can be generated by a sawtooth signal gating the input.

Below the pulse width varies from nearly 0 to 1/2 the pulse period.

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

−1

−0.5

0

0.5

1

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

0

0.2

0.4

0.6

0.8

1

EE 179, May 5, 2014 Lecture 16, Page 5

Page 6: Pulse Modulation

Pulse Position Modulation (PPM)

The value of the signal determines the delay of the pulse from the clock.

Electrical circuits use timers such as 555.

Microcontrollers can generate PPM (and PWM) in software.(Counter-timer circuits (CTCs) were created for these applications.)

EE 179, May 5, 2014 Lecture 16, Page 6

Page 7: Pulse Modulation

Analog vs. Digital Communication

◮ Analog communication (baseband and modulated) is subject to noise.

◮ Pulse modulations (PAM, PWM, PPM) represent analog signals byanalog variations in pulses and are also sunbject to noise.

◮ Long distance communication requires repeaters, which amplify signaland noise. Each link adds noise.

◮ Digital communication suppresses noise by regenerating signal.

EE 179, May 5, 2014 Lecture 16, Page 7

Page 8: Pulse Modulation

Pulse Code Modulation (PCM)

In PCM, a signal value is represented by a sequence of pulses (digits).

Width and spacing of pulses is constant. Value of pulse is chosen from asmall number of values.

Usually PCM uses only two pulse values, which represent 0 and 1.

If m bits are used, then 2m signal values can be represented.

◮ unsigned linear: 0, ν, . . . ,∆ν(2m − 1)

◮ two’s complement: −∆ν2m−1, . . . ,∆ν(2m−1 − 1)

◮ A-law and µ-law: approximately logarithmic (more dynamic range)

EE 179, May 5, 2014 Lecture 16, Page 8

Page 9: Pulse Modulation

PCM and Quantization

Quantization of a signal produces the closest representable value.

For fixed number of values, spacing between values increases with range.

EE 179, May 5, 2014 Lecture 16, Page 9

Page 10: Pulse Modulation

PCM Tradeoffs◮ Signal bandwidth determines minimum sample rate

◮ Desired signal fidelity determines precision of reproduced signal

◮ Signals can be quantized using digital-to-analog converter (DAC)

0 0.5 1 1.5 2 2.5 3 3.5 4−2

−1

0

1

2

0 0.5 1 1.5 2 2.5 3 3.5 4−2

−1

0

1

2

0 0.5 1 1.5 2 2.5 3 3.5 4−2

−1

0

1

2

EE 179, May 5, 2014 Lecture 16, Page 10

Page 11: Pulse Modulation

Uniform Quantization

An ideal uniform quantizer is a nonlinear time invariant system:

g̃(t) =

−Nl∆ν g(t) < −Nl∆ν

n∆ν (n− 1

2)∆ν < g(t) < (n+ 1

2)∆ν, −Nl < n < Nh

Nh∆ν g(t) > Nh∆ν

∆ν is quantization interval. Nl +Nh is number of levels.

EE 179, May 5, 2014 Lecture 16, Page 11

Page 12: Pulse Modulation

Nonuniform Quantization

Nonuniform quantizers increase quantization intervals as magnitude ofvalue. Interval proportional to value implies logarithmic curve.

An analog compressor (semiconductor diode) can be used.

EE 179, May 5, 2014 Lecture 16, Page 12

Page 13: Pulse Modulation

Nonuniform Quantization (cont.)

Logarithmic compression can be approximated by floating point, A-law, andµ-law representations.

◮ Binary floating point corresponds to scientific notation:

±f × 2e

where f is significand or fraction and e is exponent. Both f and e arerepresented in unsigned binary.

Example: 8-bit code with one bit for sign, 4 bits for f , 3 bits for e,

f = 0, 1, . . . , 15 , e = 0, 1, . . . , 7

The representable values range from −15 · 27 = −1920 to 1920.Quantization spacing range from 1 for |y| < 16 to 128 for |y| > 960.

Disadvantage of floating point is that many values have multiplerepresentations. E.g., this scheme represents only 72 values.

Some writers use mantissa instead of significand.

EE 179, May 5, 2014 Lecture 16, Page 13

Page 14: Pulse Modulation

Nonuniform Quantization (cont.)

Telephone systems use ITU standardized compression formula.

◮ µ-law: North America and Japan. For µ = 255 (for 8-bit codes),

y = sgn(x)1

ln(1 + µ)ln (1 + |x|) , (0 < x < 1)

◮ A-law: Europe, rest of world.

y =

sgn(x)A|x|

1 + ln(A)|x| < 1

A

sgn(x)1 + ln(A|x|)1 + ln(A)

1

A< |x| < 1

The standard value is A = 87.7.

For both laws, the input to the compressor is

x =m(t)

mp

where −mp ≤ m(t) ≤ mp.

EE 179, May 5, 2014 Lecture 16, Page 14

Page 15: Pulse Modulation

Comparison of µ-Law and A-Law

◮ µ-law provides slightly larger dynamic range than A-law.

◮ A-law has smaller proportional distortion for small signals.

◮ A-law is used for international connections if at least one country uses it.

EE 179, May 5, 2014 Lecture 16, Page 15

Page 16: Pulse Modulation

µ-Law Implementation

Both µ-law and A-law expanders are piecewise linear.

This table shows how 7 bits are expanded.

In practice this table is used by the µ-law encoder.

EE 179, May 5, 2014 Lecture 16, Page 16

Page 17: Pulse Modulation

µ-Law Signal-to-Noise Ratio

The average power of a compressed signal is closer to the peak power.

EE 179, May 5, 2014 Lecture 16, Page 17

Page 18: Pulse Modulation

Examples of Continuous Random Variables (cont.)

Gaussian random variable has two parameters µ and σ. Its pdf is

N (x;µ, σ2) =1√2πσ2

exp

(−(x− µ)2

σ2

)

The Gaussian PDF is centered at and has maximum value at x = µ.

The mean is µ (obvious) and the variance is σ2.The inflection points of the density graph are at ±σ.The density decreases faster than exponentially as x → ±∞.

EE 179, May 5, 2014 Lecture 16, Page 18

Page 19: Pulse Modulation

Gaussian Noise Example

EE 179, May 5, 2014 Lecture 16, Page 19