Raj Jain The Ohio State University 3-1 Chapter 3: Chapter 3: Data Encoding Data Encoding Raj Jain Professor of CIS The Ohio State University Columbus, OH 43210 [email protected]http://www.cis.ohio-state.edu Raj Jain The Ohio State University 3-2 q Coding design consideration q Codes for q digital data to digital signal q Digital data, analog signal q Analog signal, digital data q Analog signal, analog data Overview
15
Embed
Chapter 3: Data Encoding - Washington University in St. Louisjain/cis677-96/ftp/e_5cod2.pdf · Chapter 3: Data Encoding Raj Jain ... q Coding design consideration q Codes for q digital
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.
q digital data to digital signalq Digital data, analog signalq Analog signal, digital dataq Analog signal, analog data
Overview
Raj Jain
Horizontal small
Raj JainThe Ohio State University
3-3
Coding TerminologyCoding Terminology
q Signal element: Pulseq Unipolar: All positive or
All negative voltageq Bipolar: Positive and negative voltageq Mark/Space: 1 or 0q Modulation Rate: 1/Duration of the smallest element
=Baud rateq Data Rate: Bits per secondq Data Rate = Fn(Bandwidth, signal/noise ratio, encoding)
Pulse
Bit
+5V0-5V
+5V0-5V
Raj JainThe Ohio State University
3-4
Coding DesignCoding Design
q Pulse width indeterminate: Clockingq DC, Baseline wanderq No line state informationq No error detection/protectionq No control signalsq High bandwidthq Polarity mix-up ⇒ Differential (compare polarity)
0 1 0 0 0 1 1 1 0 0 0 0 0
ManchesterNRZI
ClockNRZBits +5V
0-5V
Raj JainThe Ohio State University
3-5
Digital Signal Encoding FormatsDigital Signal Encoding Formats
Figure3.2
Raj JainThe Ohio State University
3-6
Digital Signal Encoding FormatsDigital Signal Encoding Formatsq Nonreturn-to-Zero-Level (NRZ-L)
0= high level1= low level
q Nonreturn to Zero Inverted (NRZI)0= no transition at beginning of interval (one bit time)1= transition at beginning of interval
q Bipolar-AMI0=no line signal1= positive or negative level,alternating for successive ones
0=positive or negative level,alternating for successivezeros
1=no line signalq Manchester
0=transition from high to low in middle of interval1= transition from low to high in middle of interval
q Differential ManchesterAlways a transition in middle of interval0= transition at beginning of interval1= no transition at beginning of interval
Raj JainThe Ohio State University
3-8
Multilevel BinaryMultilevel Binaryq Bipolar-AMI (Alternative Mark Inversion)
q No loss of sync with 1’s, zeros are a problemq No net dc componentq Error detection, noise ⇒ violationq Two bits/Hzq 3 levels ⇒ 3 dB higher signal than 2 levelsq 3 levels: 2log2 3 = 3.16 bits/Hz possible
q Pseudoternary: Inverse of AMIq No advantage over AMI
Raj JainThe Ohio State University
3-9
BiphaseBiphaseq Manchester: 1=Low to High, 0=High to Low
Used in IEEE 802.3/Ethernetq Differential Manchester:
0 = Transition at the begining1 = No transition at the beginningUsed in IEEE 802.5/Token ring
q No DCq Clock syncronizationq Error detectionq 1 bit/Hz, baud rate = 2 × bit rate
Same as bipolar AMI, except that any string of eight zerosis replaced by a string with two code violations0000 0000 = 000V 10V1
q HDB3Same as bipolar AMI, except that any string of four zerosis replaced by a string with one code violation0000 = 000V if odd number of ones since last substitution 100V otherwise
Digital Data Analog SignalsDigital Data Analog Signals
Fig 3.6
A Sin(2πft+θ)
ASK
FSK
FSK
Raj JainThe Ohio State University
3-15
Amplitude Shift Keying (ASK)Amplitude Shift Keying (ASK)q Good for low rate (upto 1200 bps)q Used in fiber: LED: No=0; Laser: Low=0
Raj JainThe Ohio State University
3-16
Frequency Shift Keying (FSK)Frequency Shift Keying (FSK)q Less susceptible to errors than ASKq Used in 300-1200 bps on voice grade linesq Used in 3 to 30 MHz radio
q Efficency = bps per Hz = R/Bq Modulation rate = D baudq ASK: B = (1+τ)D, 0<τ <1q FSK: B = 2(f2-f1) + (1+τ)Dq PSK: B = (1+τ)Dq Bilevel: R = Dq Multilevel: L different levels , Bits/level = log2 L
R = D log2 Lq R/B = (Log2 L)/(1+τ)q Example: 300 bps modems, f2-fc=100 Hz,
B = 2(f2-fc) + (1+τ)D = 200+(1+τ)(300) = 500-800 HzThis assumes no noise.
Bandwidth EfficiencyBandwidth Efficiency
Raj JainThe Ohio State University
3-20
Bit Error Rate (BER)Bit Error Rate (BER)q BER = fn(Signal energy per bit/Noise power per Hz)
Fig 3.9
Raj JainThe Ohio State University
3-21
Errors Due to NoiseErrors Due to NoiseSignal power = S, Modulation rate = D baud,
Signal energy per element E0= S/D T=Temperature⇒ Noise power per Hz N0= kT Bandwidth = B Hz Noise power N= kTBE0/N0 = S/{kTD} =S/{(N/B)D} =(S/N)/(D/B) E0/N0 in dB = S/N in dB - D/B in dBData Rate = R, L elements ⇒ R=D log2 L
n = Signal/carrier amplitude ratio = Modulation index
Fig 3.17
Raj JainThe Ohio State University
3-27
Spectrum of AM SignalSpectrum of AM Signalq Signal bandwidth = 2 × Data bandwidthq Single sideband (SSB): No carrierq Vestigial sideband (VSB): Reduced carrier+SSB
Fig 3.18
f
Sin(2πft)
f
Raj JainThe Ohio State University
3-28
Angle ModulationAngle Modulationq s(t) = A cos[2πft+ φ]q Frequency Modulation (FM):
s(t) = A cos[2π{fc+n m(t)}t+ φ]q Phase modulation (PM):
s(t) = A cos[2πfct+ {n m(t)}]q For FM: m(t)= (1/n) [(d/dt)φ(t)-fc]q For PM: m(t) = (1/n)[φ(t) - 2πfct)]q Increasing data level
⇒ Same bandwidth, More power for AM⇒ More bandwidth, Same power for FM/PM
Raj JainThe Ohio State University
3-29
SummarySummary
q Coding: Higher data rate, error control, clocksyncronization, line state indication, control signal