2009-09-22 08:07 PM
How to input data to fir_16by16_stm32 of ST DSPlibrary?
2011-05-17 04:24 AM
Now I am using 16-bit FIR filter- fir_16by16_stm32 in the STM32F103CB.
It seems not work. My setting is as follows: 1. M=40, N=360 short DataIn[M+N-1]; int FilterOut[N]; short h[M] = {376,13409,10271,6021,1783,-1426,-3010,-2934,-1676,0,1340, 1867,1505,548,-509,-1204,-1283,-788,0,705,1027,860,324,-310,-752, -821,-515,0,478,708,602,230,-222,-547,-604,-383,0,362,540,463} 2. For every FIR process, I use the last 39 data of previous 360 samples, combined with the current 360 samples. So this generates 399 samples for every DataIn[0..398]. 3. Each DataIn[0..398] is fed into FIR filter and then FilterOut[0..359] is generated. But I find the result FilterOut seems not correct. It seems many elements in FilterOut[0..359] have very large value. I think there is somewhere wrong! Can someone tell me what's wrong about my process? Please kindly give me some suggestions. Thanks a lot!