Swedish College of Engineering and Technology Rahim Yar Khan

Similar documents
AMPLITUDE SHIFT KEYING

Thus there are three basic modulation techniques: 1) AMPLITUDE SHIFT KEYING 2) FREQUENCY SHIFT KEYING 3) PHASE SHIFT KEYING

Digital Modulation Schemes

Jawaharlal Nehru Engineering College

Wireless Communication Systems Laboratory Lab#1: An introduction to basic digital baseband communication through MATLAB simulation Objective

Digital Communication

FACULTY OF ENGINEERING LAB SHEET ETN3046 ANALOG AND DIGITAL COMMUNICATIONS TRIMESTER 1 (2018/2019) ADC2 Digital Carrier Modulation

EC 6501 DIGITAL COMMUNICATION UNIT - IV PART A

DIGITAL COMMUNICATIONS SYSTEMS. MSc in Electronic Technologies and Communications

Digital modulation techniques

EE 460L University of Nevada, Las Vegas ECE Department

Digital Communication

ENSC327 Communication Systems 27: Digital Bandpass Modulation. (Ch. 7) Jie Liang School of Engineering Science Simon Fraser University

Laboratory 5: Spread Spectrum Communications

QUESTION BANK SUBJECT: DIGITAL COMMUNICATION (15EC61)

Assignment 6: Solution to MATLAB code for BER generation of QPSK system over AWGN channel.

Amplitude Frequency Phase

The figures and the logic used for the MATLAB are given below.

Universitas Sumatera Utara

Digital Modulators & Line Codes

Physical Layer: Modulation, FEC. Wireless Networks: Guevara Noubir. S2001, COM3525 Wireless Networks Lecture 3, 1

Chapter 4. Part 2(a) Digital Modulation Techniques

Chapter 2 Channel Equalization

Chapter 14 MODULATION INTRODUCTION

Problem Sheet 1 Probability, random processes, and noise

Department of Electronics & Communication Engineering LAB MANUAL SUBJECT: DIGITAL COMMUNICATION LABORATORY [ECE324] (Branch: ECE)

Wireless Communication

Lecture 3: Wireless Physical Layer: Modulation Techniques. Mythili Vutukuru CS 653 Spring 2014 Jan 13, Monday

Mobile Communication An overview Lesson 03 Introduction to Modulation Methods

ECE 3500: Fundamentals of Signals and Systems (Fall 2014) Lab 4: Binary Phase-Shift Keying Modulation and Demodulation

CSE4214 Digital Communications. Bandpass Modulation and Demodulation/Detection. Bandpass Modulation. Page 1

Chapter 6 Passband Data Transmission

Orthogonal Frequency Division Multiplexing (OFDM) based Uplink Multiple Access Method over AWGN and Fading Channels

TSTE17 System Design, CDIO. General project hints. Behavioral Model. General project hints, cont. Lecture 5. Required documents Modulation, cont.

EE 400L Communications. Laboratory Exercise #7 Digital Modulation

Principles of Communications

EXPERIMENT WISE VIVA QUESTIONS

Communication Systems Lab

Performance Evaluation of ½ Rate Convolution Coding with Different Modulation Techniques for DS-CDMA System over Rician Channel

Mobile & Wireless Networking. Lecture 2: Wireless Transmission (2/2)

About Homework. The rest parts of the course: focus on popular standards like GSM, WCDMA, etc.

Objectives. Presentation Outline. Digital Modulation Revision

Outline. EECS 3213 Fall Sebastian Magierowski York University. Review Passband Modulation. Constellations ASK, FSK, PSK.

CALIFORNIA STATE UNIVERSITY, NORTHRIDGE FADING CHANNEL CHARACTERIZATION AND MODELING

comparasion to BPSK, to distinguish those symbols, therefore, the error performance is degraded. Fig 2 QPSK signal constellation


Lab 3.0. Pulse Shaping and Rayleigh Channel. Faculty of Information Engineering & Technology. The Communications Department

Experiment 4 Detection of Antipodal Baseband Signals

Performance Evaluation of different α value for OFDM System

