DSP Exercise 1 2

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 18

LABORATORY 2: DSP TRAINIER EXERCISE 1-2

BECE 313L (3745)

Integrated Development Environment (IDE) and Project Structure

Procedures: Setup and Connections


4. What is the memory address at which the main function starts?

5. What is the value of Program Counter Register?

In the assembly instruction, what is the value of the PC register now? What does It
correspond?
When the next instruction in assembly is executed, the PC registers becomes 0x022F88
which is the address of the next instruction in assembly.
The purpose of PC register is to identify the location of the current instruction being
executed.
6. While keeping an eye on the main.c, then yellow arrow indicates the next line of code in
main.c to be executed.
7. The following information in the LCD of the DSP is shown.
8. Adjusting the potentiometer of the dc source changes the frequency of the DSP trainer as
shown.
9. Does the amplitude of the signal changes as you change the frequency? The answer is
NO. The amplitude stays the same as shown in the previous pictures.
The frequency range is from 0 Hz to 5027 Hz.
11. The address of the sintbl variable is shown below.
12. Another method of viewing the data inside sintbl as shown below.
14. Executed the program after inserting the breakpoint. The value of freq variable is
shown below.
CONCLUSION:
The exercise that was carried out using DSP trainer and Code Composer Studio shows how
to run the C files inside the code composer and execute the program on the DSP. The
values taken from the DSP and from the knobs of the DSP itself can be viewed inside the
code composer studio for debugging purposes. The data can be visualized, edited and
configured.

REVIEW QUESTIONS:
1. D – [Label] mnemonic [operands] [; + comment]
2. D – To edit, build, debug, and manage DSP projects.
3. D – All of the above
4. C – The program is automatically halted when an execution line reaches a
breakpoint
5. B – The Graph Tool

You might also like