dsp56000 Freescale Semiconductor, Inc, dsp56000 Datasheet - Page 622

no-image

dsp56000

Manufacturer Part Number
dsp56000
Description
24-bit Digital Signal Processor Family Manual
Manufacturer
Freescale Semiconductor, Inc
Datasheet
B - 18
;newlms2n.asm
;
;Memory map:
;
;
;
;
;hx is an unused value to make the calculations faster.
;
ntaps
input
output
state
coef
;
_smploop
;error signal is in y1
;FIR sum in a=a+h(k) old*x(n-k)
;h(k)new in b=h(k)old + error*x(n-k-1)
;
_lms
;(Get d(n), subtract fir output (reg a), multiply by “u”, put
;the result in y1. This section is application dependent.)
Figure B-5 Real Input FFT Based on Glenn Bergland Algorithm (Sheet 7 of 8)
page 132,60,1,1
opt
org
org
org
move #state,r0
move #2,n0
move #ntaps,m0
move #coef +1,r4
move #ntaps,m4
move #coef,r5
move m4,m5
movep
move
cir
move
do
mac
macr
mac
macr
move
move
movep
x(n)
]
r0
New Implementation of the delayed LMS on the DSP56000 Revision C
Initial X
cc
equ
equ
equ
x:$0
ds
y:$0
ds
p:$40
a
#taps/2,_lms
x0,y0,a
x1,y1,b
x1,y0,a
x0,y1,b
x(n-1)
4
$FFC0
$FFC1
5
5
x(n-2)
a,x:(r0)
x:(r0)+,x0
x:(r0)+,x1
y0,b
x:(r0)+,x0
y0,b
x:(r0)+,x1
(r0) -n0
a y:output
Freescale Semiconductor, Inc.
For More Information On This Product,
x(n-3)
y:input,a
;start of X
;mod 5
;coefficients
;mod 5
;coefficients
;mod 5
BENCHMARK PROGRAMS
BENCHMARK PROGRAMS
y:(r4)+,y0
b,y:(r5)+
y:(r4)+,y0
b,y:(r5)+
y:(r4)+,y0
b,y:(r5)+
Go to: www.freescale.com
x(n-4)
;
;get input sample
;save input sample
;x0=x(n)
;x1=x(n-1),y0=h(0)
;
;a=h(0)*x(n),b=h(0)
;b=h(0)+e*x(n-1)=h(0)new
;x0=x(n-2) y0=h(1)
;a=a+h(1)*x(n-1) b=h(1)
;b=h(1)+e*x(n-2)
;x1=x(n-3) y0=H(2)
;save last new c( )
;pointer update
;output fir if desired
H
hx
]
r5
h0
]
r4
h1
h2
word
Prog
h3
1
1
1
2
1
1
1
1
1
1
Icyc
MOTOROLA
1
1
1
3
1
1
1
1
1
1

Related parts for dsp56000