04 Encoding and Modulating
04 Encoding and Modulating
∝ The technique that we will see for digital to digital conversion is called Line coding.
∝ Converting a string of 1’s and 0’s (digital data) into a sequence of signals that denote
the 1’s and 0’s.
∝ For example a high voltage level (+V) could represent a “1” and a low voltage level
(0 or -V) could represent a “0”.
∝ The data rate defines the number of bits sent per sec (bps). It is often referred to the
bit rate.
∝ The signal rate is the number of signal elements sent in a second and is measured in
bauds. It is also referred to as the modulation rate.
∝ Goal is to increase the data rate whilst reducing the baud rate.
X Increasing data rate increases rate of transmission
X Decreasing baud rate decrease the bandwidth requirement
Baseline Wandering
∝ Baseline wandering: A receiver will evaluate the average power of the received signal
(called the baseline) and use that to determine the value of the incoming data
elements.
∝ If the incoming signal does not vary over a long period of time, the baseline will drift
and thus cause errors in detection of incoming data elements.
∝ A good line encoding scheme will prevent long runs of fixed amplitude.
DC Components
∝ DC Components: When the voltage level remains constant for long periods of time,
the spectrum creates very low frequencies. These frequencies around 0 is called DC
component.
∝ Many channels may not support the low frequencies.
Self Synchronization
∝ Self Synchronization: The clocks at the sender and the receiver must have the same
bit interval.
∝ If the receiver clock is faster or slower it will misinterpret the incoming bit stream.
Self Synchronization
∝ Problem: In a digital transmission, the receiver clock is 0.1 percent faster than the
sender clock. How many extra bits per second does the receiver receive if the data
rate is 1 kbps? How many if the data rate is 1 Mbps?
∝ Solution: At 1 kbps, the receiver receives 1001 bps instead of 1000 bps.
∝ Noise and interference: There are line encoding techniques that make the transmitted
signal “immune” to noise and interference.
∝ Complexity: The more robust and resilient the code, the more complex it is to
implement and the price is often paid in baud rate or required bandwidth.
Unipolar - NRZ
∝ All signal levels are on one side of the time axis: either above or below
∝ NRZ: Non Return to Zero scheme is an example of this code. The signal level does
not return to zero during a symbol transmission.
∝ Scheme is prone to baseline wandering and DC components. It has no synchronization
or any error detection.
∝ It is simple.
Polar - NRZ
∝ The voltages are on both sides of the time axis.
∝ Polar NRZ scheme can be implemented with two voltages. E.g. +V for 1 and -V for 0.
∝ There are two versions:
X NRZ - Level (NRZ-L) positive voltage for one symbol and negative for the other
X NRZ - Inversion (NRZ-I): the change or lack of change in polarity determines the value of
a symbol. E.g. a “1” symbol inverts the polarity a “0” does not.
∝ In NRZ-L the level of the voltage determines the value of the bit.
∝ In NRZ-I the inversion or the lack of inversion determines the value of the bit.
∝ NRZ-L and NRZ-I both have a DC component problem and baseline wandering, it is
worse for NRZ-L. Both have no self synchronization & no error detection. Both are
relatively simple to implement.
Polar RZ
∝ Each symbol has a transition in the middle. Either from high to zero or from low to
zero.
Polar RZ
∝ This scheme has more signal transitions (two per symbol) and therefore requires a
wider bandwidth.
∝ No DC components or baseline wandering.
∝ Code uses 3 voltage levels: +, 0, −, to represent the symbols (note not transitions to
zero as in RZ).
∝ Voltage level for one symbol is at “0” and the other alternates between + & −.
∝ Bipolar Alternate Mark Inversion (AMI): the “0” symbol is represented by zero
voltage and the “1” symbol alternates between +V and −V .
∝ Pseudoternary is the reverse of AMI.
Bipolar Characteristics
∝ No error detection.
Multilevel Schemes
∝ In these schemes we increase the number of data bits per symbol thereby increasing
the bit rate.
∝ Since we are dealing with binary data we only have 2 types of data element 1 or 0.
We can combine the 2 data elements into a pattern of “m” elements to create 2m
symbols.
X Example: Total number of 8 bit patterns using 0 and 1 are 28 = 256
∝ If we’ve L signal levels, we can use “n” signal elements to create Ln signal elements.
X Example: If we have 3 signal levels (+, 0, −) and 6 signal elements... we can create
36 = 478 signal elements.
∝ If 2m > Ln then we can not represent all data elements, we don’t have enough signals.
∝ If 2m < Ln then we have more signals than symbols and we can choose the signals
that are more distinct to represent the symbols and therefore have better noise
immunity and error detection as some signals are not valid.
m = 2, n = 1, L = 4 m = 8, n = 6, L = 3
∝ No redundancy as 22 = 41 .
∝ Used in DSL (Digital Subscriber Line) technology to provide high speed connection to
the internet.
∝ Encode 8 bits as a pattern of 6 signals, where the signal has three levels (ternary).
∝ PAM uses a technique called sample and hold. That is, at a given moment, the signal
level is read, then held briefly.
∝ The binary digits are then transformed into digital signals using one of the
digital-to-digital encoding techniques.
∝ PCM is actually has four separate processes:
X PAM
X Quantization
X Binary encoding
X Digital to digital encoding
Nyquist Theorem
Nyquist Theorem
∝ For carrying digital data over analog line we need modem - modulation demodulation
∝ ASK: Two binary numbers (0, 1) represented by two different amplitudes of the
carrier wave.
X Strength of carrier signal is varied to represent binary 1 or 0
X Both frequency & phase remain constant while amplitude changes
∝ Multilevel ASK
X There are more than two levels.
X We can use 4, 8, 16 or more amplitudes for the signals and modulate the data using 2, 3, 4
or more bits at a time.
∝ Advantage: simplicity
∝ Multilevel FSK
X We can use four different frequencies to send 2 bits at a time.
∝ Less susceptible to error than ASK - receiver looks for specific frequency changes over
a number of intervals, so voltage (noise) spikes can be ignored
∝ Requires more bandwidth
X FSK spectrum is 2 times that of ASK spectrum
∝ The phase of the carrier is varied to represent two or more different signal elements.
PSK Constellation
∝ Nor has the bandwidth limitations of FSK. This means that the small variations in the
signal can be detected reliably by the receiver.
∝ We can use 4 phase shifts to represent two bits.
4-PSK Constellation
8-PSK Constellation
∝ The minimum bandwidth requirement for QAM is same as that for ASK and PSK.
8-QAM Signal
Amplitude Modulation
∝ In AM, the carrier signal is modulated so that its amplitude varies with the changing
amplitude of the modulating signal.
∝ The phase and the frequency remains the same.
AM Bandwidth
∝ The bandwidth of an audio signal (speech & music) is usually 5kHz. Therefore an
AM radio station needs a minimum bandwidth of 10kHz
∝ AM stations are allowed carrier frequencies anywhere between 530kHz and 1700kHz.
Frequency Modulation
∝ The frequency of the carrier signal is modulated to follow the changing voltage level
(amplitude) of the modulating signal.
∝ The peak amplitude and the phase of the carrier signal remain constant.
FM Bandwidth
Phase Modulation
∝ The phase of the carrier signal is modulated to follow the changing voltage level
(amplitude) of the modulating signal.
∝ The peak amplitude and frequency of the carrier signal remain constant.
Summary
∝ Digital-to-Digital Conversion :
X NRZ, NRZ-L, NRZ-I, RZ, Manchester, Differential Manchester, AMI and Pseudoternary,
2B1Q, 8B1Q, MLT-3
∝ Digital-to-Analog Conversion :
X PCM
∝ Analog-to-Digital Conversion :
X ASK, FSK, PSK, QAM
∝ Analog-to-Analog Conversion :
X AM, FM, PM