Top Banner
Ch. 5 Data Encoding
46

Ch. 5 Data Encoding

Feb 02, 2016

Download

Documents

Janine Silva

Ch. 5 Data Encoding. Ch. 5 Data Encoding. 5.1 Digital Data, Digital Signals 5.2 Digital Data, Analog Signals 5.3 Analog Data, Digital Signals 5.4 Analog Data, Analog Signals. Introduction to Ch. 5. Figure 5.1--Encoding and Modulation Techniques Encoding onto a digital signal--x(t) - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Ch. 5 Data Encoding

Ch. 5 Data Encoding

Page 2: Ch. 5 Data Encoding

Ch. 5 Data Encoding

• 5.1 Digital Data, Digital Signals

• 5.2 Digital Data, Analog Signals

• 5.3 Analog Data, Digital Signals

• 5.4 Analog Data, Analog Signals

Page 3: Ch. 5 Data Encoding

Introduction to Ch. 5• Figure 5.1--Encoding and Modulation

Techniques– Encoding onto a digital signal--x(t)

• Digital or analog source--g(t)

– Modulation onto an analog signal--modulated signal s(t)

• Digital or analog source--modulating signal m(t)

– Four Possible Combinations • Data Source: Analog or Digital

• Signal Transmission: Analog or Digital

Page 4: Ch. 5 Data Encoding

5.1 Digital Data, Digital Signals: Terminology

• A digital signal is a sequence of discrete, discontinuous voltage pulses.

• Each pulse is a signal element.

• Signal elements can be unipolar or bipolar.

Page 5: Ch. 5 Data Encoding

5.1 Digital Data, Digital Signals: Terminology (p.2)

• The data rate is the number of bits per second being transmitted--R bps.

• The duration of a bit (or one bit time) is 1/R for binary signaling.

• The signaling rate or modulation rate (baud rate) is the number of signal elements per second.

• A mark refers to a logic 1 and a space refers to a logic 0.

Page 6: Ch. 5 Data Encoding

5.1 Digital Data, Digital Signals--The Encoding Scheme

• The encoding scheme is the mapping from data bits to signal elements.

• Evaluation of encoding schemes.– Does the encoding effectively use the spectrum?– Does the encoding scheme support synchronization

(clocking)?– Does the encoding permit errors to be detected more

quickly?– Is the encoding scheme resistant to noise?– How costly and complex is the scheme?

Page 7: Ch. 5 Data Encoding

5.1 Digital Signal Encoding Formats

• Nonreturn-to-Zero– NRZ-L (Level)– NRZI (Invert on Ones)

• Multilevel Binary– Bipolar-AMI (Alternate Mark Inversion)– Pseudoternary

• Biphase– Manchester– Differential Manchester

Page 8: Ch. 5 Data Encoding

5.1 Tables and Figures

• Table 5.2--Definition of Digital Signal Encoding Formats

• Figure 5.2--Digital Signal Encoding Formats (waveforms)

• Figure 5.3--Spectral Density of Various Signal Encoding Schemes (illustrates bandwidths)

• Figure 5.4--Theoretical Bit Error Rate for Various Digital Encoding Schemes (noise immunity)

Page 9: Ch. 5 Data Encoding

5.1 Nonreturn to Zero (NRZ)

• Two different voltage levels are used to represent a 0 and a 1.

• The voltage level remains constant throughout the bit interval.

• NRZ-L (Nonreturn to Zero--Low)– Binary 0-- high voltage.– Binary 1-- low voltage.

Page 10: Ch. 5 Data Encoding

5.1 Nonreturn to Zero (NRZ) (p.2)

• NRZI (Nonreturn to zero--Invert on 1’s)– Binary 0--no transition.– Binary 1--a transition (high-to-low or low-to-

high) at the beginning of the bit interval.

• Differential encoding--the signal is decoded by comparing the polarity of adjacent signal elements (eg. NRZI).

