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:如何使用外部TALK生成PWM

Guru**** 2539500 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/573197/msp430g2553-how-to-use-external-taclk-to-generate-pwm

部件号:MSP430G2553

您好,

我想使用MSP430G2553在WFP 2.6 上输出PWM。 它可以与内部时钟配合使用。 但当我要使用外部时钟源时,它失败。

我将4MHz外部时钟源连接到了WFP 1.0。 以下是配置:

P1DIR &=~0x01;

P1SEL |= 0x01;

P1SEL2 &=~0x01;

CAPD &=~0x01;

ADC10AE0 &=~0x01;

P2DIR |= 0x40;

P2SEL |= 0x40;

P2SEL &=~0x80;

P2SEL2 &=~0xC0;

我选择计时器A时钟源为TALCK:

TA0CTL = tassel_0 | MC_1;

 TA0似乎不起作用。

从MSP430G2553数据表(SLAS735J-APPRIL 2011年- 2013年5月修订)中,我可以在表16中找到配置。 我不知道如何设置:

inch.x=1

能否告诉我如何设置配置和解决我的问题?

非常感谢!

特拉维斯唐

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

    Inch.x涉及ADC,此应用程序不需要Inch.x,否则您的P1寄存器设置似乎是正确的。 是否可以使用IDE的调试器确认寄存器设置并提供4 MHz输入时钟的图像? 电压电平需要在VCC的300 mV以内。

    此致,
    Ryan