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.

[参考译文] MSP430FR2355:了解编程

Guru**** 2531950 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/983665/msp430fr2355-programming-understanding

器件型号:MSP430FR2355

您好、TI 帮助者、

代码的目的是在 P6.0引脚上生成 PWM。

在其中一个 TI 代码中、它是在那里编写的、

P6DIR |=(BIT0+BIT1 +BIT2 + BIT3 + BIT4 + BIT4);

P6SEL0 |= BIT0;
P6SEL0 |= BIT1;

请帮助我们了解此代码。

提前感谢您。

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

    >P6DIR |=(BIT0+

    >P6SEL0 |= BIT0;

    可从数据表(SLASEC4D)表6-68中了解该器件如何将 P6.0配置为 TB3.1、由 TB3CCTL1/TB3CCR1控制。

    如果没有一些背景、很难解释其余的内容。 这是从哪个 TI 代码获取的?