Page 11: Ch. 5 Data Encoding

5.1 Evaluating NRZ• Signal Spectrum--Efficient use of bandwidth;

but there is a DC component.

• Clocking--no special synchronization capability.

• Error Detection--no special error detection capability.

• Signal Interference and Noise Immunity--bit error rate performance is better than multilevel binary (at a given S/N ratio.)

• Cost and Complexity--simple and easy to engineer.

Page 12: Ch. 5 Data Encoding

5.1 Evaluating NRZ (p.2)

• Summary– Commonly used for digital magnetic

recording. – Other techniques are often better for

transmission.

Page 13: Ch. 5 Data Encoding

5.1 Multilevel Binary• More than two signal levels

• Bipolar-AMI– Binary 0 -- no pulse.– Binary 1 -- positive or negative pulse,

alternating for successive ones.

• Pseudoternary– Binary 0 --positive or negative pulse,

alternating for successive 0's.– Binary 1 --no pulse.

Page 14: Ch. 5 Data Encoding

5.1 Evaluating Multilevel Binary

• Signal Spectrum– No DC component.– Less bandwidth is required than for NRZ.

• Clocking– Some synchronization capability. – Bipolar-AMI is sensitive to strings of 0's and

pseudoternary is sensitive to strings of 1's.

• Error Detection– Some errors can be detected when pulse alternation

property is violated.

Page 15: Ch. 5 Data Encoding

5.1 Evaluating Multilevel Binary (p.2)

• Signal Interference and Noise Immunity– Not as good as NRZ.

• Cost and Complexity– More complex than NRZ.

• Summary– Variations are used for long distance

communications and ISDN.

Page 16: Ch. 5 Data Encoding

5.1 Biphase• Manchester (LAN Standards)

– A transition occurs in the middle of each bit period.

• Binary 1--low-to-high transition.

• Binary 0--high-to-low transition.

• Differential Manchester– Beginning of the bit period is important.

• Binary 0 --transition at the beginning of a bit period.

• Binary 1-- no transition at the beginning of a bit period.

– The mid-bit transition is only for clocking.

Page 17: Ch. 5 Data Encoding

5.1 Evaluating Biphase• Signal Spectrum

– No DC component.– Large bandwidth requirement.

• Clocking– Self-clocking--always a transition in the middle of

each bit.

• Error Detection– The absence of an expected transition can be used

to detect errors.

Page 18: Ch. 5 Data Encoding

5.1 Evaluating Biphase (p.2)

• Signal Interference and Noise Immunity– Same as NRZ and better than multilevel binary

(for a given S/N ratio).

• Cost and Complexity--complex.

• Summary– Manchester is used for IEEE 802.3 (Ethernet).– Differential Manchester is used in IEEE 802.5

(token ring).

Page 19: Ch. 5 Data Encoding

5.1 Modulation Rate vs. Data Rate• Let R be the data rate or bit rate (bps)

• Let D be the rate at which signal elements are generated (signaling rate) in baud (signals/sec.).

• Let M be the number of signal elements.

• Let L be the number of bits per signal element--L = log2(M).

• Then: R = D (signals/sec) x L (bits/signal)

– Note: Equation 5.1 has D = R/L

Page 20: Ch. 5 Data Encoding

5.1 Scrambling Techniques

• Problem: Long strings of 1’s or O’s could cause difficulty in clocking.

• Solution: Substitute signals with transitions for those with none.– Bipolar with 8-zeros substitution (B8ZS)

• Based on bipolar-AMI (North America.)

• 8 0's replaced by string with 2 code violations.

– High -density bipolar --3 zeros (HDB3)• Based on bipolar-AMI (Europe and Japan.)

• 4 0's replaced by string with 1 code violation.

Page 21: Ch. 5 Data Encoding

5.2 Digital Data, Analog Signals --Modulation Techniques

