810 likes | 994 Views
Dr. Paramjeet Singh HoD, Dept . of CSE PTU GZS Campus Bathinda Subject: Computer Networks Topic: Encoding and modulating. Encoding. Encoding is the process of converting data from one form to another. Types of encoding Analog to analog encoding Analog to digital encoding
E N D
Dr. Paramjeet Singh HoD,Dept. of CSE PTU GZS Campus Bathinda Subject: Computer Networks Topic: Encoding and modulating Punjab EDUSAT Society
Encoding • Encoding is the process of converting data from one form to another. • Types of encoding • Analog to analog encoding • Analog to digital encoding • Digital to analog encoding • Digital to digital encoding Punjab EDUSAT Society
Analog Signals Analog signal is a continuous waveform that changes smoothly over time. It has three characteristics Amplitude - Height of the signal Frequency – Rate of change w.r.t. time Phase – Position of waveform relative to time zero. Punjab EDUSAT Society
Digital Signal refers to something that is discrete. Bit interval (instead of period) and Bit rate (instead of frequency) The bit interval is the time required to send one single bit. The bit rate is the number of bit intervals in one second, usually expressed in bits per second (bps). Punjab EDUSAT Society
Data rate and Baud rate The baud or signal rate can be expressed as: S = c x N x 1/r bauds where N is data rate c is the case factor (worst, best & avg.) r is the ratio between data element & signal element Punjab EDUSAT Society
Analog to analog encoding Analog modulation: Modulation is the process by Which some characteristics of the carrier signal is varied in accordance with the modulating signal. These characteristics may be Amplitude Frequency Phase Punjab EDUSAT Society
Need of modulation To reduce the height of antena, h=wavelength/4 Where wavelength = C/ F, C = Speed of light and F=Frequency 2. To avoid the intermixing of signals of different stations. 3. It increases the radiation power. Punjab EDUSAT Society
Amplitude modulation It is the process by which the amplitude of the carrier signal is varied in accordance with the amplitude of the modulating signal. The frequency and phase of the carrier remain the same Punjab EDUSAT Society
Amplitude Modulation Punjab EDUSAT Society
Amplitude modulation Bandwidth Punjab EDUSAT Society
Amplitude modulation Band Allocation Punjab EDUSAT Society
Frequency modulation It is the process by which the frequency of the carrier signal is varied in accordance with the amplitude of the modulating signal. The amplitude and phase of the carrier remain the same. Punjab EDUSAT Society
Frequency Modulation Punjab EDUSAT Society
FM Bandwidth Punjab EDUSAT Society
FM Band Allocation Punjab EDUSAT Society
Phase modulation It is the process by which the phase of the carrier signal is varied in accordance with the amplitude of the modulating signal. The amplitude and frequency of the carrier remain the same. Punjab EDUSAT Society
Analog to Digital Encoding Punjab EDUSAT Society
Pulse amplitude modulation (PAM) This technique takes analog signal, sample it and generate a series of pulses based on the sampling. The term sampling means measuring the amplitude of the signal at equal interval. Punjab EDUSAT Society
Pulse amplitude modulation (PAM) Punjab EDUSAT Society
Quantized PAM Signal Punjab EDUSAT Society
Quantizing Using Sign and Magnitude Punjab EDUSAT Society
Pulse amplitude modulation (PAM) PAM is not much useful in data communications. The reason behind this that, although it translates the original wave form to a series of pulses but these pluses are still of any amplitude (still an analog signal, not digital). To make them digital,we must modify them by using pulse code modification(PCM). PAM is the foundation of PCM technique. Punjab EDUSAT Society
Pulse code modulation (PCM) It modify the pulses created by PAM to create a completely digital signals. To do so , the PCM first quantities the PAM pulses. Then each value is translated into its seven –bits binary equivalent. The eighth bit indicates the sign. It uses digital to digital encoding techniques. Punjab EDUSAT Society
Pulse code modulation (PCM) • Phases of PCM • PAM • Quantization • Binary encoding • Digital to digital encoding Punjab EDUSAT Society
From Analog to PCM Punjab EDUSAT Society
Quantization Quantization is the method of assigning internal values in a specific range to sampled instances. Binary Encoding Binary encoding calculate 7 bit binary equivalent of each quantized value. The eighth bit indicate the sign. Punjab EDUSAT Society
Nyquist Theorem PCM is based on the sampling theorem, which states that if a signal f(t) is sampled at regular intervals of time and at a rate higher then twice the highest signal frequency, then the samples contains all the information of the original signal and the function f(t) may be reconstructed from these samples . Sampling (fs)>=2*f(highest signal frequency ) samples/seconds Punjab EDUSAT Society
Nyquist Theorem Punjab EDUSAT Society
Delta Modulation (DM) • The basic idea in delta modulation is to approximate the derivative of analog signal rather than its amplitude. • The analog data is approximated by a staircase function that moves up or down by one quantization level at each sampling time. • Output of DM is a single bit. • PCM preferred because of better SNR characteristics. Punjab EDUSAT Society
Delta Modulation Punjab EDUSAT Society
DM is the simplest form of differential pulse-code modulation (DPCM) where the difference between successive samples are encoded into n-bit data streams. In this, the transmitted data is reduced to a 1-bit data stream. Its main features are: 1. The analog signal is approximated with a series of segments. 2. Each segment of the approximated signal is compared to the original analog wave to determine the increase or decrease in relative amplitude. Punjab EDUSAT Society
3. The decision process for establishing the state of successive bits is determined by this comparison 4. Only the change of information is sent, that is, only an increase or decrease of the signal amplitude from the previous sample is sent whereas a no-change condition causes the modulated signal to remain at the same 0 or 1 state of the previous sample. Punjab EDUSAT Society
Digital to Analog Encoding: • Process of changing one of the characteristics of an analog signal based on the digital signal (1 or 0). • It has following types: • Amplitude Shift Keying (ASK) • Frequency Shift Keying (FSK) • Phase Shift Keying (PSK) • Quadrature Amplitude Modulation (QAM) Punjab EDUSAT Society
ASK: Strength of the carrier signal is varied to represent binary 1 or 0. Punjab EDUSAT Society
Bandwidth for ASK Punjab EDUSAT Society
FSK: Frequency of the carrier signal is varied to represent binary 1 or 0. Punjab EDUSAT Society
Bandwidth for FSK Punjab EDUSAT Society
PSK: Phase of the carrier signal is varied to represent binary 1 or 0. Punjab EDUSAT Society
PSK Constellation Punjab EDUSAT Society
4-PSK Punjab EDUSAT Society
4-PSK Characteristics Punjab EDUSAT Society
8-PSK Characteristics Punjab EDUSAT Society
PSK Bandwidth Punjab EDUSAT Society
QAM: Combining ASK and PSK in such a way that we have maximum contrast between each bit, dibit, tribit, quadbit, and so on. Punjab EDUSAT Society
8-QAM Signal Punjab EDUSAT Society
16-QAM Constellation Punjab EDUSAT Society
Digital to digital encoding It is the representation of digital information to digital signal. Punjab EDUSAT Society
Types of Digital to Digital Encoding Punjab EDUSAT Society
Unipolar:- It uses only one level of value and polarity (all signal elements have the same algebraic sign i.e. all positive or negative). Advantages :- • Very simple. Disadvantages :- • DC component. • Synchronization. Punjab EDUSAT Society
DC component :- The average amplitude of a unipolar encoded signal is non zero. • This creates direct current (DC) component(with zero frequency). • Synchronization :- when a signal is unvarying, the receiver can not determine the beginning and ending of each bit. Therefore, A synchronization problem in unipolar can occur when ever the data stream includes a long uninterrupted series of 1’s or 0’s. Punjab EDUSAT Society