Skip to content Skip to navigation

Connexions

You are here: Home » Content » Digital Transmitter: MATLAB Exercise for Quadrature Phase-Shift Keying

Navigation

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • TI DSP display tagshide tags

    This module is included inLens: Texas Instruments DSP Lens
    By: Texas InstrumentsAs a part of collection:"DSP Laboratory with TI TMS320C54x"

    Click the "TI DSP" link to see all content affiliated with them.

    Click the tag icon tag icon to display tags associated with this content.

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.

Digital Transmitter: MATLAB Exercise for Quadrature Phase-Shift Keying

Module by: Douglas L. Jones, Swaroop Appadwedula, Matthew Berry, Mark Haun, Jake Janovetz, Michael Kramer, Dima Moussa, Daniel Sachs, Brian Wade. E-mail the authors

User rating (How does the rating system work?)
Ratings

Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

How to rate a module

Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

:
(0 ratings)

Summary: You will simulate a quadrature phase-shift keying (QPSK) digital transmitter in MATLAB.

Note: Your browser may not currently support MathML. See our browser support page for additional details. You can always view the correct math in the PDF version.

MATLAB Simulation

MATLAB is commonly used to design filters and determine frequency responses of systems, but it is also very useful as a simulation tool.

Use the following MATLAB code skeleton to simulate the QPSK transmitter from Digital Transmitter: Introduction to Quadrature Phase-Shift Keying and fill in the incomplete portions. Note that the code is not complete and will not execute properly as written. How does the spectrum of the transmitted signal change with T symb T symb ? How do you interpret the figure created by plot(rI,rQ)?


	
	1  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	2  % MATLAB Code Skeleton for QPSK Digital Transmitter 
	3
	4  % Generate random bits
	5  bits_per_symbol=2;
	6  num_symbols=128;
	7  numbits=bits_per_symbol*num_symbols;
	8  bits=rand(1,numbits)>0.5;
	9  
	10  Tsymb = 16;                  % symbol length
	11  omega = pi/2;                % carrier frequency
	12
	13  %%%%%%%%%%%%%%%%%%%%%%%%
	14  % Transmitter section
	15                             % initialize transmit sequence
	16  t = zeros(1,num_symbols*Tsymb);
	17  i = 1;                       % initialize bit index
	18  n = 1;                       % initialize time index
	19  
	20  while (n <= num_symbols*Tsymb)
	21   if ( bits(i:i+1) == [ 0 0])
	22       Igain = 1/sqrt(2);
	23       Qgain = 1/sqrt(2);
	24   % ------>Insert code here<-------
	25
	26   end;
	27   i = i+2;                    % next 2 bits
	28
	29   % Generate symbol to be transmitted
	30   t(n:n+Tsymb-1) =    %------>Insert code here<-------
	31                  
	32   n = n+Tsymb;                % next symbol
	33  end;
	34
	35  % Show the transmitted signal and its spectrum
	36  % ------>Insert code here<-------
	37
	38  % Show the transmitted signal constellation 
	39  rI = t.*cos(omega*[1:num_symbols*Tsymb]);
	40  rQ = t.*sin(omega*[1:num_symbols*Tsymb]);
	41
	42  % Filter out the double-frequency term
	43  low_pass=fir1(512,0.5);
	44  rI=conv(rI,low_pass);
	45  rQ=conv(rQ,low_pass);
	46  figure;
	47  plot(rI,rQ);
	
      

Content actions

Give Feedback:

E-mail the module authors | Rate module ( How does the rating system work?)

Rating system

Ratings

Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

How to rate a module

Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

(0 ratings)

Download:

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections directly in Connexions. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need a Connexions account to use 'My Favorites'.

| A lens (?)

Definition of a lens

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks