| Electronic Components Datasheet Search |
|
UM0304 Datasheet(PDF) 7 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0304 Datasheet(HTML) 7 Page - STMicroelectronics |
|
7 / 19 page ![]() 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. |
|
|
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 |
| 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 |