module 14-pulse code modulation

77

Click here to load reader

Upload: eroks

Post on 16-Nov-2014

1.494 views

Category:

Documents


29 download

TRANSCRIPT

Page 1: Module 14-Pulse Code Modulation

1

Have you ever wonder how signals travel in a telephone line?

Page 2: Module 14-Pulse Code Modulation

2

MODULE 14

PULSE CODE MODULATION

Prepared by:Engr. Jo-Ann C. Viñas

Page 3: Module 14-Pulse Code Modulation

3

OBJECTIVES:

1. Discuss the concept of digital transmission

2. Review the Pulse Modulation Theory and the parameters of PCM

3. Discuss the process of producing PCM

4. Apply sampling theorem and quantization to the PCM process

Page 4: Module 14-Pulse Code Modulation

4

DIGITAL TRANSMISSION

– is the transmission of digital signals between the transmitter and receivers and requires physical transmission medium such as cable, fiber optic , etc.

Page 5: Module 14-Pulse Code Modulation

Transmitter

Transmission Medium

Receiver

Digital Information

ADC

Analog Information

Wire, cable, fiber optic, etc

DAC

Analog Information

Digital Information

ADC – Analog to Digital ConverterDAC – Digital to Analog Converter

DIGITAL TRANSMISSION

Page 6: Module 14-Pulse Code Modulation

6

DIGITAL TRANSMISSION ADVANTAGES

1. Noise immunity

2. Better suited to processing and multiplexing

3. Uses signal regeneration than signal amplification

4. Simpler to measure and evaluate

Page 7: Module 14-Pulse Code Modulation

7

1. Requires more bandwidth

2. Need for additional encoding and decoding circuitry

3. Requires precise time synchronization between transmitter and receiver

4. Incompatible with existing analog facilities

DIGITAL TRANSMISSION DISADVANTAGES

Page 8: Module 14-Pulse Code Modulation

PULSE MODULATION

- The process sampling an analog information signals and then converting those samples into discrete pulses and transporting the pulses from a source to a destination over a physical medium.

Page 9: Module 14-Pulse Code Modulation

PULSE MODULATION

- The process of using some characteristic of a pulse (amplitude, width, position) to carry an analog signal.

Page 10: Module 14-Pulse Code Modulation

10

1. PULSE AMPLITUDE MODULATION

- Amplitude of the modulating signal changes the amplitude of the pulses (information)

Page 11: Module 14-Pulse Code Modulation

11

STEP 1: PAM PROCESS

Signals to be Mixed

pulse train modulating signal

Page 12: Module 14-Pulse Code Modulation

12

STEP 2: PAM PROCESS

Pulse Amplitude Modulation

pulse AM signal modulating signal

Page 13: Module 14-Pulse Code Modulation

- A process where the pulse width of a fixed amplitude pulse varies proportionally to the amplitude of the analog signal.

2. PULSE WIDTH MODULATION

Page 14: Module 14-Pulse Code Modulation

time

FIGURE 2: PWM SIGNAL

Page 15: Module 14-Pulse Code Modulation

15

3. PULSE POSITION MODULATION

- A form of pulse modulation where the position of a constant width pulse within a prescribed timeslot is varied according to the amplitude of the modulating signal

Page 16: Module 14-Pulse Code Modulation

FIGURE 3: PPM SIGNAL

Page 17: Module 14-Pulse Code Modulation

17

- The process of transmitting analog information in digital form, which involves sampling the analog signal and converting the sampled to a digital number

4. PULSE CODE MODULATION

Page 18: Module 14-Pulse Code Modulation

18

PULSE MODULATION

WHERE:• Analog Signal• Sample Pulse• PWM• PPM• PAM• PCM

Page 19: Module 14-Pulse Code Modulation

19

SIMPLEX PCM TRANSMISSION

Page 20: Module 14-Pulse Code Modulation

20

PCM TRANSMIT BLOCKS

Page 21: Module 14-Pulse Code Modulation

PCM DECODER

Page 22: Module 14-Pulse Code Modulation

22

