AN2108 Freescale Semiconductor / Motorola, AN2108 Datasheet - Page 38
AN2108
Manufacturer Part Number
AN2108
Description
AN2108 Programming the DSP56307/DSP56311 EFCOP in C Using Taskings Tool Suite
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
1.AN2108.pdf
(52 pages)
- Current page: 38 of 52
- Download datasheet (489Kb)
_fract _X x[INPUT_LENGTH];/* Input signal
_fract _X d[INPUT_LENGTH];/* Desired signal
_fract _X y[INPUT_LENGTH];/* Filter output signal
_fract _X e[INPUT_LENGTH];/* Error signal
_fract _X *d_ptr=d;/* Pointer to desired signal
_fract _X *y_ptr=y;/* Pointer to output signal
_fract _X *e_ptr=e;/* Pointer to error signal
_fract mu2=0.02; /* FIR-LMS filter convergence factor. */
unsigned int count = INPUT_LENGTH; /* Data sample counter */
/* ------------------------------------------- *
void _long_interrupt(53) lms_isr(void)
{
38
Code Listing for FIR LMS Example
*
* ------------------------------------------- */
_fract Ke; /* Local variable for 2ue(n) */
*y_ptr = FDOR;
/* Calculate e(n) = d(n) - y(n) */
*e_ptr = (*d_ptr++) - (*y_ptr++);
count--;
if (count==0)
{
}
else
{
EFCOP output interrupt service routine.
FCSR.B.FDOIE = 0;
/* Adapt filter weights for next iteration */
Ke = mu2 * (*e_ptr++);
FKIR = Ke;
/* Load error constant into EFCOP’s FKIR
Programming the DSP56307/DSP56311 EFCOP in C
/* Get EFCOP output
/* Decrement data sample counter
/* If all input samples have been processed... */
/* Disable output interrupts to halt filtering */
Freescale Semiconductor, Inc.
/* Ke = 2*mu*e */
For More Information On This Product,
(triggers weight update)
Go to: www.freescale.com
*
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
Related parts for AN2108
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
An Overview og the Phase Locked Loop
Manufacturer:
Philips
Datasheet:
Part Number:
Description:
AN OVERVIEW OF THE LPC FLASH INTERFACE
Manufacturer:
STMicroelectronics
Part Number:
Description:
An Evaluation System Interfacing the MPX2000 Series Pressure Sensors to a Microprocessor
Manufacturer:
Motorola / Freescale Semiconductor
Part Number:
Description:
An FM-IF system for DECT and other high speed GFSK applications
Manufacturer:
Philips Semiconductors / NXP Semiconductors
Part Number:
Description:
An 8 x 8 Discrete Cosine Transform on the StarCore SC140/SC1400 Cores
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An Overview of the HCS12 ATD Module
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An Introduction to the External Bus Interface on the HCS12X
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An RF Data Link Using Tango3 and Romeo2 RF Modules
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 44-HSOP
Manufacturer:
Freescale Semiconductor
Datasheet:
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 54-SOIC
Manufacturer:
Freescale Semiconductor
Datasheet:
Part Number:
Description:
Low-Cost 16-Bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Functional Pin Difference Between the MSC8101 and MPC8260 Communications Processor Modules
Manufacturer:
Freescale Semiconductor / Motorola