<< Chapter < Page | Chapter >> Page > |
Before I get into the technical details, here is a preview of the programs and their purposes that I will present and explain in this module:
This will be a long module involving lots of code and lots of explanations, so fill your cup with java and let's get started.
I will begin the discussion with the program named Dsp029 , which provides a visual illustration of the impact of the sampling frequency andthe Nyquist folding frequency. A complete listing of this program is shown in Listing 16 near the end of the module.
This program generates and displays up to five sinusoids having the same sampling frequency but having different sinusoidal frequencies and amplitudes.The program provides a visual illustration of the way in which frequencies above one-half the sampling frequency fold back into the area bounded by zero andone-half the sampling frequency.
(The frequency at one-half the sampling frequency is known as the Nyquist folding frequency.)
The program gets its input parameters from a file named Dsp029.txt . If that file doesn't exist in the current directory, the program uses a set ofdefault parameters.
Each parameter value must be stored as characters on a separate line in the file named Dsp029.txt . The required parameters are shown in Figure 1 .
Notification Switch
Would you like to follow the 'Digital signal processing - dsp' conversation and receive update notifications?