PROJECT 5: DESIGNING A VOICE MODEM. Instructor: Amir Asif

BER ANALYSIS OF WiMAX IN MULTIPATH FADING CHANNELS

Communication Theory

Lecture 9: Spread Spectrum Modulation Techniques

Performance Analysis Of OFDM Using QPSK And 16 QAM

Modulation and Coding Tradeoffs

ECE5713 : Advanced Digital Communications

Exam in 1TT850, 1E275. Modulation, Demodulation and Coding course

Revision of Previous Six Lectures

Implementation of Blind Modulation Detection for Software defined Radio

BER Performance with GNU Radio


Principles of Communications

Department of Electronic and Information Engineering. Communication Laboratory

Performance measurement of different M-Ary phase signalling schemes in AWGN channel

Performance Evaluation of OFDM System with Rayleigh, Rician and AWGN Channels

Communication Systems

COSC 3213: Computer Networks I: Chapter 3 Handout #4. Instructor: Dr. Marvin Mandelbaum Department of Computer Science York University Section A

ECEn 665: Antennas and Propagation for Wireless Communications 131. s(t) = A c [1 + αm(t)] cos (ω c t) (9.27)

Digital Communication System


EE3723 : Digital Communications

Chapter 7. Multiple Division Techniques

BER Calculation of DS-CDMA over Communication Channels

OFDM Systems For Different Modulation Technique

Performance analysis of OFDM with QPSK using AWGN and Rayleigh Fading Channel

UNIVERSITY OF SOUTHAMPTON

UNIT I Source Coding Systems

Communication Systems

Analyze BER Performance of Wireless FSK System

QUESTION BANK EC 1351 DIGITAL COMMUNICATION YEAR / SEM : III / VI UNIT I- PULSE MODULATION PART-A (2 Marks) 1. What is the purpose of sample and hold

Comparison of BER for Various Digital Modulation Schemes in OFDM System

Revision of Previous Six Lectures

Downloaded from 1

DATE: June 14, 2007 TO: FROM: SUBJECT:

C06a: Digital Modulation

Wireless Communication Fading Modulation

DIGITAL COMMINICATIONS

UNIVERSITY OF BAHRAIN COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING

ECE 3500: Fundamentals of Signals and Systems (Fall 2015) Lab 4: Binary Phase-Shift Keying Modulation and Demodulation

BER Performance Comparison between QPSK and 4-QA Modulation Schemes

Spread Spectrum (SS) is a means of transmission in which the signal occupies a

Digital Communication System

MODULATION METHODS EMPLOYED IN DIGITAL COMMUNICATION: An Analysis

Digital Modulation Lecture 01. Review of Analogue Modulation Introduction to Digital Modulation Techniques Richard Harris

Objectives. Presentation Outline. Digital Modulation Lecture 01

Department of Electronics and Communication Engineering 1

Exercise 3-2. Digital Modulation EXERCISE OBJECTIVE DISCUSSION OUTLINE DISCUSSION. PSK digital modulation

SETTING UP A WIRELESS LINK USING ME1000 RF TRAINER KIT

DIGITAL COMMUNICATION. In this experiment you will integrate blocks representing communication system

Multirate schemes for multimedia applications in DS/CDMA Systems

Transcription:

PRACTICAL WORK BOOK Telecommunication Systems and Applications (TL-424) Name: Roll No.: Batch: Semester: Department: Swedish College of Engineering and Technology Rahim Yar Khan

Introduction Telecommunication Systems and Applications Laboratory manual covers those practical that are very knowledgeable and beneficial in grasping the core objective of the subject. These laboratory experiments solidify the theoretical and practical concepts that are very essential for the engineering students. This workbook comprise of practical covering the topics of Telecommunication systems and applications that are arranged on modern technical software and trainer boards. Above all this workbook contains a relevant theory about the Lab session.

