BPSK - QPSK Modulation and Demodulation - Free Online Course Materials - USU OpenCourseWare
BPSK - QPSK Modulation and Demodulation - Free Online Course Materials - USU OpenCourseWare
BPSK - QPSK Modulation and Demodulation - Free Online Course Materials - USU OpenCourseWare
The Random Integer Generagor block is now configured to output the numbers 0, 1, 2, and 3 at random. Think of this block as the source. Instead of generating pairs of bits (00), (01), (10),
and (11) it generates the integers 0, 1, 2, and 3. We can use 0, 1, 2, and 3 in a look table to generate symbols as easily as we can the bit patterns. Let's define the look up table next.
7. Change the Look-Up Table to reflect the QPSK symbols as shown below.
ocw.usu.edu/…/lab7.html 1/3
12/1/2010 BPSK/QPSK Modulation and Demodula…
11. What is the symbol rate? Use this rate to set the sample time in the Random Integer Generator.
12. After the look-up table, upsample by a factor of 100 as shown in the above figure.
13. After upsampling, what is the sample rate? Use this sample rate to set the sample time in the Gaussian Noise Generator and the four Sine Wave blocks.
14. In the Gaussian Noise Generator, set the mean value to zero and the variance to a very small number (like 10^(-7)).
15. Generate a square-root Nyquist pulse such as a square-root RC pulse to serve as the impulse response of the transmitter pulse shaping filter that will be used in the I and Q branches. Use the
same filter as the matched filter at the receiver.
16. Use a carrier frequency of 100,000 Hz.
17. Set the frequency and phase in all four Sine Wave blocks.
18. Design the low-pass filter (using remez) to use at the receiver to remove the double frequency terms. What frequencies mark the edge of the transition between pass and stop bands?
19. Set the impulse response of the delay filters to compensate for the delay of the low-pass filter.
20. Insert Eye Diagram blocks before and after the matched filters in the receiver.
21. Insert a Sactter Plot block after the downsampler.
22. Run 0.015 seconds of simulation. This will pass 150 symbols through the system.
23. Y our eye and scatter plots should look something like this.
Y ou can see the constellation showing up perfectly. Of course, I didn't scale my pulses to have unit energy. The eye diagram at the output of the matched filter is also fully open because we
used a square-root Nyquist (shift-orthogonal) pulse.
25. Next add 0.3 radians to the phases of the cos and sin blocks at the receiver. This simulates demodulating with the wrong carrier phase. Run the simulation again. The MF output eye diagram
and the scatter plot shold look like this.
ocw.usu.edu/…/lab7.html 2/3
12/1/2010 BPSK/QPSK Modulation and Demodula…
26. Explain the relationship between the eye diagram at the MF output and the scatter plot. Why is the scatter plot rotated?
27. Now add some noise to the simulation. Set the variance in the Gaussian Noise Generator to 1. Run the simulation. They eye and scatter plots should look something like this.
ocw.usu.edu/…/lab7.html 3/3