11.07.2015 Views

section 7 - Index of

section 7 - Index of

section 7 - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

page 132,60,1,1;newlms2n.asm; New Implementation <strong>of</strong> the delayed LMS on the DSPS6000 Revision C;Memory map:; Initial X H; x(n) x(n-1) x(n-2) x(n-3) x(n-4) hx hO h1 h2 h3; ] ] ]; ~ ~ ~;hx is an unused value to make the calculations faster.opt ccntaps equ 4input equ $FFCOoutput equ $FFC1org x:$Ostate ds Sorg y:$Ocoef ds 5org p:$40move #state,~;start <strong>of</strong> Xmove #2,nOmove #ntaps,mOmove #ooef + 1,r4move #ntaps,m4move #ooef,rS;modS;coefficients;modS;coefficientsmove m4,mS;modS_smploopmovepy:input,amovea,x:(rO);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),;get input sample;save input sampleProgword1Icyccir a x:(rO)+,xOmove x:(rO)+,x1 y:(r4)+,yOdo #taps/2,Jmsmac xO,yO,a yO,b b,y:(rS)+macr x1,y1,b x:(rO)+,xO y:(r4)+,yOmac x1,yO,a yO,b b,y:(r5)+macr xO,y1,b, x:(rO)+,x1 y:(r4)+,yO- Imsmove b,y:(rS)+move(rO) -nO;xO=x(n);x1 =x(n-1 ),yO=h(O),;a=h(O)*x(n),b=h(O);b=h(0)+e*x(n-1 )=h(O)new;xO=x(n-2) yO=h(1);a=a+h(1 )*x(n-1) b=h(1);b=h(1 )+e*x(n-2);x1 =x(n-3) yO=H(2);save last new c( );pointer update1121111311;(Get d(n), subtract fir output (reg a), multiply by "u", put;the result in y1. This <strong>section</strong> is application dependent.)movep a,y:output ;outputfir if desiredjmp_smploopendFigure 8-4 LMS FIR Adaptive FilterTotals: 112N+8-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!