CONTENTS S.No Experiments Remarks 1 Make a MATLAB function with input and output parameters. Give input of different lengths and get the output of random binary sequence. Study the characteristics of data by different plotting options. Study the distribution of the data. Study the histogram of the data with varying inputs. 2 Write a function for the Gaussian noise, which takes input (i.e, mean and variance) and output the normal pdf plot. Verify and compare your function with the pdf of the theoretical white Gaussian noise function. Calculate the average symbol power of the sequence and plot your function with varying mean and variance. 3 Study modulation and write a function, which perform the amplitude shift keying modulation and demodulation. Varying different parameters of your function and compare the results. 4 Write a function for the phase shift keying modulation and demodulation. Varying different parameters of your function and compare the results. Provide the analysis at the end of your experiment. 5 Write a function for the frequency shift keying modulation and demodulation. Varying different parameters of your function and compare the results. Provide the analysis at the end of your experiment. 6 Write a function for the quadrature phase shift keying modulation and demodulation. Varying different parameters of your function and compare the results. Provide the analysis at the end of your experiment. 7 Process a binary data stream using a communication system that consists of a modulator, channel and demodulator. Compute the BER of your system assuming different mapping schemes. 8 Write a code for a communication system assuming a BPSK modulation scheme and a range of SNR from 0 to 20dB. i) Calculate BER of the system assuming a length sequence of 100000 (consider AWGN). ii) Plot BER vs SNR iii) Plot the Power Spectral Density of the transmit sequence. 9 Write a code for a communication system assuming a BPSK modulation scheme and a range of SNR from 0 to 20dB. i) Calculate BER of the system assuming a length sequence of 100000 (Consider Rayleigh fading channel). ii) Plot BER vs SNR iii) Compare the results with AWGN channel. 10 Make a DS-SS system and analyse the system parameters. 11 Make a FH-SS system and analyse the system parameters. 12 13 14

15 16

EXPERIMENT # 1 OBJECT Generate binary random sequence with length 10000. What is the distribution? Plot the histogram. Write a well-defined function with input and output parameters. THEORY Every communication system has one or more signal sources. This Lab describes how to use the Communications Toolbox to generate random signals, which are useful for simulating signal sources. FUNCTIONS randint(); hist(); plot(); hold on; CODE Write a complete code with comments

RESULTS Insert MATLAB figures

EXPERIMENT # 2 OBJECT Generate a real Gaussian noise sequence with zero mean and variance 1. Verify the sequence has a Gaussian distribution. Plot and compare it with the theoretical Gaussian function. What is the average symbol power of the sequence? THEORY The wgn function generates random matrices using a white Gaussian noise distribution. You specify the power of the noise in dbw (decibels relative to a watt), dbm, or linear units. You can generate either real or complex noise. For example, the command below generates a column vector of length 50 containing real white Gaussian noise whose power is 2 dbw. The function assumes that the load impedance is 1 ohm. y1 = wgn(50,1,2); FUNCTION USED _randn(); _wgn(); _hist(); CODE Write a complete code with comments

RESULTS Insert MATLAB figures

EXPERIMENT # 3 OBJECT To generate and demodulate amplitude shift keyed (ASK) signal using MATLAB THEORY Generation of ASK Amplitude shift keying - ASK - is a modulation process, which imparts to a sinusoid two or more discrete amplitude levels. These are related to the number of levels adopted by the digital message. For a binary message sequence there are two levels, one of which is typically zero. The data rate is a sub-multiple of the carrier frequency. Thus the modulated waveform consists of bursts of a sinusoid. One of the disadvantages of ASK, compared with FSK and PSK, for example, is that it has not got a constant envelope. This makes its processing (eg, power amplification) more difficult, since linearity becomes an important factor. However, it does make for ease of demodulation with an envelope detector. Demodulation ASK signal has a well-defined envelope. Thus it is amenable to demodulation by an envelope detector. Some sort of decision-making circuitry is necessary for detecting the message. The signal is recovered by using a correlator and decision making circuitry is used to recover the binary sequence. Algorithm Initialization commands ASK modulation 1. Generate carrier signal. 2. Start FOR loop 3. Generate binary data, message signal(on-off form) 4. Generate ASK modulated signal. 5. Plot message signal and ASK modulated signal. 6. End FOR loop. 7. Plot the binary data and carrier. ASK demodulation 1. Start FOR loop 2. Perform correlation of ASK signal with carrier to get decision variable 3. Make decision to get demodulated binary data. If x>0, choose 1 else choose 0 4. Plot the demodulated binary data. CODE Write a complete code with comments