• Amplitude-shift keying (ASK) (Fig. 5.7)– Binary 1: s1(t)= A cos(2fct)

– Binary 0: s0(t)= 0

– Susceptible to additive noise.– Somewhat inefficient as related to bandwidth.– Used with optical fibers (low and high

amplitudes, A0 and A1.)

Page 22: Ch. 5 Data Encoding

5.2 Modulation Techniques (p.2)

• Binary Frequency-Shift Keying (BFSK)– Binary 1: A cos(2f1t)

– Binary 0: A cos(2f2t)

– Fig. 5.8 shows full duplex BFSK transmission on a voice grade line--Bell System 108 modems.

• Bandwidth is split at 1700 Hz.– One direction has frequencies at 1170 +/- 100Hz.

– The other has frequencies at 2125+/- 100 Hz.

– BFSK is less susceptible to errors than ASK.

Page 23: Ch. 5 Data Encoding

5.2 Modulation Techniques (p.3)

• Multiple FSK (MFSK)– There are M signal elements.

– si(t)= A cos(2fit), 1 i M (Eq. 5.4)

– fc = the carrier frequency– fd = the difference frequency– M = number of signal elements– L = number bits encoded in a signal element– fi = fc + (2i-1 -M) fd

Page 24: Ch. 5 Data Encoding

5.2 Modulation Techniques (p.4)

• MFSK (cont.)– Signal is held for a period of Ts= LT where

T is the bit time.– Bandwidth required is 2Mfd=M/Ts– Minimum frequency spacing is 2fd.– See Fig. 5.9 for an example with M =4.

Page 25: Ch. 5 Data Encoding

5.2 Modulation Techniques (p.5)

• Example 5.4 MFSK (M=8)– fc=250 kHz, fd=25kHz, M = 8 (L = 3)

– f1 = 250 k Hz + (2x1 - 1 - 8) x 25kHz – = 250 k Hz + (-7) x 25 k Hz = 75 k Hz.– See page 144 for f2, ..., f8.– Data rate of 2fd = 1/Ts = 50 k bps can be

supported.– Bandwidth of Wd=2Mfd=400 k Hz.

Page 26: Ch. 5 Data Encoding

5.2 Modulation Techniques (p.6)• Two-Level Phase-Shift Keying (BPSK)

– Binary 1: A cos(2fct) = (+1) A cos(2fct)

– Binary 0: A cos(2fct + )= (-1) A cos(2fct)

• Alternative Representation for (BPSK)– Let d(t) be a signal that takes on the values of

+1 and -1.

– sd(t) = A d(t) cos(2fct) (Eq. 5.6)

Page 27: Ch. 5 Data Encoding

5.2 Modulation Techniques (p.7)

• Differential PSK (DPSK) (Fig. 5.10)– Binary 0: send a signal burst same as the

previous signal burst.– Binary 1: send a signal burst of opposite phase as

the previous burst (change by degrees.)

• Multilevel PSK– Ex.1QPSK--4 angles; 2 bits per signal. (Eq. 5.7)– Ex.2: Standard 9600 bps transmission.

• 16 signals with 4 bits per signal.

• 3 different amplitudes.

• 12 different angles (some angles have 2 amplitudes.)

Page 28: Ch. 5 Data Encoding

5.2 Data Rate (R) vs. Signaling Rate (D)

• Recall: R = D x L = D x log2 (M).

– D = the signaling rate (or modulation rate) in bauds.– M = the number of signal elements.– L= the number of bits per signal element.

• Example : Standard 9600 bps Modem– D = 2400 signals/sec (baud). – M=16 signal elements.

– L= log2 (16)= 4 bits/signal element.

– R= 2400 x 4= 9600 bps.

Page 29: Ch. 5 Data Encoding

5.2 Performance of Digital Modulation Schemes

• Transmission bandwidth requirements.– ASK: BT = (1 + r) R (Eq. 5.8)

