Design the BPSK detector using blocks from the SIMULINK Block Library and
the Communications Blockset Library.
Test the Detector Design
Test your design using the following procerure:
1
Design a modulator (below) to meet the above specifications except make
the input the four symbol sequence 1 0 0 1
2
Connect the output of your modulator to the the input of your detector.
3
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.)
4
Set the simulation parameters as follows:
Start Time: Stop Time: Solver options
Fixed step size:
0.0 (12+4+1)*8 Type: Fixed-step discrete (no continuous states) 1
Note: The stop time is computed as follows: 12 = 2*Lp (the delay of the pulse shaping filter plus
the delay of the matched filter) ; 4 = the number of data symbols;
1 = the one bit (or symbol) delay to allow proper phasing of the downsample operation in the
detector; 8 = the number of samples/symbol.
5
Run the simulation and plot the received signal r[n] and the matched filter output on the
same set of axes.
6
Adjust the delay on the Downsample block to obtain the correct sybmol timing.
7
Does the workspace variable agree with the input sequence (1 0 0 1)?
Exercise
1
Replace the modulator blocks with the From File block and set the Filename to bpskdata.mat
2
Set the simulation parameters as follows:
Start Time: Stop Time: Solver options
Fixed step size:
0.0 (12+154+1)*8 Type: Fixed-step discrete (no continuous states) 1
3
Run the simulation.
4
The detector produces approximately 168 estimates.
154 of these estimates correspond to 22 7-bit ASCII characters. Determine the message
using either your matlab script or the on-line ASCII table.
5
Email your answer to ee485ta "at" byu.edu Attach to your email message, the simulink model file (.mdl) that contains your detector
design.
6
Plot the eye diagram and signal space projections. You may either attach the plots to your email
message (preferred method) or turn in the plots at the beginning of the next class period.