RESULTS Insert MATLAB figures

EXPERIMENT # 4 OBJECT To generate and demodulate phase shift keyed (PSK) signal using MATLAB THEORY Generation of PSK signal PSK is a digital modulation scheme that conveys data by changing, or modulating, the phase of a reference signal (the carrier wave). PSK uses a finite number of phases, each assigned a unique pattern of binary digits. Usually, each phase encodes an equal number of bits. Each pattern of bits forms the symbol that is represented by the particular phase. The demodulator, which is designed specifically for the symbol-set used by the modulator, determines the phase of the received signal and maps it back to the symbol it represents, thus recovering the original data. In a coherent binary PSK system, the pair of signal S1(t) and S2 (t) used to represent binary symbols 1 & 0 are defined by S1 (t) = 2Eb/ Tb Cos 2πfct S2 (t) = 2Eb/Tb (2πfct+π) = - _2Eb/Tb Cos 2πfct where 0 _t< Tb and Eb = Transmitted signed energy for bit The carrier frequency fc =n/tb for some fixed integer n. Antipodal Signal: The pair of sinusoidal waves that differ only in a relative phase shift of 180 are called antipodal signals. BPSK Transmitter The input binary symbols are represented in polar form with symbols 1 & 0 represented by constant amplitude levels Eb & - Eb. A sinusoidal carrier in a product modulator multiplies this binary wave. The result in a BSPK signal.

The received BPSK signal is applied to a correlator which is also supplied with a locally generated reference signal c1 (t). The correlated o/p is compared with a threshold of zero volts. If x> 0, the receiver decides in favour of symbol 1. If x< 0, it decides in favour of symbol 0. Algorithm Initialization commands PSK modulation 1. Generate carrier signal. 2. Start FOR loop 3. Generate binary data, message signal in polar form 4. Generate PSK modulated signal. 5. Plot message signal and PSK modulated signal. 6. End FOR loop. 7. Plot the binary data and carrier. PSK demodulation 1. Start FOR loop. 2.Perform correlation of PSK signal with carrier to get decision variable. 3. Make decision to get demodulated binary data. If x>0, choose 1 else choose 0 4. Plot the demodulated binary data. CODE Write a complete code with comments

RESULTS Insert MATLAB figures

EXPERIMENT # 5 OBJECT To generate and demodulate frequency shift keyed (FSK) signal using MATLAB THEORY Generation of FSK Frequency-shift keying (FSK) is a frequency modulation scheme in which digital information is transmitted through discrete frequency changes of a carrier wave. The simplest FSK is binary FSK (BFSK). BFSK uses a pair of discrete frequencies to transmit binary (0s and 1s) information. With this scheme, the "1" is called the mark frequency and the "0" is called the space frequency. In binary FSK system, symbol 1 & 0 are distinguished from each other by transmitting one of the two sinusoidal waves that differ in frequency by a fixed amount. Si (t) = 2E/Tb cos 2πf1t 0 _t Tb 0 elsewhere Where i=1, 2 & Eb=Transmitted energy/bit Transmitted freq= ƒi = (nc+i)/tb, and n = constant (integer), Tb = bit interval Symbol 1 is represented by S1 (t) Symbol 0 is represented by S0 (t) The input binary sequence is represented in its ON-OFF form, with symbol 1 represented by constant amplitude of Eb with & symbol 0 represented by zero volts. By using inverter in the lower channel, we in effect make sure that when symbol 1is at the input, The two frequency f1& f2 are chosen to be equal integer multiples of the bit rate 1/Tb.By summing the upper & lower channel outputs, we get BFSK signal. The receiver consists of two correlators with common inputs which are supplied with locally generated coherent reference signals c1(t) and c2 (t). The correlator outputs are then subtracted one from the other, and the resulting difference x is compared with a threshold of zero volts. If x >0, the receiver decides in favour of symbol 1 and if x <0, the receiver decides in favour of symbol 0. Algorithm Initialization commands FSK modulation 1. Generate two carriers signal. 2. Start FOR loop 3. Generate binary data, message signal and inverted message signal 4. Multiply carrier 1 with message signal and carrier 2 with inverted message signal 5. Perform addition to get the FSK modulated signal 6. Plot message signal and FSK modulated signal. 7. End FOR loop. 8. Plot the binary data and carriers.

