Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and...

62
Signal Encoding Techniques Lecture 18

Transcript of Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and...

Page 1: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Signal Encoding Techniques

Lecture 18

Page 2: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding Schemes Factors Involved Digital Data to Analog Signal (ASK, FSK,

PSK) Analog Data to Digital Signal

2

Page 3: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Where We Stand @ Present

3

Physical Layer

Transmission Medium

Data Link

Transmission Media

Signals and their transmission over media,

Impairments

Encoding: From data to signals

Data Link: Flow and Error control

Data Communication: Synchronization,

Error detection and correction

Improved utilization: Multiplexing

Antenna and Propagation

Page 4: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Data Signal Combination

4

Page 5: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Data, Signaling and its Treatment

5

Page 6: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

What's Going Up…

6

Digital Data Digital Signal

Analog SignalAnalog Data

Less complex, less expensive than digital-analog modulation equipment

Use of modern digital transmission And switching equipment

Some transmission media will onlypropagate analog signals

Efficient use of transmission channel : FDM

Page 7: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Data Encoding Techniques Digital Data, Analog Signals [Modem] Digital Data, Digital Signals [Wired LAN] Analog Data, Digital Signals [Codec]

Frequency Division Multiplexing (FDM) Wave Division Multiplexing (WDM) [Fiber] Time Division Multiplexing (TDM) Pulse Code Modulation (PCM) [T1] Delta Modulation

7

Page 8: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Encoding Techniques

8

Digital data as digital signal Digital data as analog signal: Converter (Modem) Analog data as digital signal: Converter (Codec) Analog data as analog signalIn general:

When the outcome is a digital signal we use an Encoding process

When the outcome is an analog signal we use a Modulation process

But we call the modulation of analog signal by digital data shift-keying

Page 9: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Reasons for Choosing Encoding Techniques Digital data, digital signal

Equipment less complex and expensive than digital-to-analog modulation equipment

Analog data, digital signal Permits use of modern digital

transmission and switching equipment

9

Page 10: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Reasons for Choosing Encoding Techniques Digital data, analog signal

Some transmission media will only propagate analog signals

E.g., optical fiber and unguided media Analog data, analog signal

Analog data in electrical form can be transmitted easily and cheaply

Done with voice transmission over voice-grade lines

10

Page 11: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Signal Encoding Criteria What determines how successful a receiver

will be in interpreting an incoming signal? Signal-to-noise ratio Data rate Bandwidth

An increase in data rate increases bit error rate

An increase in SNR decreases bit error rate An increase in bandwidth allows an

increase in data rate

11

Page 12: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Factors Used to CompareEncoding Schemes Signal spectrum

With lack of high-frequency components, less bandwidth required

With no dc component, ac coupling via transformer possible

Transfer function of a channel is worse near band edges

Clocking Ease of determining beginning and end of

each bit position

12

Page 13: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Factors Used to CompareEncoding Schemes Signal interference and noise immunity

Performance in the presence of noise Cost and complexity

The higher the signal rate to achieve a given data rate, the greater the cost

13

Page 14: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Basic Encoding Techniques Digital data to analog signal

Amplitude-shift keying (ASK) Amplitude difference of carrier frequency

Frequency-shift keying (FSK) Frequency difference near carrier

frequency Phase-shift keying (PSK)

Phase of carrier signal shifted

14

Page 15: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Basic Encoding Techniques

15

Page 16: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Amplitude-Shift Keying One binary digit represented by presence

of carrier, at constant amplitude Other binary digit represented by

absence of carrier

where the carrier signal is Acos(2πfct)

16

Page 17: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Amplitude-Shift Keying Susceptible to sudden gain

changes Inefficient modulation technique On voice-grade lines, used up to

1200 bps Used to transmit digital data over

optical fiber

17

Page 18: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Binary Frequency-Shift Keying (BFSK) Two binary digits represented by two

different frequencies near the carrier frequency

where f1 and f2 are offset from carrier frequency fc by equal but opposite amounts

18

Page 19: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Binary Frequency-Shift Keying (BFSK) Less susceptible to error than ASK On voice-grade lines, used up to

1200bps Used for high-frequency (3 to 30

MHz) radio transmission Can be used at higher frequencies

on LANs that use coaxial cable

19

Page 20: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Multiple Frequency-Shift Keying (MFSK) More than two frequencies are used More bandwidth efficient but more

susceptible to error

f i = f c + (2i – 1 – M)f d

f c = the carrier frequency f d = the difference frequency M = number of different signal elements = 2 L

L = number of bits per signal element

20

Page 21: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Multiple Frequency-Shift Keying (MFSK) To match data rate of input bit

