Return to previous page Return to menu Go to next page

1.4 Calling sequence

Below is the calling sequence from program load to execution result.

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 RAM 1 of DSP data RAM 15 times * /           DSP_LoadProgram(0, (Uint32 *)0x6050100, 256);                / * Transfer 256 times of data from work RAM to DSP program RAM * /           DSP_Start(0);                / * DSP program is executed from 0x00. ** *           while(DSP_CheckEnd(&dsp_status) == DSP_NOT_END);                / * Loop until the end of the process * /           DSP_ReadData(dsp_result, DSP_RAM_2 | 0, 10);                / * Transfer data from RAM2 of DSP data RAM to DSP result storage variable 10 times * /      ... }


Return to previous page Return to menu Go to next page