FSK demodulation 1. Start FOR loop 2. Perform correlation of FSK modulated signal with carrier 1 and carrier 2 to get two decision variables x1 and x2. 3. Make decisionon x = x1-x2 to get demodulated binary data. If x>0, choose 1 else choose 0. 4. Plot the demodulated binary data. CODE Write a complete code with comments

RESULTS Insert MATLAB figures

EXPERIMENT # 6 OBJECT To generate and demodulate quadrature phase shifted (QPSK) signal using MATLAB THEORY Generation of Quadrature phase shift keyed (QPSK) signal QPSK is also known as quaternary PSK, quadriphase PSK, 4-PSK, or 4-QAM. It is a phase modulation technique that transmits two bits in four modulation states. Phase of the carrier takes on one of four equally spaced values such as π/4, 3π/4, 5π/4 and7π/4. Si(t) = 2E/T cos {2 πƒct + (2i 1) π/4}, 0 _t T 0, elsewhere Where i = 1,2,3,4, & E= Tx signal energy per symbol T= symbol duration Each of the possible value of phase corresponds to a pair of bits called dibits. Thus the gray encoded set of dibits: 10,00,01,11 Si (t) = 2E/Tcos [(2i 1)π/4] cos (2πfct) - 2E/Tsin [(2i 1) π/4)] sin (2πfct),0 _t Tb 0, else where There are two orthononormal basis functions c1 (t) = 2/T cos 2πƒct, 0 _t Tb c2 (t) = 2/T sin 2πƒct, 0 _t Tb There are four message points The I/p binary sequence b(t) is represented in polar from with symbols 1 & 0 represented as + E/2 and - E/2. This binary wave is demutiplexed into two separate binary waves consisting of odd & even numbered I/P bits denoted by b1 (t) & b2 (t). b1 (t) & b2(t) are used to modulate a pair of quadrature carrier. The result is two PSK waves.these two binary PSK waves are added to produce the desired QPSK signal. QPSK receiver consists of a pair of correlators with common I/P & supplied with locally generated signal c1 (t) & c2 (t). The correlator output, x1, & x2 are each compared with a threshold of zero volts.if x1 > 0, decision is made in favour of symbol 1 for upper channel and if x1 > 0, decision is made in favour of symbol 0. Parallely if x2 >0, decision is made in favour of symbol 1 for lower channel & if x2

<0, decision is made in favour of symbol 0. These two channels are combined in a multiplexer to get the original binary output. Algorithm Initialization commands QPSK modulation 1. Generate quadrature carriers. 2. Start FOR loop 3. Generate binary data, message signal(bipolar form) 4. Multiply carrier 1 with odd bits of message signal and carrier 2 with even bits of message signal 5. Perform addition of odd and even modulated signals to get the QPSK modulated signal 6. Plot QPSK modulated signal. 7. End FOR loop. 8. Plot the binary data and carriers. QPSK demodulation 1. Start FOR loop 2. Perform correlation of QPSK modulated signal with quadrature carriers to get two decision variables x1 and x2. 3. Make decision on x1 and x2 and multiplex to get demodulated binary data. If x1>0and x2>0, choose 11. If x1>0and x2<0, choose 10. If x1<0and x2>0, choose 01. If x1<0and x2<0, choose 00. 4. End FOR loop 5. Plot demodulated data CODE Write a complete code with comments

RESULTS Insert MATLAB figures

