AN2108 Freescale Semiconductor / Motorola, AN2108 Datasheet - Page 43

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
/* Other processing tasks are here */
/* -------------------------------------------------- *
while (FCSR.B.FDOIE == 1)
{} /* Wait here until all samples have been processed
/* -------------------- *
/* Output signal, y(n) */
if ((fp1 = fopen("out\\y.txt", "w")) == NULL)
{
}
/* Error signal, e(n) */
if ((fp2 = fopen("out\\e.txt", "w")) == NULL)
{
}
/* Filter weights, w(n) */
if ((fp3 = fopen("out\\w.txt", "w")) == NULL)
{
}
/* ------------------------------------------------------------- *
*
* -------------------------------------------------- */
*
* -------------------- */
*
*
*
printf ("Error -- Can’t open \"out\\y.txt\n\"");
exit(1);
printf ("Error -- Can’t open \"out\\e.txt\n\"");
exit(1);
printf ("Error -- Can’t open \"out\\w.txt\n\"");
exit(1);
Open output files
Check FCONT for contention between EFCOP and Core.
N.B. If it is known that the core’s activities cannot cause
(when count=0 in lms_isr, FDOIE gets disabled) */
Wait for filtering to finish
Programming the DSP56307/DSP56311 EFCOP in C
Freescale Semiconductor, Inc.
For More Information On This Product,
*
Go to: www.freescale.com
*
Code Listing for FIR LMS Example
*
*
*
43

Related parts for AN2108