Other Parts Discussed in Thread: TEST2
Tool/software: TI C/C++ Compiler
Hello,
I'm trying to build a biquad filter but I can't get past a multiply?
I'm meassuring 700 clock cycles. The first copy only takes 52 of that.
q31_t test1,test2,test4;
stampy[stampTick].wordCount1 = HWREG(I2S0_BASE + I2S_O_STMPWCNT);
stampy[stampTick].bClocks1 = HWREG(I2S0_BASE + I2S_O_STMPXCNT);
test1 = ((HannahStereoFrame *)i2sBlockActiveIn->buf)->Fixed32[0];
test3 = test1 * (test2 + 0.5); //THIS TAKES 700 CYCLES
stampy[stampTick].wordCount2 = HWREG(I2S0_BASE + I2S_O_STMPWCNT);
stampy[stampTick].bClocks2 = HWREG(I2S0_BASE + I2S_O_STMPXCNT);
Any help regarding a fast fixed point multiply and sum would be appreciated.
Thank you,
Ken Koch