EXPERIMENT # 7 OBJECT Process a binary data stream using a Communication System that consists of a baseband modulator, channel and demodulator. Compute the system s BER (Assume 16- QAM) THEORY In most media for communication, only a fixed range of frequencies is available for transmission. One way to communicate a message signal whose frequency spectrum does not fall within that fixed frequency range, or one that is otherwise unsuitable for the channel, is to alter a transmittable signal according to the information in your message signal. This alteration is called modulation, and it is the modulated signal that you transmit. The receiver then recovers the original signal through a process called demodulation. QUADRATURE AMPLITUDE MODULATION Syntax y = qammod(x,m)y = qammod(x,m,ini_phase) DESCRIPTION y = qammod(x,m) outputs the complex envelope y of the modulation of the message signal x using quadrature amplitude modulation. M is the alphabet size and must be an integer power of 2. The message signal must consist of integers between 0 and M- 1. The signal constellation is rectangular or cross-shaped, and the nearest pair of points in the constellation is separated by 2. If x is a matrix with multiple rows, then the function processes the columns independently. y = qammod(x,m,ini_phase) specifies the initial phase of the modulated signal in radians Filter signal with channel object Syntax y = filter(chan,x) Description y = filter(chan,x) processes the baseband signal vector x with the channel object chan. The result is the signal vector y. The final state of the channel is stored in chan. You can construct chan using either rayleighchan or ricianchan. The filter function assumes x is sampled at frequency 1/t s, where t s equal the Input Sample Period property of chan. If chan.resetbeforefiltering is 0, then filter uses the existing state information in chan when starting the filtering operation. As a result, filter(chan,[x1 x2]) is equivalent to [filter(chan,x1) filter(chan,x2)]. To reset chan manually, apply the reset function to chan. If chan.resetbeforefiltering is 1, then filter resets chan before starting the filtering operation, overwriting any previous state information in chan.

Quadrature amplitude demodulation Syntax: z = qamdemod(y,m)z = qamdemod(y,m,ini_phase) Description z = qamdemod(y,m) demodulates the complex envelope y of a quadrature amplitude modulated signal. M is the alphabet size and must be an integer power of 2. The constellation is the same as in qammod. If y is a matrix with multiple rows, then the function processes the columns independently. z = qamdemod(y,m,ini_phase) specifies the initial phase of the modulated signal in radians. Compute number of bit errors and bit error rate Syntax [number,ratio] = biterr(x,y) [number,ratio] = biterr(x,y,k) [number,ratio] = biterr(x,y,k,flg) [number,ratio,individual] = biterr(...) CODE Write a complete code with comments

RESULTS Insert MATLAB figures

EXPERIMENT # 8 OBJECT Assume BPSK modulation is used for SNR range of 0-15 db with a step of 2 db, length=1000 bits. Simulate 1. BER of the system 2. Plot BER vs. SNR performance for simulated results 3. Plot power spectral density of the transmit sequence THEORY Compute number of bit errors and bit error rate Syntax [number,ratio] = biterr(x,y) [number,ratio] = biterr(x,y,k) [number,ratio] = biterr(x,y,k,flg) [number,ratio,individual] = biterr(...) CODE Write a complete code with comments

RESULTS Insert MATLAB figures

EXPERIMENT # 9 OBJECT Assume BPSK modulation is used for SNR range of 0-20 db with a step of 2 db, length=1000 bits. Simulate 1. BER of the system (Considering the Rayleigh Fading channel) 2. Plot BER vs. SNR performance for simulated results 3. Plot power spectral density of the transmit sequence THEORY Compute number of bit errors and bit error rate Syntax [number,ratio] = biterr(x,y) [number,ratio] = biterr(x,y,k) [number,ratio] = biterr(x,y,k,flg) [number,ratio,individual] = biterr(...) CODE Write a complete code with comments

RESULTS Insert MATLAB figures

EXPERIMENT # 10 OBJECT Write a script for the DS-SS system and analyse it different parameters THEORY CODE Write a complete code with comments clc PNbit_stream = round(rand(1,32)); input_signal=[0 1 0 0 1 0 1 1]; PNbit_stream for i=1:1:8 for j=1:4:32 for k=1:1:4 a(j)=xor(pnbit_stream(k+j-1),input_signal(i)); a(j); end end end figure(1) stem(pnbit_stream) title( PNbit_stream ) figure(2) stem(input_signal) title( input_signal ) figure(3) stem(a) title( DSSS ) RESULTS Insert MATLAB figures