Signal Encoding Techniques
Signal Encoding Techniques
Chapter 5
Signal Encoding Techniques
Encoding Techniques
1. Digital data, digital signal
— Two voltage pulses for binary 1 and 0
2. Digital data, analog signal
— Modulation techniques
• (Amplitude, Frequency, Phase) Shift Keying Modulation
3. Analog data, analog signal
— Modulation techniques
• (Amplitude, Frequency, Phase) Modulation
4. Analog data, digital signal
— Pulse Code modulation (PCM)
— Delta Modulation (DM)
1. Digital Data, Digital Signal
• Digital signal
—Discrete, discontinuous voltage pulses
—Each pulse is a signal element
—Binary data encoded into signal elements
Terms (1)
1. Unipolar
— Unipolar signal where all signal elements have same sign (i.e..,
either +ve or –ve)
2. Polar
— One logic state represented by +ve voltage level where the
other represented by -ve voltage level
3. Data rate (if we represent by R)
— Rate of data transmission in bits per second
4. Duration of a bit
— Time required by the transmitter to transmit the bit
Bit Duration = 1 / R
5. Modulation rate
— Is the Rate at which the signal level changes (i.e.., the signal
elements per second and it is measured in baud)
Important Facts
1. Data Rate ∝BER
2. SNR ∝ 1/BER
3. Bandwidth ∝ Date Rate.
4. Signal Processing Gain is given as:
SNR
Signal Processing Gain is the raio processed signal
SNR
Unprocessed signal
• Problem:
— Derive the Mathematical Relationship between
the BER and the Signal Processing Gain using
point 1 to 4. Provide complete justification of
your answer.
Encoding Schemes
1. Nonreturn to Zero-Level (NRZ-L)
2. Nonreturn to Zero Inverted (NRZI)
3. Multilevel (Bipolar –AMI)
4. Manchester
5. Differential Manchester
6. B8ZS
7. HDB3
1. Nonreturn to Zero-Level (NRZ-L)
• Two different voltages for 0 and 1 bits
• For Example:
—Negative Voltage (-5V) use to represent binary 1 and
Positive Voltage (+5v) use to represent binary 0
2. Nonreturn to Zero Inverted
• Nonreturn to zero and inverted on 1
+ve
0v
-ve
Invert on ‘1’
+ve
0v
-ve
NRZ-L
Differential Encoding
• Follow a single rule of encoding:
• Cons
—String of 0’s or 1’s leads a constant voltage over a
period of time
—Loss of synchronization between transmitter &
receiver
—The final result will be No detection at receiver
Multilevel Binary
• Use more than two levels
• Bipolar-AMI (Alternate Mark Inversion)
—Binary ‘0’ represented by no line signal (i.e., 0 volts)
—Binary ‘1’ represented by positive or negative voltages
—Pulses alternate in polarity (i.e., either +ve or –ve)
—No loss of sync if a long string of ones (zeros still a
problem)
Another
Voltage Level
Biphase
1. Manchester
— Transition in middle of each bit period
— Mid-Bit transition serves for clocking and data
— Rule
• Low to high represents binary ‘1’
• High to low represents binary ‘0’
2. Differential Manchester
— Use differential encoding scheme
— Mid-Bit transition serves only for clocking
— Rule
• If there is a ‘0’, there will be a transition (start of a bit period)
• If there is a ‘1’, there will be no transition (start of a bit period)
Manchester Encoding
For ‘O’ Go “High to Low”
For ‘1’ Go “Low to High”
1 bit period Must be a Transition
High
H H H H H H H H H H
L L L L L L L L L L
Low
Differential Manchester
Encoding
0, there will be a T (@ start of a bit period)
1, there will be NT (@ start of a bit period)
T NT NT T T
NT T T NT T
Modulation Rate
R = 1/Tb
Tb = Bit duration
Manchester 2 samples
per duration of a bit
Scrambling
• Use special pattern to replace sequences that
would produce constant voltage
fc
f10 f2 1
• Problems
—Susceptible to sudden gain changes
—Inefficient
2. Frequency Shift Keying (FSK)
• Two binary values represented by two different
frequencies (near carrier)
• Advantages
—Less susceptible to error than ASK
—Can be used with the higher frequency (3 to 30 MHz)
• Even higher frequency on LANs using co-ax
3. Phase Shift Keying (PSK)
• The ‘Phase’ of modulated signal is shifted to represent data
(i.e.., 0 and 1)
Bit period
Even
Odd
Separating even
bits with odds
(i.e.., alternate bits 2 signals are added
Generating & transmitted using
carrier frequency Phase shift by 90 the same fc
3. Analog Data, Digital Signal
• Digitization
— Conversion of analog data into digital data
• Example
— 8 bit per sample 256 quantization levels
• Problem:
— Higher computational complexity
— Quantization error due to linear spacing
Delta Modulation
• Consists of 2 steps:
— Segmentation
— Compression
1. Segmentation
— Original Signal is approximated using the staircase function
— Approximated signal has one or more segments
— Staircase function goes up and down w.r.t quantization level
2. Compression
— Each segment is compared with the original signal
— Increase/decrease is determined to produce final output
— Output signal has 2 discrete levels that need 1 bit for
representation
Delta Modulation - example
Segment of the
approximated
signal
Relative
amplitude is
increasing 1
4. Analog Data, Analog Signals
• Digital data can’t be sent without modulation
• Why modulate analog signals? Why not a base-
band signal
—Frequency of base-band signal is quite low
—Attenuation is function of distance
—Need to uplift the frequency of modulating signal
• Types of modulation
—Amplitude
—Frequency
—Phase
Required Reading
• Stallings chapter 5
• Review examples 5.1 to 5.5