05-SignalEncodingTechniques0 - Extra (Compatibility Mode)
05-SignalEncodingTechniques0 - Extra (Compatibility Mode)
Communications
Chapter 5 – Signal Encoding
Techniques
KEY POINTS
• Both analog and digital information can be encoded as either
analog or digital signals. The particular encoding that is chosen
depends on the specific requirements to be met and the media
and communications facilities available.
• signal spectrum
• clocking
• error detection
• signal interference and noise immunity
• cost and complexity
• Signal spectrum: Several aspects of the signal spectrum are
important. A lack of high-frequency components means that less
bandwidth is required for transmission. In addition, lack of a direct-
current (dc) component is also desirable. With a dc component to
the signal, there must be direct physical attachment of
transmission components. With no dc component, ac coupling via
transformer is possible; this provides excellent electrical isolation,
reducing interference. Finally, the magnitude of the effects of signal
distortion and interference depend on the spectral properties of the
transmitted signal. A good signal design should concentrate the
transmitted power in the middle of the transmission bandwidth. In
such a case, a smaller distortion should be present in the received
signal.
• Codes that follow this strategy share the property that the
voltage level is constant during a bit interval; there is no
transition (no return to a zero voltage level).
• The data bits are encoded as the presence or absence of a signal transition
at the beginning of the bit time. A transition (low to high or high to low) at
the beginning of a bit time denotes a binary 1 for that bit time; no
transition indicates a binary 0.
• The voltage level for one data element is at zero, while the
voltage level for the other element alternates between
positive and negative.
• If the number of nonzero pulses after the last substitution is odd, the
substitution pattern will be 000V, which makes the total number of nonzero
pulses even.
• If the number of nonzero pulses after the last substitution is even, the
substitution pattern will be B00V, which makes the total number of nonzero
pulses even.
Digital Data, Analog Signal
• main use is public telephone system
– has freq range of 300Hz to 3400Hz
– use modem (modulator‐demodulator)
• encoding techniques
– Amplitude shift keying (ASK)
– Frequency shift keying (FSK)
– Phase shift keying (PK)
Digital-to-analog conversion
Modulation Techniques
Amplitude Shift Keying
• encode 0/1 by different carrier amplitudes
– usually have one amplitude zero
• susceptible to sudden gain changes
• inefficient
• used for
– up to 1200bps on voice grade lines
– very high speeds over optical fiber
Binary Frequency Shift Keying
• most common is binary FSK (BFSK)
• two binary values represented by two different
frequencies (near carrier)
• less susceptible to error than ASK
• used for
– up to 1200bps on voice grade lines
– high frequency radio
– even higher frequency on LANs using co‐ax
Multiple FSK
Multiple FSK
• A signal that is more bandwidth efficient, but also more
susceptible to error, is multiple FSK (MFSK), in which more than
two frequencies are used.
• In this case each signaling element represents more than one bit.
To match the data rate of the input bit stream, each output signal
element is held for a period of Ts = LT seconds, where T is the bit
period (data rate = 1/T).
• This same carrier wave is shifted by 90˚ and used for ASK
modulation of the lower binary stream. The two modulated
signals are then added together and transmitted.
QAM Variants
• two level ASK
– each of two streams in one of two states
– four state system
– essentially QPSK
• four level ASK
– combined stream in one of 16 states
• have 64 and 256 state systems
• improved data rate for given bandwidth
– but increased potential error rate
Analog Data, Digital Signal
• digitization is conversion of analog data into
digital data which can then:
– be transmitted using NRZ‐L
– be transmitted using code other than NRZ‐L
– be converted to analog signal
• analog to digital conversion done using a
codec
– pulse code modulation
– delta modulation
Digitizing Analog Data
Pulse Code Modulation (PCM)
• The simplest technique for transforming analog data into digital signals
is pulse code modulation (PCM), which involves sampling the analog
data periodically and quantizing the samples.
• Note, however, that these are analog samples, called pulse amplitude
modulation (PAM) samples. To convert to digital, each of these analog
samples must be assigned a binary code.
Pulse Code Modulation (PCM)
• sampling theorem:
– “If a signal is sampled at regular intervals at a rate
higher than twice the highest signal frequency, the
samples contain all information in original signal”
– eg. 4000Hz voice data, requires 8000 sample per
sec
• strictly have analog samples
– Pulse Amplitude Modulation (PAM)
• so assign each a digital value
Components of PCM encoder
4.71
PCM Example
PCM Example
• Figure shows an example in which the original signal is
assumed to be bandlimited with a bandwidth of B.
Typically, the PCM scheme is refined using a technique known as nonlinear encoding,
which means, in effect, that the quantization levels are not equally spaced. The problem
with equal spacing is that the mean absolute error for each sample is the same, regardless
of signal level. Consequently, lower amplitude values are relatively more distorted. By
using a greater number of quantizing steps for signals of low amplitude, and a smaller
number of quantizing steps for signals of large amplitude, a marked reduction in overall
signal distortion is achieved. Nonlinear encoding can significantly improve the PCM
SNR ratio. For voice signals, improvements of 24 to 30 dB have been achieved.
Companding
Companding
• The same effect can be achieved by using uniform quantizing but
companding (compressing-expanding) the input analog signal.