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.

[参考译文] MSP430FR5739:MSP430FR5739

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/581083/msp430fr5739-msp430fr5739

部件号:MSP430FR5739

你(们)好

我使用的是MSP430FR5739实验板。 我正在开发使用计时器A创建PWM信号的代码。我想知道如何配置引脚1和2以获得PWM输出。  

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

    嗨,Thilesh!

    此信息可在 数据表的表6-39中找到

    您必须设置P1DIR,清除P1SEL1并设置P1SEL0。 对于两个针脚,这意味着:

    P1DIR ||(0x01 | 0x02);
    P1SEL0 ||(0x01 | 0x02);
    P1SEL1 &=~(0x01 | 0x02);//不是真正必要的,因为它在通电后为0 

    Dennis

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    丹尼斯先生,谢谢你。 我真的很欣赏你们的指导