STEPS TO PRODUCE PCM

1. Sampling2. Quantizing3. Encoding

Page 23: Module 14-Pulse Code Modulation

23

BANDLIMITING

- The anti-alias or bandpass filter limits the frequency of the input analog signal to the standard voice frequency band of 0 to 4 kHz.

PURPOSE: is to eliminate any unwanted signal that will result to aliasing or fold over distortion at the receiver.

Page 24: Module 14-Pulse Code Modulation

24

1. SAMPLING

- The act of periodically holding a value (sample) of the continually changing analog input signals.

Page 25: Module 14-Pulse Code Modulation

25

TYPES OF SAMPLING

1. Natural Sampling (Gating)

2. Flat-Top Sampling

Page 26: Module 14-Pulse Code Modulation

26

A. NATURAL SAMPLING (Gating)

The natural sampling method retains the natural shape of the sample analog waveform

Page 27: Module 14-Pulse Code Modulation

27

FIGURE 4: NATURAL SAMPLING

Page 28: Module 14-Pulse Code Modulation

28

B. FLAT-TOP SAMPLING

The most common method used for sampling voice signals in PCM where the sample-and-hold circuit convert those samples to a series of constant-amplitude PAM levels.

Page 29: Module 14-Pulse Code Modulation

29

FIGURE 5: FLAT-TOP SAMPLING

Page 30: Module 14-Pulse Code Modulation

30

FIGURE 6: SAMPLE AND HOLD CIRCUIT

Page 31: Module 14-Pulse Code Modulation

31

FIGURE 7: INPUT AND OUTPUT WAVEFORMS OF SAMPLE AND HOLD CIRCUIT

Page 32: Module 14-Pulse Code Modulation

32

EXAMPLE

For the sample and hold circuit, determine the largest value capacitor that can be used. Use an output impedance for Z1 of 10 , an on resistance for Q1 of 10 , an acquisition time of 10 sec, a maximum peak to peak input voltage of 10V, a maximum output current from Z1 of 10mA, and an accuracy of 1%.

Page 33: Module 14-Pulse Code Modulation
Page 34: Module 14-Pulse Code Modulation

34

- States that for a sample to be reproduced accurately at the receiver, the sampling frequency must be at least twice of the highest modulating signal.

fs ≥ 2 fm

where:

fm= highest modulating signal

fs = sampling frequency

NYQUIST SAMPLING THEOREM

Page 35: Module 14-Pulse Code Modulation

35

FIGURE 8: OUTPUT SPECTRUM OF SAMPLE AND HOLD CIRCUIT

Page 36: Module 14-Pulse Code Modulation

36

3-BIT PCM CODE

Page 37: Module 14-Pulse Code Modulation

37

SIGN MAGNITUDE CODES

The codes currently used for PCM, where MSB is the sign bit and the remaining bits are used for magnitude

Page 38: Module 14-Pulse Code Modulation

38

- The codes on the bottom half of the table are a mirror image of the codes in the top half, except for the sign bit.

FOLDED BINARY CODE

Page 39: Module 14-Pulse Code Modulation

39

3-BIT PCM CODE

Page 40: Module 14-Pulse Code Modulation

40

- the magnitude difference between steps

QUANTIZATION INTERVAL

Page 41: Module 14-Pulse Code Modulation

41

FIGURE 9

where:

a. Analog input signal c. PAM

b. Sample pulse d. PCM

Page 42: Module 14-Pulse Code Modulation

42

FIGURE 10

where:

a. Analog input signal c. PAM signal

b. Sample pulse

Page 43: Module 14-Pulse Code Modulation

43

EXAMPLE

For a sample rate of 20 kHz, determine the maximum analog input frequency.

Page 44: Module 14-Pulse Code Modulation

44

EXAMPLE

Determine the alias frequency for a 14 kHz sample rate and an analog input frequency of 8 kHz.

Page 45: Module 14-Pulse Code Modulation

45

- The process of assigning discrete level to time-varying quantity in multiples of some fixed unit, at a specified instant or specified repetition rate.

