Encoding and Modulation
Encoding and Modulation
Encoding and Modulation
N N N N
Baud rate Pulse encoding (digital to digital) Modulation (digital to analog) Pulse code modulation
Encoding
N
Digital information, digital signal Analog information, digital signal Digital information, analog signal Analog information, analog signal
N N
Modulation - data onto analog signal Encoding - data onto digital signal
CSE3318
Module 5
slide 2
Encoding vs Modulation
x(t) g(t) digital or analog x(t) Encoder digital Decoder g(t)
S(f) m(t) digital or analog s(t) Modulator analog fc (a) Modulation onto an analog signal fc Demodulator m(t)
CSE3318
Module 5
slide 3
Unipolar - one voltage level used. Polar - two voltage levels are use. Examples NRZ, NRZ-L, NRZ-I, RZ and Manchester encoding Bipolar - ones are represented by alternating positive and negative voltages: examples include AMI, B8ZS, HDB3.
CSE3318
Module 5
slide 4
Baud rate
N
Signal elements per second (baud). The rate at which signal elements are transmitted. bit rate = baud rate x M where M is the number of bits per signal element for two-level signalling (binary), bit rate is equal to the baud rate.
CSE3318
Module 5
slide 5
Reduced bandwidth. Ease of synchronization. No zero frequency component (DC). Possible error detection. Reduced cost and complexity. Immunity to noise and interference.
CSE3318
Module 5
slide 6
Unipolar
N N N
Binary 1 is encoded as a positive value; Binary 0 as zero voltage, or an idle line. Unipolar encoding is simple and primitive. The average amplitude of a unipolar signal is nonzero. This creates a DC component. Some transmission media cannot handle that. When a signal is not varying (e.g. long runs of 1s or 0s), the receiver cannot determine the beginning and ending of each bit.
Module 5 slide 7
CSE3318
In NRZ-L, the level of signal depends on the type of bit it represents. A positive voltage represents binary 1, and a negative voltage represent binary 0. In NRZ-I, the transition between a positive and a negative voltage represents a 1 bit. A 0 bit is represented by no change. An advantage of NRZ-I over NRZ-L is that signal changes every time a 1 bit is transmitted, it enables synchronization.
Module 5 slide 8
CSE3318
Manchester encoding
N
In Manchester encoding, the transition at the middle of the bit is used for both synchronization and bit representation.
N N
In Differential Manchester encoding, the transition at the middle of the bit is used only for synchronization.
N N N
CSE3318
Always a transition in middle of interval. Binary 0 = transition at beginning of interval. Binary 1 = no transition at beginning of interval. Module 5
slide 9
Bipolar encoding
N
Bipolar encoding uses three voltage levels: positive, negative and zero.
N
Bipolar-AMI
N N N
0 bit = no line signal 1bit = positive or negative level, alternating for successive ones. This encoding achieves two things: first, the DC component is zero, and second, a long run of 1s stays synchronized. 0 bit = positive or negative level, alternating for successive zeros 1 bit = no line signal
Module 5 slide 10
Pseudoternary
N N
CSE3318
Modem - to produce signals in the voice frequency range (300-3400Hz). Carrier signal is a sine wave. Modulation - to superimpose digital data on a carrier signal. One or more characteristics of carrier is changed
N
CSE3318
Module 5
slide 11
In ASK, the amplitude of the carrier signal is varied to represent binary 1 or 0. Two binary values are represented by two different amplitudes the carrier.
N N N
Binary 1 = Acos(2pi f_c t). Binary 0 = 0. Where f_c is the carrier frequency.
N N
CSE3318
Frequency-shift-keying (FSK)
N N
In FSK, the frequency of the carrier signal is varied to represent binary 1 or 0. The two binary values are represented by two different frequencies.
N N
N N N
CSE3318
Full-duplex operation over voice grade lines. High-frequency operation. Used in some local area networks.
Module 5 slide 13
Phase-shift-keying (PSK)
N N
In ASK, the phase of the signal is varied to represent binary 1 or 0. The phase of the carrier signal is shifted to represent data. In the binary case:
N N
N N N
CSE3318
QPSK
N
Binary 00 = A cos(2 pi f_c t ). Binary 01 = Acos(2 pi f_c t+pi/2) Binary 11 = Acos(2 pi f_c t+pi) Binary 10 = Acos(2 pi f_c t + 3pi/2)
CSE3318
Module 5
slide 15
In QAM, both the phase and amplitude of the carrier signal vary. QAM enables a higher data transmission than other modulation methods.
CSE3318
Module 5
slide 16
Analog-to-digital encoding
N N
This is called pulse code modulation (PCM). PCM involves sampling, quantizing each sample to a set number of bits, and then assigning voltage levels to the bits. The term sampling means measuring the signal at regular intervals.
CSE3318
Module 5
slide 17
The first step of PCM is called PAM. This method takes analog information, samples and generates a series of pulses based on the results of the sampling. According to the Nyquist theorem, the sampling rate must be at least two times the highest frequency.
CSE3318
Module 5
slide 18
Voice Digitization
N N N N
Normal voice signal bandwidth 4kHz. Sampling rate 8000/sec. 8 - bit encoding (256 levels) 64 kbps - PCM signal
CSE3318
Module 5
slide 19
PCM
PAM signal
Sampling
PCM signal
CSE3318
Module 5
slide 20
Quantization
N N N
n-bit encoding, there are only 2^n - levels Signal level x approximated by the nearest quantization level. SNR due to this noise is given by
N
SNR = 6n , approximately
CSE3318
Module 5
slide 21
Companding
N N N N
Lower amplitudes are more affected by the quantization noise. Uniform quantizing is not effective Non uniform quantizing More gain to weak signals
CSE3318
Module 5
slide 22