Japanese
PROGRAMMER'S GUIDEDSP I/F library
■ | Go forward
DSP I/F library

1. guide


1.1 Purpose

The purpose of this library is to provide an interface for DSP program control.

1.2 Overview

This library provides the following interfaces.

An overview of each [function] is explained below.

1.3 Functional overview

●Program load
Transfers the DSP program stored in work RAM etc. to DSP program RAM.

●Data light
Transfers DSP program data (parameters) stored in work RAM etc. to DSP data RAM.

●Data read
Reads data (execution results, etc.) from DSP data RAM.

●Start execution
Set the program counter and start running the DSP program.

●Stop execution
Stops execution of the DSP program.

●Execution completion check
Checks whether the DSP program has finished executing.

1.4 Calling Sequence

The calling sequence from program loading to obtaining execution results is shown below.

void GoDsp()
{
          Uint32 dsp_result[10]; /* DSP result storage variable */

          DSP_WriteData(DSP_RAM_1 | 0, (Uint32 *)0x6050000, 15);
               /* Transfer data from work RAM to RAM1 of DSP data RAM 15 times */
          DSP_LoadProgram(0, (Uint32 *)0x6050100, 256);
               /* Transfer data from work RAM to DSP program RAM 256 times */
          DSP_Start(0);
               /* Run the DSP program from 0x00 */
          while(DSP_CheckEnd(&dsp_status) == DSP_NOT_END);
               /* Loop until finished */
          DSP_ReadData(dsp_result, DSP_RAM_2 | 0, 10);
               /* Transfer data from RAM2 of DSP data RAM to DSP result storage variable 10 times */
     ......
}

■ | Go forward
PROGRAMMER'S GUIDEDSP I/F library
Copyright SEGA ENTERPRISES, LTD., 1997