• R is the bit rate and "r" is related to the filtering technique used, and 0 < r < 1.

– FSK: BT = 2F + (1+r)R (No longer in Text)• F = the offset of the modulated frequency from

the carrier frequency.

– MPSK: BT = (1 +r) R /[log2(M)] (Eq. 5.9)

– MFSK: BT = (1+r)MR /[log2(M)] (Eq. 5.10)

– Note: For digital signaling, BT = .5(1+r)D.

Page 30: Ch. 5 Data Encoding

5.2 Performance of Digital Modulation Schemes (p.2)

• Table 5.5 shows R/BT (bandwidth efficiency.)

– ASK: R/ BT =1 / (1 + r)

– FSK: R/ BT =1 / [2ΔF/R + (1+r)]

– PSK: R/ BT = 1/ (1 +r)

– Multilevel PSK: R/ BT = [log2(M)] / (1+r)

– NOTE: Multilevel signaling increases bandwidth efficiency above 1.

Page 31: Ch. 5 Data Encoding

5.2 BER Performance and Bandwidth Efficiency

• Figure 5.4--BER as a function of Eb/No.

– PSK/QPSK performs 3dB better than ASK/FSK.

– If we increase Eb/No then we decrease BER.

– Recall that Eb =STb, Tb = 1/R.

– Then Eb/No= STb / No = S/(No x R).

• Fig. 5.13--FSK and MPSK BER vs. Eb/No

– So to improve the BER performance• Increase signal strength (increase S/N).

• Decrease R, which actually increases Eb.

Page 32: Ch. 5 Data Encoding

5.2 BER Performance and Bandwidth Efficiency (p.2)

• Ex. 5.6 What is the bandwidth efficiency for FSK, ASK, PSK, and QPSK for a BER of 10-7 on a channel with an S/N of 12 dB?– Eb/No = STb/(N/BT) = S/N x BT/R.

– (Eb/No)dB = (S/N)dB + (BT/R) dB

– (Eb/No)dB = (S/N)dB - (R/BT) dB (pg.86)

– From Fig. 5.13, we can find (Eb/No)dB.

– Results: (see page 160).• FSK, ASK: R/BT = .6

• PSK: R/BT =1.2 ; QPSK: R/BT = 2.4

Page 33: Ch. 5 Data Encoding

5.3 Analog Data, Digital Signals

• Digitize--to convert an analog signal to a digital signal.– 1.The digital data can be transmitted using NRZ-L.– 2. The digital data can be transmitted using an

alternative line code.– 3. The digital data can be converted into an analog

signal.

• Codec (coder-decoder)-- transforms analog data into digital form and back again.

Page 34: Ch. 5 Data Encoding

5.3 Pulse Code Modulation• PCM is based on the Sampling Theorem

– If a signal is sampled at regular intervals of time and at a rate higher than twice the highest significant signal frequency, then the samples contain all the information of the original signal. The signal may be reconstructed from these samples by the use of a low-pass filter.

• PCM is obtained by quantizing Pulse Amplitude Modulation samples (Fig. 5.16 and Fig. 5.17)

Page 35: Ch. 5 Data Encoding

5.3 Pulse Code Modulation (p.2)

• Quantization Noise (error)– The difference between the original signal and the

reconstructed PCM signal; ie., the error produced by the PCM process.

• Linear Quantization– Equally spaced quantization levels.

– (SNR) dB=20log10(2n) + 1.76dB

– = 6.02n + 1.76 dB, – n= the number of bits.

Page 36: Ch. 5 Data Encoding

5.3 Pulse Code Modulation (p.3)

• Nonlinear Quantization – Produces the same results as companding

(compression-expansion) does in analog transmission systems.

– Improves the S/N for small amplitude signals.

• Figure 5.18 Effect of Nonlinear Coding

Page 37: Ch. 5 Data Encoding

5.3 Pulse Code Modulation (p.4)

