Motorola DSP96002 User Manual page 555

32-bit digital signal processor
Table of Contents

Advertisement

t
u'
move
move
move
move
movep
move
do
#order,_endnlat
mpy
x1,y0,a
macr -x0,y1,a
mpy
x0,y0,b
macr
x1,y1,b
_endnlat
move
move
clr
a
rep
#order
mac
x1,y0,a
macr
x1,y0,a
movep a,y:datout
B-36
SINGLE SECTION
q
k
k'
-1
Z
q
s
w
DSP56000 IMPLEMENTATION
#coef,r0
;point to coefficients
#3 * N,m0
;mod on coefficients
#state,r4
;point to state variables
#N,m4
;mod on filter states
y:datin,y0
;get input sample
x:(r0)+,x1
x:(r0)+,x0 y:(r4),y1 ;q * t, get k, get s
b,y:(r4)+
a,y0
x:(r0)+,x1
b,y:(r4)+ ;sv scnd lst st
a,y:(r4)+ ;save last state
y:(r4)+,y0 ;clr acc, get fst st
x:(r0)+,x1 y:(r4)+,y0
(r4)+
;output sample
DSP96002 IMPLEMENTATION
DSP96002 USER'S MANUAL
EQUATIONS:
t'
t'=t * q-k * s
u'=t * k+s * q
t' t
output=sum (w * u')
u
;get first Q in table
;q * t-k * s, save new s
;k * t, set t'
;k * t+q * s, get next q
;do fir taps
;rnd, adj pointer
Program ICycles
Words
1
1
2
3
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
---
---
Totals: 13
5N+10
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents