来个大神给个输出正弦波的SPWM程序借鉴一下!

2019-03-23 22:21发布

真心不知道怎么实现! 此帖出自小平头技术问答
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
16条回答
Li_Lei
2019-03-24 23:56
他那个表不对

const u16 SPWM_Rom_CloseDataM1N256C8192[256]={
50,151,252,353,454,555,656,757,858,958,1059,1159,1259,1359,1458,1558,
1657,1756,1854,1953,2051,2149,2246,2343,2440,2536,2632,2728,2823,2918,3012,3106,
3199,3292,3384,3476,3567,3658,3748,3838,3927,4015,4103,4190,4276,4362,4448,4532,
4616,4699,4781,4863,4944,5024,5104,5182,5260,5337,5413,5489,5563,5637,5710,5782,
5853,5923,5992,6061,6128,6195,6260,6325,6388,6451,6513,6573,6633,6692,6750,6806,
6862,6916,6970,7022,7074,7124,7173,7221,7268,7314,7359,7403,7445,7487,7527,7566,
7604,7641,7677,7712,7745,7777,7808,7838,7867,7894,7921,7946,7970,7992,8014,8034,
8053,8071,8087,8103,8117,8130,8142,8152,8161,8169,8176,8182,8186,8189,8191,8191,
8191,8189,8186,8182,8176,8169,8161,8152,8142,8130,8117,8103,8088,8071,8053,8034,
8014,7993,7970,7946,7921,7895,7868,7839,7810,7779,7747,7714,7679,7644,7607,7569,
7530,7490,7449,7407,7364,7319,7274,7227,7179,7130,7081,7030,6978,6925,6871,6816,
6760,6702,6644,6585,6525,6464,6402,6339,6275,6210,6145,6078,6011,5942,5873,5802,
5731,5659,5587,5513,5439,5363,5287,5211,5133,5055,4976,4896,4815,4734,4652,4569,
4486,4402,4317,4232,4146,4059,3972,3884,3796,3707,3618,3528,3437,3346,3255,3163,
3070,2978,2884,2790,2696,2602,2507,2411,2316,2220,2123,2027,1930,1832,1735,1637,
1539,1441,1342,1244,1145,1046,947,847,748,648,549,449,349,249,149,49
};

这个是之前算过的模数8192,256个点

一周热门 更多>

相关问题

    相关文章