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.

[参考译文] CCS/MSP430G2553:MSP430G2553

Guru**** 2589265 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/627922/ccs-msp430g2553-msp430g2553

器件型号:MSP430G2553

工具/软件:Code Composer Studio

为了尝试使用 MSP430G2553生成 SPWM、我将生成2.5kHz 的载波和调制波(正弦)、我从多个在线论坛中了解到这是硬编码的。 

#define pwmPeriod 400 //载波为2.5kHz,基准为50Hz。 PWM 周期为0.4ms。

//const unsigned int phalfcycle[25]={475、512、549、586、623、693、734、771、808、82、921、882、845、808、771、734、697、626、586、549、512};
// const unsigned int phalfcycle[25]= 100、123、145、206、166、206、166、166、166、166、 232、239、252、263、271、277、 280、280、277、271、263、 252、239、223、206、187、 166、145、123};
const unsigned int phalfcycle[25]={200、223、245、266、287、 306、323、339、352、363、 371、377、380、380、377、 371、363、352、339、323、 306、287、266、245、223};
// const unsigned int phalfcycle[50]={512、580、614、648、682、716、750、785、853、883、887、853、780、768、648、614、580、512、461、110、359、305、257、206、155、104、53、255、150、150、150、150、150、150、150、46、64、14、512、512、512、512、512} 

我无法测量、正弦波阵列中输入值背后的数学原理是什么。 有人能帮我解决这个问题、还是提供一些有用的材料来阅读它。 

在 Adv 中谢谢。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    代码来源如下: e2e.ti.com/.../405169

    正如 JMG 已经解释的那样、振幅受脉冲密度的影响。 占空比由你的相频阵列和定时器的计数/输出模式控制。 如果您更改期间、则必须相应地调整它们。

    此致、
    Ryan