AN2108 Freescale Semiconductor / Motorola, AN2108 Datasheet - Page 41

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
}
fclose(fp1);
/* ----------------------------------------------- *
/* Open "desired signal" file */
if ((fp1 = fopen("tvecs\\d.txt", "r")) == NULL)
{
}
/* Read "desired signal" data */
for (i=0; i<INPUT_LENGTH; i++)
{
}
fclose(fp1);
/* ------------------------------------------------------------ *
/* DMA Counter 0: transfer of 50 * 4 items (counter mode B) */
DCO0 = 0x031003;
/* Source address = start of input data buffer */
DSR0 = (int*)x;
/* Destination address = EFCOP’s FDIR */
DDR0 = (int*)&FDIR;
*
* ----------------------------------------------- */
*
* ------------------------------------------------------------ */
}
printf ("Error -- Can’t open \"tvecs\\d.txt\"\n");
exit(1);
if (fscanf(fp1, "%x", &d[i]) != 1)
{
}
exit(1);
Read "desired signal" from file
printf ("Error reading input data\n");
exit(1);
Set up DMA Channel 0 to transfer input data to EFCOP’s FDIR *
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
41

Related parts for AN2108