Motorola DSP96002 User Manual page 545

32-bit digital signal processor
Table of Contents

Advertisement

On the delayed LMS algorithm, the coefficients are updated with the error from the previous iteration while
the FIR filter is being computed for the current iteration. In the following implementation, two coefficients
are updated with each pass of the loop.
iter
conv_fact equ
state
coef
e
xin
dsig
lmstest
move
move
move
move
move
move
move
move
move
move
move
do
; LMS algorithm setup
move
move
fmpy.s d0,d1,d0
move
move
; LMS algorithm loop
B-26
Delayed LMS Algorithm
equ
50
0.01
org
x:$0
ds
11
org
y:$0
ds
10
dc
0.0
ds
1
ds
1
org
p:$100
#state,r0
#10,m0
#xstate,r1
#9,m1
#coef,r4
#9,m4
#coef,r5
#9,m5
#xcoef,r6
#9,m6
#iter,d0.l
d0.l,lms
DSP96002 USER'S MANUAL
;Number of LMS iterations
;Convergence factor
;State of lms fir
;LMS coefficients
;Signal error
;Input to system
;Desired signal
;Set up address generators
#conv_fact,d1.s
d0.s,d9.s
d6.s,x:(r0)
y:e,d0.s
y:xin,d6.s
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents