Digital Signal Processing Reference
In-Depth Information
FIGURE 1.10. CCS windows for sine8_buf showing both time- and frequency-domain plots
of a generated 1-kHz sine wave.
Viewing and Saving Data from Memory in a File
To view the content of that buffer, select View
Memory and specify out_buffer
for the address, and select the 16-bit signed integer (or hex, etc.) for the format.
To save the content of the output buffer in a file, select File
Æ
Save. Save
the file as sine8_buf.dat (as type hex, for example) in the folder sine8_buf. From the
Storing Memory window, use out_buffer as the buffer's address with length 256.
You can then plot this data [with MATLAB for example] and verify the 1-kHz sinu-
soidal waveform (with 8 kHz as the sampling rate).
Æ
Data
Æ
Example 1.3: Dot Product of Two Arrays ( dotp4 )
Operations such as addition/subtraction and multiplication are the key operations
in a DSP. A very important operation is multiply/accumulate, which is useful in a
number of applications requiring digital filtering, correlation, and spectrum analy-
sis. Since the multiplication operation is executed commonly and is essential for
most DSP algorithms, it is important that it executes in a single cycle. With the C6713
we can actually perform two multiply/accumulate operations within a single cycle.
This example illustrates additional features of CCS, such as single-stepping,
setting breakpoints, and profiling for the benchmark. Again, the purpose here is to
Search WWH ::




Custom Search