IIR Sample Code

Dependencies:   mbed

BP_4KHz_Fc_35KHz_Fs_5N.h

Committer:
martinsimpson
Date:
2017-10-13
Revision:
0:cf938939cb77

File content as of revision 0:cf938939cb77:

#define Fs  35000       //Frequency of Sample Rate in Hz
#define N       5           //Number of Nodes N

// B - Numerator coefficients
float b0 = 0.0201;
float b1 = 0.0;
float b2 = -0.0402;
float b3 = 0.0;
float b4 = 0.0201;

// A - Denominator coefficients
float a0 =    1.0000; 
float a1 =      -2.5494; 
float a2 =      3.2024; 
float a3 =      -2.0359; 
float a4 =      0.6414;