| Electronic Components Datasheet Search |
|
RM0020 Datasheet(PDF) 47 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
RM0020 Datasheet(HTML) 47 Page - STMicroelectronics |
|
47 / 69 page ![]() RM0020 Function API 47/69 Description: Computes the first-order IIR filter on float data. The input samples are stored in the array x, output samples are written to the array y. Algorithm: Equation 39 for each n from 0 to N-1 Performance: See Section 7 and Table 55. Example 24. iir_float_1st #include "libdsp2.h" /* #pragma and ALIGN macros used to align to 8 bytes */ #ifdef __ghs__ #pragma alignvar (8) #endif ALIGN_DCC(8) float x[256/*+4*/] ALIGN_MWERKS(8); /* +4 to ensure there are 16 bytes of readable memory behind x */ #ifdef __ghs__ #pragma alignvar (8) #endif ALIGN_DCC(8) float y [256] ALIGN_MWERKS(8); #ifdef __ghs__ #pragma alignvar (8) #endif ALIGN_DCC(8) float s [2] ALIGN_MWERKS(8) = {0,0}; float c [3] = {0.5157131330F,0.5157131330F,0.0314262660F}; unsigned short N; void main(void) { /* filter the samples in x with first-order IIR filter, */ /* write result into y */ N = 256; iir_float_1st(N, x, y, c, s); } 6.25 iir_float_2nd - float second-order IIR filter Function call: void iir_float_2nd (unsigned short N, float *x, float *y, float *c, float *s); yn b0 xn b1 xn 1 – a1 yn 1 – – + = |
|
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 |