- Is the process of approximating sample levels into their closest fixed value

2. QUANTIZATION

Page 46: Module 14-Pulse Code Modulation

46

QUANTIZING BY USING SIGN AND MAGNITUDE

Page 47: Module 14-Pulse Code Modulation

47

- The quantized levels are those fixed levels that are the nearest to f(s) at the point the sample is taken.

QUANTIZATION ERROR/NOISE

Page 48: Module 14-Pulse Code Modulation

48

QUANTIZATION ERROR

Qe =Vmin

2

Qe

Resolution=

2

Page 49: Module 14-Pulse Code Modulation

49

LINEAR INPUT VS.OUTPUT TRANSFER

Page 50: Module 14-Pulse Code Modulation

50

- The magnitude of a quantum.

- It is equal to the voltage of the least significant bit(Vlsb) of the PCM code.

RESOLUTION

Resolution =Vmax

2n

Page 51: Module 14-Pulse Code Modulation

51

- The ratio of the largest possible magnitude to the smallest possible magnitude (other than 0V) that can be decoded by the digital-to-analog converter in the receiver.

DYNAMIC RANGE

DR = Vmax / Vmin

DR = 2n -1

Page 52: Module 14-Pulse Code Modulation

52

EXAMPLE

Determine the Dynamic range for a 10-bit sign-magnitude PCM code.

Page 53: Module 14-Pulse Code Modulation

53

EXAMPLE

For a resolution of 0.04V, determine the voltages for the following linear seven-bit sign magnitude PCM codes:

a) 0110101b) 0000011c) 1000001d) 0111111e) 1000000

Page 54: Module 14-Pulse Code Modulation

54

EXAMPLE

For the following resolutions, determine the range of the eight-bit-sign-magnitude PCM codes:

Code Resolution10111000 0.100111000 0.110011100 0.0500011100 0.0500110101 0.0211100000 0.0200000111 0.02

Page 55: Module 14-Pulse Code Modulation

55

EXAMPLE

Determine the minimum number of bits required for PCM codes with the following dynamic ranges and determine the coding efficiencies:

a. DR = 24 dBb. DR = 48 dBc. DR = 72 dB

Page 56: Module 14-Pulse Code Modulation

56

- A numerical indication of how efficiently a PCM code is utilized.

- The ratio of the minimum number of bits required to achieve a certain dynamic range to the actual number of PCM bits used.

==minmin

maxmax

X 100 %X 100 %

Where

minmin = min # of bits (including the sign bit)maxmax = actual # of bits (including the sign bit)

CODING EFFICIENCY

Page 57: Module 14-Pulse Code Modulation

57

EXAMPLE

Determine the number of bits required ina PCM code for a dynamic range of 80 dB. What is the coding efficiency?

Page 58: Module 14-Pulse Code Modulation

58

3. ENCODING

- The process of converting the quantized discrete-signal (PAM samples) to parallel PCM codes.

Page 59: Module 14-Pulse Code Modulation

59

FROM ANALOG SIGNAL TO PCM DIGITAL CODE

Page 60: Module 14-Pulse Code Modulation

60

SIGNAL-TO-QUANTIZATION NOISE

SQR(dB) = 10 log

Where:R = resistanceV = rms voltageq = quantization interval

V2/R

(q2/12)/R

Page 61: Module 14-Pulse Code Modulation

61

EXAMPLE

Determine SQR for a 2Vrms signal and a quantization interval of 0.2V.

Page 62: Module 14-Pulse Code Modulation

62

EXAMPLE

Determine the SQR for the following input signal and quantization noise magnitudes:

Vs Vn(V) 1 Vrms 0.01 2 Vrms 0.02 3 Vrms 0.01 4 Vrms 0.2

Page 63: Module 14-Pulse Code Modulation

63

LINEAR PCM CODES

- the magnitude change between any two successive steps is uniform

Page 64: Module 14-Pulse Code Modulation

64

FIGURE 11: LINEAR PCM CODES

Page 65: Module 14-Pulse Code Modulation

65

NON LINEAR PCM CODES