stream, each output signal element is held for:

Ts=LT seconds where T is the bit period (data rate =

1/T)

So, one signal element encodes L bits

21

Page 22: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Multiple Frequency-Shift Keying (MFSK) Total bandwidth required

2Mfd

Minimum frequency separation required 2fd=1/Ts

Therefore, modulator requires a bandwidth of

Wd=2L/LT=M/Ts

22

Page 23: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Multiple Frequency-Shift Keying (MFSK)

23

Page 24: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Phase-Shift Keying (PSK) Two-level PSK (BPSK)

Uses two phases to represent binary digits

24

Page 25: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Phase-Shift Keying (PSK) Differential PSK (DPSK)

Phase shift with reference to previous bit

Binary 0 – signal burst of same phase as previous signal burst

Binary 1 – signal burst of opposite phase to previous signal burst

25

Page 26: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Phase-Shift Keying (PSK) Four-level PSK (QPSK)

Each element represents more than one bit

26

Page 27: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Phase-Shift Keying (PSK) Multilevel PSK

Using multiple phase angles with each angle having more than one amplitude, multiple signals elements can be achieved

D = modulation rate, baud R = data rate, bps M = number of different signal elements = 2L

L = number of bits per signal element27

Page 28: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Performance Bandwidth of modulated signal (BT)

ASK, PSK BT=(1+r)R FSK BT=2F+(1+r)R

R = bit rate 0 < r < 1; related to how signal is filtered F = f2-fc=fc-f1

28

Page 29: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Performance Bandwidth of modulated signal (BT)

MPSK

MFSK

L = number of bits encoded per signal element

M = number of different signal elements

29

Page 30: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Quadrature Amplitude Modulation QAM is a combination of ASK and

PSK Two different signals sent

simultaneously on the same carrier frequency

30

Page 31: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Quadrature Amplitude Modulation

31

Page 32: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Reasons for Analog Modulation Modulation of digital signals

When only analog transmission facilities are available, digital to analog conversion required

Modulation of analog signals A higher frequency may be needed

for effective transmission Modulation permits frequency division

multiplexing

32

Page 33: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Basic Encoding Techniques Analog data to analog signal

Amplitude modulation (AM) Angle modulation

Frequency modulation (FM) Phase modulation (PM)

33

Page 34: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Amplitude Modulation Amplitude Modulation

cos2fct = carrier x(t) = input signal na = modulation index

Ratio of amplitude of input signal to carrier a.k.a double sideband transmitted

carrier (DSBTC)

34

Page 35: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Spectrum of AM signal

35

Page 36: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Amplitude Modulation Transmitted power

Pt = total transmitted power in s(t) Pc = transmitted power in carrier

36

Page 37: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Single Sideband (SSB) Variant of AM is single sideband (SSB)

Sends only one sideband Eliminates other sideband and carrier

Advantages Only half the bandwidth is required Less power is required

Disadvantages Suppressed carrier can’t be used for

synchronization purposes

37

Page 38: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Angle Modulation Angle modulation

Phase modulation Phase is proportional to

modulating signal

np = phase modulation index38

Page 39: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Angle Modulation Frequency modulation

Derivative of the phase is proportional to modulating signal

nf = frequency modulation index

39

Page 40: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Angle Modulation Compared to AM, FM and PM result in

a signal whose bandwidth: is also centered at fc

but has a magnitude that is much different

Angle modulation includes cos( (t)) which produces a wide range of frequencies

Thus, FM and PM require greater bandwidth than AM

40

Page 41: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Angle Modulation Carson’s rule

where

The formula for FM becomes

41

Page 42: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Basic Encoding Techniques Analog data to digital signal

Pulse code modulation (PCM) Delta modulation (DM)

42

Page 43: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Analog Data to Digital Signal Once analog data have been

converted to digital signals, the digital data: can be transmitted using NRZ-L can be encoded as a digital signal

using a code other than NRZ-L can be converted to an analog signal,

using previously discussed techniques

43

Page 44: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Pulse Code Modulation Based on the sampling theorem Each analog sample is assigned a

binary code Analog samples are referred to as

pulse amplitude modulation (PAM) samples

The digital signal consists of block of n bits, where each n-bit number is the amplitude of a PCM pulse

44

Page 45: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Pulse Code Modulation

45

Page 46: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Pulse Code Modulation By quantizing the PAM pulse, original

signal is only approximated Leads to quantizing noise Signal-to-noise ratio for quantizing noise

Thus, each additional bit increases SNR by 6 dB, or a factor of 4

46

Page 47: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

47

Page 48: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

PCM

48

