EE 451
Lab 7: Spectrum Analyzer using the DSP 56002


Part 2: Calcualting the Spectrum

In this part of the lab, you will modify your program from last week to calculate the spectrum of the input sample. It will be done in the following way:

  1. Use MATLAB to calculate a 1024-point Hamming window (use the hamming function in MATLAB). Divide this window by 256 (in MATLAB).
  2. In the 56002, multiply the calculate block by the Hamming window.
  3. Use the canned routine fftr2a.asm to calculate the FFT of the data. (This routine uses sincos.asm to calculate the twiddle factors. See the files fftr2at.asm, fftr2a.hlp, and sincos.hlp to see how to use these.)
  4. Calculate the squared magnitude of the FFT by squaring the real and imaginary parts, and adding.
  5. Use the canned routine bitrev.asm to bit-reverse the FFT into the correct order.


Bill Rison, <rison@ee.nmt.edu >
Wed Nov 6 1996
Copyright © 1996, New Mexico Tech