MOTOROLA
DSP96002 USER’S MANUAL
B-31
DSP56000 IMPLEMENTATION
Program
ICycles
Words
move #k+N-1,r0 ;point to k
move #N-1,m0 ;number of k’s-1
move #state,r4 ;point to filter states
move m0,m4 ;mod for states
movep y:datin,a ;get input sample
move x:(r0)-,x0 y:(r4)+,y0 ;first k, first s 1 1
macr -x0,y0,a x:(r0)-,x0 y:(r4)-,y0 ;t’=t-k*s 1 1
do #n-1,_endlat ;do sections 2 3
macr -x0,y0,a b,y:(r4)+ ;t’-k*s, save state 1 1
move a,x1 y:(r4)+,b ;copy t’,get s again 1 1
macr x1,x0,b x:(r0)-,x0 y:(r4)-,y0 ;fnd s,get s,get k 1 1
_endlat
move b,y:(r4)+ ;save second last s 1 1
move x:(r0)+,x0 a,y:(r4)+ ;update r0,save last s 1 1
movep a,y:datout ;output sample
----- -----
9 3N+4
DSP96002 IMPLEMENTATION
Program ICycles
Words
move #k+N-1,r0 ;point to k
move #N-1,m0 ;number of k’s-1
move #state,r4 ;point to filter states
move m0,m4 ;mod for states
move #2,n4 ;offset for state indexing 1 1
movep y:datin,d1 ;get input sample
move x:(r0)-,d5.s y:(r4)+,d6.s 1 1
fmpy.s d5,d6,d3 x:(r0)-,d5.s y:(r4)-,d6.s 1 1
fsub.s d3,d1 1 1
do #N-1,_elat 2 3
fmpy d5,d6,d0 fadd.s d0,d3 1 1
fsub.s d0,d1 d6.s,d3.s d3.s,y:(r4)+n4 1 1
fmpy d5,d1,d0 x:(r0)-,d5.s y:(r4)-,d6.s 1 1
_elat
fadd.s d0,d3 (r0)+ 1 1
move d3.s,y:(r4)+ 1 1
move d1.s,y:(r4)+ 1 1
movep d1.s,y:datout
--- ---
Totals: 12 3N+7
Summary of Contents for DSP96002
Page 3: ...1 2 DSP96002 USER S MANUAL MOTOROLA ...
Page 38: ...MOTOROLA DSP96002 USER S MANUAL 3 15 Figure 3 4 Modulo Arithmetic Unit Block Diagram ...
Page 39: ...3 16 DSP96002 USER S MANUAL MOTOROLA ...
Page 53: ...4 14 DSP96002 USER S MANUAL MOTOROLA ...
Page 76: ...MOTOROLA DSP96002 USER S MANUAL 5 23 Figure 5 8 Address Modifier Summary ...
Page 86: ...6 10 DSP96002 USER S MANUAL MOTOROLA ...
Page 101: ...MOTOROLA DSP96002 USER S MANUAL 7 15 Figure 7 9 HI Block Diagram One Port ...
Page 140: ...7 54 DSP96002 USER S MANUAL MOTOROLA ...
Page 166: ...9 10 DSP96002 USER S MANUAL MOTOROLA ...
Page 181: ...MOTOROLA DSP96002 USER S MANUAL 10 15 Figure 10 8 Program Address Bus FIFO ...
Page 337: ...MOTOROLA DSP96002 USER S MANUAL A 149 ...
Page 404: ...A 216 DSP96002 USER S MANUAL MOTOROLA PC xxxx D ...
Page 460: ...A 272 DSP96002 USER S MANUAL MOTOROLA SIOP Not affected ...
Page 484: ...A 296 DSP96002 USER S MANUAL MOTOROLA SSH PC SSL SR SP 1 SP ...
Page 519: ...MOTOROLA DSP96002 USER S MANUAL A 331 ...
Page 718: ...MOTOROLA DSP96002 USER S MANUAL B 199 ...
Page 871: ... MOTOROLA INC 1994 MOTOROLA TECHNICAL DATA SEMICONDUCTOR M Addendum ...
Page 888: ...MOTOROLA INDEX 1 INDEX ...
Page 889: ......