The most common technique to change an analog signal to digital data (digitization) is called pulse code modulation (PCM). A PCM encoder has three processes.

1. The analog signal is sampled.2. The sampled signal is quantized.3. The quantized values are encoded as streams of bits.

The analog signal is sampled every Ts, where Ts is the sample interval or period. The inverse of the sampling interval is called the sampling rate or sampling frequency and denoted by fs, where fs = 1/Ts.

Page 49: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

PCM

49

•There are three sampling methods: ideal, natural, and flat-top.•In ideal sampling, pulses from the analog signal are sampled. This is an ideal sampling method and cannot be easily implemented.• In natural sampling, a high-speed switch is turned on for only the small period of time when the sampling occurs. The result is a sequence of samples that retains the shape of the analog signal. •The most common sampling method, called sample and hold, however, creates flat-top samples by using a circuit.

Page 50: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Sampling Rate

50

•We can sample a signal only if the signal is band-limited. In other words, a signal with an infinite bandwidth cannot be sampled. •The sampling rate must be at least 2 times the highest frequency, not the bandwidth. •If the analog signal is low-pass, the bandwidth and the highest frequency are the same value. If the analog signal is bandpass, the bandwidth value is lower than the value of the maximum frequency

Page 51: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

PCM (Example)

51

A complex low-pass signal has a bandwidth of 200 kHz. What is the minimum sampling rate for this signal?

SolutionThe bandwidth of a low-pass signal is between 0 and f, where f is the maximum frequency in the signal. Therefore, we can sample this signal at 2 times the highest frequency (200 kHz). The sampling rate is therefore 400,000 samples per second.

Example

Page 52: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

52

A complex bandpass signal has a bandwidth of 200 kHz. What is the minimum sampling rate for this signal?

SolutionWe cannot find the minimum sampling rate in this case because we do not know where the bandwidth starts or ends. We do not know the maximum frequency in the signal.

Example

PCM (Example)

Page 53: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

PCM Quantization

53

Quantization and encoding of a sampled signal

Page 54: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Original Signal Recovery

54

The recovery of the original signal requires the PCM decoder. The decoder first uses circuitry to convert the code words into a pulse that holds the amplitude until the next pulse. After the staircase signal is completed, it is passed through a low-pass filter to smooth the staircase signal into an analog signal. The filter has the same cutoff frequency as the original signal at the sender. If the signal has been sampled at (or greater than) the Nyquist sampling rate and if there are enough quantization levels, the original signal will be recreated. Note that the maximum and minimum values of the original signal can be achieved by using amplification.

Page 55: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Question A PCM encoder accepts a signal with a full-scale voltage

of 10 V and generates 8-bit codes using uniform quantization. The maximum normalized quantized voltage is 1-2-8. Determine

(a) normalized step size, (b) actual step size in volts, (c) actual maximum quantized level in volts, (d) normalized resolution, (e) actual resolution,and (f) percentage resolution.

55

Page 56: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

PCMa. A total of 28 quantization levels are possible, so the normalized

step size is 2–8 = 0.003906.b. The actual step size, in volts, is: 0.003906 x 10V = 0.03906Vc. The maximum normalized quantized voltage is 1 - 2 -8 =

0.9961. Thus the actual maximum quantized voltage is: 0.9961 x 10V = 9.961V

d. The normalized step size is 2 -8. The maximum error that can occur is one-half the step size. Therefore, the normalized resolution is:

e. The actual resolution isf. The percentage resolution is

56

Page 57: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

57

Page 58: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Delta Modulation Analog input is approximated by

staircase function Moves up or down by one quantization

level () at each sampling interval The bit stream approximates

derivative of analog signal (rather than amplitude) 1 is generated if function goes up 0 otherwise

58

Page 59: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Delta Modulation

59

Page 60: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Delta Modulation Two important parameters

Size of step assigned to each binary digit () Sampling rate

Accuracy improved by increasing sampling rate However, this increases the data rate

Advantage of DM over PCM is the simplicity of its implementation

60

Page 61: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Reasons for Growth of Digital Techniques Growth in popularity of digital

techniques for sending analog data Repeaters are used instead of

amplifiers No additive noise

TDM is used instead of FDM No intermodulation noise

Conversion to digital signaling allows use of more efficient digital switching techniques

61

Page 62: Signal Encoding Techniques Lecture 18. Overview Where we Stand on Layers Data Representation and Signaling Used Data Encoding Reasons for Choosing Encoding.

Summary Layered Position Data and Signaling Encoding Schemes Reasons for Different Encoding Schemes Performance Factors Involved Digital Data to Analog Signal (ASK, FSK,

PSK) Analog Data to Digital Signal (PCM,

Delta) 62