Jcadwell
06-01-05, 08:00 PM
Greetings.
My current question revolves around implementing a 21 term FIR filter on a sampled input from the A/D on the MINPOD.
I've created 21 variables (primarily because I don't understand stacks) and am trying to find a way to sum each of those variables multiplied by a scalar. The system refreshes each variable with the one before it every time the A/D is sampled.
This looks like...
DATA20@
.
.
.
DATA2 @
DATA3 !
DATA1 @
DATA2 !
DATA0 @
DATA1 !
I need a sum of all terms, each multiplied by a scalar. I don't want to alter the value of each term.
Ouput = (DATA0 @)*(n) + (DATA1 @)*(n-1) ..... + (DATA20 @)*(n-20)
Is there a convenient way to do this or do I have to do it one term at a time?
Thanks.
My current question revolves around implementing a 21 term FIR filter on a sampled input from the A/D on the MINPOD.
I've created 21 variables (primarily because I don't understand stacks) and am trying to find a way to sum each of those variables multiplied by a scalar. The system refreshes each variable with the one before it every time the A/D is sampled.
This looks like...
DATA20@
.
.
.
DATA2 @
DATA3 !
DATA1 @
DATA2 !
DATA0 @
DATA1 !
I need a sum of all terms, each multiplied by a scalar. I don't want to alter the value of each term.
Ouput = (DATA0 @)*(n) + (DATA1 @)*(n-1) ..... + (DATA20 @)*(n-20)
Is there a convenient way to do this or do I have to do it one term at a time?
Thanks.