Binary Phase Shift Keying (BPSK)
Introduction
In this exercise, you will design a BPSK detector to process
modulated data contained in the file bpskdata.mat
Textbook References
M-ary QAM: Section 5.3,
discrete-time realizations: Section 5.3.2,
partial response pulse shapes: Section A.2.
Specifications
 |
| normalized sample rate: |
8 samples/bit |
| normalized carrier frequency: |
0.125 cycles/sample |
| carrier phase: |
0 degrees |
| average energy: |
1 |
| pulse shape: |
SRRC (50% excess bandwidth, span = 12 symbols) |
| symbol clock offset: |
0 |
| input file |
bpskdata.mat |
| input message length: |
805 bits (115 ASCII characters) |
|
Preliminary Design
Design the Detector
Design the detector, shown below, using blocks from the Simulink, DSP System,
and Communications System Toolboxes.
Test the Detector Design
Test the detector you designed by constructing a modulator to produce a test signal.
The following procedure steps you through this design process:
- Design the modulator shown below to meet the above specifications except
make the input the four symbol sequence 1 0 0 1.
Note: For the local oscillator, use the Sine Wave block
Simulink -> Sources -> Sine Wave
Drag the Sine Wave block into the Simulink design window.
Double-click on the Sine Wave block to open the Block Parameters dialog box.
Set the block parameters as illustrated below.
-
Connect the output of your modulator to the input of your detector.
- Connect the output of your detector to a To Workspace block
(be sure to open the Properties Dialog Window and set the Save format to matrix)
and a Scope block.
-
Set the simulation parameters as follows:
| Simulation Time |
| Start time: 0.0 |
Stop time: (12+4)*8-1 |
| Solver selection |
| Type: Fixed-step |
Solver: discrete (no continuous states) |
Note: the stop time is computed as follows: 12 = 2*(span/2) [the delay of the
pulse shaping filter plus the delay of the matched filter];
4 = the number of data symbols;
8 = the number of samples/symbol.
We subtract one sample because the start time is t = 0.0.
- Run the simulation and plot the demodulator input and the matched filter
output on the same set of axes.
The simulation produces 16 downsampled matched filter outputs --
the last four correspond to the sequence 1 0 0 1.
Check the values in the workspace to see if they agree with input
sequence 1 0 0 1.
- Examine the output of the Downsample block to see if the downsample operation
is keeping the desired samples.
Adjust the sample offset of the Downsample block to obtain the proper values.
Exercise
- Replace the modulator blocks with the From File block and set the
Filename to bpskdata.mat and the sample time to 1.
-
Set the simulation parameters as follows:
| Simulation Time |
| Start time: 0.0 |
Stop time: (12+805)*8-1 |
| Solver selection |
| Type: Fixed-step |
Solver: discrete (no continuous states) |
-
Run the simulation.
-
The detector produces 817 symbol estimates.
The last 805 of these correspond to 115 7-bit ASCII characters.
Determine the message using either your Matlab script or an
ASCII Table.
-
Plot the eye diagram and signal space projections.