| 전자부품 데이터시트 검색엔진 |
|
PM0014 데이터시트(PDF) 35 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0014 데이터시트(HTML) 35 Page - STMicroelectronics |
|
35 / 46 page ![]() PM0014 Signal processing library functions 35/46 6.3 Finite impulse response filters 6.3.1 fir_q15_q15_q15 fir_q15_q15_q15 (struct Filter *FirPtr). Description: Real FIR filter of 16-bit fractional inputs, coefficients and outputs. Argument: FirPtr Filter pointer. Algorithm: y(n) = bi * x(n - i) Note: The delay line must be stored in DPRAM. Its size is 2*nb_coeff. Before the first call to the function, the delay line must be initialized to 0. There is a saturation to 1 (respectively -1) if the computed output sample is greater than 1 (respectively lower than -1). Example of the use for fir_q15_q15_q15: # define FirNumberCoeffs NumberOfCoefficients #define NbOutput NumberOfOutputSamples iram short Delayline [FirNumberCoeffs]; iram short Coeff [FirNumberCoeffs]; void main () { // Data definition short Input[NbOutput]; short Out[NbOutput]; // Here should be the coef[] and input[] initialization. See the Test part... // Declare a filter structure struct Filter *Filt; // Initialisation of filt Filt.NumberCoeffs = FirNumberCoeffs; Filt.NumberOutputSamples = NbOutput; Filt.CoeffPtr = Coeff; Filt.InputPtr = Input; Filt.OutputPtr = Out; Filt.DelayLinePtr = Delayline; //Filter processing fir_q15_q15_q15(&Filt); } Coefficients must be stored in memory as follow: addr Filt.CoeffPtr ----> a0 addr Filt.CoeffPtr + 2 ----> a1 ... addr Filt.CoeffPtr + 2 * (FirNumberCoeffs -1)----> aFirNumberCoeffs-1 Assembly source code: fir_q15_q15_q15.asm i0 = nbcoeff 1 – |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |