AN2108 Freescale Semiconductor / Motorola, AN2108 Datasheet - Page 30

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
Appendix A
/*********************************************************************
#include <reg56307.h>
#include <stdio.h>
#include <stdlib.h>
/* -----------------------*
#define FIR_LENGTH
#define INPUT_LENGTH 100 /* Length of input data sequence */
/* -----------------------*
/* EFCOP coefficient and input data history buffers
_fract _Y _circ FCM_buffer[FIR_LENGTH];
_fract _X _circ FDM_buffer[FIR_LENGTH];
/* Input and output data buffers
_fract _X input[INPUT_LENGTH];
30
Code Listing for FIR Filtering Example
*
* FILENAME:
*
* DESCRIPTION:
*
* PROJECT:
*
* COPYRIGHT:
*
* NOTES:
*
*
*********************************************************************/
*
* -----------------------*/
*
* -----------------------*/
(Located in bottom 4K, as specified in "efcopdma.dsc") */
(Located above 4K, as specified in "efcopdma.dsc") */
Define constants
Declare data buffers
fir.c
FIR filtering using DSP56307 EFCOP.
fir.pjt
MOTOROLA 1999.
1) DMA is used for sending data to and retrieving
data from the EFCOP.
Programming the DSP56307/DSP56311 EFCOP in C
20 /* Length of FIR filter
Freescale Semiconductor, Inc.
*
*
Code Listing for FIR Filtering Example
For More Information On This Product,
Go to: www.freescale.com
*/

Related parts for AN2108