Datenblatt-Suchmaschine für elektronische Bauteile
  German  ▼
ALLDATASHEETDE.COM

X  

PM0014 Datenblatt(PDF) 37 Page - STMicroelectronics

Teilenummer PM0014
Bauteilbeschribung  General-purpose DSP library
PDF  46 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Hersteller  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0014 Datenblatt(HTML) 37 Page - STMicroelectronics

Back Button PM0014 Datasheet HTML 33Page - STMicroelectronics PM0014 Datasheet HTML 34Page - STMicroelectronics PM0014 Datasheet HTML 35Page - STMicroelectronics PM0014 Datasheet HTML 36Page - STMicroelectronics PM0014 Datasheet HTML 37Page - STMicroelectronics PM0014 Datasheet HTML 38Page - STMicroelectronics PM0014 Datasheet HTML 39Page - STMicroelectronics PM0014 Datasheet HTML 40Page - STMicroelectronics PM0014 Datasheet HTML 41Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 37 / 46 page
background image
PM0014
Signal processing library functions
37/46
6.3.2
fir_q15_q31_q15
fir_q15_q31_q15 (struct Filter *FirPtr).
Description:
Real FIR filter of 16-bit fractional inputs and outputs. Fractional
coefficients are on 32 bits.
Argument:
FirPtr
Filter pointer.
Algorithm:
y(n) =
bi * x(n - i)
Note:
The delay line must be stored in DPRAM. Its size is 2*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_q31_q15:
#define FirNumberCoeffs NumberOfCoefficients
#define NbOutput NumberOfOutputSamples
iram short Delayline[FirNumberCoeffs];
iram short Coeff[2*FirNumberCoeffs];//coef are 32-bit wide
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_q31_q15(&Filt);
}
Coefficients must be stored in memory as follow:
addr
Filt.CoeffPtr
----> a0 lsb
addr
Filt.CoeffPtr + 2 ----> a0
msb
...
addr
Filt.CoeffPtr + 4 *(FirNumberCoeffs -2)---->
aFirNumberCoeffs-1 msb
Assembly source
code:
fir_q15_q31_q15.asm
Code size and cycles: Size: 130 bytes
Instruction Cycles: 34 + NbOutput * (16 + 2 * FirNumberCoeffs)
i0
=
nbcoeff
1



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46


Datenblatt Download

Go To PDF Page


Link URL



War ALLDATASHEET hilfreich?  [ DONATE ] 

Über Alldatasheet   |   Werbung   |   Kontakt   |   Privatsphäre und Datenschutz   |   Link zum Datenblatt    |   Linktausch   |   Hersteller
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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