Digital Signal Processing Reference
In-Depth Information
• Select
File > Load Program
.
• Open the
LAB1.out
program, which is in the
Debug
folder of your
LAB1
project folder.
•A
Disassembly
window should appear.
•
To run select
Debug > Run
.
Begin
and
End
should appear in the bottom
Stdout
window.
Step 7: Viewing Memory
This step is to check if the values of our
intializemem
file are in the memory
location that we established in the .
cmd
file.
• Select
View
>
memory
.
• Type in
0x80000000
in
Address memory
location.
• Select
Format
:
16bit Signed Int
.
•A
Memory
window appears with the memory addresses and their
contents.
•
Compare the first 10 values with the
initializemem
file data.
Step 8: Graphical Display of Data
In order to view the graph of data in memory, complete the following
instructions:
•
View > Graph > Time/frequency
.
•
Set
Start Address: 0x80000000
.
•
Set
Acquisition Buffer Size: 10
.
•
Set
Display Data Size: 10
.
•
Set
DSP Data Type: 16-bit signed integer
.
•
A graph should appear on the screen with a plot of your data.
•
Compare the first 10 values with the
initializemem
file data
Step 9: Main.c Program Modification
•
Double click on
main.c
in the project window.
•
Modify
main.c
program so that it looks like the following:
//main.c C program -Modification 1
#include <stdio.h>
void main()
{