AN2108 Freescale Semiconductor / Motorola, AN2108 Datasheet - Page 44

no-image

AN2108

Manufacturer Part Number
AN2108
Description
AN2108 Programming the DSP56307/DSP56311 EFCOP in C Using Taskings Tool Suite
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
} /* END OF PROGRAM */
44
Code Listing for FIR LMS Example
if (FCSR.B.FCONT != 0)
{
}
else /* Write output to files */
{
}
fclose(fp1);
fclose(fp2);
fclose(fp3);
*
*
*
* ------------------------------------------------------------- */
printf("%s%s%s",
/* Write output signal y(n) to file */
for (i=0; i<INPUT_LENGTH; i++)
{
}
/* Write error signal e(n) to file */
for (i=0; i<INPUT_LENGTH; i++)
{
}
/* Write filter weights w(i) to file (reversed) */
for (i=0; i<FIR_LENGTH; i++)
{
}
printf("\nFIR LMS complete\n");
fprintf(fp1, "%06X\n", y[i]);
fprintf(fp2, "%06X\n", e[i]);
fprintf(fp3, "%06X\n", FCM_buffer[FIR_LENGTH - 1 - i]);
contention between the EFCOP and the core, the above
checking of FCONT can be omitted.
"\nFCONT = 1\n",
"(Contention between EFCOP and Core occurred).\n",
"No output written to file.\n");
Programming the DSP56307/DSP56311 EFCOP in C
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
*
*
*

Related parts for AN2108