Digital Encoding Techniques: TCC E&I 1
Digital Encoding Techniques: TCC E&I 1
TCC E&I 1
Introduction
Encoding
Encoding organises the data into a form suitable for
transmission by a suitable type of signal along the
communication medium
To send data by using signals, we must able to convert data
into signals.
Types of signals:
Digital
Analog
Types of data
Digital
Analog
TCC E&I 2
Encoding Techniques
Posibilities in encoding:
1. Digital data, digital signal
2. Analog data, digital signal
3. Digital data, analog signal
4. Analog data, analog signal
TCC E&I 3
Terms
• Digital signaling
– Data source (digital/analog) encoded into digital
signal
– Data source g(t), which may be either digital or
analog, is encoded into a digital signal x(t).
Used to optimize use of the transmission medium.
•For example, the encoding may be chosen to
conserve bandwidth or to minimize errors.
TCC E&I 4
Terms
• Analog signaling
– Data source (digital/analog) encoded into
constant-frequency signal (carrier signal)
The input signal m(t) may be analog or digital and is called the
modulating signal or baseband signal.
- The result of modulating the carrier signal is called the modulated
signal s(t).
- s(t) is a bandlimited(bandpass) signal. The spectrum of s(t) is
related to fc and is often centered on fc.
TCC E&I 5
Terms
• Modulation
– Process of encoding source data onto a carrier signal
with frequency fc
– Involves operation on one or more of the three
characteristics of a carrier signal: amplitude,
frequency, and phase.
– The frequency fc of the carrier signal is chosen to be
compatible with the transmission medium being
used.
TCC E&I 6
Signal Encoding Criteria
The following important factors determines how successful a
receiver will be in interpreting an incoming signal:
Signal-to-noise ratio
Data rate
Bandwidth
Encoding scheme
With other factors held constant, the following statements are true:
I.An increase in data rate increases bit error rate
II.An increase in SNR decreases bit error rate
TCC E&I 7
Digital Data-Digital Signal
Line Coding
• Is the process of converting digital data to digital
signals.
• Data are stored in comp. mem as sequences of bits.
• Line coding converts a sequence of bits to a digital
signal.
• At the sender, digital data are encoded into a digital
signal; at the receiver, the digital data are recreated
by decoding the digital signal.
TCC E&I 8
Line Coding and Decoding
TCC E&I 9
Digital Data, Digital Signal
• In general, the equipment for encoding digital
data into a digital signal is less complex and less
expensive than digital-to-analog modulation
equipment.
• Digital signal
– Discrete, discontinuous voltage pulses
– Each pulse is a signal element
– Binary data encoded into signal elements
TCC E&I 10
Factors Used to Compare Encoding Schemes
Following are primary factors to consider when selecting a line coding format:
Signal spectrum
Good signal design should concentrate the transmitted power in the middle of
Over digital tx line, it’s more power efficient to encode binary data with
voltages that are equal in magnitude but opposite in polarity and symmetrically
balanced about 0 V.
With no dc component, ac coupling via transformer possible, providing
In NRZ, the binary pulse is maintained for the entire bit time
In RZ, the active time of the binary pulse is < 100% of the bit time
TCC E&I 11
Factors Used to Compare Encoding Schemes
Clocking
To correctly interpret the signals received from the sender, the
receiver's bit intervals must correspond exactly to the sender's bit
intervals
There is need to determine the beginning and end of each bit
position
2 posible ways:
synchronize transmitter and receiver either with an external clock or sync
mechanism expensive option)
Use suitable encoding that provides self- synchronization mechanism that is
based on the transmitted signal e.g Manchester, differential manchester
Self- sync is achieved if there are transitions in the signal that alert the
reciever to the beginning, middle, or end of the signal pulse.
TCC E&I 12
Factors Used to Compare Encoding Schemes
Build-in error detection
It is desirable to have a built-in error-detecting capability
in the generated code to detect some of or all the errors that occurred during
transmission
This will permit quick errors detecion
Responsibility of data link control
Signal interference and noise immunity
Performance in the presence of noise differ with scheme
rate
TCC E&I 13
Factors Used to Compare Encoding Schemes
Baseline Wandering
• In decoding a digital signal, the receiver calculates a running
average of the received signal power. This average is called the
baseline
• The incoming signal power is evaluated against this baseline to
determine the value of the data element
• A long string of Os or Is can cause a drift in the baseline and make
it difficult for the receiver to decode correctly
• This drifting is called baseline wandering
• A good line coding scheme needs to prevent baseline wandering
TCC E&I 14
Classification of Digital to Digital Encoding
TCC E&I 15
Types of Polar Encoding
TCC E&I 20
RZ and NRZ codes
• RZ - vollages must return to zero within each bit time,
whereas NRZ codes do not necessarily do so.
• NRZ codes are simple and do not make large demands
on system bandwidth, but they can be problematic in
terms of c locking:
When strings of bits with the same value are sent,
clocking may be lost
• In contrast, the return to zero in each bit time of RZ
codes provides perfect clocking, but they extract a
bandwidth penalty.
TCC E&I 21
TCC E&I 22
Nonreturn to Zero-Level (NRZ-L)
• Two different voltages for 0 and 1 bits
• Voltage constant during bit interval
– no transition I.e. no return to zero voltage
• e.g. constant negative voltage for zero, constant
positive voltage for one
• More often, negative voltage for one value and
positive for the other
TCC E&I 23
Nonreturn to Zero Inverted
• Nonreturn to zero
• Inverted on ones
• Constant voltage pulse for duration of bit
• Data encoded as presence or absence of signal
transition at beginning of bit time
• Transition (low to high or high to low) denotes
a binary 1
• No transition denotes binary 0
• An example of differential encoding
TCC E&I 24
NRZ
TCC E&I 25
Differential Encoding
• Data represented by changes rather than levels
• More reliable detection of transition rather than level
• In complex transmission layouts it is easy to lose
sense of polarity
TCC E&I 26
NRZ pros and cons
• Pros
– Easy to engineer
– Make good use of bandwidth
• Cons
– dc component
– Lack of synchronization capability
• Used for magnetic recording
• Not often used for signal transmission
TCC E&I 27
Types of Bipolar Encoding
PSEUDOTERNARY
PSEUDOTERNARY
TCC E&I 28
Multilevel Binary
• Use more than two levels
• Bipolar-AMI
– zero represented by no line signal
– one represented by positive or negative pulse
– one pulses alternate in polarity
– No loss of sync if a long string of ones (zeros still a
problem)
– No net dc component
– Lower bandwidth
– Easy error detection
TCC E&I 29
Pseudoternary
• One represented by absence of line signal
• Zero represented by alternating positive and
negative
• No advantage or disadvantage over bipolar-
AMI
TCC E&I 30
Bipolar-AMI and Pseudoternary
TCC E&I 31
Trade Off for Multilevel Binary
• Not as efficient as NRZ
– Each signal element only represents one bit
– In a 3 level system could represent log23 = 1.58
bits
– Receiver must distinguish between three levels
(+A, -A, 0)
– Requires approx. 3dB more signal power for same
probability of bit error
TCC E&I 32
Biphase
• Manchester
– Transition in middle of each bit period
– Transition serves as clock and data
– Low to high represents one
– High to low represents zero
– Used by IEEE 802.3
• Differential Manchester
– Midbit transition is clocking only
– Transition at start of a bit period represents zero
– No transition at start of a bit period represents one
– Note: this is a differential encoding scheme
– Used by IEEE 802.5
TCC E&I 33
Manchester Encoding
TCC E&I 34
Differential Manchester Encoding
TCC E&I 35
Biphase Pros and Cons
• Con
– At least one transition per bit time and possibly two
– Maximum modulation rate is twice NRZ
– Requires more bandwidth
• Pros
– Synchronization on mid bit transition (self clocking)
– No dc component
– Error detection
TCC E&I 36
Scrambling
Biploar AMI encoding is suitable for long-distance
communication because:
Has narrow bandwidth requirements
Does not create a DC component
Biploar AMI, however can experience a long sequence
of 0s which upsets the synchronization.
Solution is to use a technique that provide syn without
increasing the number of bits. One solution is
scrambling.
• The objective is to avoid long sequences of zero level
line signals by introducing enough transitions to sync
and providing some type of error detection Capability
TCC E&I 37
Scrambling
Use scrambling to replace sequences that would produce
constant voltage
Design goals:
• have no dc component
• have no long sequences of zero level line signal
• have no reduction in data rate
• give error detection capability
Two common scrambling techniques:
• Bipolar with 8-zero substitution (B8ZS)
• High-density bipolar3-zero (HDB3)
TCC E&I 38
B8ZS
• Bipolar With 8 Zeros Substitution
• Based on bipolar-AMI
• B8ZS substitutes eight consecutive zeros with
000VB0VB.
• V(Violation), is a non-zero voltage which means signal
have same polarity as the previous non-zero voltage. Thus
it is violation of general AMI technique.
• B(Bipolar), also non-zero voltage level which is in
accordance with the AMI rule (i.e.,opposite polarity from
the previous non-zero voltage).
TCC E&I 39
B8ZS
• Rules for substituting the sequences:
If octet of all zeros and last voltage pulse preceding was
positive encode as 000+-0-+
If octet of all zeros and last voltage pulse preceding was
negative encode as 000-+0+-
• Causes two violations of AMI code that are unlikely to
occur as a result of noise
• Receiver detects and interprets as octet of all zeros
TCC E&I 40
B8ZS - Example:
Data = 100000000
TCC E&I 42
HDB3 – Example
Data = 1100001000000000
TCC E&I 43
Definition of Digital Signal Encoding Format (1)
i. Nonreturn to Zero-Level(NRZ-L)
- 0 = high level
- 1 = low level
ii. Nonreturn to Zero Inverted (NRZ-I)
- 0 = no transition at beginning of interval
- 1 = transition at beginning of interval
iii. Bipolar –AMI
- 0 = no signal
- 1 = +ve or –ve, alternating for successive ones
iv. Pseudoternary
- 0 = +ve or –ve level, alternating for successive zeros
- 1 = no line signal
TCC E&I 44
Definition of Digital Signal Encoding Format (2)
v. Manchester
- 0 = transition from high to low in middle of interval
- 1 = transition from low to high in middle of interval
vi. Differential Manchester
- Always a transition in middle of interval
- 0 = transition at beginning of interval
- 1 = no transition at beginning of interval
vii. B8ZS
- Same as bipolar AMI, except that any string of eight zeros is
replaced by a string with two code violations
viii. HDB3
- Same as bipolar AMI, except that any string of four zeros is
replaced by a string with one code violation
TCC E&I 45
Digital Data–to-Analog Signal Conversion
(Modulation) Techniques
TCC E&I 46
Digital –to-Analog Modulation Techniques
TCC E&I 47
Digital –to-Analog Modulation Techniques
TCC E&I 48
Types of digital-to-analog modulation
TCC E&I 49
Amplitude Shift Keying (ASK)
• Binary values are represented by different
amplitudes of carrier
• Usually, one amplitude is zero
– i.e. presence and absence of carrier is used
• Susceptible to sudden gain changes
• Inefficient
• Up to 1200bps on voice grade lines
• Used over optical fiber ASK
TCC E&I 51
Frequency Shift Keying (FSK)
TCC E&I 53
Phase Shift Keying (PSK)
Binary PSK (Two-level PSK)
– Also called phase reversal keying or 2PSK
– Difference of 180 phase shift is used between binary 1
and binary 0.
– This is regarded as the most robust digital modulation
technique and is used for long distance wireless
communication.
Differential PSK
– Phase shifted relative to previous transmission rather
than some reference signal
BPSK
TCC E&I 54
Differential PSK
TCC E&I 56
M-ary Modulation
• Modern modulation techniques allow both
amplitude and phase (or frequency) of the RF
carrier to be varied.
• Because the envelope and phase provide two
degrees of freedom, such modulation techniques
map baseband data into four or more possible RF
carrier signals.
• Such modulation techniques are known as M-ary
modulation.
TCC E&I 57
M-ary Modulation
• In M-ary modulation scheme, two or more bits
are grouped together to form symbols and one of
possible signals S1(t), S2(t), …, Sm(t) is
transmitted during each symbol period Ts.
• Normally, the number of possible signals is M =
2n, where n is an integer.
• Depending on whether the amplitude, phase or
frequency is varied, the modulation is referred to
as M-ary ASK, M-ary PSK or M-ary FSK,
respectively.
TCC E&I 58
M-ary Modulation
• M-ary modulation technique attractive for use in
bandlimited channels, because these techniques
achieve better bandwidth efficiency at the expense
of power efficiency.
• For example, an 8-PSK technique requires a
bandwidth that is log28 = 3 times smaller than 2-PSK
(BPSK) system (log22)
• However, M-ary signalling results in poorer error
performance because of smaller distances between
signals
• commonly used M-ary signalling schemes are QPSK,
8-PSK, QAM
TCC E&I 59
QPSK
• Quadrature Phase-Shift Keying is used for more
efficient use of bandwidth, where
s(t) = A cos (2πfct ) - for 00
= A cos (2πfct + 900) - for 01
= A cos (2πfct + 1800) - for 10
= A cos (2πfct + 2700) - for 11
• It uses four phases to encode two bits per
symbol
• Here phase is shifted in multiples of 90 0 as shown
in the constallation diagram next slide
TCC E&I 60
QPSK
TCC E&I 61
Quadrature PSK (QPSK)
• Provides a more efficient use by each signal
element representing more than one bit
• The technique, therefore, is used to increase the
bit rate, i.e we can code two bits onto one single
element.
• It has double data rate carrying capacity compare
to BPSK as two bits are mapped on each
constellation points.
TCC E&I 62
8-PSK
• Here phase is shifted by 450
TCC E&I 63
Quadrature Amplitude Modulation (QAM)
• Ability of equipment to distinguish small differences
in phase shifts in QPSK or 8PSK systems limits the
potential bit rate
• This can be improved by combining ASK and PSK
• This combined modulation technique is known
Quardrature Amplitude Modulation (QAM)
• Send two different signals simultaneously on same
carrier frequency (two copies of carrier, one shifted
90° and each carrier is ASK modulated) –
ASSIGNMENT: with the aid of phase(constallation)
diagram explain the QAM technique
• With QAM, higher data rate are possible
TCC E&I 64
Bit rate and Baud rate
• Use of different modulation techniques lead
to different baud rates (number of signal
elements per second) for different values of
bit rates, which represents the numbers of
data bits per second
• The baud rate, in turn, implies different
bandwidth requirement of the medium used
for transmission of the analog signal
TCC E&I 65
Bit rate and Baud rate
Table: Bit rate for the same baud rate for different modulation
techniques
TCC E&I 66
Summary
Signal encoding techniques
digital data, digital signal
• NRZ-L, NRZ-I, Unipolar NRZ, Bipolar –AMI,
Pseudoternary, Manchester, Differential
Manchester, B8ZS, HDB3
digital data, analog signal
• ASK, FSK, PSK, QPSK, QAM
TCC E&I 67
Individual Exercise
For the bit stream 101011100, sketch the resultant
waveform for the following line coding schemes:
i.Unipolar NRZ
ii.Polar NRZ-L
iii.NRZ-I
iv.Bipolar encoding
v.Machester encoding
vi.Differntial Manchester encoding
TCC E&I 68
Solution
TCC E&I 69
Q&A
The end.
Thank you!!
TCC E&I 70