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.

[参考译文] MSP430G2553:PWM 相位控制

Guru**** 1139930 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/1325742/msp430g2553-pwm-phase-control

器件型号:MSP430G2553
大家好、我想使用 MSP430G2553创建2个10kHz 的不同 PWM 信号。 PWM 信号的占空比值是固定的50%。 两个不同的电位器连接到微处理器、这两个电位器负责将 PWM 信号转换0-100uS (0-180度)。
我可以使用现有的计时器硬件执行该操作吗? 我还能怎么做呢?
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    对于50%占空比的特定情况、您可以通过  

    1) 1)以2倍的目标频率运行计时器、

    2) 2)在两个输出引脚上使用 OUTMOD=4 (切换)以提供50%的占空比(在目标频率下)、

    3) 3)设置 CCR1=0、然后调整 CCR2以生成相位差。

    由于计时器是目标频率的2倍(周期的一半)、为了获得100个步长、您需要 SMCLK 至少是计时器频率的200倍。 对于10kHz 目标频率、这将是2MHz。