11.07.2015 Views

section 7 - Index of

section 7 - Index of

section 7 - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

.*._---*-----*-------**-------.... *_ .. * •••• _ •••••••••• * •••••• * •• -*.* •••• * •••• -.-•• -_ •• __ ••• _ •••• -* ••••• _-•• -* ••••• __ ••,initialization-* •• _ ••••••••• -.* •••.••••.•••••... _* •••••nstartwddrcddrinputoutputequequequequequequ20$40$0$0$ffeO$ffe1orgmovemovemovemovep:start#Wddr;rO#cddr,r4#n-1,mOmO,m4;rO - samples;r1 - coefficients;set modulo arithmetic;for the 2 circular buffersoptccfilter loop :8+(n-1) cycles.*_if_if••••*•••••••_•••••*•••••••••••_.*_._*._.._*••_••'ltif*if••••_._*.._*........_..._._..._......._.__....._*.*••*•••*_••,,.*.__•••_movep y:input,x: (rO) ;input sample in memoryelr a x:(rO)+,xO y: (r4)+,yOrep#n-1mac xO,yO,a x:(rO)+,xO y:(r4)+,yOmacr xO,xO,a (rO)-movep a,y:output ;output filtered sample••••_*_..__....._...._end... * ••••• _ ••••• __ * ••• _*.if_*_ .•• * •• _.*_* .. __ .... _* •••• ** •• _* •••••••••• _ ••• _**.'It*.'It'ltif ••••Figure 8-1 20-Tap FIR Filter Example (Sheet 2 <strong>of</strong> 2)

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

Saved successfully!

Ooh no, something went wrong!