1 SIGNAL ENCODING TECHNIQUES Networks and Communication Department

  • Slides: 40
Download presentation
1 SIGNAL ENCODING TECHNIQUES Networks and Communication Department Chapter 5

1 SIGNAL ENCODING TECHNIQUES Networks and Communication Department Chapter 5

Various Encoding Techniques 2 Encoding is the conversion of streams of bits into a

Various Encoding Techniques 2 Encoding is the conversion of streams of bits into a signal (digital or analog). Categories of Encoding techniques: � Digital data, digital signal � Analogue data, digital signal � Digital data, analog signal � Analogue data, analog signal Digital transmission Analog transmissio

Lecture Contents 3 Analog Data , Analog Signals Digital Data , Analog Signals Analog

Lecture Contents 3 Analog Data , Analog Signals Digital Data , Analog Signals Analog Data , Digital Signals 25 -Sep-20 Networks and Communication Department

4 Analog Data, Analog Signals 25 -Sep-20 Networks and Communication Department

4 Analog Data, Analog Signals 25 -Sep-20 Networks and Communication Department

Modulation 5 Modulation is the process of encoding source data onto a carrier signal

Modulation 5 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).

Types of modulation 5. 6

Types of modulation 5. 6

Amplitude Modulation 5. 7 A carrier signal is modulated only in amplitude value The

Amplitude Modulation 5. 7 A carrier signal is modulated only in amplitude value The modulating signal is the envelope of the carrier The required bandwidth is 2 B, where B is the bandwidth of the modulating signal.

Amplitude modulation 5. 8

Amplitude modulation 5. 8

Frequency Modulation 5. 9 The modulating signal changes the freq. fc of the carrier

Frequency Modulation 5. 9 The modulating signal changes the freq. fc of the carrier signal The bandwidth for FM is high It is approx. 10 x the signal frequency

Frequency modulation 5. 10

Frequency modulation 5. 10

Analog Modulation Techniques 1. 2. 3. Ø Ø Amplitude Modulation (AM) Frequency Modulation (FM)

Analog Modulation Techniques 1. 2. 3. Ø Ø Amplitude Modulation (AM) Frequency Modulation (FM) Phase Modulation (PM). AM is the simplest form of modulation both FM and PM require greater bandwidth than

12 Digital Data, Analog Signals 25 -Sep-20 Networks and Communication Department

12 Digital Data, Analog Signals 25 -Sep-20 Networks and Communication Department

Digital Data, Analog Signal 13 Some transmission media only transmit analog signals. Public telephone

Digital Data, Analog Signal 13 Some transmission media only transmit analog signals. Public telephone system � 300 Hz to 3400 Hz (voice frequency range) � Use modem (modulator-demodulator)

Digital to Analog modulation techniques: 14 Modulation involves operation on signal characteristics: frequency, phase,

Digital to Analog modulation techniques: 14 Modulation involves operation on signal characteristics: frequency, phase, amplitude. Amplitude shift keying (ASK) Frequency shift keying (FSK) Phase shift keying (PSK)

Modulation Techniques (digital data, analog signal) 15

Modulation Techniques (digital data, analog signal) 15

Amplitude Shift Keying Ø encode 0/1 by different carrier amplitudes l Ø Ø Ø

Amplitude Shift Keying Ø encode 0/1 by different carrier amplitudes l Ø Ø Ø usually have one amplitude zero susceptible to sudden gain changes inefficient used for up to 1200 bps on voice grade lines l very high speeds over optical fiber l

Binary Frequency Shift Keying Ø Ø most common is binary FSK (BFSK) two binary

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 l up to 1200 bps on voice grade lines l high frequency radio l higher frequency on LANs that use coaxial cable.

Multiple FSK 18 More than two frequencies used More bandwidth efficient More prone to

Multiple FSK 18 More than two frequencies used More bandwidth efficient More prone to error Each signalling element represents more than one bit

MFSK

MFSK

Phase Shift Keying Ø Ø Ø In PSK, the phase of carrier signal is

Phase Shift Keying Ø Ø Ø In PSK, the phase of carrier signal is shifted to represent data 1 - Binary phase shift keying: The simplest scheme uses two phases to represent the two binary digits. 2 - Differential PSK(DPSK). phase shifted relative to previous transmission rather than some constant reference signal l A binary 0 is represented by sending a signal burst of the same phase as the previous signal burst sent. l A binary 1 is represented by sending a signal burst l

BPSK and DPSK

BPSK and DPSK

Multilevel PSK 22 More efficient use of bandwidth Each signal element represents more than

