Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

UM0304 Datasheet(PDF) 7 Page - STMicroelectronics

Part # UM0304
Description  STR91x DSP library
PDF  19 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0304 Datasheet(HTML) 7 Page - STMicroelectronics

Back Button UM0304 Datasheet HTML 3Page - STMicroelectronics UM0304 Datasheet HTML 4Page - STMicroelectronics UM0304 Datasheet HTML 5Page - STMicroelectronics UM0304 Datasheet HTML 6Page - STMicroelectronics UM0304 Datasheet HTML 7Page - STMicroelectronics UM0304 Datasheet HTML 8Page - STMicroelectronics UM0304 Datasheet HTML 9Page - STMicroelectronics UM0304 Datasheet HTML 10Page - STMicroelectronics UM0304 Datasheet HTML 11Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 7 / 19 page
background image
UM0304
IIR ARMA 16-bit filter
7/19
2.4
Algorithm
Following is the C equivalent of the assembly code. Note that the assembly code is hand
optimized and restrictions may apply.
C equivalent IIR ARMA algorithm
iir_arma_arm9e(short *y, short *x, short *h2, short *h1, int ny)
{
int i, j;
int sum;
for (i=0; i<ny; i++){
sum = h2[0] * x[4+i];
for (j = 1; j <= 4; j++)
sum += h2[j]*x[4+i-j]-h1[j]*y[4+i-j];
y[4+i] = (sum >> 15);
}
}
2.5
Assembly code
The assembly code for this IIR ARMA algorithm is validated in STR91x environment for
ARM966E-S. The assembly code is for 16-bit fixed point applications. The assembly source
code module may be found in DSPLIB.
2.6
Requirements
The assembly module is little endian and written for ARM9E in ARM mode with stack
aligned to 8 bytes.
The module is for 16-bit fixed point applications where input data is expected to be 16-bit
fixed point and it will produce 16-bit fixed-point outpute.
A caller needs to organize an input vector x[] for filter input and output vector y[] for filter
output then supply the filter coefficients h1[] as well as h2[]. The vector length for x[] and y[]
needs to follow the following guidelines.
●
ny is multiple of 4 and greater than or equal to 8
●
Input data array x[ ] contains ny + 4 input samples to produce ny output samples.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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