AN2108 Freescale Semiconductor / Motorola, AN2108 Datasheet - Page 25

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
6.3.2 Implementation
Note:
The implementation of an LMS adaptive FIR filter on the EFCOP requires the steps shown in Figure 14,
summarized as:
After the EFCOP completes the filtering operation, the DSP56300 core must calculate 2 e(k) (which is
2 (d(k) - y(k))) and then input this to FKIR to trigger the adaptation phase. Therefore, the DSP56300 core
cannot be completely free in this instance. The most efficient approach to this problem is to use the DMA
controller to feed input values to the EFCOP via the FDIR and to configure the EFCOP to trigger an
interrupt after calculating y(k). On receipt of the interrupt request, the DSP56300 core then calculates K
and feeds it to the FKIR, thereby triggering the weight update phase. Once the coefficient update phase
completes, the EFCOP starts the next filtering phase—that is, it waits for data to be input to the FDIR
unless there is already data in FDIR, and then it starts the next filtering operation to calculate y(k+1).
The input files containing the input signal and the desired signal are
respectively. Three output files are written into the
These files should be identical to the reference files,
respectively.
Filtering of x(k) to produce y(k). This is identical to the fixed FIR filtering operation described in
Section 6.2, FIR Filter, on page 21. The filtering is triggered by writing an input data sample to the
FDIR.
Updating the filter coefficients. This is triggered by writing the value K
FKIR. The EFCOP must be in Adaptive FIR mode for adaptation to be triggered automatically.
The EFCOP then uses this value to update the filter coefficients according to Eq. (2).
The EFCOP can also be manually forced to update the filter coefficients when not in adaptive
filtering mode. This is achieved by setting the FUPD bit in the EFCOP FCSR. Manual updating is
useful in situations where adaptation of the coefficients is not required after every filtering
operation but is only required occasionally.
out\y.txt
out\e.txt
out\w.txt
contains the output signal.
contains the error signal.
contains the updated coefficients.
Programming the DSP56307/DSP56311 EFCOP in C
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
out
tvecs\y.txt
directory:
,
tvecs\x.txt
tvecs\e.txt
e
= 2 e(k) to the EFCOP
Application Examples
and
, and
tvecs\d.txt
tvecs\w.txt
,
e
25
,
,

Related parts for AN2108