• Pulse Amplitude Modulation (PAM)– A process in which an analog source is sampled

and the magnitude of each sample is transmitted as the amplitude of a pulse waveform.

• Pulse Code Modulation (PCM)– A process in which an analog signal is sampled,

and the magnitude of each sample is quantized and converted by coding to a digital signal.

Page 38: Ch. 5 Data Encoding

Differential PCM (Not in your text.)

• Differential PCM– The process in which an estimate of a signal is

subtracted from the signal itself and the result (the difference) is digitized and transmitted.

– At the receiver the estimate is regenerated from the differences and becomes the approximation of the original signal.

– A type of “wave follower” encoding approach.– Reduces PCM bit rate by 1/2.

Page 39: Ch. 5 Data Encoding

5.3 Pulse Code Modulation(p.5)• Delta Modulation (DM)--

– A differential PCM coding technique in which the sign (+ or -) of the differences is coded and transmitted.

– This results in 1-bit per sample, but in general the sampling rate is larger than for PCM.

– Fig. 5.20 Delta Modulation Waveforms• Small step size--slope overload.

• Large step size--granularity (quantization noise.)

Page 40: Ch. 5 Data Encoding

5.3 Pulse Code Modulation (p.6)

• Performance– PCM --Voice

• Bandlimited to 4kHz.

• Sampled at 8kHz.

• Quantized to 7 or 8 bits (56 k bps or 64 k bps.)

• Bandwidth Requirement--at least 28 to 32 K Hz.

– PCM--Video• 10 bits/sample

• 92 M bps

Page 41: Ch. 5 Data Encoding

5.3 Pulse Code Modulation(p.7)

• Performance (cont.)– Digital techniques are used for the transmission

of analog data because:• Repeaters are used (no additive noise.)

• TDM can be used (FDM has intermodulation noise.)

• Digital signals can be switched using digital switching techniques.

Page 42: Ch. 5 Data Encoding

5.3 Pulse Code Modulation(p.8)

• Advanced Coding Techniques– Other coding techniques for analog sources

continue to be developed.– Speech--down to 4Kbps.– Broadcast Video--15 Mbps.– Video Teleconference-- 64 k bps or less.

Page 43: Ch. 5 Data Encoding

5.4 Analog Data, Analog Signals

• Modulation– The process of combining an input signal m(t) and

a carrier signal at frequency fc to produce a signal s(t) whose bandwidth is usually centered on fc.

• Uses of Modulation – Effective transmission (antenna size requires higher

transmission frequency.)– To combine signals onto a single communication

channel (FDM).

Page 44: Ch. 5 Data Encoding

5.4 Amplitude Modulation

• Mathematical Definition:– s(t) = [ 1 + na x(t)] cos (fc t).

– na is the modulation index

– m(t) = na x(t) is the modulating signal.

Page 45: Ch. 5 Data Encoding

5.4 Amplitude Modulation(p.2)

• Double sideband transmitted carrier (DSBTC)– Example 5.9 :

• Let x(t)=cos (2fmt)

• Note: cos(a )cos(b) = 1/2[cos (a+b) + cos(a-b)]

• s(t) = [ 1 + na cos (2fmt) ] cos (fc t).

• s(t) = cos 2fct + na/2[cos2 (fc-fm)t + na/2 cos2 (fc+fm)t]

• Figure 5.22 Amplitude Modulation

• Figure 5.23 Spectrum of an AM Signal

Page 46: Ch. 5 Data Encoding

5.4 Angle Modulation

• FM and PM– s(t) = Ac cos (2 fc t + (t) )

• PM: (t) = np m(t)

• FM: ' (t) = nf m(t)

• Bandwidth Comparison with AM– AM: BT = 2 B, where B is the bandwidth of

m(t).

– FM: BT = 2 F + 2B, where F is the peak deviation of the frequency (Carson's rule).

– Figure 4.20 AM, FM, and PM