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:我想使用 GPIO 生成 PWM、导通时间为1us 与安;关断时间为7us、使用计时器和引脚号为 p2.3、但这并不是完全实现这个编程、我是使用向上/向下计时器模式完成的...所以请提供任何解决方案、谢谢.....

Guru**** 2555630 points
Other Parts Discussed in Thread: MSP430G2553

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/599228/ccs-msp430g2553-i-want-to-generate-pwm-using-gpio-on-time-is-1us-off-time-is-7us-and-using-timer-and-pin-no-p2-3-but-it-is-not-come-perfectly-this-programe-i-am-done-using-up-up-down-timer-mode-so-please-give-any-solution-tha

器件型号:MSP430G2553
主题中讨论的其他器件: MSP430WARE

工具/软件:Code Composer Studio

我希望使用 GPIO 生成 PWM、导通时间为1us、关断时间为7us

和使用计时器  

引脚编号为 p2.3、但它不能完美实现

此编程是使用向上、向上/向下计时器模式完成的。

因此、请提供任何解决方案

谢谢。。。

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

    有关如何执行 PWM 的示例、请参见 MSP430Ware 代码示例。 在 TI Resource Explorer (位于 CCS 或 dev.ti.com 中)中,导航至 Software -> MSP430Ware -> Devices -> MSP430G2xx -> MSP430G2553 -> Peripheral Examples -> Register Level。 在这里、您可以在计时器示例中找到 PWM 示例。 您将需要调整时钟和计时器值以达到所需的规格。