CPU register by double clicking on it. Right click on the CPU Register window
and select Allow Docking. We can now move and resize the window. Try
to change the temporary register T0 and accumulator AC0 to T0 0x1234 and
AC0 0x56789ABC.
± On the CCS menu bar click Tools3Command Window to add the Command
Window. We can resize and dock it as in the previous step. The command
window will appear each time we rebuild the project.
± We can customize the CCS display and settings using the workspace
feature. To save a workspace, click File3Workspace3Save Workspace and give
the workspace a name. When we restart CCS, we can reload that workspace by
clicking File3Workspace3Load Workspace and select the proper workspace
filename.
± Click View3Dis-Assembly on the menu bar to see the disassembly window.
Every time we reload an executable file, the disassembly window will appear
automatically.
3. Using the single step features:
± When using C programs, the C55x system uses a function called boot from the
run-time support library rts55.lib to initialize the system. After we load the
exp1.out, the program counter (PC) should be at the start of the boot function
and the assembly code, boot.asm, should be displayed in the disassembly
window. For a project starting with C programs, there must be a function called
main() from which the C functions logically begin to execute. We can issue the
command, Go Main, from the Debug menu to start the C program.
± After the Go Main command, the DSP will be halted at the location where the
function main() is. Hit the <F8> key or click the single step button on the debug
toolbar repeatedly and single-step through the program exp1.c, watching the
values of the CPU registers change. Move the cursor to a different location in the
code and try the run-to-cursor command (hold down the <Ctrl> and <F10> keys
simultaneously).
4. Resource monitoring:
± From View3Watch Window, open the Watch Window area. At run time, this
area shows the values of watched variables. Right-click on the Watch Window
area and choose Insert New Expression from the pop-up list. Type the output
buffer name, out_buffer, into the expression box and click OK, expand the
out_buffer to view each individual element of the buffer.
± From View3Memory, open a memory window and enter the starting address
of the in_buffer in data page to view the data in the input and output buffers.
Since global variables are defined globally, we can use the variable name as the
address for memory viewing.
± From View3Graph3Time/Frequency, open the Graphic Property dialogue. Set
the display parameters as shown in Figure 1.14. The CCS allows the user to plot
data directly from memory by specifying the memory location and its length.
± Set a breakpoint on the line of the following C statement:
EXPERIMENTS USING CODE COMPOSER STUDIO
27