Motorola DSP96002 User Manual page 552

32-bit digital signal processor
Table of Contents

Advertisement

t
s'
move
#k,r0
move
#2 * N,m0
move
#state,r4
move
#N,m4
movep
y:datin,a
move
do
#N,_el
macr -x0,y0,a
move
macr
x1,x0,b x:(r0)+,x0 y:(r4)-,y0 ;t' * k+s,get k,get s
_el
move
clr
a
move
rep
#N
mac
x0,y0,a x:(r0)+,x0 y:(r4)+,y0 ;do fir taps
macr
x0,y0,a
movep a,y:datout
MOTOROLA
SINGLE SECTION
k
k'
-1
Z
s
w
DSP56000 IMPLEMENTATION
;point to coefficients
;mod 2 * (# of k's)+1
;point to filter states
;mod on filter states
;get input sample
x:(r0)+,x0 y:(r4)-,y0 ;get first k, first s
b,y:(r4)+
a,x1
y:(r4)+,b
b,y:(r4)+
a,y:(r4)+
y:(r4)+,y0 ;get last state
(r4)+
DSP96002 IMPLEMENTATION
DSP96002 USER'S MANUAL
EQUATIONS:
t'
t'=t-k * s
s'=s+k * t'
t' t
output= sum(s' * w)
;do filter
;t-k * s, save prev s
;copy t',get s again
;sv scnd to 1st st
;save first state
;finish, adj pointer
;output sample
Program ICycles
Words
1
1
2
3
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
---
---
Totals: 12
4N+10
B-33

Advertisement

Table of Contents
loading

Table of Contents