![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
FIR filter using fixed point arithmetic operations for ST Nucleo F401RE.
Dependencies: UITDSP_ADDA mbed
Coefficients_200_LPF_Fixed.hpp@8:abd11816e480, 2015-11-16 (annotated)
- Committer:
- MikamiUitOpen
- Date:
- Mon Nov 16 02:23:51 2015 +0000
- Revision:
- 8:abd11816e480
- Parent:
- 0:da34e90f15a3
9
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MikamiUitOpen | 0:da34e90f15a3 | 1 | //-------------------------------------------------------------- |
MikamiUitOpen | 0:da34e90f15a3 | 2 | // Coefficients of FIR filter, Order = 200 |
MikamiUitOpen | 0:da34e90f15a3 | 3 | //-------------------------------------------------------------- |
MikamiUitOpen | 0:da34e90f15a3 | 4 | |
MikamiUitOpen | 0:da34e90f15a3 | 5 | // 帯域 1 帯域 2 |
MikamiUitOpen | 0:da34e90f15a3 | 6 | // 下側帯域端周波数 (kHz) 0.000000 0.520000 |
MikamiUitOpen | 0:da34e90f15a3 | 7 | // 上側帯域端周波数 (kHz) 0.400000 6.000000 |
MikamiUitOpen | 0:da34e90f15a3 | 8 | // 利得 1.000000 0.000000 |
MikamiUitOpen | 0:da34e90f15a3 | 9 | // 重み 1.000000 1.000000 |
MikamiUitOpen | 0:da34e90f15a3 | 10 | // 偏差 0.009151 0.009151 |
MikamiUitOpen | 0:da34e90f15a3 | 11 | // 偏差 [dB] 0.079123 -40.770626 |
MikamiUitOpen | 0:da34e90f15a3 | 12 | const int ORDER_ = 200; |
MikamiUitOpen | 0:da34e90f15a3 | 13 | const int16_t hm_[ORDER_+1] = { |
MikamiUitOpen | 0:da34e90f15a3 | 14 | 29, -154, -51, -33, -28, -25, -20, -14, -6, 3, |
MikamiUitOpen | 0:da34e90f15a3 | 15 | 12, 22, 30, 38, 44, 48, 49, 47, 42, 34, |
MikamiUitOpen | 0:da34e90f15a3 | 16 | 23, 11, -4, -19, -34, -48, -60, -70, -76, -77, |
MikamiUitOpen | 0:da34e90f15a3 | 17 | -74, -66, -54, -37, -17, 5, 29, 52, 74, 92, |
MikamiUitOpen | 0:da34e90f15a3 | 18 | 107, 116, 118, 113, 102, 83, 58, 28, -6, -42, |
MikamiUitOpen | 0:da34e90f15a3 | 19 | -77, -111, -139, -162, -176, -180, -174, -157, -129, -91, |
MikamiUitOpen | 0:da34e90f15a3 | 20 | -45, 7, 62, 118, 170, 217, 253, 277, 286, 279, |
MikamiUitOpen | 0:da34e90f15a3 | 21 | 253, 211, 151, 77, -8, -100, -196, -289, -373, -444, |
MikamiUitOpen | 0:da34e90f15a3 | 22 | -495, -522, -519, -484, -414, -308, -166, 8, 213, 442, |
MikamiUitOpen | 0:da34e90f15a3 | 23 | 690, 950, 1213, 1472, 1718, 1942, 2137, 2297, 2415, 2488, |
MikamiUitOpen | 0:da34e90f15a3 | 24 | 2512, 2488, 2415, 2297, 2137, 1942, 1718, 1472, 1213, 950, |
MikamiUitOpen | 0:da34e90f15a3 | 25 | 690, 442, 213, 8, -166, -308, -414, -484, -519, -522, |
MikamiUitOpen | 0:da34e90f15a3 | 26 | -495, -444, -373, -289, -196, -100, -8, 77, 151, 211, |
MikamiUitOpen | 0:da34e90f15a3 | 27 | 253, 279, 286, 277, 253, 217, 170, 118, 62, 7, |
MikamiUitOpen | 0:da34e90f15a3 | 28 | -45, -91, -129, -157, -174, -180, -176, -162, -139, -111, |
MikamiUitOpen | 0:da34e90f15a3 | 29 | -77, -42, -6, 28, 58, 83, 102, 113, 118, 116, |
MikamiUitOpen | 0:da34e90f15a3 | 30 | 107, 92, 74, 52, 29, 5, -17, -37, -54, -66, |
MikamiUitOpen | 0:da34e90f15a3 | 31 | -74, -77, -76, -70, -60, -48, -34, -19, -4, 11, |
MikamiUitOpen | 0:da34e90f15a3 | 32 | 23, 34, 42, 47, 49, 48, 44, 38, 30, 22, |
MikamiUitOpen | 0:da34e90f15a3 | 33 | 12, 3, -6, -14, -20, -25, -28, -33, -51, -154, |
MikamiUitOpen | 0:da34e90f15a3 | 34 | 29}; |
MikamiUitOpen | 0:da34e90f15a3 | 35 |