TI E2E 英文论坛海量技术问答的中文版全新上线,可点击相关论坛查看,或在站内搜索 “参考译文” 获取。

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28335: 使用官方的FIR32_ALT滤波结果不正确,求助各位我哪里配置的有问题吗?

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

使用官方给的“Example_F335_FixedPoint_FIR32_Alt”例程数据与滤波系数,滤波结果正常,因为这个例程的滤波阶数是43阶,我将滤波阶数提高到319阶时,滤波结果完全不正确。但是自己写一个卷积和滤波是正常的。

谁有这方面的经验的大神,感谢帮忙指正一下,还望不吝赐教,感谢!

  • 你好,感谢您对TI产品的关注!为了更好的解决您的问题,我将向更了解这款芯片的TI资深工程师咨询,一旦有回复会立即回复给您。

  • 你好,方便提供一下输入数据吗?使用库函数时的输入和您使用自己写的函数时的输入是一样的吗,如果两者不一样请都提供一下。

  • 使用库函数输入和自己写的函数输入是一样的

    10Hz数据

    -10682,
    -10449,
    -10227,
    -9988,
    -9742,
    -9497,
    -9241,
    -8969,
    -8701,
    -8429,
    -8136,
    -7842,
    -7545,
    -7240,
    -6928,
    -6613,
    -6290,
    -5969,
    -5636,
    -5291,
    -4956,
    -4617,
    -4261,
    -3913,
    -3563,
    -3204,
    -2840,
    -2488,
    -2120,
    -1748,
    -1389,
    -1025,
    -652,
    -276,
    82,
    451,
    825,
    1196,
    1561,
    1923,
    2298,
    2658,
    3016,
    3374,
    3734,
    4084,
    4432,
    4777,
    5120,
    5456,
    5795,
    6123,
    6450,
    6762,
    7074,
    7388,
    7689,
    7987,
    8274,
    8562,
    8833,
    9096,
    9368,
    9625,
    9867,
    10103,
    10337,
    10559,
    10769,
    10978,
    11173,
    11360,
    11530,
    11703,
    11870,
    12017,
    12155,
    12290,
    12410,
    12516,
    12618,
    12718,
    12797,
    12862,
    12923,
    12975,
    13008,
    13036,
    13059,
    13066,
    13062,
    13049,
    13030,
    12994,
    12951,
    12895,
    12839,
    12755,
    12666,
    12579,
    12475,
    12354,
    12234,
    12099,
    11951,
    11798,
    11641,
    11464,
    11277,
    11093,
    10886,
    10678,
    10458,
    10237,
    10007,
    9762,
    9516,
    9256,
    8992,
    8715,
    8437,
    8157,
    7855,
    7557,
    7252,
    6949,
    6626,
    6305,
    5987,
    5647,
    5311,
    4969,
    4633,
    4284,
    3927,
    3570,
    3220,
    2863,
    2495,
    2140,
    1774,
    1396,
    1031,
    669,
    293,
    -79,
    -443,
    -815,
    -1183,
    -1546,
    -1914,
    -2277,
    -2642,
    -3005,
    -3356,
    -3709,
    -4066,
    -4422,
    -4758,
    -5106,
    -5446,
    -5783,
    -6106,
    -6437,
    -6751,
    -7065,
    -7371,
    -7681,
    -7973,
    -8255,
    -8546,
    -8821,
    -9096,
    -9352,
    -9604,
    -9853,
    -10095,
    -10315,
    -10542,
    -10759,
    -10959,
    -11165,
    -11349,
    -11522,
    -11686,
    -11854,
    -12001,
    -12143,
    -12268,
    -12384,
    -12505,
    -12602,
    -12692,
    -12777,
    -12846,
    -12899,
    -12953,
    -12997,
    -13016,
    -13041,
    -13041,
    -13035,
    -13027,
    -13001,
    -12973,
    -12930,
    -12876,
    -12804,
    -12738,
    -12652,
    -12549,
    -12450,
    -12337,
    -12209,
    -12067,
    -11926,
    -11766,
    -11601,
    -11437,
    -11252,
    -11056,
    -10861,
    -10657,
    -10428,
    -10198,
    -9971,
    -9728,
    -9478,
    -9219,
    -8950,
    -8685,
    -8405,
    -8108,
    -7821,
    -7521,
    -7207,
    -6909,
    -6596,
    -6269,
    -5937,
    -5609,
    -5275,
    -4932,
    -4589,
    -4243,
    -3887,
    -3537,
    -3178,
    -2820,
    -2458,
    -2091,
    -1725,
    -1364,
    -988,
    -614,
    -256,
    118,
    494,
    855,
    1218,
    1589,
    1960,
    2316,
    2681,
    3044,
    3407,
    3762,
    4107,
    4457,
    4804,
    5149,
    5483,
    5826,
    6147,
    6468,
    6795,
    7105,
    7413,
    7711,
    8008,
    8293,
    8578,
    8855,
    9126,
    9388,
    9642,
    9883,
    10132,
    10351,
    10567,
    10794,
    10987,
    11176,
    11376,
    11558,
    11717,
    11877,
    12029,
    12165,
    12292,
    12424,
    12529,
    12626,
    12716,
    12800,
    12864,
    12925,
    12969,
    13014,
    13047,
    13056,
    13066,
    13068,
    13047,
    13028,
    12997,
    12949,
    12891,
    12822,
    12750,
    12660,
    12566,
    12461,
    12348,
    12221,
    12085,
    11942,
    11792,
    11623,
    11445,
    11268,
    11078,
    10869,
    10664,
    10451,
    10219,
    9988,
    9740,
    9497,
    9229,
    8967,
    8695,
    8419,
    8130,
    7831,
    7539,
    7232,
    6913,
    6607,
    6282,
    5956,
    5624,
    5289,
    4946,
    4599,
    4254,
    3904,
    3545,
    3190,
    2828,
    2471,
    2105,
    1736,
    1371,
    1013,
    632,
    268,
    -97,
    -473,
    -843,
    -1210,
    -1568,
    -1942,
    -2308,
    -2666,
    -3025,
    -3394,
    -3738,
    -4091,
    -4443,
    -4789,
    -5133,
    -5465,
    -5804,
    -6134,
    -6452,
    -6771,
    -7087,
    -7400,
    -7694,
    -7989,
    -8286,
    -8558,
    -8840,
    -9117,
    -9369,
    -9618,
    -9871,
    -10107,
    -10339,
    -10559,
    -10774,
    -10976,
    -11173,
    -11351,
    -11536,
    -11705,
    -11859,
    -12010,
    -12152,
    -12274,
    -12400,
    -12513,
    -12609,
    -12698,
    -12779,
    -12849,
    -12910,
    -12954,
    -12986,
    -13029,
    -13042,
    -13046,
    -13041,
    -13030,
    -13003,
    -12967,
    -12923,
    -12868,
    -12802,
    -12721,
    -12637,
    -12547,
    -12432,
    -12314,
    -12194,
    -12063,
    -11909,
    -11757,
    -11597,
    -11419,
    -11233,
    -11046,
    -10843,
    -10633,
    -10409,
    -10188,
    -9949,
    -9713,
    -9460,
    -9197,
    -8933,
    -8658,
    -8380,
    -8095,
    -7797,
    -7494,
    -7192,
    -6883,
    -6556,
    -6244,
    -5918,
    -5583,
    -5244,
    -4910,
    -4559,
    -4206,
    -3867,
    -3511,
    -3148,
    -2788,
    -2426,
    -2066,
    -1702,
    -1331,
    -961,
    -597,
    -224,
    145,
    508,
    882,
    1249,
    1620,
    1987,
    2351,
    2718,
    3071,
    3421,
    3789,
    4135,
    4481,
    4830,
    5175,
    5514,
    5837,
    6171,
    6504,
    6812,
    7125,
    7437,
    7740,
    8026,
    8319,
    8604,
    8875,
    9143,
    9409,
    9664,
    9906,
    10138,
    10371,
    10594,
    10807,
    11004,
    11201,
    11390,
    11560,
    11734,
    11893,
    12044,
    12180,
    12307,
    12430,
    12531,
    12634,
    12725,
    12803,
    12878,
    12932,
    12983,
    13013,
    13042,
    13059,
    13068,
    13060,
    13044,
    13025,
    12990,
    12940,
    12885,
    12824,
    12743,
    12659,
    12561,
    12453,
    12339,
    12211,
    12077,
    11932,
    11771,
    11607,
    11435,
    11257,
    11055,
    10849,
    10653,
    10430,
    10190,
    9968,
    9725,
    9466,
    9206,
    8947,
    8674,
    8395,
    8109,
    7808,
    7521,
    7205,
    6890,
    6585,
    6255,
    5926,
    5598,
    5268,
    4922,
    4573,
    4230,
    3874,
    3526,
    3162,
    2802,
    2447,
    2079,
    1712,
    1344,
    983,
    606,
    238,
    -121,
    -509,
    -871,
    -1231,
    -1603,
    -1972,
    -2336,
    -2698,
    -3058,
    -3420,
    -3767,
    -4123,
    -4472,
    -4816,
    -5159,
    -5495,
    -5831,
    -6160,
    -6477,
    -6796,
    -7111,
    -7420,
    -7716,
    -8019,
    -8310,
    -8586,
    -8860,
    -9128,
    -9390,
    -9643,
    -9891,
    -10131,
    -10362,
    -10578,
    -10785,
    -11001,
    -11186,
    -11366,
    -11552,
    -11715,
    -11876,
    -12023,
    -12165,
    -12294,
    -12404,
    -12523,
    -12619,
    -12707,
    -12787,
    -12853,
    -12911,
    -12959,
    -12997,
    -13028,
    -13040,
    -13044,
    -13041,
    -13030,
    -12999,
    -12968,
    -12926,
    -12864,
    -12799,
    -12723,
    -12635,
    -12543,
    -12426,
    -12311,
    -12188,
    -12048,
    -11899,
    -11749,
    -11579,
    -11402,
    -11213,
    -11032,
    -10828,
    -10618,
    -10401,
    -10171,
    -9932,
    -9687,
    -9444,
    -9176,
    -8909,
    -8635,
    -8349,
    -8076,
    -7771,
    -7476,
    -7177,
    -6856,
    -6533,
    -6220,
    -5896,
    -5555,
    -5217,
    -4887,
    -4535,
    -4186,
    -3835,
    -3480,
    -3122,
    -2759,
    -2403,
    -2040,
    -1674,
    -1299,
    -936,
    -571,
    -195,
    171,
    538,
    911,
    1279,
    1647,
    2012,
    2378,
    2741,
    3095,
    3450,
    3813,
    4166,
    4509,
    4851,
    5202,
    5535,
    5869,
    6196,
    6527,
    6841,
    7151,
    7466,
    7762,
    8052,
    8343,
    8626,
    8897,
    9162,
    9427,
    9683,
    9921,
    10157,
    10386,
    10613,
    10819,
    11019,
    11226,
    11403,
    11577,
    11746,
    11901,
    12052,
    12192,
    12324,
    12439,
    12542,
    12641,
    12731,
    12810,
    12876,
    12937,
    12984,
    13017,
    13040,
    13062,
    13072,
    13063,
    13042,
    13020,
    12982,
    12933,
    12880,
    12825,
    12743,
    12652,
    12554,
    12447,
    12331,

    25Hz数据

    -10995,
    5798,
    4953,
    4085,
    3198,
    2293,
    1374,
    461,
    -465,
    -1395,
    -2303,
    -3209,
    -4093,
    -4967,
    -5805,
    -6613,
    -7392,
    -8139,
    -8834,
    -9492,
    -10104,
    -10666,
    -11163,
    -11611,
    -12011,
    -12341,
    -12608,
    -12818,
    -12966,
    -13033,
    -13038,
    -12991,
    -12868,
    -12681,
    -12440,
    -12130,
    -11757,
    -11327,
    -10848,
    -10300,
    -9705,
    -9071,
    -8387,
    -7652,
    -6882,
    -6086,
    -5255,
    -4390,
    -3512,
    -2621,
    -1708,
    -782,
    141,
    1058,
    1981,
    2889,
    3778,
    4658,
    5505,
    6328,
    7119,
    7882,
    8605,
    9268,
    9897,
    10481,
    11002,
    11472,
    11883,
    12243,
    12532,
    12765,
    12934,
    13035,
    13071,
    13040,
    12949,
    12790,
    12561,
    12279,
    11932,
    11521,
    11064,
    10543,
    9969,
    9350,
    8682,
    7964,
    7216,
    6419,
    5612,
    4754,
    3876,
    2994,
    2085,
    1161,
    243,
    -678,
    -1601,
    -2518,
    -3413,
    -4294,
    -5163,
    -5993,
    -6797,
    -7564,
    -8311,
    -8998,
    -9641,
    -10240,
    -10785,
    -11273,
    -11717,
    -12094,
    -12406,
    -12659,
    -12853,
    -12985,
    -13042,
    -13040,
    -12967,
    -12835,
    -12629,
    -12370,
    -12053,
    -11666,
    -11220,
    -10723,
    -10172,
    -9560,
    -8907,
    -8216,
    -7478,
    -6696,
    -5891,
    -5058,
    -4194,
    -3302,
    -2412,
    -1493,
    -568,
    353,
    1272,
    2188,
    3098,
    3983,
    4856,
    5701,
    6515,
    7296,
    8051,
    8756,
    9422,
    10034,
    10603,
    11118,
    11574,
    11977,
    12315,
    12596,
    12808,
    12962,
    13052,
    13068,
    13028,
    12920,
    12740,
    12502,
    12204,
    11847,
    11419,
    10946,
    10415,
    9831,
    9194,
    8518,
    7796,
    7034,
    6238,
    5413,
    4553,
    3674,
    2782,
    1873,
    956,
    28,
    -887,
    -1812,
    -2723,
    -3614,
    -4495,
    -5357,
    -6182,
    -6980,
    -7742,
    -8471,
    -9148,
    -9781,
    -10369,
    -10906,
    -11381,
    -11800,
    -12169,
    -12473,
    -12704,
    -12896,
    -13007,
    -13044,
    -13024,
    -12940,
    -12796,
    -12571,
    -12299,
    -11966,
    -11564,
    -11114,
    -10599,
    -10037,
    -9417,
    -8757,
    -8052,
    -7303,
    -6518,
    -5705,
    -4859,
    -3986,
    -3095,
    -2197,
    -1282,
    -356,
    566,
    1483,
    2396,
    3303,
    4181,
    5051,
    5894,
    6703,
    7474,
    8216,
    8918,
    9561,
    10171,
    10729,
    11231,
    11665,
    12058,
    12391,
    12642,
    12848,
    12990,
    13056,
    13059,
    13004,
    12884,
    12694,
    12441,
    12127,
    11759,
    11313,
    10827,
    10283,
    9688,
    9042,
    8348,
    7624,
    6852,
    6050,
    5216,
    4356,
    3472,
    2570,
    1664,
    741,
    -187,
    -1106,
    -2020,
    -2937,
    -3821,
    -4696,
    -5543,
    -6374,
    -7158,
    -7907,
    -8625,
    -9300,
    -9923,
    -10497,
    -11018,
    -11486,
    -11894,
    -12248,
    -12537,
    -12758,
    -12917,
    -13017,
    -13050,
    -13013,
    -12917,
    -12752,
    -12520,
    -12229,
    -11878,
    -11465,
    -10996,
    -10475,
    -9894,
    -9270,
    -8595,
    -7883,
    -7125,
    -6328,
    -5513,
    -4661,
    -3785,
    -2892,
    -1983,
    -1066,
    -146,
    777,
    1692,
    2612,
    3507,
    4388,
    5248,
    6083,
    6880,
    7648,
    8379,
    9072,
    9712,
    10305,
    10854,
    11338,
    11766,
    12137,
    12453,
    12696,
    12887,
    13011,
    13066,
    13054,
    12983,
    12849,
    12637,
    12372,
    12052,
    11661,
    11206,
    10711,
    10152,
    9542,
    8887,
    8191,
    7450,
    6669,
    5861,
    5020,
    4152,
    3261,
    2364,
    1451,
    530,
    -398,
    -1313,
    -2232,
    -3146,
    -4022,
    -4894,
    -5741,
    -6553,
    -7332,
    -8079,
    -8790,
    -9445,
    -10058,
    -10620,
    -11137,
    -11588,
    -11981,
    -12320,
    -12595,
    -12794,
    -12949,
    -13033,
    -13042,
    -12994,
    -12881,
    -12703,
    -12456,
    -12156,
    -11792,
    -11362,
    -10876,
    -10348,
    -9764,
    -9115,
    -8428,
    -7714,
    -6943,
    -6146,
    -5313,
    -4466,
    -3578,
    -2683,
    -1779,
    -859,
    64,
    989,
    1903,
    2814,
    3715,
    4580,
    5440,
    6265,
    7064,
    7819,
    8543,
    9225,
    9850,
    10434,
    10963,
    11442,
    11855,
    12220,
    12519,
    12744,
    12918,
    13028,
    13074,
    13044,
    12956,
    12804,
    12587,
    12303,
    11964,
    11562,
    11100,
    10584,
    10017,
    9395,
    8727,
    8020,
    7277,
    6487,
    5667,
    4825,
    3952,
    3053,
    2154,
    1240,
    316,
    -610,
    -1529,
    -2439,
    -3342,
    -4233,
    -5088,
    -5926,
    -6741,
    -7512,
    -8245,
    -8944,
    -9597,
    -10193,
    -10745,
    -11242,
    -11681,
    -12058,
    -12382,
    -12649,
    -12836,
    -12970,
    -13039,
    -13045,
    -12971,
    -12845,
    -12654,
    -12391,
    -12076,
    -11700,
    -11266,
    -10754,
    -10213,
    -9620,
    -8965,
    -8272,
    -7537,
    -6766,
    -5955,
    -5122,
    -4264,
    -3378,
    -2477,
    -1564,
    -647,
    278,
    1203,
    2116,
    3023,
    3921,
    4787,
    5630,
    6451,
    7244,
    7990,
    8702,
    9374,
    9990,
    10557,
    11076,
    11544,
    11947,
    12288,
    12577,
    12793,
    12953,
    13042,
    13072,
    13033,
    12923,
    12756,
    12528,
    12230,
    11871,
    11465,
    10989,
    10452,
    9876,
    9253,
    8569,
    7851,
    7100,
    6301,
    5474,
    4626,
    3750,
    2849,
    1940,
    1029,
    100,
    -823,
    -1741,
    -2650,
    -3550,
    -4427,
    -5282,
    -6112,
    -6916,
    -7683,
    -8407,
    -9094,
    -9735,
    -10326,
    -10859,
    -11347,
    -11777,
    -12144,
    -12446,
    -12701,
    -12874,
    -12988,
    -13045,
    -13032,
    -12950,
    -12804,
    -12597,
    -12328,
    -11989,
    -11597,
    -11152,
    -10636,
    -10077,
    -9465,
    -8811,
    -8110,
    -7367,
    -6587,
    -5764,
    -4923,
    -4057,
    -3173,
    -2265,
    -1352,
    -431,
    492,
    1415,
    2327,
    3227,
    4120,
    4985,
    5821,
    6635,
    7425,
    8161,
    8857,
    9518,
    10125,
    10679,
    11187,
    11643,
    12033,
    12364,
    12631,
    12838,
    12977,
    13051,
    13070,
    13016,
    12898,
    12711,
    12463,
    12150,
    11778,
    11359,
    10871,
    10322,
    9735,
    9097,
    8408,
    7679,
    6920,
    6114,
    5279,
    4423,
    3547,
    2640,
    1728,
    813,
    -114,
    -1040,
    -1953,
    -2857,
    -3756,
    -4633,
    -5472,
    -6305,
    -7096,
    -7857,
    -8568,
    -9251,
    -9877,
    -10453,
    -10976,
    -11450,
    -11872,
    -12214,
    -12516,
    -12746,
    -12903,
    -13012,
    -13049,
    -13019,
    -12920,
    -12772,
    -12548,
    -12253,
    -11908,
    -11502,
    -11036,
    -10511,
    -9942,
    -9325,
    -8648,
    -7935,
    -7177,
    -6394,
    -5573,
    -4723,
    -3858,
    -2961,
    -2056,
    -1146,
    -217,
    712,
    1622,
    2539,
    3440,
    4310,
    5183,
    6021,
    6821,
    7589,
    8325,
    9020,
    9665,
    10259,
    10804,
    11297,
    11733,
    12108,
    12432,
    12687,
    12871,
    13002,
    13070,
    13061,
    12992,
    12857,
    12664,
    12399,
    12073,
    11692,
    11247,
    10749,
    10197,
    9596,
    8936,
    8246,
    7508,
    6729,
    5921,
    5089,
    4221,
    3333,
    2432,
    1522,
    600,
    -332,
    -1243,
    -2161,
    -3068,
    -3954,
    -4826,
    -5676,
    -6496,
    -7271,
    -8020,
    -8733,
    -9397,
    -10007,
    -10580,
    -11096,
    -11547,
    -11949,
    -12293,
    -12569,
    -12787,
    -12936,
    -13029,
    -13041,
    -12999,
    -12889,
    -12716,
    -12479,
    -12180,
    -11822,
    -11399,
    -10917,
    -10390,
    -9802,
    -9165,
    -8493,
    -7773,
    -7006,
    -6206,
    -5386,
    -4534,
    -3644,
    -2753,
    -1849,
    -923,
    -5,
    919,
    1836,
    2748,
    3641,
    4520,

    滤波系数

    -2,
    -1,
    -1,
    -2,
    -2,
    -3,
    -3,
    -4,
    -4,
    -5,
    -5,
    -6,
    -7,
    -8,
    -9,
    -10,
    -11,
    -12,
    -13,
    -14,
    -15,
    -16,
    -17,
    -18,
    -19,
    -20,
    -21,
    -22,
    -23,
    -24,
    -24,
    -25,
    -25,
    -25,
    -25,
    -25,
    -24,
    -23,
    -22,
    -21,
    -19,
    -17,
    -15,
    -12,
    -9,
    -6,
    -3,
    1,
    6,
    10,
    15,
    20,
    26,
    32,
    38,
    44,
    50,
    57,
    64,
    70,
    77,
    84,
    90,
    97,
    103,
    109,
    115,
    120,
    125,
    130,
    134,
    137,
    140,
    142,
    143,
    144,
    143,
    142,
    140,
    136,
    132,
    127,
    121,
    113,
    105,
    96,
    85,
    74,
    61,
    48,
    34,
    19,
    3,
    -14,
    -31,
    -49,
    -67,
    -85,
    -104,
    -123,
    -142,
    -161,
    -179,
    -197,
    -215,
    -232,
    -249,
    -265,
    -279,
    -293,
    -305,
    -316,
    -326,
    -334,
    -341,
    -346,
    -349,
    -350,
    -350,
    -347,
    -343,
    -336,
    -328,
    -318,
    -306,
    -292,
    -276,
    -258,
    -238,
    -217,
    -194,
    -170,
    -145,
    -118,
    -91,
    -62,
    -33,
    -3,
    27,
    58,
    89,
    119,
    149,
    179,
    208,
    236,
    264,
    290,
    314,
    338,
    359,
    379,
    397,
    413,
    427,
    439,
    448,
    456,
    460,
    463,
    463,
    460,
    456,
    448,
    439,
    427,
    413,
    397,
    379,
    359,
    338,
    314,
    290,
    264,
    236,
    208,
    179,
    149,
    119,
    89,
    58,
    27,
    -3,
    -33,
    -62,
    -91,
    -118,
    -145,
    -170,
    -194,
    -217,
    -238,
    -258,
    -276,
    -292,
    -306,
    -318,
    -328,
    -336,
    -343,
    -347,
    -350,
    -350,
    -349,
    -346,
    -341,
    -334,
    -326,
    -316,
    -305,
    -293,
    -279,
    -265,
    -249,
    -232,
    -215,
    -197,
    -179,
    -161,
    -142,
    -123,
    -104,
    -85,
    -67,
    -49,
    -31,
    -14,
    3,
    19,
    34,
    48,
    61,
    74,
    85,
    96,
    105,
    113,
    121,
    127,
    132,
    136,
    140,
    142,
    143,
    144,
    143,
    142,
    140,
    137,
    134,
    130,
    125,
    120,
    115,
    109,
    103,
    97,
    90,
    84,
    77,
    70,
    64,
    57,
    50,
    44,
    38,
    32,
    26,
    20,
    15,
    10,
    6,
    1,
    -3,
    -6,
    -9,
    -12,
    -15,
    -17,
    -19,
    -21,
    -22,
    -23,
    -24,
    -25,
    -25,
    -25,
    -25,
    -25,
    -24,
    -24,
    -23,
    -22,
    -21,
    -20,
    -19,
    -18,
    -17,
    -16,
    -15,
    -14,
    -13,
    -12,
    -11,
    -10,
    -9,
    -8,
    -7,
    -6,
    -5,
    -5,
    -4,
    -4,
    -3,
    -3,
    -2,
    -2,
    -1,
    -1,
    -2,
  • 你好,对于常数系数数组、它们是否采用与示例相同的格式、使用反向顺序? 

  • 系数使用了与实例相同的格式,没有进行反向顺序。因为系数表数据本来就是对称的。另外FIR32也不需要系数排序。

  • 你好,我需要一些时间来进一步研究这个问题,因为我以前没有使用任何定点库功能的经验。我会尽快回来,但可能需要一段时间。 

  • 抱歉由于美国那边节日假期,支持该问题的工程师休假了,下周他将返工,届时他将跟进您的问题,抱歉给您造成不便。

  • 你好,我运行 C2000Ware 中提供的示例并尝试将滤波器阶数从43更改为319,在对照检查时没有任何错误。 使用您的数据后我也出现了相同的问题,当然结果图表并不是完全一样。 我将尝试与其他人确认这种情况的原因,看看他们是否知道;我将在本周晚些时候尝试作出回应。 

    同时,我查看了您之前发送的输入数据,并在 CCS 中绘制了类似的波浪形图,这是您所期望的吗? 

  • 你这个是我给你的两个频率的输入波形叠加在一起的吗?我是不叠加测试的。

  • 你好,我没有将它们叠加,我只是将它们加载到存储器中并使用 CCS 的图形工具绘制它们的图形。 在 Excel 中,它看起来很正常,因此可能只是图形设置不正确。 当我在 Excel 中对10Hz 信号的输出进行图形化时,我会得到下图。 我仍在等待我的联系人查看他们是否对结果如此奇怪的原因有任何了解,所以请让我等到本周结束,以获得回复。 

  • 你好,如果您查看 C2000Ware 中的2833x_FixedPoint_FIR32_Alt 示例,您将看到输入和滤波器系数幅度远大于您的示例使用的幅度。 我想知道库是否会因为这个原因而出现精度问题。 也许您可以尝试将所有值(输入和系数)按固定值(例如32768)进行缩放,然后看有什么样的反应。 

    另一种可能,虽然可能性很小,是 dbuff (历史缓冲区)的大小问题,您已将其定义为512,远远大于滤波器的阶数(319)。 我相信只需要320。 我不认为这应该是一个问题,因为循环缓冲区应该在达到所需大小循环而不是定义的大小。 但是可以试着检查一下。 

    但首先我会检查量级问题。我比较怀疑这个,因为与预期输出相比,库生成的输出在量级上也非常小。