Electronic Components Datasheet Search
  English  ▼

X  

RM0020 Datasheet(PDF) 44 Page - STMicroelectronics

Part # RM0020
Description  SPC56xx DSP function library 2
PDF  69 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

RM0020 Datasheet(HTML) 44 Page - STMicroelectronics

Back Button RM0020 Datasheet HTML 40Page - STMicroelectronics RM0020 Datasheet HTML 41Page - STMicroelectronics RM0020 Datasheet HTML 42Page - STMicroelectronics RM0020 Datasheet HTML 43Page - STMicroelectronics RM0020 Datasheet HTML 44Page - STMicroelectronics RM0020 Datasheet HTML 45Page - STMicroelectronics RM0020 Datasheet HTML 46Page - STMicroelectronics RM0020 Datasheet HTML 47Page - STMicroelectronics RM0020 Datasheet HTML 48Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 44 / 69 page
background image
Function API
RM0020
44/69
Algorithm:
Equation 36
for each n from 0 to N-1
Note: The filter coefficients must be stored in reversed order.
Performance: See Section 7 and Table 53.
Example 22. fir_float
#include "libdsp2.h"
/* #pragma and ALIGN macros used to align to 8 bytes */
#ifdef __ghs__
#pragma alignvar (8)
#endif
ALIGN_DCC(8)
float x[288/*+2*/] ALIGN_MWERKS(8); /* +2 to ensure there are 8
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 hr[33/*+2*/] ALIGN_MWERKS(8) = { /* +2 to ensure there are 8
bytes of readable memory behind hr */
-0.0015288448F,-0.0019041377F,-0.0025120102F,-0.0031517229F,-
0.0033815748F,-
0.0025689987F,0.0000000000F,0.0049703708F,0.0127558533F,0.023399631
1F,0.0364901802F,0.0511553726F,0.0661431077F,0.0799794722F,0.091179
2726F,0.0984722196F,0.1010036179F,0.0984722196F,0.0911792726F,0.079
9794722F,0.0661431077F,0.0511553726F,0.0364901802F,0.0233996311F,0.
0127558533F,0.0049703708F,0.0000000000F,-0.0025689987F,-
0.0033815748F,-0.0031517229F,-0.0025120102F,-0.0019041377F,-
0.0015288448F,
};
unsigned short N, ntaps;
void main(void)
{
/* filter the samples in x with FIR filter of 32nd order, */
/* write result into y, hr are filter coefficients stored */
/* in reversed order */
N = 256;
yn

hk
 xn k

k0
=
ntaps
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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69


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