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 */ ...... }