Implementation Using Dma Input And Interrupt Output; Updating An Fir Filter - Freescale Semiconductor DSP56311 User Manual

24-bit digital signal processor (dsp)
Hide thumbs Also See for DSP56311:
Table of Contents

Advertisement

10.3.6.3.2 Implementation Using DMA Input and Interrupt Output

Figure 10-10 shows a flowchart for an adaptive FIR filter that uses DMA and an interrupt to
transfer data.
Start
Set DMA/Int for input
on FDIBE
Set FCNT=L-1
Set FDBA, FCBA
Enable EFCOP
ADP Real FIR Mode
Block
Done?
End
Figure 10-10. Adaptive FIR Filter Using DMA Input and Interrupt Output

10.3.6.3.3 Updating an FIR Filter

The following example shows an FIR adaptive filter that is updated using the LMS algorithm.
Example 10-4. FIR Adaptive Filter Update Using the LMS Algorithm
TITLE 'ADAPTIVE'
INCLUDE 'ioequ.asm'
;;************************************************************************************
; equates
;;************************************************************************************
Start
equ
FCON
equ
Freescale Semiconductor
No
Yes
$00100
; main program starting address
$805
; EFCOP FSCR register contents:
DSP56311 Reference Manual, Rev. 2
Output Buffer
Full
Interrupt
Read y(n)
Calculate K
e
Write K
to FKIR
e
(opt.)
Set FUPD = 1
Automatically
Done in ADP Mode
RTI
EFCOP Operation
10-27

Advertisement

Table of Contents
loading

Table of Contents