Multilevel PSK 22 More efficient use of bandwidth Each signal element represents more than one bit QPSK: quadrature PSK of /2 (90 o), i. e. 4 different phases � Each signal element represents 2 bits � shifts Multilevel PSK � Can use 8 or more phase angles, and each phase can have more than one amplitude. Ø The use of multiple levels can be extended to use more phase angles & more than one amplitude

QPSK 23 (+1, +1) 11 (-1, +1) 01 135 45 -135 (-1, -1) 00

QPSK 23 (+1, +1) 11 (-1, +1) 01 135 45 -135 (-1, -1) 00 25 -Sep-20 -45 (+1, -1) 10 Networks and Communication Department

Performance of Digital to Analog Modulation Schemes Ø bandwidth ASK/PSK bandwidth directly relates to

Performance of Digital to Analog Modulation Schemes Ø bandwidth ASK/PSK bandwidth directly relates to bit rate l multilevel PSK gives significant improvements l Ø in presence of noise: l bit error rate of PSK and QPSK are about 3 d. B superior to ASK and FSK

25 Analog Data, Digital Signals 25 -Sep-20 Networks and Communication Department

25 Analog Data, Digital Signals 25 -Sep-20 Networks and Communication Department

(III) Analog Data, Digital Signal 26 Digitization � Conversion of analog data into digital

(III) Analog Data, Digital Signal 26 Digitization � Conversion of analog data into digital data Digital data can then be transmitted using NRZ-L Digital data can then be transmitted using code other than NRZ-L Digital data can then be converted to analog signal � Analog to digital conversion done using a codec (coder-decoder) � Two principle codec techniques Pulse Code Modulation Delta modulation

Digitizing Analog Data 27

Digitizing Analog Data 27

Pulse Code Modulation 28 Sampling Theorem: If a signal is sampled at regular intervals

Pulse Code Modulation 28 Sampling Theorem: If a signal is sampled at regular intervals of time and at a rate higher than twice the highest signal frequency, then the samples contain all the information of the original signal. For example, voice data are limited to below 4000 Hz � 8000 samples per second is sufficient to characterize the voice signal. Samples are analog samples, called Pulse Amplitude Modulation (PAM) samples. To convert to digital, each analog sample must be assigned a binary code.

Pulse Code Modulation 29 Each sample is quantized into some level � The original

Pulse Code Modulation 29 Each sample is quantized into some level � The original signal is now only approximated and cannot be recovered exactly � This effect is called quantizing error or quantizing noise For example, 8 bit sample gives 256 levels 8000 samples per second and 8 bits per sample gives 64 kbps, for a single voice signal.

PCM Example

PCM Example

PCM Block Diagram

PCM Block Diagram

Non-Linear Coding The PCM scheme is refined using a technique known as nonlinear encoding,

Non-Linear Coding The PCM scheme is refined using a technique known as nonlinear encoding, � nonlinear encoding means that the quantization levels are not equally spaced. Using a greater number of quantizing steps for signals of low amplitude, and a smaller number of quantizing steps for signals of large amplitude. Reduces overall signal distortion Nonlinear encoding can significantly improve the PCM SNR ratio. � For voice signals, improvements of 24 to 30 d. B have been achieved

Non-Linear Coding

Non-Linear Coding

Companding The same effect can be achieved by using uniform quantizing but companding (compressing-expanding)

Companding The same effect can be achieved by using uniform quantizing but companding (compressing-expanding) the input analog signal. Companding is a process that compresses the intensity range of a signal by set more gain to weak signals than to strong signals on input. At output, the reverse operation is performed.

Companding

Companding

Delta Modulation Ø Analog input is approximated by a staircase function l Ø can

Delta Modulation Ø Analog input is approximated by a staircase function l Ø 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. l hence can encode each sample as single bit. l 1 for up or 0 for down l

Delta Modulation Example

Delta Modulation Example

PCM verses Delta Modulation Ø Ø Ø DM has simplicity compared to PCM but

PCM verses Delta Modulation Ø Ø Ø DM has simplicity compared to PCM but has worse SNR issue of bandwidth used l e. g. for good voice reproduction with PCM want 128 levels (7 bit) & voice bandwidth 4 khz need 8000 x 7 = 56 kbps Ø Ø data compression can improve on this still growing demand for digital signals l Ø use of repeaters, TDM, efficient switching PCM preferred to DM for analog signals

Problem Ø Q 5. The analog waveform shown in the following figure is to

Problem Ø Q 5. The analog waveform shown in the following figure is to be delta modulated. The sampling period and the step size are indicated by the grid. The first DM output is also shown. Give the DM output for the complete signal.

40 Reference 25 -Sep-20 Data and Computer Communications, Ninth Edition by William Stallings, �

40 Reference 25 -Sep-20 Data and Computer Communications, Ninth Edition by William Stallings, � Chapter 5 (5. 2 , 5. 3, 5. 4) Networks and Communication Department