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实验板。 我正在开发使用计时器A创建PWM信号的代码。我想知道如何配置引脚1和2以获得PWM输出。
嗨,Thilesh!
此信息可在 数据表的表6-39中找到:
您必须设置P1DIR,清除P1SEL1并设置P1SEL0。 对于两个针脚,这意味着:
P1DIR ||(0x01 | 0x02); P1SEL0 ||(0x01 | 0x02); P1SEL1 &=~(0x01 | 0x02);//不是真正必要的,因为它在通电后为0
Dennis