AN2108 Freescale Semiconductor / Motorola, AN2108 Datasheet - Page 37

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 B
/*********************************************************************
#include <reg56307.h>
#include <stdio.h>
#include <stdlib.h>
/* -----------------------*
#define FIR_LENGTH
#define INPUT_LENGTH 200 /* 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];
/* Other data buffers
*
* 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
firlms.c
FIR LMS adaptive filtering using DSP56307 EFCOP.
firlms.pjt
MOTOROLA 1999.
1) DMA is used for sending data to the EFCOP;
Interrupt service routines are used to retrieve
data from th EFCOP, and to calculate the filter
weight update constant (FKIR).
20 /* Length of FIR filter
Programming the DSP56307/DSP56311 EFCOP in C
Freescale Semiconductor, Inc.
For More Information On This Product,
*
*
Code Listing for FIR LMS Example
Go to: www.freescale.com
*/
Code Listing for FIR LMS Example
37

Related parts for AN2108