Signal Encoding
Signal Encoding
Techniques
9/24/2021
Introduction
• Data
– digital
– analog
• Signal
– digital
– analog
• Data Encoding (converted into)
➢ Converting source data → into communication signal
– digital to → digital
– digital to → analog
– analog to → digital
– analog to → analog
Introduction
❑Digital data, digital signals: simplest form of digital encoding of digital
data
❑the equipment is less complex and less expensive than digital-to-
analog
Using Line coding Technique.
❑Digital data, analog signal: A modem converts digital data to an analog
signal so that it can be transmitted over an analog medium.
❑Analog data, digital signals: Analog data, such as voice and video, are
often digitized to be able to use digital transmission facilities.
❑Analog data, analog signals: Analog data are modulated by a carrier
frequency to produce an analog signal in a different frequency band, which
can be utilized on an analog transmission system
❑Eg:Voice transmission
Analog Signals
Analog Data
Voice
(sound waves)
Telephone Analog Signal
Digital Data
Digital Signals
Analog Data
Digital Data
signal
Modulation
signal
10
Modulation
• Modulation is the process of encoding source data onto
a carrier signal with frequency fc.
—The frequency of the carrier signal is chosen to be
compatible with the transmission medium being used.
—Modulation techniques involve operation on one or
more of the three parameters: amplitude,
frequency, and phase
• According to the input source signal m(t) (either analog
or digital), which is called baseband signal (or
modulating signal) , the carrier signal fc(t) will be
modulated into modulated signal s(t).
11
Signal Encoding Techniques
12
Which one of the 4 combinations to
choose?
• Digital data/Digital signal
– Equipment for encoding is less complex
– Digital transmission has less errors
• Analog data/Digital signal
– Digital transmission can be done on the existing analog medium – good
return on investment (ROI)
– Digital transmission has less errors
• Digital data/Analog signal
– Some high data rate mediums are analog (e.g. optical fiber)
– most of the unguided media are analog (e.g. Wireless)
• Analog data/Analog signal
– Can be transmitted easily and cheaply; different position on the
spectrum can be shared on the same media (e.g. Frequency-division
multiplexing)
Data Encoding
Data Encoding
15
Properties that need to be considered
while encoding
• At least 5 properties need to be considered
when encoding any form of data to any signals
1. Signal spectrum requirement
2. Signal synchronization capability
3. Signal error-detecting capability
4. Signal interference and noise immunity
5. Cost and complexity of the encoding/decoding
equipment.
16
Encoding
9/24/2021
Some Popular Encoding Schemes of
Digital data to Digital signals
9/24/2021
Terminologies
• Unipolar
— If all signal elements have the same algebraic sign (all positive
or all negative), then the signal is unipolar.
• Polar
— One logic state represented by positive voltage, the other by
negative voltage
• Data rate
— Rate of data transmission measured in bps: bits per second
• Duration or length of a bit
— Time taken for transmitter to emit the bit
• Modulation rate
— Rate at which the signal level changes
— Measured in baud: signal elements per second
• Mark and Space
— Mark: Binary 1
— Space: Binary 0
Interpreting Digital Signals
➢Receiver needs to know
⚫ timing of bits - when they start and end
⚫ signal levels
⚫ data rate
⚫ Bandwidth
▪ All signal levels are on one side of the time axis - either
above or below
In a unipolar scheme, all the signal levels are on one side of the time axis,
either above or below. In Non-Return-to-Zero, the signal does not return to
zero at the middle of the bit, where positive voltage defines bit 1 and the
zero voltage defines bit 0. Costly. the normalized power (the power needed
to send 1 bit per unit line resistance) is double that for polar NRZ.
Disadvantage: DC Component and Synchronization.
Polar - NRZ
◼ The voltages are on both sides of the time axis.
◼ No error detection.
Bipolar - AMI and Pseudoternary
+ 000+ -00-
B8ZS and HDB3
AMI used with scrambling
Two data levels, two signal levels Two data levels , three signal levels
3.Clocking - need for synchronizing transmitter and receiver either with an
external clock or with a sync mechanism based on signal
4.Error detection - useful if can be built in to signal encoding
5.Signal interference and noise immunity - some codes are better than others
6.Cost and complexity - Higher signal rate (& thus data rate) lead to higher costs,
Data Encoding
Analog Data
modulating Signal m(t)
High Frequency Signal
Fc(t)
Communication channel
Modulation
Modulation:
The process by which some characteristics of the carrier,
ie(amplitude/frequency/phase) is varied in accordance with the
instantaneous value of the modulating signal
➢main use is public telephone system
➢encoding techniques
Analog
Modulation
Techniques
Amplitude Modulation
Phase Modulation
Frequency Modulation
Modulation Techniques
Data Encoding
• ✓digital to digital
• ✓analog to analog
• digital to analog
• analog to digital
Digital Data, Analog Signal – Modulation
Techniques
Digital Data
Amplitude
Shift keying
Frequency
Shift keying
Phase
Shift keying
Amplitude Shift Keying
• encode 0/1 by different carrier amplitudes
– usually have one amplitude zero
• susceptible to sudden gain changes s(t) = A * Sin (2π f t + θ)
• inefficient A = Amplitude
f = carrier frequency
• used for
θ = Phase Angle
– up to 1200bps on voice grade lines
– very high speeds over optical fiber
⚫ delta modulation
Digitizing Analog Data
Analog Data, Digital Signal
9/24/2021
How often you need to sample the analog
data?
• If you want to decode the original signal from its
digital data, then the sampling theorem specifies the
minimum rate at which you need to sample the
analog signal
– “If a signal f(t) is sampled at regular intervals of time at a rate
higher than twice the highest signal frequency, then the samples
contain all the information of the original signal” (Stallings
DCC8e)
– e.g.. 4000Hz voice data, requires 8000 sample per sec
– Note that these are analog samples, referred to as pulse
amplitude modulation (PAM) samples
– The PAM samples must be assigned to a binary code to
complete the digitization of the original analog signal
9/24/2021
PCM Block Diagram
9/24/2021
Delta Modulation
• analog input is approximated by a staircase function
– can move up or down one level () at each sample interval
• has binary behavior
– since function only moves up or down at each sample interval
– hence can encode each sample as single bit
– 1 for up or 0 for down
9/24/2021
Delta Modulation Example
9/24/2021
Delta Modulation Operation
9/24/2021
PCM versus Delta Modulation
• DM has simplicity compared to PCM
• DM is easier to implement compared to PCM
• DM has worse SNR compared to PCM
• PCM has better SNR compared to DM
• PCM has issue of bandwidth being used
– e.g. for good voice reproduction with PCM
> want 128 levels (7 bit) & voice bandwidth of 4khz
> need 8000 x 7 = 56kbps
• data compression can improve on BW issues..
• PCM is the choice and still growing demand for digital signals
– Due to use of repeaters, TDM(no intermodulation noise), and efficient
switching
• PCM is preferred to DM for analog signals
9/24/2021
Summary
9/24/2021
Thank You
9/24/2021