www.ti.com
Output
from GPP
Input from
GPP
Channel 0: GPP to DSP (data to be scaled)
Verify
data
Input from
DSP
Output
from DSP
Channe; 1: DSP to GPP (scaled data)
GPP
DSP
Scale
data
MSG
Scaling factor
4.3.1 Invoking the Application
4.4
READWRITE Sample
READWRITE Sample
Figure 4-4. Data and Message Flow in the Sample Application – SCALE
The scale sample takes the following parameters:
Parameter
Example Value
Absolute path of DSP executable
windows\scale.out
Buffer size
1024
Number of iterations
10000
The sample can be executed for infinite iterations by specifying the number of iterations as 0. The
following example initiates the scale sample application to run for 8000 iterations with each transferring a
buffer of size 1024 bytes.
Windows CE>s scalegpp.exe windows\scale.out 1024 8000
Figure 4-5
illustrates large buffer transfer through direct writes to and reads from DSP memory. It transfers
a large size data buffer between the GPP and DSP using PROC_Read () and PROC_Write () APIs and
tasks running on the DSP On the DSP side, this application illustrates use of TSK with MSGQ.
16
Sample Applications
SPRUEW0 – March 2007
Submit Documentation Feedback