- the step size increases with the amplitude of the input signal

Page 66: Module 14-Pulse Code Modulation

66

FIGURE 12: NONLINEAR PCM CODES

Page 67: Module 14-Pulse Code Modulation

67

LINEAR VERSUS NON LINEAR PCM CODES

Page 68: Module 14-Pulse Code Modulation

68

MIDTREAD QUANTIZATION

- the first quantization interval is made larger in amplitude than the rest of the steps.

Page 69: Module 14-Pulse Code Modulation

69

MIDRISE QUANTIZATION

- the lowest-magnitude positive and negative have the same voltage range as all the other codes

Page 70: Module 14-Pulse Code Modulation

70

IDLE CHANNEL NOISE

Page 71: Module 14-Pulse Code Modulation

71

MASTERY EXERCISE

1. What are the different types of pulse modulation?2. What is the significance of the Nyquist Sampling rate?3. What type of modulation is effectively used by sampling

method?4. Describe the difference between natural and flat-top

sampling.5. Why is the used of a sample-and-hold circuit desirable?6. Define the process of quantization.7. What is quantization noise?

Page 72: Module 14-Pulse Code Modulation

72

MASTERY EXERCISE

8. What are the functional sections of a PCM modulator?9. What PCM functions does an analog-to-digital converter

perform?10. Why is a sample-and-hold circuit required in the PCM

decoder?

Page 73: Module 14-Pulse Code Modulation

73

SEATWORK

1. Determine the Nyquist sampling rate for the following maximum analog input frequencies:

a) 2kHzb) 5kHzc) 12kHzd) 20kHz

Page 74: Module 14-Pulse Code Modulation

74

SEATWORK

2. Determine the alias frequency for the following Nyquist sample rate:

fa(kHz) fs(kHz)

3 45 86 85 7

Page 75: Module 14-Pulse Code Modulation

75

SEATWORK

3. For the sample and hold circuit, determine the largest value of the capacitor that can be used for the following parameters: Z1 output impedance = 15ohms, an on resistance of Q1 of 15 ohms, an acquisition time of 12 microseconds, a maximum output current from Z1 of 10mA, an accuracy of 0.1%, and a maximum change in voltage in dv = 10V.

Page 76: Module 14-Pulse Code Modulation

SIMPLEX PCM TRANSMISSION

BANDPASSFILTER

BANDPASSFILTER

SAMPLEAND

HOLD CIRCUIT

SAMPLEAND

HOLD CIRCUIT

ANALOG-TO-DIGITAL

CONVERTER

ANALOG-TO-DIGITAL

CONVERTER

PARALLEL-TO-SERIAL

CONVERTER

PARALLEL-TO-SERIAL

CONVERTER

SERIAL-TO-PARALLEL

CONVERTER

SERIAL-TO-PARALLEL

CONVERTER

DIGITAL-TO-ANALOG

CONVERTER

DIGITAL-TO-ANALOG

CONVERTER

HOLD CIRCUITHOLD CIRCUITLOWPASS

FILTERLOWPASS

FILTER

REGENERATIVEREPEATER

REGENERATIVEREPEATER

REGENERATIVEREPEATER

REGENERATIVEREPEATER

CONVERSIONCLOCK

LINE SPEEDCLOCK

SAMPLEPULSE

LINE SPEEDCLOCK

CONVERSIONCLOCK

SERIALPCM CODE

SERIALPCM CODE

PARALLEL DATA

ANALOGINPUT

SIGNAL

ANALOGOUTPUTSIGNAL

Page 77: Module 14-Pulse Code Modulation

FIGURE 8: OUTPUT SPECTRUM OF SAMPLE AND HOLD CIRCUIT

AUDIO

fs 2fs 3fs

fs 2fs 3fs

frequency

frequency

fs - fa fs + fa

2fs + fa

2fs - fa 3fs - fa 3fs + fa

4fs - fa

0

fs - fa fs + fa

2fs - fa

2fs + fa

3fs - fa

3fs + fa

0

SHADED AREAS INDICATESPECTRAL FOLDOVER